/* ================================================================
   INDEX GRUP / LEARNING MISSION CONTROL
   A single, coherent visual system for the static education portal.
   ================================================================ */

:root {
  --red: #ef3340;
  --red-deep: #c71931;
  --red-on-dark: #ff6670;
  --red-soft: #ffd9d6;
  --carbon: #171215;
  --carbon-2: #251f22;
  --graphite: #3b3438;
  --ivory: #f4f0e8;
  --paper: #fffaf2;
  --paper-2: #e9e2d8;
  --line: #b9afa5;
  --line-dark: #484242;
  --muted: #6e6762;
  --muted-light: #aaa29b;
  --sidebar: 252px;
  --topbar: 80px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  --body: "Instrument Sans", "Inter", "Segoe UI", "Aptos", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", "Cascadia Mono", "Consolas", "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar) + var(--safe-top) + 24px);
  scroll-padding-bottom: calc(104px + var(--safe-bottom));
}

body {
  min-width: 320px;
  margin: 0;
  padding-left: var(--sidebar);
  background:
    linear-gradient(rgba(21, 19, 19, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 19, 19, .035) 1px, transparent 1px),
    var(--ivory);
  background-size: 32px 32px;
  color: var(--carbon);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
  font-synthesis-style: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

p, li, blockquote, label, small, span {
  overflow-wrap: anywhere;
}

.hero h1,
.hero h1 span,
.hero h1 em,
.home-atlas-v2 .hero h1,
.page-head h1,
.studio-head h2,
.section-title,
.module-card h3,
.topic-head h2,
.topic h2,
.today-panel h2,
.quiz-box > p strong {
  line-height: 1.05;
  letter-spacing: -.03em;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

::selection { background: var(--red); color: white; }

a { color: inherit; text-underline-offset: 3px; }
button, input { font: inherit; }
button { color: inherit; }
img, svg { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: calc(var(--sidebar) + 16px);
  z-index: 10000;
  padding: 10px 14px;
  background: var(--red);
  color: white;
  border: 2px solid white;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Global shell ---------- */

.portal-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 120;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  overflow: hidden;
  background: var(--carbon);
  color: var(--ivory);
  border-right: 1px solid #000;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

.portal-sidebar::after {
  content: "";
  position: absolute;
  inset: auto -76px -54px auto;
  width: 190px;
  aspect-ratio: 1;
  border: 28px solid rgba(227, 6, 19, .18);
  border-radius: 50%;
  pointer-events: none;
}

.ps-brand {
  position: relative;
  min-height: 154px;
  padding: 32px 28px 26px;
  border-bottom: 1px solid var(--line-dark);
}

.ps-brand::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 100%;
  background: var(--red);
}

.ps-brand a { color: inherit; text-decoration: none; }
.ps-brand strong {
  display: block;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
}

.ps-brand strong::after {
  content: " / LAB";
  color: var(--red);
}

.ps-brand span {
  display: block;
  max-width: 180px;
  margin-top: 13px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ps-nav {
  position: relative;
  z-index: 1;
  padding: 16px 14px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-dark) transparent;
}

.ps-section {
  margin: 14px 10px 7px;
  color: #aaa29b;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ps-nav a {
  position: relative;
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  color: #ccc5bf;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.ps-nav a::after {
  content: "↗";
  margin-left: auto;
  color: transparent;
  font-family: var(--mono);
  font-size: 10px;
  transition: color .2s;
}

.ps-nav a::before {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 5px;
  left: 46px;
  height: 1px;
  background: var(--red-on-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}

.ps-nav a:hover { color: white; border-color: var(--line-dark); transform: translateX(3px); }
.ps-nav a:hover::before { transform: scaleX(1); }
.ps-nav a:hover::after { color: var(--red-on-dark); }
.ps-nav a.active { color: white; background: var(--red); border-color: var(--red); }
.ps-nav a.active::before { display: none; }
.ps-nav a.active::after { color: white; }
.ps-nav b { width: 22px; color: currentColor; font-family: var(--mono); font-size: 12px; text-align: center; }

.ps-status {
  position: relative;
  z-index: 2;
  margin: auto 18px 14px;
  padding: 14px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .025);
}

.ps-status-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ps-status span { color: var(--muted-light); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.ps-status strong { color: white; font-family: var(--display); font-size: 23px; }
.ps-status-line { height: 3px; margin-top: 9px; overflow: hidden; background: var(--line-dark); }
.ps-status-fill { width: 0; height: 100%; background: var(--red); transition: width .8s var(--ease); }

.ps-foot {
  position: relative;
  z-index: 2;
  padding: 0 18px 18px;
  color: #aaa29b;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: calc(var(--topbar) + var(--safe-top));
  padding-top: var(--safe-top);
  background: rgba(243, 239, 230, .96);
  border-bottom: 1px solid var(--carbon);
}

.topbar-inner {
  display: flex;
  height: var(--topbar);
  max-width: 1600px;
  align-items: center;
  gap: 20px;
  margin: auto;
  padding: 0 clamp(20px, 3vw, 48px);
}

.logo, .nav { display: none; }

.topbar-context {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--carbon);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.topbar-context::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  outline: 1px solid var(--red);
  outline-offset: 4px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--carbon);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 19px;
  height: 2px;
  background: var(--carbon);
  transition: transform .25s var(--ease), opacity .25s;
}
.menu-toggle span { margin: 4px 0; }

.search-wrap { position: relative; width: min(440px, 50vw); margin-left: auto; }
.search-wrap input {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 40px;
  border: 0;
  border-bottom: 1px solid var(--carbon);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--carbon);
  font-family: var(--mono);
  font-size: 11px;
}
.search-wrap input:focus { border-bottom-width: 3px; border-color: var(--red); }
.search-wrap input::placeholder { color: var(--muted); }
.search-icon { position: absolute; top: 13px; left: 9px; width: 17px; stroke: var(--carbon); }
.search-shortcut {
  position: absolute;
  top: 12px;
  right: 8px;
  padding: 2px 5px;
  color: var(--muted);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
}
.search-results {
  position: absolute;
  top: 52px;
  right: 0;
  display: none;
  width: min(480px, 85vw);
  max-height: min(480px, calc(100vh - var(--topbar) - 24px - var(--safe-bottom)));
  max-height: min(480px, calc(100dvh - var(--topbar) - 24px - var(--safe-bottom)));
  overflow: auto;
  padding: 8px;
  background: var(--paper);
  border: 2px solid var(--carbon);
  border-right: 5px solid var(--red);
  border-bottom: 5px solid var(--red);
}
.search-results.open { display: block; }
.search-result { display: block; padding: 13px 14px; border-bottom: 1px solid var(--line); color: var(--carbon); text-decoration: none; }
.search-result:last-child { border-bottom: 0; }
.search-result:hover, .search-result.is-active { background: var(--carbon); color: var(--ivory); }
.search-result strong { display: block; font-family: var(--display); font-size: 14px; }
.search-result small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.search-result:hover small, .search-result.is-active small { color: #bcb4ae; }
.search-empty { color: var(--muted); }

.reading-progress {
  position: fixed;
  top: var(--safe-top);
  left: var(--sidebar);
  z-index: 140;
  width: calc(100% - var(--sidebar));
  height: 3px;
  background: transparent;
  pointer-events: none;
}
.reading-progress span { display: block; width: 0; height: 100%; background: var(--red); }
.reading-progress b {
  position: absolute;
  top: calc(var(--topbar) + 8px);
  right: clamp(14px, 3vw, 40px);
  padding: 5px 8px;
  background: var(--carbon);
  color: var(--ivory);
  border-left: 3px solid var(--red);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}
.reading-progress b:empty { display: none; }

/* ---------- Page canvas ---------- */

.container {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 64px) clamp(20px, 4vw, 64px) 96px;
}
.container.narrow { max-width: 1240px; }

.reveal-pending { opacity: 0; transform: translateY(26px); }
.is-visible { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ---------- Homepage hero ---------- */

.hero {
  position: relative;
  display: grid;
  min-height: min(650px, calc(100vh - 132px));
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  overflow: hidden;
  background: var(--carbon);
  color: var(--ivory);
  border: 1px solid var(--carbon);
  clip-path: polygon(0 0, calc(100% - 38px) 0, 100% 38px, 100% 100%, 0 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .42;
  background:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -190px;
  left: 42%;
  width: 460px;
  aspect-ratio: 1;
  border: 62px solid rgba(227, 6, 19, .15);
  border-radius: 50%;
  pointer-events: none;
}

.hero-main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(42px, 6vw, 92px);
  border-right: 1px solid var(--line-dark);
}

.eyebrow, .panel-kicker {
  color: var(--red-deep);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero .eyebrow,
.visual-studio .panel-kicker,
.quick-panel .panel-kicker { color: var(--red-on-dark); }

.hero h1 {
  max-width: 900px;
  margin: 22px 0 28px;
  font-family: var(--display);
  font-size: clamp(52px, 6vw, 94px);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: .88;
}
.hero h1 em { color: var(--red); font-style: normal; }
.hero p { max-width: 650px; margin: 0; color: #c7bfba; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-cta, .compact-btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 13px 18px;
  background: var(--red);
  color: white;
  border: 1px solid var(--red);
  border-bottom: 4px solid var(--red-deep);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.hero-cta:hover, .compact-btn:hover { transform: translateY(-2px); background: white; color: var(--carbon); border-color: white; }
.hero-cta:active, .compact-btn:active { transform: translateY(2px); }
.hero-cta.ghost, .compact-btn.secondary { background: transparent; color: var(--ivory); border: 1px solid #6a6260; border-bottom-width: 1px; }
.hero-cta.ghost:hover { color: white; border-color: white; }

.hero-progress {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  gap: 26px;
  padding: clamp(30px, 4vw, 58px);
  background: rgba(21, 19, 19, .72);
}

.academy-visual {
  position: relative;
  min-height: 240px;
  border: 1px solid var(--line-dark);
  overflow: hidden;
}
.academy-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed #4f4847;
  border-radius: 50%;
}
.academy-visual::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  aspect-ratio: 1;
  border: 1px solid var(--red);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.av-caption { position: absolute; top: 12px; left: 14px; color: #817a75; font-family: var(--mono); font-size: 8px; letter-spacing: .12em; }
.av-node, .av-card, .av-line { position: absolute; z-index: 2; }
.av-node { display: grid; width: 48px; aspect-ratio: 1; place-items: center; background: var(--carbon); color: white; border: 1px solid #756d68; border-radius: 50%; font-family: var(--mono); font-size: 9px; }
.av-node-red { top: 64px; left: 30px; background: var(--red); border-color: var(--red); }
.av-node:not(.av-node-red) { right: 34px; bottom: 40px; }
.av-line { top: 86px; left: 74px; width: calc(100% - 130px); height: 94px; border-top: 1px solid var(--red); border-right: 1px solid var(--red); transform: skewY(-12deg); }
.av-card { padding: 6px 8px; background: var(--ivory); color: var(--carbon); border-left: 4px solid var(--red); font-family: var(--mono); font-size: 8px; font-weight: 700; }
.av-card-main { top: 44px; left: 44%; }
.av-card-side { top: 126px; right: 20px; background: var(--red); color: white; }
.av-card-small { bottom: 24px; left: 25%; }

.ring-wrap { position: relative; width: 148px; height: 148px; margin: -104px 0 0 auto; background: var(--carbon); border-radius: 50%; }
.ring-wrap svg { display: block; width: 100%; transform: rotate(-90deg); }
.ring-bg, .ring-fill { fill: none; stroke-width: 7; }
.ring-bg { stroke: #3c3736; }
.ring-fill { stroke: var(--red); stroke-linecap: square; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1s var(--ease); }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-center > span:first-child { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -.05em; }
.ring-level { color: #948c86; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.badge-shelf { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; }
.earned-badge { position: relative; padding: 6px 8px; overflow: hidden; background: transparent; color: #d5cdc7; border: 1px solid #514b49; font-family: var(--mono); font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
.earned-badge::after { content: ""; position: absolute; inset: 0 auto 0 -2px; width: 2px; background: var(--red-on-dark); opacity: 0; }

/* ---------- Homepage command panels ---------- */

.dashboard-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border: 1px solid var(--carbon);
  border-top: 0;
  background: var(--paper);
}
.dash-stat { position: relative; min-height: 118px; padding: 22px; border-right: 1px solid var(--carbon); }
.dash-stat:last-child { border-right: 0; }
.dash-stat::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 4px; background: var(--red); }
.dash-stat span { display: block; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.dash-stat strong { display: block; margin: 10px 0 2px; font-family: var(--display); font-size: 22px; letter-spacing: -.03em; }
.dash-stat i { color: var(--muted); font-size: 11px; font-style: normal; }

.portal-overview { display: grid; grid-template-columns: 1.4fr .6fr; border: 1px solid var(--carbon); border-top: 0; }
.today-panel, .quick-panel { padding: clamp(24px, 3vw, 44px); }
.today-panel { position: relative; overflow: hidden; background: var(--red); color: white; }
.today-panel::after { content: "NEXT"; position: absolute; right: -18px; bottom: -32px; color: rgba(255,255,255,.12); font-family: var(--display); font-size: 118px; font-weight: 800; letter-spacing: -.09em; }
.today-panel .panel-kicker { color: white; }
.today-panel h2 { position: relative; z-index: 1; max-width: 700px; margin: 9px 0 10px; font-family: var(--display); font-size: clamp(30px, 3vw, 46px); line-height: 1; letter-spacing: -.04em; }
.today-panel p { position: relative; z-index: 1; max-width: 720px; margin: 0; font-size: 15px; }
.today-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.today-panel .compact-btn { background: var(--carbon); border-color: var(--carbon); border-bottom-color: #000; }
.today-panel .compact-btn.secondary { background: transparent; color: white; border-color: rgba(255,255,255,.65); }
.quick-panel { background: var(--carbon); color: var(--ivory); }
.quick-panel h3 { margin: 8px 0 20px; font-family: var(--display); font-size: 25px; }
.quick-list { display: grid; }
.quick-item { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-dark); font-size: 12px; }
.quick-item span { color: var(--muted-light); }
.quick-item strong { color: white; font-family: var(--mono); font-size: 11px; }

#continueCard:empty { display: none; }
.continue-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; border: 1px solid var(--carbon); background: var(--paper); }

.visual-studio {
  position: relative;
  margin: clamp(56px, 7vw, 96px) 0;
  padding: clamp(28px, 4vw, 56px);
  background: var(--carbon);
  color: var(--ivory);
  border: 1px solid var(--carbon);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}
.visual-studio::before { content: "MISSION SELECT"; position: absolute; right: 22px; top: 14px; color: #4b4543; font-family: var(--mono); font-size: 8px; letter-spacing: .18em; }
.studio-head { display: grid; grid-template-columns: 1fr 2fr; align-items: end; gap: 28px; margin-bottom: 30px; }
.studio-head h2 { max-width: 760px; margin: 0; font-family: var(--display); font-size: clamp(34px, 4.2vw, 64px); line-height: 1; letter-spacing: -.05em; }
.studio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.studio-tile { display: grid; min-width: 0; grid-template-rows: 150px auto auto; gap: 8px; padding: 14px; background: var(--carbon); color: var(--ivory); text-decoration: none; transition: background .25s, color .25s; }
.studio-tile:hover, .studio-tile.active { background: var(--ivory); color: var(--carbon); }
.studio-tile strong { font-family: var(--display); font-size: 16px; line-height: 1.15; }
.studio-tile small { color: var(--muted-light); font-family: var(--mono); font-size: 9px; }
.studio-tile:hover small, .studio-tile.active small { color: var(--muted); }
.tile-art { position: relative; display: block; overflow: hidden; border: 1px solid #4c4644; background: #1b1818; }
.studio-tile:hover .tile-art, .studio-tile.active .tile-art { background: var(--paper); border-color: var(--carbon); }
.tile-art::before { content: ""; position: absolute; inset: 10px; opacity: .6; background: linear-gradient(90deg, rgba(227,6,19,.18) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px); background-size: 20px 20px; }
.studio-tile:hover .tile-art::before, .studio-tile.active .tile-art::before { background: linear-gradient(90deg, rgba(227,6,19,.12) 1px, transparent 1px), linear-gradient(rgba(21,19,19,.07) 1px, transparent 1px); background-size: 20px 20px; }
.tile-art i { position: absolute; z-index: 1; display: block; }
.setup-art i:nth-child(1) { bottom: 30px; left: 20px; width: 76px; height: 42px; border: 4px solid currentColor; }
.setup-art i:nth-child(2) { bottom: 19px; left: 49px; width: 22px; height: 9px; background: currentColor; }
.setup-art i:nth-child(3) { top: 24px; right: 24px; width: 34px; height: 54px; background: var(--red); }
.group-art i { width: 38px; height: 38px; border: 3px solid var(--red); border-radius: 50%; }
.group-art i:nth-child(1) { top: 20px; left: 18px; }
.group-art i:nth-child(2) { top: 28px; right: 20px; border-color: currentColor; }
.group-art i:nth-child(3) { bottom: 18px; left: 48px; border-color: #77706c; }
.group-art i:nth-child(4) { right: 36px; bottom: 30px; width: 52px; height: 3px; border: 0; background: var(--red); }
.team-art i { border-radius: 50%; background: var(--red); }
.team-art i:nth-child(1) { top: 25px; left: 24px; width: 38px; height: 38px; }
.team-art i:nth-child(2) { top: 30px; right: 28px; width: 32px; height: 32px; background: currentColor; }
.team-art i:nth-child(3) { right: 38px; bottom: 23px; left: 38px; height: 38px; background: transparent; border: 4px solid #77706c; border-radius: 22px 22px 0 0; }
.shield-art i:nth-child(1) { top: 18px; left: 50%; width: 74px; height: 94px; background: var(--red); transform: translateX(-50%); clip-path: polygon(50% 0, 93% 16%, 83% 75%, 50% 100%, 17% 75%, 7% 16%); }
.shield-art i:nth-child(2) { top: 52px; left: 50%; width: 30px; height: 18px; border-bottom: 5px solid white; border-left: 5px solid white; transform: translateX(-50%) rotate(-45deg); }

.card { background: var(--paper); border: 1px solid var(--carbon); }
.dept-select { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; margin: 0 0 72px; padding: 26px; }
.ds-title { font-family: var(--display); font-size: 25px; font-weight: 800; letter-spacing: -.03em; }
.ds-sub { max-width: 720px; margin-top: 4px; color: var(--muted); font-size: 13px; }
.ds-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0; border: 1px solid var(--carbon); }
.ds-buttons button { min-height: 44px; padding: 10px 13px; background: transparent; border: 0; border-right: 1px solid var(--carbon); cursor: pointer; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.ds-buttons button:last-child { border-right: 0; }
.ds-buttons button:hover { background: var(--red-soft); }
.ds-buttons button.active { background: var(--carbon); color: white; }

.section-title {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin: 78px 0 8px;
  padding-top: 17px;
  border-top: 2px solid var(--carbon);
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1;
  letter-spacing: -.05em;
}
.section-title > span:first-child { color: var(--red-deep); font-family: var(--mono); font-size: 12px; letter-spacing: .05em; }
.section-sub { max-width: 650px; margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.track-tag, .badge { display: inline-flex; align-items: center; padding: 5px 8px; background: var(--carbon); color: white; font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.grid { display: grid; gap: 10px; }
.cols-3, .cols-2 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.cols-3 .module-card:nth-child(1) { grid-column: span 5; }
.cols-3 .module-card:nth-child(2) { grid-column: span 4; }
.cols-3 .module-card:nth-child(3) { grid-column: span 3; }
.cols-2 .module-card { grid-column: span 6; }

.module-card {
  position: relative;
  display: grid;
  min-height: 330px;
  grid-template-rows: auto auto auto 1fr auto auto;
  padding: 26px;
  overflow: hidden;
  color: var(--carbon);
  border: 1px solid var(--carbon);
  text-decoration: none;
  transition: background .25s, color .25s, transform .25s var(--ease);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.module-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 8px; background: var(--red); }
.module-card::after { content: "↗"; position: absolute; right: 21px; top: 19px; color: var(--carbon); font-family: var(--mono); font-size: 18px; }
.module-card:hover { z-index: 2; background: var(--carbon); color: var(--ivory); transform: translateY(-6px); }
.module-card:hover::after { color: var(--red); }
.module-card:hover .mod-icon svg { animation: icon-signal .55s var(--ease) both; }
.mod-num { margin-top: 12px; color: var(--red-deep); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.mod-icon { display: grid; width: 60px; height: 60px; place-items: center; margin: 34px 0 23px; color: var(--red); border: 1px solid currentColor; border-radius: 50%; }
.mod-icon svg { width: 25px; }
.module-card h3 { max-width: 360px; margin: 0 0 10px; font-family: var(--display); font-size: clamp(21px, 2vw, 29px); line-height: 1.02; letter-spacing: -.04em; }
.module-card p { max-width: 480px; margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.module-card:hover p, .module-card:hover .mod-meta { color: #b7afaa; }
.module-card:hover .mod-num,
.module-card:hover .progress-label { color: var(--red-on-dark); }
.progress-row { display: flex; align-items: center; gap: 11px; }
.progress-track { height: 4px; flex: 1; overflow: hidden; background: var(--paper-2); }
.module-card:hover .progress-track { background: var(--line-dark); }
.progress-fill { width: 0; height: 100%; background: var(--red); transition: width .9s var(--ease); }
.progress-label { color: var(--red-deep); font-family: var(--mono); font-size: 10px; font-weight: 700; }
.mod-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; color: var(--muted); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.mod-meta span:first-child { padding: 3px 5px; color: var(--carbon); border: 1px solid var(--line); }
.module-card:hover .mod-meta span:first-child { color: white; border-color: var(--line-dark); }

.path-map { display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 16px; background: var(--carbon); border: 1px solid var(--carbon); gap: 1px; }
.path-map a { position: relative; display: grid; min-height: 142px; align-content: space-between; padding: 21px; background: var(--paper); color: var(--carbon); text-decoration: none; transition: background .2s, color .2s; }
.path-map a:hover { background: var(--red); color: white; }
.path-map span { display: grid; width: 31px; height: 31px; place-items: center; background: var(--carbon); color: white; font-family: var(--mono); font-size: 10px; }
.path-map a:hover span { background: white; color: var(--red-deep); }
.path-map strong { max-width: 110px; font-family: var(--display); font-size: 17px; line-height: 1.1; }

/* ---------- Module pages ---------- */

.page-head {
  position: relative;
  min-height: 330px;
  padding: clamp(36px, 6vw, 76px);
  overflow: hidden;
  background: var(--carbon);
  color: var(--ivory);
  border: 1px solid var(--carbon);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
}
.page-head::before { content: "MODULE / FIELD MANUAL"; position: absolute; top: 24px; right: 30px; color: #5f5855; font-family: var(--mono); font-size: 8px; letter-spacing: .14em; }
.page-head::after { content: ""; position: absolute; right: -110px; bottom: -160px; width: 360px; aspect-ratio: 1; border: 52px solid rgba(227,6,19,.17); border-radius: 50%; }
.crumb { position: relative; z-index: 2; color: var(--red-on-dark); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.crumb a { color: inherit; text-decoration: none; }
.page-head h1 { position: relative; z-index: 2; max-width: 900px; margin: 24px 0 15px; font-family: var(--display); font-size: clamp(46px, 6vw, 82px); line-height: .94; letter-spacing: -.06em; }
.lead { position: relative; z-index: 2; max-width: 760px; margin: 0; color: #bdb5af; font-size: 16px; }
.page-head .progress-row { position: relative; z-index: 2; max-width: 640px; margin-top: 30px !important; }
.page-head .progress-track { background: #3e3938; }
.page-head .progress-label { color: var(--red-on-dark); }

.toc { position: relative; margin: 0 0 22px; padding: 24px 28px; background: var(--paper); border: 1px solid var(--carbon); border-top: 0; }
.toc-title { margin-bottom: 13px; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.toc ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 34px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; border-top: 1px solid var(--line); }
.toc a { display: flex; min-height: 43px; align-items: center; gap: 10px; color: var(--carbon); text-decoration: none; font-size: 13px; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--red-deep); font-family: var(--mono); font-size: 9px; }
.toc a::after { content: "→"; margin-left: auto; color: var(--line); }
.toc a:hover, .toc a.current { color: var(--red-deep); }
.toc a.route-current { color: var(--red-deep); font-weight: 750; }
.toc a.done::after { content: "✓"; color: var(--graphite); font-weight: 800; }
.toc a.locked { color: var(--muted); cursor: not-allowed; }
.toc a.locked::after { content: "KİLİTLİ"; color: var(--muted); font-family: var(--mono); font-size: 7px; letter-spacing: .06em; }
.toc-video { margin-left: 4px; padding: 2px 4px; background: var(--carbon); color: white; font-family: var(--mono); font-size: 7px; }

.module-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 22px 0; padding: 13px 0; border-top: 1px solid var(--carbon); border-bottom: 1px solid var(--carbon); }
.toolbar-copy { color: var(--muted); font-size: 12px; }
.toolbar-buttons { display: flex; border: 1px solid var(--carbon); }
.toolbar-buttons button { padding: 8px 11px; background: var(--paper); border: 0; border-right: 1px solid var(--carbon); cursor: pointer; font-family: var(--mono); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.toolbar-buttons button:last-child { border-right: 0; }
.toolbar-buttons button:hover, .toolbar-buttons button.active { background: var(--carbon); color: white; }

.topic {
  position: relative;
  margin: 16px 0;
  padding: clamp(24px, 4vw, 48px);
  scroll-margin-top: calc(var(--topbar) + var(--safe-top) + 24px);
  scroll-margin-bottom: calc(112px + var(--safe-bottom));
  background: var(--paper);
  border: 1px solid var(--carbon);
  transition: opacity .25s, background .25s;
}
.topic::before { content: ""; position: absolute; top: -1px; left: -1px; width: 38px; height: 5px; background: var(--red); }
.topic.is-current-step { border-left-width: 5px; }
.topic.is-complete::before { width: 100%; background: var(--graphite); }
.topic.is-complete::after { content: "TAMAMLANDI"; position: absolute; top: 14px; right: 18px; color: var(--graphite); font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.topic.is-locked { background: var(--paper-2); }
.topic.is-locked::before { width: 100%; background: var(--line); }
.topic.is-locked .topic-head { color: var(--muted); border-bottom-color: var(--line); }
.topic-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--carbon); cursor: pointer; }
.topic h2 { max-width: 820px; margin: 0; font-family: var(--display); font-size: clamp(28px, 3.4vw, 46px); line-height: 1; letter-spacing: -.05em; }
.topic h3 { margin: 34px 0 13px; font-family: var(--display); font-size: 22px; line-height: 1.15; letter-spacing: -.03em; }
.topic h4 { font-family: var(--display); }
.topic p, .topic li { font-size: 15px; }
.topic > p { max-width: 880px; }
.topic a:not(.lm-card):not(.video-link) { color: var(--red-deep); font-weight: 650; }
.topic-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 13px 0 24px; }
.topic-meta span { padding: 4px 7px; background: var(--paper-2); color: var(--muted); font-family: var(--mono); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.topic-meta span:first-child { background: var(--red); color: white; }
.topic-toggle { flex: 0 0 auto; padding: 6px 8px; background: transparent; border: 1px solid var(--line); cursor: pointer; font-family: var(--mono); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.topic-toggle:hover { background: var(--carbon); color: white; border-color: var(--carbon); }
.topic-toggle:disabled { color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.topic.collapsed > .topic-body { display: none; }
.topic.collapsed { padding-bottom: 20px; }
.topic.collapsed .topic-head { border-bottom: 0; padding-bottom: 0; }
.topic.collapsed .topic-meta { margin-bottom: 0; }

.topic table { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: 13px; }
.topic th, .topic td { padding: 13px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.topic th { background: var(--carbon); color: var(--ivory); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.topic tr:nth-child(even) td { background: #f7f3eb; }
.topic code { padding: 2px 5px; background: var(--carbon); color: white; font-family: var(--mono); font-size: .84em; }
.topic pre { padding: 18px; overflow: auto; background: var(--carbon); color: var(--ivory); border-left: 5px solid var(--red); font-family: var(--mono); font-size: 12px; }

.key-points { max-width: 920px; padding: 0; list-style: none; }
.key-points > li { position: relative; margin: 0; padding: 13px 12px 13px 31px; border-top: 1px solid var(--line); }
.key-points > li::before { content: "✦"; position: absolute; left: 8px; color: var(--red-deep); font-size: 10px; }

.note { position: relative; margin: 24px 0; padding: 19px 20px 19px 58px; color: var(--carbon); background: var(--paper-2); border: 1px solid var(--carbon); border-left: 5px solid var(--carbon); border-radius: 14px; line-height: 1.7; box-shadow: 0 8px 18px rgba(23, 18, 21, .05); }
.note::before { content: "i"; position: absolute; top: 18px; left: 18px; display: grid; width: 24px; height: 24px; place-items: center; background: var(--carbon); color: white; font-family: var(--display); font-weight: 800; }
.note.warn { background: #fff1ef; color: var(--carbon); border-color: var(--red-deep); border-left-color: var(--red); box-shadow: 0 10px 22px rgba(199, 25, 49, .12); }
.note.warn::before { content: "!"; background: var(--red); }
.note.warn .note-title, .note.warn a { color: var(--red-deep); }
.note.tip { background: #f3f7ef; color: var(--carbon); border-color: var(--graphite); border-left-color: var(--graphite); box-shadow: 0 10px 22px rgba(23, 18, 21, .08); }
.note.tip::before { content: "✓"; background: var(--graphite); }
.note.tip .note-title { color: var(--graphite); }
.note.info { background: #f7f4eb; color: var(--carbon); border-color: #8a6a2d; border-left-color: #b48a2d; box-shadow: 0 10px 22px rgba(94, 72, 23, .08); }
.note.info .note-title { color: #7a5617; }
.note-title { display: block; margin-bottom: 4px; font-family: var(--display); font-size: 15px; font-weight: 800; color: var(--carbon); }
.note a { color: inherit; text-decoration-color: currentColor; }

.learn-more { margin: 30px 0; padding-top: 16px; border-top: 1px solid var(--carbon); }
.lm-title { margin-bottom: 11px; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lm-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lm-card { position: relative; display: block; min-height: 94px; padding: 16px 54px 16px 16px; background: transparent; color: var(--carbon); border: 1px solid var(--line); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.lm-card::after { content: "↗"; position: absolute; top: 15px; right: 16px; color: var(--red); font-family: var(--mono); transition: transform .2s var(--ease); }
.lm-card:hover { background: var(--carbon); color: var(--ivory); border-color: var(--carbon); }
.lm-card:hover::after { transform: translate(3px, -3px); }
.lm-name { display: block; font-family: var(--display); font-size: 14px; font-weight: 800; }
.lm-desc { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.lm-card:hover .lm-desc { color: var(--muted-light); }
.lm-lang { display: inline-block; margin-top: 8px; color: var(--red-deep); font-family: var(--mono); font-size: 8px; font-weight: 700; }

.video-slot { position: relative; display: grid; min-height: 250px; place-content: center; gap: 8px; margin: 22px 0; padding: 24px; overflow: hidden; background: var(--carbon); color: var(--ivory); border: 1px solid var(--carbon); text-align: center; }
.video-slot::before { content: "VIDEO / FIELD NOTE"; position: absolute; top: 13px; left: 15px; color: #aaa29b; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }
.video-play { display: grid; width: 62px; height: 62px; place-items: center; margin: 0 auto 8px; background: var(--red); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.video-slot strong { font-family: var(--display); font-size: 18px; }
.video-slot small { max-width: 460px; color: var(--muted-light); }
.video-link { display: inline-flex; align-items: center; justify-content: center; margin-top: 8px; padding: 9px 12px; background: var(--ivory); color: var(--carbon); text-decoration: none; font-family: var(--mono); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.video-slot.has-embed, .video-slot.has-video { display: block; min-height: 0; padding: 0; }
.video-slot.has-embed::before, .video-slot.has-video::before, .video-slot.is-unavailable::before { display: none; }
.video-slot iframe, .video-slot video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 0; }
.video-slot video:focus-visible { outline-offset: -5px; }
.video-caption { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 16px; background: var(--carbon); text-align: left; }
.video-caption small { color: #c7bfba; }
.video-slot.is-unavailable {
  min-height: 108px;
  grid-template-columns: 48px minmax(0, 1fr);
  place-content: center stretch;
  align-items: center;
  gap: 16px;
  padding: 18px;
  text-align: left;
  background: var(--ivory);
  border: 1px dashed var(--line);
  color: var(--carbon);
}
.video-slot.is-unavailable strong {
  color: var(--carbon);
}
.video-slot.is-unavailable small {
  color: var(--muted);
}
.video-unavailable-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: var(--paper);
  color: var(--carbon);
  border-left: 5px solid var(--red);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
}
.video-unavailable-copy strong,
.video-unavailable-copy small {
  display: block;
}
.video-unavailable-copy strong {
  margin-bottom: 4px;
  font-size: 18px;
}
.video-unavailable-copy small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- Quizzes & activities ---------- */

.quiz-box {
  position: relative;
  margin-top: 38px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  background: var(--carbon);
  color: var(--ivory);
  border: 1px solid var(--carbon);
  scroll-margin-top: calc(var(--topbar) + var(--safe-top) + 24px);
  scroll-margin-bottom: calc(112px + var(--safe-bottom));
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.quiz-box::before { content: "KNOWLEDGE CHECK"; position: absolute; top: 14px; right: 23px; color: #69615e; font-family: var(--mono); font-size: 7px; letter-spacing: .15em; }
.quiz-title { color: var(--red-on-dark); font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.quiz-box > p { max-width: 800px; margin: 20px 0 0; font-family: var(--display); font-size: clamp(19px, 2.2vw, 29px); line-height: 1.2; }
.quiz-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 24px; }
.quiz-option { min-height: 78px; padding: 14px; background: transparent; color: var(--ivory); border: 1px solid #5b5451; cursor: pointer; text-align: left; font-size: 13px; font-weight: 600; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.quiz-option:hover:not(:disabled) { background: var(--ivory); color: var(--carbon); border-color: var(--ivory); transform: translateY(-3px); }
.quiz-option.correct { background: var(--ivory) !important; color: var(--carbon) !important; border: 3px solid white !important; }
.quiz-option.wrong { background: var(--red) !important; color: white !important; border-color: var(--red) !important; animation: shake .35s both; }
.quiz-feedback { min-height: 20px; margin-top: 15px; color: #c7bfba; font-size: 12px; }
.quiz-next { display: inline-flex; min-height: 40px; align-items: center; margin-top: 13px; padding: 9px 13px; background: var(--red); color: white; border: 0; cursor: pointer; font-family: var(--mono); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.quiz-next:hover { background: white; color: var(--carbon); }
.quiz-next:focus-visible,
.mission-dock-action:focus-visible,
.mission-dock-map:focus-visible,
.mission-dock-sheet a.route-current:focus-visible,
.mission-sheet-close:focus-visible { outline-color: white; outline-offset: -6px; }
.quiz-complete { display: grid; min-height: 230px; align-content: center; }
.quiz-combo { justify-self: start; margin: 14px 0 10px; padding: 7px 10px; background: var(--red); color: white; border-left: 5px solid white; font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; animation: tick-pop .45s var(--ease) both; }
.quiz-complete-mark { color: var(--red); font-family: var(--display); font-size: clamp(42px, 6vw, 82px); font-weight: 800; letter-spacing: -.06em; line-height: .9; }
.module-seal { justify-self: start; margin-top: 16px; padding: 9px 11px; background: var(--ivory); color: var(--carbon); border-right: 5px solid var(--red); font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.quiz-restart { margin-top: 20px; justify-self: start; padding: 9px 12px; background: transparent; color: white; border: 1px solid #655e5a; cursor: pointer; font-family: var(--mono); font-size: 9px; text-transform: uppercase; }

.burst-particle {
  position: fixed;
  z-index: 9998;
  color: var(--red);
  font-family: var(--display);
  font-size: 18px;
  font-style: normal;
  pointer-events: none;
  animation: burst 1.35s var(--ease) var(--d, 0s) both;
}
.burst-particle:nth-of-type(2n) { color: var(--carbon); }
.burst-particle:nth-of-type(3n) { color: var(--ivory); }
@keyframes burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
  14% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1.1); }
}

.iw { position: relative; margin: 30px 0; padding: 24px; background: var(--red-soft); border: 1px solid var(--carbon); }
.iw::before { content: "INTERACTIVE / TRY IT"; position: absolute; top: 12px; right: 15px; color: rgba(180,0,10,.55); font-family: var(--mono); font-size: 7px; letter-spacing: .12em; }
.iw-title { margin-bottom: 12px; font-family: var(--display); font-size: 19px; font-weight: 800; }
.flip-grid, .match-grid, .hotspot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 14px; }
.flip-card, .match-item, .hotspot, .scenario-option, .sort-item { display: block; width: 100%; min-height: 62px; padding: 13px; background: var(--paper); color: var(--carbon); border: 1px solid var(--carbon); cursor: pointer; text-align: left; }
.flip-card:hover, .hotspot:hover, .scenario-option:hover { background: var(--carbon); color: white; }
.flip-card.revealed { background: var(--red); color: white; }
.scenario-option, .sort-item { margin-top: 7px; }
.iw-body > p { max-width: 760px; margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.iw-feedback.quiz-feedback { color: var(--carbon); }
.iw-progress { margin: 10px 0 0; color: var(--red-deep); font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.iw .quiz-option { background: var(--paper); color: var(--carbon); border-color: var(--carbon); }
.iw .quiz-option:hover:not(:disabled) { background: var(--carbon); color: var(--ivory); border-color: var(--carbon); }
.iw .quiz-option:disabled { cursor: default; }
.iw-complete { border-width: 3px; }
.iw-reward { display: inline-flex; margin-top: 16px; background: var(--carbon); color: var(--ivory); border-color: var(--carbon); }
.iw-reward[hidden] { display: none; }

.match-column { display: grid; align-content: start; gap: 7px; }
.match-heading { padding: 7px 9px; background: var(--carbon); color: var(--ivory); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.match-choice { margin: 0; }
.match-choice.selected, .scenario-option.selected { background: var(--paper-2); color: var(--carbon); border: 3px solid var(--red); }

.sort-available { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 13px; }
.sort-ordered { display: grid; gap: 4px; margin-top: 12px; padding-left: 16px; border-left: 4px solid var(--carbon); }
.sort-ordered:empty { display: none; }
.sort-ordered .sort-item { min-height: 48px; margin: 0; }

.hotspot strong, .hotspot small { display: block; }
.hotspot small { margin-top: 6px; color: var(--muted); line-height: 1.35; }
.hotspot.visited { border-left: 5px solid var(--red); }

.phish-fields { display: grid; gap: 7px; }
.phish-field { cursor: default; line-height: 2.25; }
.clue { display: inline; width: auto; min-height: 36px; margin: 2px; padding: 5px 7px; background: var(--paper-2) !important; color: var(--carbon) !important; border: 1px dashed var(--red-deep) !important; line-height: 1.35; }
.clue:hover:not(:disabled) { background: var(--carbon) !important; color: var(--ivory) !important; }
.clue.correct { border-style: solid !important; }

.scenario-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.term-commands { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.term-command { width: auto; min-height: 48px; margin: 0; font-family: var(--mono); font-size: 10px; }
.term-screen { min-height: 190px; margin: 0; padding: 18px; overflow: auto; background: var(--carbon); color: var(--ivory); border-left: 5px solid var(--red); font-family: var(--mono); font-size: 11px; line-height: 1.55; white-space: pre-wrap; }

@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* ---------- Data visuals & special content ---------- */

.group-map { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; align-items: center; margin: 28px 0; padding: 26px; background: var(--carbon); border: 1px solid var(--carbon); overflow: hidden; }
.group-map::before { content: ""; position: absolute; top: 50%; left: 14%; width: 72%; height: 1px; background: #554f4c; }
.map-center { position: relative; z-index: 2; display: grid; min-height: 150px; grid-column: 2; grid-row: 1 / span 2; place-content: center; padding: 20px; background: var(--red); color: white; border-radius: 50%; text-align: center; }
.map-center strong { font-family: var(--display); font-size: 21px; }
.map-center span { max-width: 150px; color: #ffd2cf; font-size: 11px; }
.map-chip { position: relative; z-index: 2; display: grid; min-height: 54px; place-items: center; background: var(--ivory); color: var(--carbon); border: 1px solid #6d6662; text-decoration: none; font-family: var(--mono); font-size: 10px; font-weight: 700; }
.map-chip:hover { background: var(--red); color: white; border-color: var(--red); }

.visual-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 0; list-style: none; }
.visual-points > li { display: grid; align-content: start; gap: 6px; min-height: 140px; padding: 18px; background: var(--paper-2); border: 1px solid var(--line); }
.visual-points > li::before { display: none; }
.visual-points span { color: var(--red-deep); font-family: var(--mono); font-size: 9px; font-weight: 700; }
.visual-points strong { font-family: var(--display); font-size: 17px; }
.visual-points small { color: var(--muted); line-height: 1.4; }

.company-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 18px; }
.company { position: relative; padding: 22px; overflow: hidden; background: #f8f4ec; border: 1px solid var(--line); }
.company::before { content: attr(data-initial); position: absolute; top: -22px; right: 5px; color: rgba(227,6,19,.07); font-family: var(--display); font-size: 120px; font-weight: 800; line-height: 1; }
.company-head { position: relative; z-index: 1; }
.company-head h4 { margin: 0 0 9px; font-size: 21px; }
.company-desc { position: relative; z-index: 1; display: -webkit-box; color: var(--muted); font-size: 13px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.company.open .company-desc { -webkit-line-clamp: unset; }
.company-toggle { padding: 7px 9px; background: transparent; border: 1px solid var(--carbon); cursor: pointer; font-family: var(--mono); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.company-toggle:hover { background: var(--carbon); color: white; }
.tag, .chips span { display: inline-flex; margin: 2px 2px 2px 0; padding: 3px 6px; background: var(--carbon); color: white; font-family: var(--mono); font-size: 7px; font-weight: 700; text-transform: uppercase; }
.tag.bist { background: var(--red); }
.chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 3px; margin-top: 12px; }
.chips span { background: var(--paper-2); color: var(--muted); }

.value-chain { display: grid; padding: 0; list-style: none; counter-reset: chain; }
.value-chain li { position: relative; display: grid; grid-template-columns: 210px 1fr; gap: 25px; margin: 0; padding: 20px 20px 20px 70px; border-top: 1px solid var(--line); counter-increment: chain; }
.value-chain li::before { content: attr(data-step); position: absolute; top: 18px; left: 10px; display: grid; width: 36px; height: 36px; place-items: center; background: var(--red); color: white; font-family: var(--mono); font-size: 10px; }
.value-chain strong { font-family: var(--display); line-height: 1.25; }
.value-chain span { color: var(--muted); }

/* ---------- Checklist ---------- */

.checklist-group { margin: 15px 0; padding: clamp(24px, 4vw, 42px); background: var(--paper); border: 1px solid var(--carbon); }
.checklist-group h2 { margin: 0; font-family: var(--display); font-size: clamp(28px, 3vw, 42px); letter-spacing: -.04em; }
.cg-sub { margin: 4px 0 22px; color: var(--muted); font-size: 13px; }
.check-item { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 17px 8px; border-top: 1px solid var(--line); cursor: pointer; transition: background .2s, padding .2s; }
.check-item:hover { padding-right: 14px; padding-left: 14px; background: var(--ivory); }
.check-item input { width: 22px; height: 22px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--red); cursor: pointer; }
.ci-body, .ci-title, .ci-desc { display: block; }
.ci-title { font-size: 15px; font-weight: 700; }
.ci-desc { margin-top: 3px; color: var(--muted); font-size: 12px; }
.check-item:has(input:checked) .ci-title, .check-item.is-checked .ci-title { color: var(--muted); text-decoration: line-through; }
.check-item:has(input:checked)::after, .check-item.is-checked::after { content: "DONE"; margin-left: auto; color: var(--graphite); font-family: var(--mono); font-size: 8px; font-weight: 700; }

/* ---------- Pager & footer ---------- */

.pager { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 26px; }
.pager a { position: relative; min-height: 92px; padding: 19px; background: var(--paper); color: var(--carbon); border: 1px solid var(--carbon); text-decoration: none; transition: background .2s, color .2s; }
.pager a:hover { background: var(--carbon); color: var(--ivory); }
.pager .next { text-align: right; }
.pager-label { display: block; color: var(--red-deep); font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.pager-title { display: block; margin-top: 7px; font-family: var(--display); font-size: 16px; font-weight: 800; }

.site-footer { padding: 52px clamp(24px, 5vw, 70px) 24px; background: var(--carbon); color: var(--muted-light); border-top: 8px solid var(--red); }
.footer-inner { max-width: 1300px; margin: auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 50px; }
.footer-col h4 { margin: 0 0 12px; color: white; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.footer-col .footer-feedback-title { margin-top: 18px; }
.footer-col a { display: block; margin: 6px 0; color: #c6beb8; text-decoration: none; font-size: 12px; }
.footer-col a:hover { color: var(--red-on-dark); }
.footer-col p { max-width: 520px; font-size: 12px; }
.footer-logo { margin-bottom: 17px; color: white; font-family: var(--display); font-size: 24px; font-weight: 800; }
.footer-logo::after { content: " / LAB"; color: var(--red); }
.footer-bottom { max-width: 1300px; margin: 34px auto 0; padding-top: 16px; border-top: 1px solid var(--line-dark); color: #aaa29b; font-family: var(--mono); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.checklist-progress { margin-top: 14px; }
.checklist-progress-label { min-width: 110px; }

/* ---------- Mobile mission dock ---------- */

.mission-dock { display: none; }
.mission-dock-backdrop { display: none; }
.mission-dock-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1280px) {
  :root { --sidebar: 250px; }
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr); }
  .hero-main { padding: 52px; }
  .cols-3 .module-card:nth-child(1), .cols-3 .module-card:nth-child(2), .cols-3 .module-card:nth-child(3) { grid-column: span 4; }
}

@media (max-width: 1050px) {
  :root { --sidebar: 284px; }
  body { padding-left: 0; }
  .portal-sidebar { transform: translateX(-101%); transition: transform .32s var(--ease); }
  body.nav-open { overflow: hidden; }
  body.nav-open .portal-sidebar { transform: translateX(0); border-right: 8px solid var(--red); }
  body.nav-open::before { content: ""; position: fixed; inset: 0; z-index: 110; background: rgba(21,19,19,.66); }
  body.nav-open .topbar { z-index: 130; background: transparent; border-color: transparent; pointer-events: none; }
  body.nav-open .menu-toggle { position: fixed; top: calc(10px + var(--safe-top)); left: calc(var(--sidebar) - 58px); z-index: 2; background: var(--ivory); pointer-events: auto; }
  .menu-toggle { display: grid; }
  body.nav-open .menu-toggle span { opacity: 0; }
  body.nav-open .menu-toggle::before { transform: translateY(6px) rotate(45deg); }
  body.nav-open .menu-toggle::after { transform: translateY(-6px) rotate(-45deg); }
  .reading-progress { left: 0; width: 100%; }
  .skip-link { left: 16px; }
  .hero { grid-template-columns: 1fr; }
  .hero-main { min-height: 560px; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .hero-progress { grid-template-columns: 1fr auto; }
  .academy-visual { min-height: 220px; }
  .ring-wrap { margin: 0; }
  .badge-shelf { grid-column: 1 / -1; }
  .studio-grid { grid-template-columns: repeat(2, 1fr); }
  .cols-3 .module-card:nth-child(1), .cols-3 .module-card:nth-child(2) { grid-column: span 6; }
  .cols-3 .module-card:nth-child(3) { grid-column: 4 / span 6; }
  .portal-overview { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1.5fr 1fr; }
  .footer-inner .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --topbar: 64px; }
  .topbar-inner { gap: 11px; padding: 0 max(14px, var(--safe-right)) 0 max(14px, var(--safe-left)); }
  .reading-progress b { right: max(14px, var(--safe-right)); }
  .topbar-context { display: none; }
  .search-wrap { width: auto; flex: 1; }
  .search-shortcut { display: none; }
  .container { padding: 20px max(14px, var(--safe-right)) 64px max(14px, var(--safe-left)); }
  body.has-mission-dock .container.narrow { padding-bottom: calc(152px + var(--safe-bottom)); }
  body.has-mission-dock .site-footer { padding-bottom: calc(132px + var(--safe-bottom)); }
  body.has-mission-dock .toc,
  body.has-mission-dock .module-toolbar { display: none; }
  body.nav-open .mission-dock { opacity: 0; pointer-events: none; }

  .mission-dock {
    position: fixed;
    inset: auto 0 0;
    z-index: 105;
    display: block;
    padding: 0 max(8px, var(--safe-right)) calc(8px + var(--safe-bottom)) max(8px, var(--safe-left));
    color: var(--ivory);
    pointer-events: none;
    transition: opacity .18s var(--ease);
  }
  .mission-dock-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: none;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(21, 19, 19, .72);
    border: 0;
    cursor: default;
    pointer-events: none;
  }
  .mission-dock.is-open .mission-dock-backdrop { display: block; pointer-events: auto; }
  .mission-dock-bar {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 80px;
    grid-template-columns: minmax(0, 1fr) minmax(112px, 34%);
    overflow: hidden;
    background: var(--carbon);
    border: 1px solid var(--ivory);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
    pointer-events: auto;
  }
  .mission-dock-meter {
    position: absolute;
    inset: 0 0 auto;
    z-index: 3;
    height: 4px;
    background: var(--line-dark);
  }
  .mission-dock-meter span { display: block; width: 0; height: 100%; background: var(--red); transition: width .35s var(--ease); }
  .mission-dock-map {
    min-width: 0;
    min-height: 80px;
    padding: 13px 14px 10px;
    overflow: hidden;
    background: var(--carbon);
    color: var(--ivory);
    border: 0;
    cursor: pointer;
    text-align: left;
  }
  .mission-dock-kicker,
  .mission-dock-count { display: block; color: var(--red-on-dark); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .05em; line-height: 1.3; text-transform: uppercase; }
  .mission-dock-title { display: block; margin: 3px 0 2px; overflow: hidden; font-family: var(--display); font-size: 15px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
  .mission-dock-count { color: #c9c1bb; font-size: 9px; }
  .mission-dock-action {
    position: relative;
    display: grid;
    min-height: 80px;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 15px 13px;
    background: var(--red);
    color: white;
    border-left: 1px solid var(--ivory);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
  }
  .mission-dock-action b { font-family: var(--display); font-size: 22px; line-height: 1; }
  .mission-dock-map:active,
  .mission-dock-action:active { filter: brightness(.86); }

  .mission-dock-sheet {
    position: absolute;
    right: max(8px, var(--safe-right));
    bottom: calc(96px + var(--safe-bottom));
    left: max(8px, var(--safe-left));
    z-index: 3;
    max-height: min(64vh, 520px);
    overflow: auto;
    overscroll-behavior: contain;
    background: var(--carbon);
    border: 1px solid var(--ivory);
    pointer-events: auto;
  }
  .mission-dock-sheet[hidden] { display: none; }
  .mission-sheet-head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; background: var(--carbon); border-bottom: 1px solid var(--line-dark); }
  .mission-sheet-head span { display: block; color: var(--red-on-dark); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
  .mission-sheet-head strong { display: block; margin-top: 3px; font-family: var(--display); font-size: 18px; line-height: 1.1; }
  .mission-sheet-close { min-width: 48px; min-height: 48px; padding: 8px 10px; background: var(--ivory); color: var(--carbon); border: 0; cursor: pointer; font-family: var(--mono); font-size: 10px; font-weight: 800; text-transform: uppercase; }
  .mission-dock-sheet ol { margin: 0; padding: 0; list-style: none; counter-reset: none; }
  .mission-dock-sheet li { border-top: 1px solid var(--line-dark); }
  .mission-dock-sheet li:first-child { border-top: 0; }
  .mission-dock-sheet a {
    display: grid;
    min-height: 64px;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    color: var(--ivory);
    text-decoration: none;
  }
  .mission-step-num { display: grid; min-height: 64px; place-items: center; color: var(--red-on-dark); border-right: 1px solid var(--line-dark); font-family: var(--mono); font-size: 10px; }
  .mission-step-copy { min-width: 0; padding: 10px 13px; }
  .mission-step-copy strong { display: block; overflow: hidden; font-family: var(--display); font-size: 14px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
  .mission-step-copy small { display: block; margin-top: 3px; color: #bdb5af; font-family: var(--mono); font-size: 9px; letter-spacing: .03em; text-transform: uppercase; }
  .mission-dock-sheet a.route-current { background: var(--red); color: white; }
  .mission-dock-sheet a.route-current .mission-step-num { color: white; border-right-color: rgba(255,255,255,.42); }
  .mission-dock-sheet a.route-current small { color: white; }
  .mission-dock-sheet a.done .mission-step-num { color: var(--ivory); }
  .mission-dock-sheet a.locked { color: #8e8781; cursor: not-allowed; }
  .mission-dock-sheet a.locked .mission-step-num,
  .mission-dock-sheet a.locked small { color: #8e8781; }

  .hero { min-height: auto; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
  .hero-main { min-height: 500px; padding: 34px 24px; }
  .hero h1 { font-size: clamp(44px, 13vw, 65px); }
  .hero p { font-size: 15px; }
  .hero-actions { display: grid; }
  .hero-cta { width: 100%; }
  .hero-progress { display: grid; grid-template-columns: 1fr; padding: 24px; }
  .academy-visual { min-height: 200px; }
  .ring-wrap { width: 128px; height: 128px; margin: -74px 0 0 auto; }
  .dashboard-strip { grid-template-columns: repeat(2, 1fr); }
  .dash-stat:nth-child(2) { border-right: 0; }
  .dash-stat:nth-child(-n+2) { border-bottom: 1px solid var(--carbon); }
  .studio-head { grid-template-columns: 1fr; gap: 10px; }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-tile { grid-template-rows: 120px auto auto; }
  .visual-studio { margin: 48px 0; padding: 22px; }
  .dept-select { grid-template-columns: 1fr; padding: 20px; }
  .ds-buttons { display: grid; }
  .ds-buttons button { border-right: 0; border-bottom: 1px solid var(--carbon); }
  .ds-buttons button:last-child { border-bottom: 0; }
  .section-title { flex-wrap: wrap; margin-top: 58px; }
  .cols-3 .module-card:nth-child(1), .cols-3 .module-card:nth-child(2), .cols-3 .module-card:nth-child(3), .cols-2 .module-card { grid-column: 1 / -1; }
  .module-card { min-height: 300px; }
  .path-map { grid-template-columns: 1fr; }
  .path-map a { min-height: 82px; grid-template-columns: 42px 1fr; align-items: center; align-content: center; }
  .page-head { min-height: 300px; padding: 38px 24px; }
  .page-head::before { display: none; }
  .page-head h1 { margin-top: 28px; font-size: clamp(42px, 13vw, 62px); }
  .toc { padding: 18px; }
  .toc ol { grid-template-columns: 1fr; }
  .module-toolbar { align-items: flex-start; flex-direction: column; }
  .topic { padding: 25px 18px; }
  .topic table { display: block; max-width: 100%; overflow-x: auto; }
  .topic-head { display: grid; grid-template-columns: 1fr auto; }
  .topic-head .badge { grid-column: 1; grid-row: 2; justify-self: start; }
  .topic-toggle { min-width: 48px; min-height: 48px; grid-column: 2; grid-row: 1; padding: 10px; }
  .topic.is-complete::after { display: none; }
  .lm-cards, .quiz-options, .flip-grid, .match-grid, .hotspot-grid, .sort-available, .scenario-options, .company-grid, .visual-points { grid-template-columns: 1fr; }
  .quiz-option { min-height: 64px; }
  .clue { display: inline-block; min-height: 44px; }
  .quiz-next, .quiz-restart { min-height: 48px; padding: 11px 15px; }
  .value-chain li { grid-template-columns: 1fr; gap: 5px; padding-left: 62px; }
  .group-map { grid-template-columns: 1fr; }
  .map-center { min-height: 110px; grid-column: 1; grid-row: auto; border-radius: 0; }
  .pager { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner .footer-col:last-child { grid-column: auto; }
}

@media (max-width: 420px) {
  .dashboard-strip { grid-template-columns: 1fr; }
  .dash-stat { border-right: 0; border-bottom: 1px solid var(--carbon); }
  .dash-stat:last-child { border-bottom: 0; }
  .today-actions { display: grid; }
  .compact-btn { width: 100%; }
  .hero-main { min-height: 470px; }
  .hero h1 { font-size: 44px; }
  .academy-visual { min-height: 180px; }
}

@keyframes hero-signal-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes orbit-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(34px, 22px) rotate(8deg); }
}

@keyframes badge-scan {
  0%, 72% { left: -2px; opacity: 0; }
  76% { opacity: 1; }
  92% { left: calc(100% + 2px); opacity: 1; }
  100% { left: calc(100% + 2px); opacity: 0; }
}

@keyframes icon-signal {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  35% { transform: translateY(-5px) rotate(-5deg); }
  70% { transform: translateY(1px) rotate(3deg); }
}

@keyframes tick-pop {
  0% { opacity: 0; transform: scale(.2) rotate(-16deg); }
  70% { transform: scale(1.25) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-main > .eyebrow,
  .hero-main > h1,
  .hero-main > p,
  .hero-main > .hero-actions { opacity: 0; animation: hero-signal-in .72s var(--ease) both; }
  .hero-main > h1 { animation-delay: .08s; }
  .hero-main > p { animation-delay: .16s; }
  .hero-main > .hero-actions { animation-delay: .24s; }
  .hero::after { animation: orbit-drift 15s ease-in-out infinite; }
  .earned-badge::after { animation: badge-scan 5.5s ease-in-out infinite; }
  .toc a.done::after { animation: tick-pop .4s var(--ease) both; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal-pending { opacity: 1; transform: none; }
}

@media print {
  body { padding-left: 0; background: white; }
  .portal-sidebar, .topbar, .reading-progress, .site-footer, .module-toolbar, .mission-dock, .quiz-box, .iw, .pager { display: none !important; }
  .container { max-width: none; padding: 0; }
  .topic.collapsed > .topic-body { display: block !important; }
  .topic, .page-head { break-inside: avoid; color: black; background: white; clip-path: none; }
}

/* ================================================================
   INDEX / TECHNOLOGY FIELD GUIDE — 2026 ART DIRECTION
   Tactile editorial surfaces, oversized route type and one clear
   action per viewport. This layer intentionally redraws the entire
   portal while keeping the static learning engine untouched.
   ================================================================ */

body {
  background:
    linear-gradient(115deg, rgba(239, 51, 64, .035) 0 18%, transparent 18% 100%),
    repeating-linear-gradient(0deg, rgba(23, 18, 21, .025) 0 1px, transparent 1px 7px),
    var(--ivory);
  background-attachment: fixed;
  font-size: 16px;
  line-height: 1.65;
}

body::after { opacity: .055; mix-blend-mode: multiply; }

.portal-sidebar {
  padding: 0 0 var(--safe-bottom);
  overflow: auto;
  background: var(--carbon);
  border: 0;
  box-shadow: 18px 0 48px rgba(23, 18, 21, .12);
}

.portal-sidebar::after {
  content: "01";
  inset: auto -22px -42px auto;
  width: auto;
  color: rgba(255, 255, 255, .035);
  background: none;
  border: 0;
  font-family: var(--display);
  font-size: 190px;
  font-weight: 800;
  letter-spacing: -.12em;
  line-height: 1;
  transform: rotate(-7deg);
}

.ps-brand {
  min-height: 176px;
  padding: 30px 24px 24px;
  background: var(--red);
  border: 0;
}

.ps-brand::before {
  top: 24px;
  right: 23px;
  left: auto;
  width: 13px;
  height: 13px;
  background: var(--carbon);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(23, 18, 21, .15);
}

.ps-brand strong {
  display: block;
  color: var(--carbon);
  font-size: 44px;
  letter-spacing: -.09em;
  line-height: .84;
}

.ps-brand strong::after {
  content: "LAB";
  display: block;
  margin-top: 8px;
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
}

.ps-brand span {
  display: block;
  margin-top: 24px;
  color: var(--carbon);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .09em;
  line-height: 1.5;
  text-transform: uppercase;
}

.ps-nav { gap: 3px; padding: 24px 15px 12px; }

.ps-section {
  margin: 18px 10px 7px;
  color: #81787d;
  font-size: 7px;
  letter-spacing: .17em;
}

.ps-nav a {
  min-height: 43px;
  padding: 10px 11px;
  color: #cfc5c8;
  border: 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  transition: padding .25s var(--ease), background .25s, color .25s;
}

.ps-nav a::before { display: none; }
.ps-nav a::after { right: 14px; color: #5a5055; }
.ps-nav a:hover { padding-left: 16px; background: #2a2226; border: 0; transform: none; }
.ps-nav a.active { padding-left: 16px; background: var(--ivory); color: var(--carbon); }
.ps-nav a.active::after { color: var(--red); }
.ps-nav b { width: 18px; color: var(--red-on-dark); font-size: 10px; }
.ps-nav a.active b { color: var(--red-deep); }

.ps-status {
  margin: auto 24px 0;
  padding: 20px 0;
  border-top: 1px solid #3f353a;
  border-bottom: 1px solid #3f353a;
}

.ps-status-line { height: 7px; margin-top: 13px; background: #3b3136; border-radius: 999px; }
.ps-status-fill { background: var(--red); border-radius: inherit; }
.ps-foot { padding: 18px 24px 22px; color: #71676c; font-size: 7px; }

.topbar {
  background: rgba(244, 240, 232, .88);
  border: 0;
  box-shadow: 0 1px 0 rgba(23, 18, 21, .12);
  backdrop-filter: blur(18px) saturate(130%);
}

.topbar-inner { max-width: 1520px; height: var(--topbar); padding: 0 clamp(24px, 4vw, 62px); }

.topbar-context {
  color: var(--carbon);
  font-size: 9px;
  letter-spacing: .14em;
}

.topbar-context::before {
  width: 9px;
  height: 9px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--red-soft);
}

.search-wrap { width: min(480px, 44vw); }

.search-wrap input {
  min-height: 48px;
  padding: 10px 54px 10px 43px;
  background: var(--paper);
  border: 1px solid rgba(23, 18, 21, .22);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(23, 18, 21, .05);
  font-size: 13px;
}

.search-wrap input:focus { border: 1px solid var(--carbon); box-shadow: 0 0 0 4px var(--red-soft); }
.search-icon { top: 15px; left: 16px; }
.search-shortcut { top: 11px; right: 11px; border: 0; border-radius: 50%; background: var(--paper-2); }

.search-results {
  top: calc(100% + 10px);
  overflow: hidden;
  border: 1px solid var(--carbon);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(23, 18, 21, .18);
}

.reading-progress { height: 4px; background: transparent; }
.reading-progress span { background: var(--red); border-radius: 0 999px 999px 0; }

.container { max-width: 1540px; padding: 42px clamp(26px, 4vw, 66px) 120px; }
.container.narrow { max-width: 1320px; }

.hero {
  min-height: min(790px, calc(100vh - 122px));
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
  overflow: hidden;
  background: var(--carbon);
  border: 1px solid var(--carbon);
  border-radius: 4px 4px 48px 4px;
  clip-path: none;
  box-shadow: 0 26px 0 var(--red-soft), 0 44px 70px rgba(23, 18, 21, .14);
}

.hero::before {
  content: "";
  inset: 16px auto auto 18px;
  z-index: 4;
  width: 14px;
  height: 14px;
  background: var(--carbon);
  border: 0;
  border-radius: 50%;
}

.hero::after {
  content: "";
  right: auto;
  bottom: -150px;
  left: -120px;
  width: 360px;
  height: 360px;
  border: 54px solid rgba(255, 250, 242, .2);
  border-radius: 50%;
  background: none;
}

.hero-main {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 6vw, 104px) clamp(38px, 5vw, 82px) 48px;
  background: var(--red);
  color: var(--carbon);
  border: 0;
}

.hero-edition {
  position: absolute;
  inset: 28px 34px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(23, 18, 21, .38);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .12em;
}

.eyebrow, .panel-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--carbon);
  font-size: 8px;
  letter-spacing: .16em;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  max-width: 850px;
  margin: 22px 0 30px;
  color: var(--carbon);
  font-size: clamp(68px, 6.7vw, 116px);
  line-height: .79;
  letter-spacing: -.085em;
}

.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 2px var(--carbon);
}

.hero h1 em { color: var(--ivory); font-style: normal; }

.hero p {
  max-width: 620px;
  color: var(--carbon);
  font-size: clamp(15px, 1.25vw, 19px);
  font-weight: 500;
  line-height: 1.48;
}

.hero-actions { margin-top: 34px; }

.hero-cta, .compact-btn {
  min-height: 54px;
  padding: 14px 19px;
  background: var(--carbon);
  color: var(--ivory);
  border: 1px solid var(--carbon);
  border-bottom: 1px solid var(--carbon);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .05em;
  box-shadow: none;
}

.hero-cta span { font-size: 17px; }
.hero-cta:hover, .compact-btn:hover { background: var(--ivory); color: var(--carbon); border-color: var(--carbon); transform: translateY(-3px); }
.hero-cta.ghost { background: transparent; color: var(--carbon); border-color: rgba(23, 18, 21, .55); }
.hero-cta.ghost:hover { background: var(--carbon); color: var(--ivory); border-color: var(--carbon); }

.hero-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: auto;
  padding-top: 44px;
}

.hero-notes span {
  padding: 0 14px;
  border-left: 1px solid rgba(23, 18, 21, .4);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero-notes span:first-child { padding-left: 0; border-left: 0; }
.hero-notes b { display: block; margin-bottom: 3px; font-family: var(--display); font-size: 28px; line-height: 1; }

.hero-progress {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: var(--carbon);
  color: var(--ivory);
}

.academy-visual {
  position: absolute;
  inset: 0;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--carbon);
  border: 0;
  transition: transform .24s var(--ease);
}

.academy-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(23,18,21,.05) 38%, rgba(23,18,21,.92) 100%);
  pointer-events: none;
}

.academy-visual::after {
  content: "";
  position: absolute;
  inset: 22px;
  z-index: 2;
  border: 1px solid rgba(255, 250, 242, .36);
  pointer-events: none;
}

.academy-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }

.av-caption {
  position: absolute;
  inset: auto 92px 28px 30px;
  z-index: 4;
  max-width: 420px;
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .11em;
  line-height: 1.55;
}

.hero-sticker {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  color: var(--carbon);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.sticker-one {
  top: 64px;
  left: 28px;
  width: 88px;
  height: 88px;
  background: var(--ivory);
  border-radius: 50%;
  box-shadow: 7px 7px 0 var(--red);
  transform: rotate(-9deg);
}

.sticker-two {
  top: 25px;
  right: 25px;
  width: 84px;
  height: 30px;
  background: var(--red);
  color: white;
  transform: rotate(5deg);
}

.hero-image-credit {
  position: absolute;
  top: 28px;
  left: 132px;
  z-index: 4;
  color: rgba(255, 250, 242, .74);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .1em;
}

.hero-progress-copy {
  position: absolute;
  top: 50%;
  left: 30px;
  z-index: 4;
  display: grid;
  max-width: 180px;
  padding: 14px 16px;
  background: rgba(23, 18, 21, .86);
  border-left: 4px solid var(--red);
  backdrop-filter: blur(10px);
}

.hero-progress-copy span { color: var(--red-on-dark); font-family: var(--mono); font-size: 7px; letter-spacing: .1em; text-transform: uppercase; }
.hero-progress-copy strong { margin-top: 5px; font-family: var(--display); font-size: 16px; line-height: 1.08; }

.ring-wrap {
  position: absolute;
  right: 28px;
  bottom: 26px;
  z-index: 5;
  width: 146px;
  height: 146px;
  margin: 0;
  background: var(--ivory);
  color: var(--carbon);
  border: 8px solid var(--carbon);
  box-shadow: 0 0 0 1px var(--ivory), 10px 10px 0 var(--red);
}

.ring-bg { stroke: #d6cec4; }
.ring-fill { stroke: var(--red); }
.ring-level { color: var(--red-deep); }

.badge-shelf {
  position: absolute;
  right: 196px;
  bottom: 26px;
  left: 28px;
  z-index: 5;
  align-items: flex-end;
}

.earned-badge {
  padding: 7px 10px;
  background: rgba(23, 18, 21, .86);
  color: var(--ivory);
  border: 1px solid rgba(255, 250, 242, .45);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.dashboard-strip {
  margin-top: 25px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--carbon);
  border-radius: 24px 4px 4px 4px;
  box-shadow: 0 13px 0 rgba(23, 18, 21, .06);
}

.dash-stat { min-height: 126px; padding: 26px 24px; border-color: var(--line); }
.dash-stat::before { top: auto; bottom: 0; width: 38%; height: 5px; }
.dash-stat span { font-size: 7px; letter-spacing: .15em; }
.dash-stat strong { margin: 12px 0 2px; font-size: 29px; }

.portal-overview {
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr);
  gap: 14px;
  margin: 36px 0 108px;
  border: 0;
}

.today-panel, .quick-panel { padding: clamp(32px, 4vw, 58px); border-radius: 4px; }

.today-panel {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper);
  color: var(--carbon);
  border: 1px solid var(--carbon);
  box-shadow: 14px 14px 0 var(--red);
}

.today-panel::before {
  content: "↳";
  position: absolute;
  right: 28px;
  top: 18px;
  color: var(--red);
  font-family: var(--display);
  font-size: 62px;
  line-height: 1;
}

.today-panel::after { content: "NEXT"; color: rgba(239, 51, 64, .075); }
.today-panel .panel-kicker { color: var(--red-deep); }
.today-panel h2 { max-width: 760px; font-size: clamp(42px, 4.6vw, 72px); line-height: .9; }
.today-panel p { max-width: 640px; color: var(--muted); }
.today-panel .compact-btn { background: var(--red); border-color: var(--red); }
.today-panel .compact-btn.secondary { color: var(--carbon); border-color: var(--carbon); }

.quick-panel {
  position: relative;
  overflow: hidden;
  background: var(--carbon);
  border-radius: 40px 4px 4px 4px;
}

.quick-panel::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 170px;
  height: 170px;
  border: 30px solid rgba(239, 51, 64, .22);
  border-radius: 50%;
}

.quick-panel h3 { max-width: 260px; font-size: 32px; line-height: .98; }
.quick-list { position: relative; z-index: 1; }
.quick-item { min-height: 47px; }

.visual-studio {
  margin: 0 0 28px;
  padding: clamp(34px, 4vw, 62px);
  overflow: hidden;
  background: var(--carbon);
  border: 0;
  border-radius: 4px 46px 4px 4px;
  box-shadow: 0 18px 42px rgba(23, 18, 21, .16);
}

.visual-studio::before { content: "CHOOSE YOUR ENTRY POINT / 00"; top: 22px; right: 28px; }
.visual-studio::after {
  content: "";
  position: absolute;
  top: -80px;
  left: 34%;
  width: 210px;
  height: 210px;
  border: 38px solid rgba(239, 51, 64, .16);
  border-radius: 50%;
}

.studio-head { position: relative; z-index: 1; grid-template-columns: .8fr 2.2fr; }
.studio-head .panel-kicker { color: var(--red-on-dark); }
.studio-head h2 { color: var(--ivory); font-size: clamp(48px, 5.3vw, 82px); line-height: .88; }

.studio-grid { position: relative; z-index: 1; gap: 9px; background: transparent; border: 0; }

.studio-tile {
  min-height: 320px;
  grid-template-rows: 178px auto auto;
  padding: 12px 12px 20px;
  background: #292126;
  border: 1px solid #4e4148;
  border-radius: 3px;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}

.studio-tile:nth-child(even) { transform: translateY(18px); }
.studio-tile:hover, .studio-tile.active { background: var(--red); color: var(--carbon); border-color: var(--red); transform: translateY(-8px) rotate(-1deg); }
.studio-tile:nth-child(even):hover, .studio-tile:nth-child(even).active { transform: translateY(7px) rotate(1deg); }
.studio-tile strong { padding: 4px 5px 0; font-size: 22px; }
.studio-tile small { padding: 0 5px; color: #aca0a6; }
.studio-tile:hover small, .studio-tile.active small { color: var(--carbon); }

.tile-art { border: 0; background: #1d171a; border-radius: 2px 2px 18px 2px; }
.studio-tile:hover .tile-art, .studio-tile.active .tile-art { background: var(--ivory); border: 0; }

.dept-select {
  position: relative;
  margin: 0 0 108px;
  padding: 30px 34px;
  background: var(--red-soft);
  border: 0;
  border-left: 8px solid var(--red);
  border-radius: 0 0 24px 0;
}

.ds-title { font-size: 31px; }
.ds-sub { font-size: 14px; }

.ds-buttons {
  gap: 5px;
  padding: 5px;
  background: var(--paper);
  border: 1px solid var(--carbon);
  border-radius: 999px;
}

.ds-buttons button {
  min-height: 45px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
}

.ds-buttons button:hover { background: var(--red-soft); }
.ds-buttons button.active { background: var(--carbon); color: var(--ivory); }

.section-title {
  gap: 18px;
  margin: 94px 0 8px;
  padding-top: 18px;
  border-top: 1px solid var(--carbon);
  font-size: clamp(46px, 5vw, 78px);
  line-height: .94;
  letter-spacing: -.065em;
}

.section-title > span:first-child {
  align-self: flex-start;
  margin-top: 10px;
  color: var(--red-deep);
  font-size: 10px;
}

.section-sub { margin-bottom: 32px; font-size: 15px; }
.track-tag, .badge { border-radius: 999px; }
.section-title .track-tag { margin-left: auto; align-self: center; }

.grid { gap: 14px; }

.module-card {
  min-height: 410px;
  padding: 28px 30px 28px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--carbon);
  border-radius: 3px 3px 30px 3px;
  box-shadow: 8px 8px 0 rgba(23, 18, 21, .07);
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
}

.module-card::before { width: 72px; height: 8px; }
.module-card::after { top: 24px; right: 25px; font-size: 24px; }
.module-card:hover { background: var(--red); color: var(--carbon); transform: translateY(-10px) rotate(-.4deg); box-shadow: 14px 14px 0 var(--carbon); }
.module-card:hover::after { color: var(--carbon); }

.mod-num { position: relative; z-index: 2; margin: 0; color: var(--red-deep); }

.mod-icon {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 76px;
  margin: 56px 0 34px;
  background: var(--red-soft);
  border: 0;
  box-shadow: 6px 6px 0 var(--carbon);
  transform: rotate(-5deg);
}

.module-card:nth-child(even) .mod-icon { transform: rotate(5deg); }
.module-card:hover .mod-icon { background: var(--ivory); color: var(--carbon); }
.module-card h3 { position: relative; z-index: 2; font-size: clamp(28px, 2.5vw, 40px); line-height: .95; }
.module-card p { position: relative; z-index: 2; max-width: 420px; font-size: 14px; }
.module-card:hover p, .module-card:hover .mod-meta { color: #3e3439; }
.module-card:hover .progress-label { color: var(--carbon); }
.progress-track { height: 7px; border-radius: 999px; }
.progress-fill { border-radius: inherit; }
.module-card:hover .progress-track { background: rgba(23,18,21,.22); }
.module-card:hover .progress-fill { background: var(--carbon); }
.mod-meta { font-size: 8px; }
.mod-meta span:first-child { border-radius: 999px; }

.path-map {
  gap: 8px;
  padding: 8px;
  overflow: hidden;
  background: var(--carbon);
  border: 0;
  border-radius: 4px 38px 4px 4px;
}

.path-map a { min-height: 174px; padding: 24px; background: #292126; color: var(--ivory); }
.path-map a:hover { background: var(--red); color: var(--carbon); }
.path-map span { background: var(--red); border-radius: 50%; }
.path-map a:hover span { background: var(--carbon); color: var(--ivory); }
.path-map strong { font-size: 20px; }

.page-head {
  min-height: 430px;
  padding: clamp(44px, 6vw, 86px);
  overflow: hidden;
  background: var(--red);
  color: var(--carbon);
  border: 1px solid var(--carbon);
  border-radius: 4px 4px 48px 4px;
  clip-path: none;
  box-shadow: 0 18px 0 var(--red-soft);
}

.page-head::before { content: "INDEX / FIELD MANUAL"; top: 28px; right: 34px; color: rgba(23,18,21,.68); }

.page-head::after {
  right: -95px;
  bottom: -130px;
  width: 340px;
  border-color: rgba(255, 250, 242, .28);
}

.crumb { color: var(--carbon); }
.page-head h1 { max-width: 980px; color: var(--carbon); font-size: clamp(60px, 7vw, 104px); line-height: .84; letter-spacing: -.075em; }
.lead { max-width: 760px; color: var(--carbon); font-size: 17px; font-weight: 500; }
.page-head .progress-track { background: rgba(23, 18, 21, .22); }
.page-head .progress-fill { background: var(--carbon); }
.page-head .progress-label { color: var(--carbon); }

.toc {
  margin: 36px 0 28px;
  padding: 30px 34px;
  background: var(--carbon);
  color: var(--ivory);
  border: 0;
  border-radius: 32px 4px 4px 4px;
  box-shadow: 0 14px 0 rgba(23, 18, 21, .08);
}

.toc-title { color: var(--red-on-dark); }
.toc li { border-color: #463a40; }
.toc a { color: #d8cfd3; }
.toc a::before { color: var(--red-on-dark); }
.toc a::after { color: #64575e; }
.toc a:hover, .toc a.current, .toc a.route-current { color: white; }
.toc a.locked { color: #756a70; }
.toc-video { background: var(--red); }

.module-toolbar {
  margin: 30px 0;
  padding: 16px 20px;
  background: rgba(255, 250, 242, .65);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.toolbar-copy { max-width: 620px; }
.toolbar-buttons { gap: 4px; padding: 4px; background: var(--paper-2); border-radius: 999px; }
.toolbar-buttons button { border: 0; border-radius: 999px; }

.topic {
  margin: 24px 0;
  padding: clamp(30px, 4.5vw, 58px);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(23, 18, 21, .42);
  border-left: 10px solid var(--red);
  border-radius: 3px 3px 34px 3px;
  box-shadow: 0 15px 0 rgba(23, 18, 21, .055);
}

.topic::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 84px;
  height: 84px;
  background: linear-gradient(225deg, var(--red-soft) 0 50%, transparent 50%);
  pointer-events: none;
}

.topic.is-complete { border-left-color: var(--carbon); }
.topic.is-complete::after { background: var(--carbon); border-radius: 999px; }
.topic.is-current-step { box-shadow: 0 0 0 4px var(--red-soft), 0 15px 0 rgba(23, 18, 21, .055); }

.topic-head { position: relative; z-index: 2; align-items: flex-start; gap: 18px; }
.topic-head h2 { max-width: 850px; font-size: clamp(34px, 4vw, 56px); line-height: .95; letter-spacing: -.055em; }
.topic-head .badge { flex: 0 0 auto; }

.topic-toggle {
  min-height: 45px;
  padding: 10px 14px;
  background: var(--carbon);
  color: var(--ivory);
  border: 0;
  border-radius: 999px;
}

.topic-toggle:hover { background: var(--red); color: var(--carbon); }
.topic-meta { margin: 18px 0 30px; padding: 11px 0; border-color: var(--line); }
.topic-meta span { border-radius: 999px; }
.topic-body > p:first-of-type { max-width: 760px; font-size: 18px; line-height: 1.65; }

.key-points, .visual-points { gap: 8px; }
.visual-points li { min-height: 150px; padding: 22px; background: var(--ivory); border: 1px solid var(--line); border-radius: 2px 2px 18px 2px; }
.visual-points li > span { color: var(--red-deep); font-size: 10px; }
.visual-points strong { font-size: 19px; }

.note {
  padding: 22px 24px 22px 66px;
  background: #fff6f4;
  color: var(--carbon);
  border: 0;
  border-left: 6px solid var(--red);
  border-radius: 0 0 20px 0;
  box-shadow: inset 0 0 0 1px rgba(23, 18, 21, .08);
}

.note-title {
  color: var(--red-deep);
  font-weight: 800;
}

.note a {
  color: var(--red-deep);
  font-weight: 700;
}

.learn-more {
  margin-top: 32px;
  padding: 28px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 3px 3px 24px 3px;
}

.lm-title { margin-bottom: 16px; color: var(--red-deep); }
.lm-cards { gap: 8px; }

.lm-card {
  min-height: 112px;
  padding: 17px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px 2px 14px 2px;
  transition: transform .25s var(--ease), background .25s, color .25s;
}

.lm-card:hover { background: var(--carbon); color: var(--ivory); transform: translateY(-4px); }
.lm-lang { background: var(--red); border-radius: 999px; }

.quiz-box {
  margin-top: 36px;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  background: var(--carbon);
  color: var(--ivory);
  border: 0;
  border-radius: 3px 40px 3px 3px;
  box-shadow: 12px 12px 0 var(--red);
}

.quiz-box::after {
  content: "?";
  position: absolute;
  top: -30px;
  right: 24px;
  color: rgba(255, 255, 255, .055);
  font-family: var(--display);
  font-size: 180px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.quiz-title { position: relative; z-index: 1; color: var(--red-on-dark); }
.quiz-box p { position: relative; z-index: 1; }
.quiz-box p strong { font-family: var(--display); font-size: clamp(24px, 2.5vw, 36px); line-height: 1.1; }
.quiz-options { position: relative; z-index: 1; gap: 8px; }

.quiz-option {
  min-height: 64px;
  padding: 16px 18px;
  background: #2b2327;
  color: var(--ivory);
  border: 1px solid #56474e;
  border-radius: 2px 2px 14px 2px;
}

.quiz-option:hover:not(:disabled), .quiz-option:focus-visible { background: var(--ivory); color: var(--carbon); border-color: var(--ivory); transform: translateY(-2px); }
.quiz-option.correct { background: var(--ivory); color: var(--carbon); border-color: var(--ivory); }
.quiz-option.wrong { background: var(--red); color: white; border-color: var(--red); }
.quiz-feedback { color: #d0c6ca; }
.quiz-next, .quiz-restart { background: var(--red); color: white; border: 0; border-radius: 999px; }
.quiz-next:hover, .quiz-restart:hover { background: var(--ivory); color: var(--carbon); }
.quiz-complete-mark { color: var(--ivory); }

.iw {
  margin-top: 28px;
  padding: 28px;
  background: var(--red-soft);
  border: 0;
  border-radius: 3px 3px 24px 3px;
}

.iw::before { content: "PLAY / LEARN"; color: var(--red-deep); }
.iw-head h3 { font-size: 28px; }
.iw .quiz-option { background: var(--paper); color: var(--carbon); border-color: var(--line); }
.iw .quiz-option:hover:not(:disabled) { background: var(--carbon); color: var(--ivory); }
.term-screen { border-radius: 3px 3px 18px 3px; }

.video-slot { overflow: hidden; border-radius: 3px 3px 26px 3px; }
.video-slot.is-unavailable { background: var(--ivory); border: 1px dashed var(--line); }

.group-map { gap: 10px; padding: 10px; background: var(--carbon); border: 0; border-radius: 4px 36px 4px 4px; }
.group-map > * { background: var(--paper); }
.map-center { background: var(--red); color: var(--carbon); }

.company-grid { gap: 10px; }
.company { padding: 26px; background: var(--ivory); border: 1px solid var(--line); border-radius: 3px 3px 22px 3px; }
.company::before { color: rgba(239, 51, 64, .08); }
.company-toggle { border-radius: 999px; }
.tag, .chips span { border-radius: 999px; }

.checklist-group {
  margin: 22px 0;
  padding: clamp(28px, 4vw, 52px);
  background: var(--paper);
  border: 1px solid var(--carbon);
  border-radius: 3px 3px 34px 3px;
  box-shadow: 10px 10px 0 var(--red-soft);
}

.checklist-group h2 { font-size: clamp(38px, 4vw, 58px); line-height: .95; }
.check-item { min-height: 72px; padding: 19px 12px; }
.check-item:hover { padding-right: 20px; padding-left: 20px; background: var(--red-soft); }
.check-item input { width: 25px; height: 25px; }

.pager { gap: 12px; margin-top: 38px; }

.pager a {
  min-height: 116px;
  padding: 25px;
  background: var(--paper);
  border: 1px solid var(--carbon);
  border-radius: 3px 3px 22px 3px;
}

.pager a:hover { background: var(--red); color: var(--carbon); }
.pager-label { color: var(--red-deep); }
.pager-title { font-size: 21px; }

.site-footer {
  position: relative;
  padding: 78px clamp(28px, 5vw, 82px) 30px;
  overflow: hidden;
  background: var(--carbon);
  border-top: 0;
}

.site-footer::before {
  content: "INDEX";
  position: absolute;
  right: -28px;
  bottom: -62px;
  color: rgba(255, 255, 255, .035);
  font-family: var(--display);
  font-size: clamp(130px, 19vw, 310px);
  font-weight: 800;
  letter-spacing: -.1em;
  line-height: .8;
}

.footer-inner, .footer-bottom { position: relative; z-index: 1; }
.footer-logo { color: var(--red-on-dark); font-size: 34px; }
.footer-logo::after { content: " / FIELD NOTES"; color: var(--ivory); }
.footer-col h4 { color: var(--red-on-dark); }

@media (max-width: 1280px) {
  :root { --sidebar: 232px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(380px, .82fr); }
  .hero-main { padding-right: 46px; padding-left: 46px; }
  .hero h1 { font-size: clamp(64px, 6.4vw, 92px); }
}

@media (max-width: 1050px) {
  :root { --sidebar: 278px; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-main { min-height: 650px; border: 0; }
  .hero-progress { min-height: 650px; }
  .academy-visual { min-height: 100%; }
  .hero-notes { margin-top: 54px; }
  .ring-wrap { margin: 0; }
  .badge-shelf { grid-column: auto; }
  .portal-overview { grid-template-columns: 1fr; }
  .studio-grid { grid-template-columns: repeat(2, 1fr); }
  .studio-tile:nth-child(even) { transform: none; }
}

@media (max-width: 760px) {
  :root { --topbar: 68px; }
  .container { padding: 18px max(14px, var(--safe-right)) 80px max(14px, var(--safe-left)); }
  .topbar-inner { padding: 0 max(14px, var(--safe-right)) 0 max(14px, var(--safe-left)); }
  .menu-toggle { border-radius: 50%; }
  .search-wrap input { min-height: 46px; }
  .hero { border-radius: 3px 3px 30px 3px; box-shadow: 0 16px 0 var(--red-soft); }
  .hero-main { min-height: 590px; padding: 92px 24px 34px; }
  .hero-edition { inset: 22px 22px auto; }
  .hero-edition span:last-child { display: none; }
  .hero h1 { font-size: clamp(52px, 16vw, 74px); }
  .hero h1 span { -webkit-text-stroke-width: 1px; }
  .hero p { font-size: 15px; }
  .hero-actions { display: grid; }
  .hero-cta { width: 100%; }
  .hero-notes { grid-template-columns: repeat(3, 1fr); margin-top: 36px; padding-top: 28px; }
  .hero-notes span { padding: 0 8px; font-size: 6px; }
  .hero-notes b { font-size: 22px; }
  .hero-progress { display: block; min-height: 520px; padding: 0; }
  .academy-visual { min-height: 520px; }
  .academy-visual img { object-position: 63% center; }
  .academy-visual::after { inset: 13px; }
  .sticker-one { top: 28px; left: 20px; width: 72px; height: 72px; }
  .sticker-two, .hero-image-credit { display: none; }
  .hero-progress-copy { top: 48%; left: 20px; }
  .ring-wrap { right: 18px; bottom: 20px; width: 124px; height: 124px; }
  .badge-shelf { right: 154px; bottom: 20px; left: 18px; }
  .av-caption { right: 160px; bottom: 74px; left: 20px; }
  .dashboard-strip { grid-template-columns: repeat(2, 1fr); border-radius: 18px 3px 3px 3px; }
  .dash-stat { min-height: 112px; padding: 20px; }
  .portal-overview { margin-bottom: 76px; }
  .today-panel, .quick-panel { padding: 30px 24px; }
  .today-panel { min-height: 350px; box-shadow: 8px 8px 0 var(--red); }
  .today-panel h2 { font-size: 43px; }
  .quick-panel { border-radius: 28px 3px 3px 3px; }
  .visual-studio { margin-top: 0; padding: 32px 18px 48px; border-radius: 3px 28px 3px 3px; }
  .visual-studio::before { right: 18px; }
  .studio-head { grid-template-columns: 1fr; }
  .studio-head h2 { font-size: 48px; }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-tile { min-height: 270px; grid-template-rows: 150px auto auto; }
  .dept-select { grid-template-columns: 1fr; margin-bottom: 78px; padding: 24px 20px; }
  .ds-buttons { display: grid; border-radius: 20px; }
  .ds-buttons button { border: 0; border-radius: 999px; }
  .section-title { margin-top: 70px; font-size: 47px; }
  .section-title .track-tag { margin-left: 0; }
  .module-card { min-height: 360px; }
  .page-head { min-height: 370px; padding: 72px 24px 38px; border-radius: 3px 3px 30px 3px; }
  .page-head h1 { font-size: clamp(49px, 15vw, 68px); }
  .toc { padding: 23px 18px; border-radius: 24px 3px 3px 3px; }
  .module-toolbar { border-radius: 18px; }
  .topic { padding: 28px 18px; border-left-width: 6px; border-radius: 3px 3px 24px 3px; }
  .topic-head h2 { font-size: 36px; }
  .topic-body > p:first-of-type { font-size: 16px; }
  .quiz-box { padding: 28px 20px; border-radius: 3px 28px 3px 3px; box-shadow: 7px 7px 0 var(--red); }
  .quiz-options { grid-template-columns: 1fr; }
  .lm-cards, .visual-points, .company-grid { grid-template-columns: 1fr; }
  .site-footer { padding-top: 58px; }
}

@media (max-width: 420px) {
  .hero-main { min-height: 560px; }
  .hero h1 { font-size: 51px; }
  .hero-notes span:last-child { display: none; }
  .hero-notes { grid-template-columns: repeat(2, 1fr); }
  .hero-progress { min-height: 470px; }
  .academy-visual { min-height: 470px; }
  .dashboard-strip { grid-template-columns: 1fr; }
  .dash-stat { border-right: 0; }
  .today-actions { display: grid; }
  .compact-btn { width: 100%; }
  .badge-shelf { right: 138px; }
  .ring-wrap { width: 112px; height: 112px; }
  .av-caption { right: 142px; }
}

@keyframes editorial-mark-in {
  from { opacity: 0; transform: translateY(18px) rotate(4deg); }
  to { opacity: 1; transform: translateY(0) rotate(-9deg); }
}

@media (prefers-reduced-motion: no-preference) {
  .sticker-one { animation: editorial-mark-in .7s .45s var(--ease) both; }
  .module-card:hover .mod-icon { animation: icon-signal .55s var(--ease) both; }
}

/* ================================================================
   SIGNAL ATLAS / STITCH + HIGGSFIELD / 2026
   Rectilinear editorial system. The learning engine and selectors
   remain unchanged; this layer redraws the experience around them.
   ================================================================ */

:root {
  --signal-paper: #f5f2ed;
  --signal-ink: #1a1a1b;
  --signal-red: #ee3124;
  --signal-lime: #c8ff00;
  --signal-rule: rgba(26, 26, 27, .34);
}

body {
  background: var(--signal-paper);
  background-image: repeating-linear-gradient(0deg, rgba(26,26,27,.018) 0 1px, transparent 1px 6px);
}

body::after { opacity: .035; }

.portal-sidebar {
  background: var(--signal-ink);
  border-right: 1px solid var(--signal-ink);
  box-shadow: none;
}

.ps-brand {
  min-height: 164px;
  background: var(--signal-red);
  border-bottom: 1px solid var(--signal-ink);
}

.ps-brand::before { border-radius: 0; box-shadow: 7px 7px 0 rgba(26,26,27,.18); }
.ps-brand strong::after { content: "SIGNAL ATLAS"; }
.ps-nav { gap: 0; padding: 18px 0; }
.ps-section { margin: 20px 20px 8px; }

.ps-nav a,
.ps-nav a.active,
.ps-nav a:hover {
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.1);
  border-radius: 0;
}

.ps-nav a:last-of-type { border-bottom: 1px solid rgba(255,255,255,.1); }
.ps-nav a:hover { padding-left: 26px; background: #2a2a2b; }
.ps-nav a.active { padding-left: 26px; background: var(--signal-paper); color: var(--signal-ink); }
.ps-status-line,
.ps-status-fill { border-radius: 0; }

.topbar {
  background: rgba(245,242,237,.96);
  border-bottom: 1px solid var(--signal-ink);
  box-shadow: none;
  backdrop-filter: none;
}

.search-wrap input {
  min-height: 44px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--signal-ink);
  border-radius: 0;
  box-shadow: none;
}

.search-wrap input:focus {
  border: 0;
  border-bottom: 3px solid var(--signal-red);
  box-shadow: none;
}

.search-shortcut,
.search-results,
.menu-toggle { border-radius: 0; }

.page-head {
  min-height: 400px;
  background: var(--signal-paper);
  color: var(--signal-ink);
  border: 1px solid var(--signal-ink);
  border-left: 14px solid var(--signal-red);
  border-radius: 0;
  box-shadow: none;
}

.page-head::after {
  width: 35%;
  height: 100%;
  right: 0;
  bottom: 0;
  border: 0;
  border-radius: 0;
  background: radial-gradient(circle, rgba(26,26,27,.18) 1px, transparent 1.5px) 0 0 / 10px 10px;
  opacity: .45;
}

.page-head h1,
.page-head .crumb,
.page-head .lead,
.page-head .progress-label { color: var(--signal-ink); }
.page-head .progress-track { background: rgba(26,26,27,.15); }
.page-head .progress-fill { background: var(--signal-red); }

.toc,
.module-toolbar,
.topic,
.quiz-box,
.company,
.lm-card,
.video-slot,
.pager a,
.check-item {
  border-radius: 0;
  box-shadow: none;
}

.topic { border: 1px solid var(--signal-ink); border-left: 8px solid var(--signal-red); }
.topic + .topic { margin-top: 18px; }
.quiz-box { border: 1px solid var(--signal-ink); border-top: 10px solid var(--signal-red); }

.signal-ticker {
  position: relative;
  z-index: 80;
  display: flex;
  height: 24px;
  margin-left: var(--sidebar);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 clamp(24px, 4vw, 62px);
  overflow: hidden;
  background: var(--signal-ink);
  color: var(--signal-paper);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .14em;
  white-space: nowrap;
}

.signal-ticker span:nth-child(2)::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: var(--signal-lime);
}

.home-atlas-v2 .container {
  position: relative;
  max-width: 1680px;
  padding-top: 28px;
}

.home-atlas-v2 .container::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 70px;
  left: clamp(10px, 1.5vw, 25px);
  width: 3px;
  background: var(--signal-red);
  pointer-events: none;
}

.home-atlas-v2 .hero {
  min-height: min(760px, calc(100vh - 130px));
  grid-template-columns: minmax(0, 1.15fr) minmax(440px, .85fr);
  overflow: hidden;
  background: var(--signal-paper);
  border: 1px solid var(--signal-ink);
  border-radius: 0;
  box-shadow: none;
}

.home-atlas-v2 .hero::before {
  inset: 18px auto auto -1px;
  width: 9px;
  height: 92px;
  background: var(--signal-red);
  border-radius: 0;
}

.home-atlas-v2 .hero::after {
  right: auto;
  bottom: 22px;
  left: 22px;
  width: 22px;
  height: 22px;
  border: 0;
  border-left: 1px solid var(--signal-ink);
  border-bottom: 1px solid var(--signal-ink);
  border-radius: 0;
}

.home-atlas-v2 .hero-main {
  justify-content: center;
  padding: clamp(84px, 7vw, 120px) clamp(34px, 5vw, 78px) 38px;
  background: var(--signal-paper);
  color: var(--signal-ink);
  border-right: 1px solid var(--signal-ink);
}

.home-atlas-v2 .hero-edition { border-color: var(--signal-rule); }
.home-atlas-v2 .hero .eyebrow { color: var(--signal-ink); }

.home-atlas-v2 .hero h1 {
  max-width: 980px;
  margin: 24px 0 28px;
  color: var(--signal-ink);
  font-size: clamp(70px, 7.35vw, 128px);
  line-height: 1.02;
  letter-spacing: -.06em;
}

.home-atlas-v2 .hero h1 span,
.home-atlas-v2 .hero h1 em {
  color: var(--signal-ink);
  font-style: normal;
  -webkit-text-stroke: 0;
}

.home-atlas-v2 .hero h1 em { position: relative; z-index: 0; }
.home-atlas-v2 .hero h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -.02em;
  bottom: .04em;
  left: -.02em;
  height: .16em;
  background: var(--signal-red);
}

.home-atlas-v2 .hero p { max-width: 670px; color: var(--signal-ink); }
.home-atlas-v2 .hero-actions { gap: 0; }

.home-atlas-v2 .hero-cta,
.home-atlas-v2 .compact-btn {
  min-height: 52px;
  padding: 14px 20px;
  background: var(--signal-ink);
  color: var(--signal-paper);
  border: 1px solid var(--signal-ink);
  border-radius: 0;
}

.home-atlas-v2 .hero-cta.ghost {
  background: transparent;
  color: var(--signal-ink);
  border-color: var(--signal-ink);
  border-left: 0;
}

.home-atlas-v2 .hero-cta:hover,
.home-atlas-v2 .compact-btn:hover { background: var(--signal-red); color: white; border-color: var(--signal-red); transform: none; }

.home-atlas-v2 .hero-notes { border-top: 1px solid var(--signal-rule); }
.home-atlas-v2 .hero-notes span { padding-left: 18px; border-color: var(--signal-rule); }
.home-atlas-v2 .hero-notes b { font-size: 34px; }

.home-atlas-v2 .hero-progress {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(450px, 1fr) 138px;
  background: var(--signal-ink);
}

.home-atlas-v2 .academy-visual {
  position: relative;
  inset: auto;
  grid-row: 1;
  min-height: 0;
  background: var(--signal-paper);
  border-bottom: 1px solid var(--signal-ink);
}

.home-atlas-v2 .academy-visual::before { display: none; }
.home-atlas-v2 .academy-visual::after { inset: 18px; border-color: rgba(26,26,27,.42); }
.home-atlas-v2 .academy-visual img { object-position: center; filter: contrast(1.06) saturate(.92); }

.home-atlas-v2 .av-caption {
  inset: auto 18px 18px 18px;
  max-width: none;
  padding: 9px 10px;
  background: var(--signal-paper);
  color: var(--signal-ink);
  border: 1px solid var(--signal-ink);
}

.home-atlas-v2 .sticker-one {
  top: 28px;
  left: 28px;
  width: 76px;
  height: 76px;
  background: var(--signal-lime);
  border-radius: 0;
  box-shadow: 7px 7px 0 var(--signal-ink);
  transform: rotate(-3deg);
}

.home-atlas-v2 .sticker-two { background: var(--signal-red); transform: none; }
.home-atlas-v2 .hero-image-credit { color: var(--signal-ink); }

.home-atlas-v2 .hero-progress-copy {
  position: relative;
  top: auto;
  left: auto;
  grid-row: 2;
  align-content: center;
  max-width: none;
  padding: 22px 250px 22px 26px;
  background: var(--signal-ink);
  border: 0;
  border-left: 8px solid var(--signal-red);
  backdrop-filter: none;
}

.home-atlas-v2 .hero-progress-copy span { color: var(--signal-lime); }
.home-atlas-v2 .hero-progress-copy strong { font-size: 24px; }

.home-atlas-v2 .ring-wrap {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 232px;
  height: 138px;
  margin: 0;
  background: var(--signal-ink);
  color: var(--signal-paper);
  border: 0;
  border-left: 1px solid rgba(255,255,255,.28);
  box-shadow: none;
}

.home-atlas-v2 .ring-wrap svg { display: none; }
.home-atlas-v2 .ring-center { position: static; }
.home-atlas-v2 .ring-center > span:first-child { font-size: 58px; line-height: .8; letter-spacing: -.07em; }
.home-atlas-v2 .ring-level { margin-top: 9px; color: var(--signal-lime); }
.home-atlas-v2 .badge-shelf { right: 244px; bottom: 12px; left: 24px; }
.home-atlas-v2 .earned-badge { background: transparent; border-radius: 0; }

.home-atlas-v2 .dashboard-strip {
  margin-top: 0;
  background: var(--signal-paper);
  border: 1px solid var(--signal-ink);
  border-top: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-atlas-v2 .dash-stat { min-height: 112px; padding: 22px; }
.home-atlas-v2 .dash-stat::before { width: 100%; height: 3px; background: var(--signal-red); }

.home-atlas-v2 .portal-overview {
  gap: 0;
  margin: 48px 0 92px;
  border: 1px solid var(--signal-ink);
}

.home-atlas-v2 .today-panel,
.home-atlas-v2 .quick-panel {
  padding: clamp(30px, 4vw, 54px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-atlas-v2 .today-panel { min-height: 300px; border-right: 1px solid var(--signal-ink); }
.home-atlas-v2 .today-panel::before { content: "[ NEXT / 01 ]"; font-family: var(--mono); font-size: 9px; }
.home-atlas-v2 .quick-panel { background: var(--signal-red); color: var(--signal-ink); }
.home-atlas-v2 .quick-panel::after { display: none; }
.home-atlas-v2 .quick-panel h3 { color: var(--signal-ink); }
.home-atlas-v2 .quick-item { border-color: rgba(26,26,27,.35); }
.home-atlas-v2 .quick-item span { color: rgba(26,26,27,.74); }
.home-atlas-v2 .quick-item strong { color: var(--signal-ink); }
.home-atlas-v2 .today-panel p,
.home-atlas-v2 .today-panel .panel-kicker,
.home-atlas-v2 .today-panel .compact-btn { color: var(--signal-paper); }

.home-atlas-v2 .visual-studio {
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  color: var(--signal-ink);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-atlas-v2 .visual-studio::before { content: "ROUTE_SELECT / 00"; top: 15px; right: 0; color: var(--signal-ink); }
.home-atlas-v2 .visual-studio::after { display: none; }
.home-atlas-v2 .studio-head { grid-template-columns: .7fr 2.3fr; padding: 36px 0 26px; border-top: 1px solid var(--signal-ink); }
.home-atlas-v2 .studio-head .panel-kicker { color: var(--signal-red); }
.home-atlas-v2 .studio-head h2 { max-width: 900px; color: var(--signal-ink); font-size: clamp(44px, 5vw, 80px); }

.home-atlas-v2 .studio-grid {
  gap: 0;
  background: var(--signal-ink);
  border: 1px solid var(--signal-ink);
}

.home-atlas-v2 .studio-tile,
.home-atlas-v2 .studio-tile:nth-child(even) {
  min-height: 276px;
  grid-template-rows: 145px auto auto;
  padding: 15px 15px 22px;
  background: var(--signal-paper);
  color: var(--signal-ink);
  border: 0;
  border-right: 1px solid var(--signal-ink);
  border-radius: 0;
  transform: none;
}

.home-atlas-v2 .studio-tile:last-child { border-right: 0; }
.home-atlas-v2 .studio-tile:hover,
.home-atlas-v2 .studio-tile.active,
.home-atlas-v2 .studio-tile:nth-child(even):hover,
.home-atlas-v2 .studio-tile:nth-child(even).active {
  background: var(--signal-ink);
  color: var(--signal-paper);
  border-color: var(--signal-ink);
  transform: none;
}

.home-atlas-v2 .studio-tile small { color: var(--muted); }
.home-atlas-v2 .studio-tile:hover small,
.home-atlas-v2 .studio-tile.active small { color: var(--signal-lime); }
.home-atlas-v2 .tile-art { background: transparent; border: 1px solid currentColor; border-radius: 0; }
.home-atlas-v2 .studio-tile:hover .tile-art,
.home-atlas-v2 .studio-tile.active .tile-art { background: transparent; }

.home-atlas-v2 .dept-select {
  margin: 0 0 96px;
  padding: 28px 30px;
  background: var(--signal-paper);
  border: 1px solid var(--signal-ink);
  border-top: 0;
  border-left: 10px solid var(--signal-red);
  border-radius: 0;
}

.home-atlas-v2 .ds-buttons { gap: 0; padding: 0; background: transparent; border: 1px solid var(--signal-ink); border-radius: 0; }
.home-atlas-v2 .ds-buttons button { border-right: 1px solid var(--signal-ink); border-radius: 0; }
.home-atlas-v2 .ds-buttons button:last-child { border-right: 0; }
.home-atlas-v2 .ds-buttons button.active { background: var(--signal-ink); color: var(--signal-lime); }

.home-atlas-v2 .route-title {
  min-height: 94px;
  margin: 80px 0 0;
  padding: 18px 22px;
  align-items: center;
  background: var(--signal-paper);
  border: 1px solid var(--signal-ink);
  font-size: clamp(38px, 4vw, 64px);
}

.home-atlas-v2 .route-title > span:first-child { margin-top: 0; color: var(--signal-red); }
.home-atlas-v2 .route-title-dark { background: var(--signal-ink); color: var(--signal-paper); }
.home-atlas-v2 .route-title-dark .track-tag { border-color: rgba(255,255,255,.4); color: var(--signal-lime); }
.home-atlas-v2 .section-sub { margin: 0; padding: 15px 22px; border: 1px solid var(--signal-ink); border-top: 0; }

.home-atlas-v2 .route-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: transparent;
  border: 1px solid var(--signal-ink);
  border-top: 0;
}

.home-atlas-v2 .route-list .module-card {
  display: grid;
  min-height: 132px;
  grid-template-columns: 72px 64px minmax(230px, 1.2fr) minmax(220px, 1fr) minmax(220px, .8fr);
  grid-template-rows: auto auto;
  gap: 5px 18px;
  align-items: center;
  padding: 22px 72px 22px 20px;
  overflow: hidden;
  background: var(--signal-paper);
  color: var(--signal-ink);
  border: 0;
  border-bottom: 1px solid var(--signal-ink);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.home-atlas-v2 .route-list .module-card:last-child { border-bottom: 0; }
.home-atlas-v2 .route-list .module-card::before { top: 0; bottom: 0; width: 4px; height: auto; }
.home-atlas-v2 .route-list .module-card::after { top: 50%; right: 25px; transform: translateY(-50%); }
.home-atlas-v2 .route-list .module-card:hover { background: var(--signal-red); color: var(--signal-ink); box-shadow: none; transform: none; }
.home-atlas-v2 .route-list .mod-num { grid-column: 1; grid-row: 1 / 3; font-size: 12px; }

.home-atlas-v2 .route-list .mod-icon,
.home-atlas-v2 .route-list .module-card:nth-child(even) .mod-icon {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 48px;
  height: 48px;
  margin: 0;
  background: transparent;
  border: 1px solid var(--signal-ink);
  box-shadow: none;
  transform: none;
}

.home-atlas-v2 .route-list .module-card h3 {
  grid-column: 3;
  grid-row: 1 / 3;
  max-width: 430px;
  margin: 0;
  font-size: clamp(24px, 2.1vw, 36px);
}

.home-atlas-v2 .route-list .module-card p { grid-column: 4; grid-row: 1 / 3; margin: 0; }
.home-atlas-v2 .route-list .progress-row { grid-column: 5; grid-row: 1; margin: 0; }
.home-atlas-v2 .route-list .mod-meta { grid-column: 5; grid-row: 2; margin: 0; }
.home-atlas-v2 .route-list .mod-meta span:first-child { border-radius: 0; }
.home-atlas-v2 .route-list .progress-track,
.home-atlas-v2 .route-list .progress-fill { border-radius: 0; }

.home-atlas-v2 .path-map {
  position: relative;
  gap: 0;
  padding: 0;
  overflow: visible;
  background: var(--signal-ink);
  border: 1px solid var(--signal-ink);
  border-radius: 0;
}

.home-atlas-v2 .path-map::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 42px;
  right: 10%;
  left: 10%;
  height: 3px;
  background: var(--signal-red);
  pointer-events: none;
}

.home-atlas-v2 .path-map a {
  min-height: 168px;
  padding: 26px 22px;
  background: var(--signal-paper);
  color: var(--signal-ink);
  border-right: 1px solid var(--signal-ink);
}

.home-atlas-v2 .path-map a:last-child { border-right: 0; }
.home-atlas-v2 .path-map a:hover { background: var(--signal-ink); color: var(--signal-paper); }
.home-atlas-v2 .path-map span { position: relative; z-index: 3; background: var(--signal-red); border-radius: 0; }
.home-atlas-v2 .path-map a:hover span { background: var(--signal-lime); color: var(--signal-ink); }

@media (max-width: 1280px) {
  .home-atlas-v2 .hero { grid-template-columns: minmax(0, 1fr) minmax(390px, .76fr); }
  .home-atlas-v2 .hero h1 { font-size: clamp(66px, 6.8vw, 94px); }
  .home-atlas-v2 .route-list .module-card { grid-template-columns: 54px 52px minmax(210px, 1.1fr) minmax(190px, .9fr) minmax(190px, .75fr); }
}

@media (max-width: 1050px) {
  .signal-ticker { margin-left: 0; }
  .home-atlas-v2 .hero { grid-template-columns: 1fr; }
  .home-atlas-v2 .hero-main { min-height: 680px; border-right: 0; border-bottom: 1px solid var(--signal-ink); }
  .home-atlas-v2 .hero-progress { min-height: 610px; }
  .home-atlas-v2 .studio-grid { grid-template-columns: repeat(2, 1fr); }
  .home-atlas-v2 .studio-tile:nth-child(2) { border-right: 0; }
  .home-atlas-v2 .studio-tile:nth-child(-n+2) { border-bottom: 1px solid var(--signal-ink); }
  .home-atlas-v2 .route-list .module-card { grid-template-columns: 52px 54px minmax(220px, 1fr) minmax(190px, .8fr); }
  .home-atlas-v2 .route-list .module-card h3 { grid-column: 3; }
  .home-atlas-v2 .route-list .module-card p { grid-column: 4; }
  .home-atlas-v2 .route-list .progress-row { grid-column: 3; grid-row: 3; }
  .home-atlas-v2 .route-list .mod-meta { grid-column: 4; grid-row: 3; }
}

@media (max-width: 760px) {
  .signal-ticker { justify-content: flex-start; padding: 0 14px; }
  .signal-ticker span:nth-child(2),
  .signal-ticker span:nth-child(3) { display: none; }
  .home-atlas-v2 .container::before { display: none; }
  .home-atlas-v2 .hero-main { min-height: 620px; padding: 92px 22px 32px; }
  .home-atlas-v2 .hero h1 { font-size: clamp(51px, 15.8vw, 73px); }
  .home-atlas-v2 .hero-cta.ghost { border-left: 1px solid var(--signal-ink); border-top: 0; }
  .home-atlas-v2 .hero-progress { min-height: 520px; grid-template-rows: minmax(370px, 1fr) 128px; }
  .home-atlas-v2 .hero-progress-copy { padding: 20px 150px 20px 18px; }
  .home-atlas-v2 .hero-progress-copy strong { font-size: 18px; }
  .home-atlas-v2 .ring-wrap { width: 145px; height: 128px; }
  .home-atlas-v2 .ring-center > span:first-child { font-size: 44px; }
  .home-atlas-v2 .badge-shelf { display: none; }
  .home-atlas-v2 .portal-overview { grid-template-columns: 1fr; }
  .home-atlas-v2 .today-panel { border-right: 0; border-bottom: 1px solid var(--signal-ink); }
  .home-atlas-v2 .studio-head { grid-template-columns: 1fr; }
  .home-atlas-v2 .studio-grid { grid-template-columns: 1fr; }
  .home-atlas-v2 .studio-tile,
  .home-atlas-v2 .studio-tile:nth-child(even) { min-height: 220px; grid-template-rows: 110px auto auto; border-right: 0; border-bottom: 1px solid var(--signal-ink); }
  .home-atlas-v2 .studio-tile:last-child { border-bottom: 0; }
  .home-atlas-v2 .dept-select { grid-template-columns: 1fr; }
  .home-atlas-v2 .ds-buttons { display: grid; }
  .home-atlas-v2 .ds-buttons button { border-right: 0; border-bottom: 1px solid var(--signal-ink); }
  .home-atlas-v2 .ds-buttons button:last-child { border-bottom: 0; }
  .home-atlas-v2 .route-title { align-items: flex-start; font-size: 38px; }
  .home-atlas-v2 .route-list .module-card {
    min-height: 250px;
    grid-template-columns: 44px 52px 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 12px 14px;
    padding: 22px 52px 22px 16px;
  }
  .home-atlas-v2 .route-list .mod-num { grid-column: 1; grid-row: 1; }
  .home-atlas-v2 .route-list .mod-icon { grid-column: 2; grid-row: 1; }
  .home-atlas-v2 .route-list .module-card h3 { grid-column: 1 / 4; grid-row: 2; }
  .home-atlas-v2 .route-list .module-card p { grid-column: 1 / 4; grid-row: 3; }
  .home-atlas-v2 .route-list .progress-row { grid-column: 1 / 4; grid-row: 4; }
  .home-atlas-v2 .route-list .mod-meta { grid-column: 1 / 4; grid-row: 5; }
  .home-atlas-v2 .path-map { grid-template-columns: 1fr; }
  .home-atlas-v2 .path-map::before { top: 8%; bottom: 8%; left: 42px; width: 3px; height: auto; }
  .home-atlas-v2 .path-map a { min-height: 112px; border-right: 0; border-bottom: 1px solid var(--signal-ink); }
}

@media (prefers-reduced-motion: no-preference) {
  .home-atlas-v2 .signal-ticker span:nth-child(2)::before { animation: signal-blink 1.6s steps(2, end) infinite; }
  .home-atlas-v2 .academy-visual img { animation: atlas-breathe 14s var(--ease) infinite alternate; }
  .home-atlas-v2 .route-list .module-card::after { transition: transform .25s var(--ease); }
  .home-atlas-v2 .route-list .module-card:hover::after { transform: translate(7px, -50%); }
}

@keyframes signal-blink { 50% { opacity: .2; } }
@keyframes atlas-breathe { to { transform: scale(1.035); } }
