:root {
  color-scheme: dark;
  --bg: #111418;
  --bg-elevated: #171c22;
  --panel: #1d232b;
  --panel-strong: #222a33;
  --line: rgba(229, 220, 204, 0.14);
  --line-strong: rgba(229, 220, 204, 0.28);
  --text: #f1eadf;
  --muted: #b8afa2;
  --dim: #7d8791;
  --amber: #c58b3b;
  --steel: #7ea0b7;
  --green: #79a783;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.34);
  --max-width: 1180px;
  --header-height: 76px;
  --font-sans: "Segoe UI", Aptos, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: Consolas, "Cascadia Mono", "SFMono-Regular", "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% 0%, rgba(126, 160, 183, 0.09), transparent 34rem),
    linear-gradient(180deg, #12161b 0%, var(--bg) 44%, #0e1115 100%);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: normal;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(241, 234, 223, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 234, 223, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
}

.site-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 49.5%, rgba(197, 139, 59, 0.08) 50%, transparent 50.5%),
    linear-gradient(180deg, transparent 0 49.5%, rgba(126, 160, 183, 0.06) 50%, transparent 50.5%);
  background-size: 320px 240px;
  opacity: 0.8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 54px);
  border-bottom: 1px solid transparent;
  background: rgba(17, 20, 24, 0.76);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(17, 20, 24, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: #151a20;
  color: var(--amber);
  font-family: var(--font-mono);
  font-weight: 600;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.96rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  border: 1px solid transparent;
  padding: 9px 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.section {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 104px 0;
  scroll-margin-top: var(--header-height);
}

.hero {
  position: relative;
  width: 100%;
  min-height: min(760px, calc(100vh - var(--header-height)));
  display: flex;
  align-items: center;
  margin: 0;
  padding: clamp(96px, 12vw, 148px) max(20px, calc((100vw - var(--max-width)) / 2)) clamp(84px, 10vw, 126px);
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(5, 8, 12, 0.96) 0%, rgba(5, 8, 12, 0.92) 36%, rgba(5, 8, 12, 0.62) 66%, rgba(5, 8, 12, 0.78) 100%),
    linear-gradient(180deg, rgba(8, 13, 19, 0.32), rgba(8, 13, 19, 0.62)),
    url("../images/hero-portfolio-banner.png");
  background-position: 74% center;
  background-repeat: no-repeat;
  background-size: max(112vw, 1680px) auto;
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -90px 110px rgba(17, 20, 24, 0.56);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 12, 0.38), rgba(5, 8, 12, 0) 58%),
    radial-gradient(circle at 18% 42%, rgba(126, 160, 183, 0.16), transparent 28rem);
  pointer-events: none;
}

.hero::after {
  content: "01 / 11";
  position: absolute;
  right: max(20px, calc((100vw - var(--max-width)) / 2));
  bottom: 30px;
  color: rgba(241, 234, 223, 0.24);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 650px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.55rem, 6vw, 5.9rem);
  letter-spacing: 0;
}

h2 {
  max-width: 880px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.55rem);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.16rem;
}

.hero-lede {
  max-width: 690px;
  color: rgba(241, 234, 223, 0.88);
  font-size: clamp(1.03rem, 1.6vw, 1.22rem);
}

.hero h1 {
  margin-bottom: 16px;
  font-size: clamp(3rem, 5.2vw, 5.1rem);
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.62);
}

.hero-subtitle {
  max-width: 620px;
  margin-bottom: 16px;
  color: #dbeeff;
  font-size: clamp(1.35rem, 2.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.14;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.7);
}

.role-positioning {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: clamp(0.86rem, 1.25vw, 1rem);
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.62);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 46px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  padding: 12px 16px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #15110b;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.operations-panel,
.signal-board,
.lab-stack,
.contact-panel,
.mission-banner,
.leader-quote,
.stack-ledger,
.placement-board,
.learning-console,
.status-console {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow);
}

.operations-panel {
  padding: 20px;
}

.panel-topline,
.rack-header,
.project-meta,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.status-dot {
  color: var(--green);
}

.status-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}

.operations-panel img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  background: rgba(12, 15, 19, 0.62);
}

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.panel-metrics div {
  padding: 16px 10px 0;
  border-right: 1px solid var(--line);
}

.panel-metrics div:last-child {
  border-right: 0;
}

.panel-metrics span,
.signal-row span,
.lab-stack li span {
  display: block;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: normal;
}

.panel-metrics strong,
.signal-row strong,
.lab-stack li strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
  word-break: normal;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 + p {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
}

.mission-banner {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-top: -38px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(90deg, rgba(197, 139, 59, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}

.mission-kicker {
  position: relative;
  padding-left: 22px;
}

.mission-kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 6px;
  width: 2px;
  background: var(--amber);
}

.mission-kicker span,
.leader-quote footer span {
  display: block;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: normal;
}

.mission-kicker strong {
  display: block;
  margin-top: 14px;
  color: var(--text);
  font-size: clamp(1.36rem, 2vw, 1.85rem);
  line-height: 1.16;
}

.mission-copy {
  display: grid;
  gap: 18px;
}

.mission-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
}

.human-note {
  padding-top: 0;
}

.leader-quote {
  margin: 0;
  padding: clamp(28px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(126, 160, 183, 0.09), transparent 42%),
    rgba(29, 35, 43, 0.72);
}

.leader-quote p {
  max-width: 900px;
  margin-bottom: 28px;
  color: var(--text);
  font-size: clamp(1.6rem, 3.4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
}

.leader-quote footer {
  display: grid;
  gap: 8px;
  max-width: 720px;
}

.leader-quote footer strong {
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 600;
}

.split-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 44px;
  align-items: start;
}

.philosophy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
  gap: 24px;
  align-items: stretch;
}

.philosophy-copy {
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(197, 139, 59, 0.08), transparent 40%),
    rgba(29, 35, 43, 0.58);
}

.philosophy-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.philosophy-copy p:last-child {
  margin-bottom: 0;
}

.stack-ledger {
  display: grid;
  padding: 8px 22px;
  background:
    linear-gradient(180deg, rgba(126, 160, 183, 0.08), transparent 46%),
    rgba(29, 35, 43, 0.72);
}

.stack-ledger div {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.stack-ledger div:last-child {
  border-bottom: 0;
}

.stack-ledger span,
.ai-placement-note span {
  display: block;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: normal;
}

.stack-ledger strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 0.98rem;
  overflow-wrap: anywhere;
  word-break: normal;
}

.placement-board {
  margin-top: 22px;
  padding: clamp(22px, 4vw, 34px);
  background:
    repeating-linear-gradient(90deg, rgba(241, 234, 223, 0.035) 0 1px, transparent 1px 82px),
    rgba(20, 25, 31, 0.84);
}

.mentorship-intro,
.learning-tracks-panel,
.mentorship-notes {
  border: 1px solid var(--line);
  background: rgba(29, 35, 43, 0.72);
  box-shadow: var(--shadow);
}

.mentorship-intro {
  max-width: 940px;
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(126, 160, 183, 0.09), transparent 44%),
    rgba(29, 35, 43, 0.72);
}

.mentorship-intro p {
  color: var(--muted);
  font-size: 1.04rem;
}

.mentorship-intro p:last-child {
  margin-bottom: 0;
}

.mentorship-grid {
  margin-top: 18px;
}

.learning-tracks-panel {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 34px);
  background:
    repeating-linear-gradient(90deg, rgba(241, 234, 223, 0.035) 0 1px, transparent 1px 82px),
    rgba(20, 25, 31, 0.84);
}

.learning-track-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.learning-track-list li {
  border: 1px solid var(--line);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(126, 160, 183, 0.06);
  overflow-wrap: anywhere;
  word-break: normal;
}

.learning-track-list a {
  display: block;
  padding: 8px 10px;
  transition: color 160ms ease, background 160ms ease;
}

.learning-track-list a:hover,
.learning-track-list a:focus-visible {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.mentorship-notes {
  margin-top: 18px;
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(197, 139, 59, 0.12), transparent 42%),
    rgba(29, 35, 43, 0.78);
}

.placement-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.placement-intro p {
  max-width: 560px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.05rem, 1.7vw, 1.36rem);
  font-weight: 700;
  line-height: 1.28;
}

.placement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.placement-grid article {
  min-height: 260px;
  border: 1px solid var(--line);
  padding: 22px;
  background: rgba(17, 20, 24, 0.64);
}

.placement-grid h3 {
  color: var(--text);
}

.placement-grid ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.placement-grid li {
  position: relative;
  padding: 11px 0 11px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.placement-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 6px;
  height: 6px;
  background: var(--amber);
}

.ai-placement-note {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  margin-top: 14px;
  padding: 22px;
  border: 1px solid rgba(197, 139, 59, 0.38);
  background: rgba(197, 139, 59, 0.07);
}

.ai-placement-note p {
  margin: 0;
  color: var(--muted);
}

.prose {
  color: var(--muted);
  font-size: 1.04rem;
}

.signal-board {
  padding: 8px 22px;
}

.signal-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.signal-row:last-child {
  border-bottom: 0;
}

.capability-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.snapshot-card {
  min-height: 190px;
  border: 1px solid var(--line);
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(197, 139, 59, 0.055), transparent 44%),
    rgba(29, 35, 43, 0.72);
}

.snapshot-card span {
  display: block;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.snapshot-card p {
  margin: 36px 0 0;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.28;
}

.secondary-project-grid {
  margin-top: 18px;
}

.secondary-project-grid .project-card {
  min-height: 220px;
  background: rgba(29, 35, 43, 0.48);
}

.novalab-business-grid {
  margin-bottom: 18px;
}

.career-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.career-track::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 35px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.career-step,
.initiative-card,
.lab-focus,
.architecture-card {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(29, 35, 43, 0.72);
}

.career-step {
  min-height: 300px;
  padding: 76px 22px 22px;
}

.career-step::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 22px;
  width: 15px;
  height: 15px;
  border: 1px solid var(--amber);
  background: #111418;
  box-shadow: 0 0 0 8px rgba(197, 139, 59, 0.08);
}

.career-step span,
.initiative-card span,
.lab-focus span {
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: normal;
}

.career-step p,
.initiative-card p,
.lab-focus p,
.architecture-card p {
  color: var(--muted);
}

.capability-card,
.project-card,
.platform-map,
.lab-notes article,
.timeline li {
  border: 1px solid var(--line);
  background: rgba(29, 35, 43, 0.72);
}

.capability-card,
.project-card {
  min-height: 260px;
  padding: 24px;
  position: relative;
  overflow: visible;
}

.capability-card::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), transparent 74%);
}

.card-index {
  display: inline-block;
  margin-bottom: 54px;
  color: var(--steel);
  font-family: var(--font-mono);
}

.capability-card p,
.project-card p,
.platform-map p,
.lab-notes p,
.timeline p,
.contact-panel p,
.leader-quote footer strong {
  color: var(--muted);
}

.platform-map {
  display: grid;
  grid-template-columns: minmax(240px, 0.44fr) 1fr;
}

.map-node {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(rgba(197, 139, 59, 0.07), rgba(197, 139, 59, 0)),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(241, 234, 223, 0.045) 31px);
}

.map-node span {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: normal;
}

.map-node strong {
  margin-top: 14px;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.map-rail {
  display: grid;
}

.map-rail article {
  padding: 28px 32px;
  border-bottom: 1px solid var(--line);
}

.map-rail article:last-child {
  border-bottom: 0;
}

.lab-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.74fr) 1fr;
  gap: 22px;
}

.initiative-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.initiative-card {
  min-height: 250px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(197, 139, 59, 0.055), transparent 44%),
    rgba(29, 35, 43, 0.72);
}

.initiative-card h3,
.lab-focus h3 {
  margin-top: 28px;
}

.learning-console {
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) 1fr;
  background:
    repeating-linear-gradient(90deg, rgba(241, 234, 223, 0.03) 0 1px, transparent 1px 92px),
    rgba(20, 25, 31, 0.86);
}

.learning-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 38px);
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(197, 139, 59, 0.08), transparent 46%),
    rgba(17, 20, 24, 0.42);
}

.learning-summary p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.learning-grid article {
  position: relative;
  min-height: 210px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(29, 35, 43, 0.54);
}

.learning-grid article:nth-child(3n) {
  border-right: 0;
}

.learning-grid article:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.learning-grid article::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 24px;
  width: 34px;
  height: 2px;
  background: var(--amber);
}

.learning-grid span,
.status-heading span,
.status-column li span {
  display: block;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: normal;
}

.learning-grid h3 {
  margin-top: 36px;
}

.learning-grid p {
  color: var(--muted);
}

.status-console {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(126, 160, 183, 0.09), transparent 44%),
    rgba(20, 25, 31, 0.86);
}

.status-column {
  padding: clamp(22px, 4vw, 34px);
}

.status-column + .status-column {
  border-left: 1px solid var(--line);
}

.status-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.status-heading strong {
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.12;
  text-align: right;
}

.status-column ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.status-column li {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.status-column li:last-child {
  border-bottom: 0;
}

.status-column li strong {
  color: var(--text);
  font-size: 1.02rem;
}

.operational .status-heading span {
  color: var(--green);
}

.planned .status-heading span {
  color: var(--amber);
}

.lab-command {
  display: grid;
  grid-template-columns: minmax(300px, 0.58fr) 1fr;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(126, 160, 183, 0.12), transparent 42%),
    rgba(20, 25, 31, 0.86);
  box-shadow: var(--shadow);
}

.lab-command > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 42px);
}

.lab-command img,
.architecture-card img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  border-left: 1px solid var(--line);
  background: #101419;
}

.lab-command img {
  min-height: 360px;
}

.command-label {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lab-command p {
  margin: 18px 0 0;
  color: var(--text);
  font-size: clamp(1.14rem, 2vw, 1.55rem);
  line-height: 1.35;
}

.lab-stack {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(126, 160, 183, 0.08), transparent 42%),
    rgba(29, 35, 43, 0.72);
}

.lab-stack ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.lab-stack li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.lab-stack li strong {
  text-align: right;
}

.lab-notes {
  display: grid;
  gap: 18px;
}

.lab-notes article {
  min-height: 210px;
  padding: 28px;
}

.lab-notes a {
  display: inline-block;
  margin-top: 8px;
  border-bottom: 1px solid var(--amber);
  color: var(--amber);
  font-weight: 700;
}

.lab-focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.lab-focus {
  min-height: 230px;
  padding: 22px;
}

.lab-focus::after,
.initiative-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 16px auto;
  width: 42px;
  height: 1px;
  background: var(--line-strong);
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.project-card a {
  width: fit-content;
  max-width: 100%;
  margin-top: auto;
  border-bottom: 1px solid var(--amber);
  color: var(--amber);
  font-weight: 700;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 24px;
  padding: 0;
  list-style: none;
}

.project-tags li {
  border: 1px solid var(--line);
  padding: 5px 8px;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(126, 160, 183, 0.06);
  overflow-wrap: anywhere;
  word-break: normal;
}

.case-hero {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.46fr);
  align-items: center;
  gap: clamp(32px, 5vw, 70px);
  padding-top: 72px;
}

.case-spec-panel,
.case-summary,
.case-architecture,
.case-flow-panel,
.case-figure,
.case-detail,
.case-resolution,
.case-value,
.case-decision,
.case-investigation,
.case-outcome-dashboard,
.case-lesson-callout,
.case-next {
  border: 1px solid var(--line);
  background: rgba(29, 35, 43, 0.72);
  box-shadow: var(--shadow);
}

.case-spec-panel {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(126, 160, 183, 0.08), transparent 44%),
    rgba(29, 35, 43, 0.78);
}

.case-spec-panel ul,
.case-resolution ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.case-spec-panel li,
.case-resolution li {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.case-spec-panel li span,
.case-summary span,
.case-detail span,
.case-resolution li span,
.case-flow span,
.case-layer-map span,
.case-diagram-slot span,
.case-decision span,
.case-investigation span,
.case-outcome-dashboard span {
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: normal;
}

.case-spec-panel li strong,
.case-resolution li strong {
  color: var(--text);
  text-align: right;
  overflow-wrap: anywhere;
  word-break: normal;
}

.case-summary-grid,
.case-detail-grid,
.case-value-grid,
.case-decision-grid,
.case-lesson-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.case-detail-grid,
.case-value-grid,
.case-decision-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-implementation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.case-summary,
.case-detail,
.case-value,
.case-decision {
  padding: 24px;
}

.case-summary p,
.case-detail p,
.case-value p,
.case-decision p,
.case-investigation p {
  margin: 14px 0 0;
  color: var(--muted);
}

.case-implementation-note {
  align-content: start;
}

.case-code-block {
  max-width: 100%;
  margin: 18px 0 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  padding: 16px;
  background: rgba(12, 15, 19, 0.82);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre;
}

.case-code-block code {
  font: inherit;
}

.case-architecture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  overflow: hidden;
}

.case-layer-map {
  display: grid;
}

.case-layer-map article {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 92px;
  padding: 22px clamp(22px, 4vw, 34px);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 20, 24, 0.28);
}

.case-layer-map article:last-child {
  border-bottom: 0;
}

.case-layer-map strong {
  color: var(--text);
  line-height: 1.35;
}

.case-diagram-slot {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 38px);
  border-left: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, rgba(241, 234, 223, 0.035) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(241, 234, 223, 0.03) 0 1px, transparent 1px 56px),
    rgba(16, 20, 25, 0.92);
}

.case-diagram-slot::before {
  content: "";
  width: 52px;
  height: 2px;
  margin-bottom: 22px;
  background: var(--amber);
}

.case-diagram-slot strong {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.8vw, 1.45rem);
  line-height: 1.28;
}

.case-diagram-slot.compact {
  min-height: 280px;
}

.case-figure {
  margin: 18px 0 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(126, 160, 183, 0.06), transparent 42%),
    rgba(20, 25, 31, 0.86);
}

.case-figure img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 760px;
  object-fit: contain;
  padding: clamp(14px, 3vw, 28px);
  background: #101419;
}

.case-figure figcaption {
  margin: 0;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.case-flow-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) 1fr;
  margin-top: 18px;
  overflow: hidden;
}

.case-flow {
  padding: clamp(24px, 4vw, 36px);
  border-right: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(241, 234, 223, 0.04) 31px),
    rgba(17, 20, 24, 0.42);
}

.case-flow ol {
  margin: 24px 0 0;
  padding-left: 22px;
}

.case-flow li {
  position: relative;
  padding: 8px 0 16px;
  color: var(--muted);
}

.case-flow li::marker {
  color: var(--amber);
}

.case-flow li + li::before {
  content: "";
  position: absolute;
  left: -19px;
  top: -4px;
  width: 1px;
  height: 14px;
  background: var(--line-strong);
}

.case-resolution {
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(90deg, rgba(197, 139, 59, 0.08), transparent 42%),
    rgba(29, 35, 43, 0.72);
}

.case-resolution li {
  grid-template-columns: 52px 1fr;
}

.case-resolution li strong {
  text-align: left;
}

.case-table-panel {
  border: 1px solid var(--line);
  overflow-x: auto;
  background:
    linear-gradient(180deg, rgba(126, 160, 183, 0.06), transparent 42%),
    rgba(20, 25, 31, 0.86);
  box-shadow: var(--shadow);
}

.benchmark-table-caption {
  max-width: 860px;
  margin: -12px 0 18px;
  color: var(--muted);
}

.case-benchmark-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.model-comparison-panel {
  margin-top: 18px;
}

.model-comparison-table {
  min-width: 680px;
}

.case-benchmark-table th,
.case-benchmark-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
  vertical-align: top;
}

.case-benchmark-table th {
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.case-benchmark-table th:first-child,
.case-benchmark-table td:first-child,
.case-benchmark-table tbody th {
  text-align: left;
}

.case-benchmark-table tbody th {
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  text-transform: none;
}

.case-benchmark-table tr:last-child th,
.case-benchmark-table tr:last-child td {
  border-bottom: 0;
}

.case-metric-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.case-metric-list li {
  display: grid;
  grid-template-columns: minmax(120px, 0.72fr) minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.case-metric-list span {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.case-metric-list strong {
  color: var(--text);
  font-size: 0.94rem;
}

.benchmark-grid {
  margin-top: 18px;
}

.benchmark-subheading {
  margin-top: 34px;
}

.benchmark-callout {
  margin-top: 18px;
}

.benchmark-callout h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
}

.benchmark-callout p:last-child {
  margin-bottom: 0;
}

.case-screenshot-placeholders {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.case-benchmark-evidence {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.case-evidence-group {
  border: 1px solid var(--line);
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(126, 160, 183, 0.06), transparent 42%),
    rgba(20, 25, 31, 0.72);
}

.case-evidence-group .project-meta {
  margin-bottom: 0;
}

.case-evidence-group p {
  margin: 16px 0 0;
  color: var(--muted);
}

.case-screenshot-card {
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(126, 160, 183, 0.06), transparent 42%),
    rgba(20, 25, 31, 0.86);
}

.case-screenshot-trigger {
  width: 100%;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.case-screenshot-trigger:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: -2px;
}

.case-screenshot-card img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  background: #101419;
}

.case-screenshot-card figcaption {
  margin: 0;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(6, 8, 11, 0.88);
  backdrop-filter: blur(12px);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox img {
  max-width: min(100%, 1400px);
  max-height: 86vh;
  border: 1px solid var(--line-strong);
  background: #101419;
  box-shadow: var(--shadow);
}

.image-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  border: 1px solid var(--line-strong);
  padding: 10px 12px;
  background: rgba(17, 20, 24, 0.92);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.case-next {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(126, 160, 183, 0.1), transparent 44%),
    rgba(29, 35, 43, 0.72);
}

.case-next h2 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.case-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-timeline li {
  position: relative;
  min-height: 116px;
  border: 1px solid var(--line);
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(126, 160, 183, 0.06), transparent 48%),
    rgba(29, 35, 43, 0.72);
}

.case-timeline li::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  height: 1px;
  background: var(--line-strong);
}

.case-timeline span {
  display: block;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.case-timeline strong {
  display: block;
  margin-top: 18px;
  color: var(--text);
  line-height: 1.22;
}

.case-decision {
  min-height: 310px;
  background:
    linear-gradient(180deg, rgba(197, 139, 59, 0.055), transparent 44%),
    rgba(29, 35, 43, 0.72);
}

.case-decision h3 {
  margin-top: 28px;
}

.case-decision p strong {
  color: var(--text);
}

.case-investigation {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(197, 139, 59, 0.08), transparent 42%),
    rgba(20, 25, 31, 0.86);
}

.case-investigation article {
  min-height: 310px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.case-investigation article:last-child {
  border-right: 0;
}

.case-investigation h3 {
  margin-top: 28px;
}

.case-outcome-dashboard {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(241, 234, 223, 0.03) 0 1px, transparent 1px 84px),
    rgba(20, 25, 31, 0.86);
}

.case-outcome-dashboard article {
  min-height: 150px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-outcome-dashboard article:nth-child(5n) {
  border-right: 0;
}

.case-outcome-dashboard article:nth-last-child(-n + 5) {
  border-bottom: 0;
}

.case-outcome-dashboard strong {
  display: block;
  margin-top: 28px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.2;
}

.case-lesson-callout {
  margin-bottom: 18px;
  padding: clamp(30px, 6vw, 68px);
  background:
    linear-gradient(135deg, rgba(197, 139, 59, 0.14), transparent 46%),
    rgba(29, 35, 43, 0.78);
}

.case-lesson-callout blockquote {
  margin: 0;
}

.case-lesson-callout blockquote p {
  max-width: 1000px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.06;
}

.case-notes-callout {
  border: 1px solid var(--line);
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(197, 139, 59, 0.12), transparent 42%),
    rgba(29, 35, 43, 0.78);
  box-shadow: var(--shadow);
}

.case-notes-heading {
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.case-notes-heading h2 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.case-notes-copy {
  max-width: 900px;
}

.case-notes-copy p,
.case-notes-copy li {
  color: var(--muted);
  font-size: 1.04rem;
}

.case-notes-copy p:last-child {
  margin-bottom: 0;
}

.case-notes-copy ul {
  margin: 8px 0 22px;
  padding-left: 22px;
}

.case-notes-copy li::marker {
  color: var(--amber);
}

.case-lesson-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-value-grid.enterprise {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-roadmap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  max-width: 480px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-roadmap li {
  border: 1px solid var(--line);
  padding: 8px 10px;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(126, 160, 183, 0.06);
  overflow-wrap: anywhere;
  word-break: normal;
}

.architecture-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.architecture-card {
  overflow: hidden;
}

.architecture-card .project-meta {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.architecture-card img {
  min-height: 0;
  height: auto;
  border-left: 0;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  padding: 24px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 208px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline span {
  grid-column: 1;
  grid-row: 1 / span 2;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.timeline h3,
.timeline p {
  grid-column: 2;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
}

.contact-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.site-footer {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 46px;
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero,
  .case-hero,
  .split-content,
  .philosophy-layout,
  .mission-banner,
  .platform-map,
  .learning-console,
  .status-console,
  .lab-layout,
  .lab-command,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 640px;
    padding-right: 24px;
    padding-left: 24px;
    background-position: 76% center;
    background-size: max(142vw, 1500px) auto;
  }

  .mission-banner {
    margin-top: 0;
  }

  .map-node {
    min-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .learning-summary {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .learning-grid article,
  .learning-grid article:nth-child(3n),
  .learning-grid article:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .learning-grid article:last-child {
    border-bottom: 0;
  }

  .status-column + .status-column {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .capability-grid,
  .snapshot-grid,
  .case-summary-grid,
  .case-detail-grid,
  .case-value-grid,
  .case-decision-grid,
  .case-implementation-grid,
  .case-architecture,
  .case-flow-panel,
  .case-next,
  .project-grid,
  .placement-grid,
  .career-track,
  .initiative-grid,
  .learning-grid,
  .lab-focus-grid,
  .architecture-gallery {
    grid-template-columns: 1fr;
  }

  .case-timeline,
  .snapshot-grid,
  .case-investigation,
  .case-outcome-dashboard,
  .case-lesson-grid,
  .case-value-grid.enterprise,
  .case-screenshot-placeholders {
    grid-template-columns: repeat(2, 1fr);
  }

  .career-track::before {
    left: 28px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
  }

  .career-step {
    min-height: auto;
    padding: 28px 24px 28px 72px;
  }

  .career-step::before {
    left: 21px;
  }

  .lab-command img {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .case-flow {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-diagram-slot {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .case-layer-map article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .case-investigation article,
  .case-outcome-dashboard article,
  .case-outcome-dashboard article:nth-child(5n),
  .case-outcome-dashboard article:nth-last-child(-n + 5) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .case-investigation article:nth-child(2n),
  .case-outcome-dashboard article:nth-child(2n) {
    border-right: 0;
  }

  .case-investigation article:nth-last-child(-n + 1),
  .case-outcome-dashboard article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .case-next {
    align-items: start;
  }

  .case-roadmap {
    justify-content: flex-start;
    max-width: none;
  }

  .timeline li {
    grid-template-columns: 140px 1fr;
    gap: 24px;
  }

  .timeline li::before {
    left: 176px;
  }

  .placement-intro,
  .ai-placement-note {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .placement-intro {
    display: grid;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: block;
  }

  .nav-toggle.is-open span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle.is-open span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: grid;
    gap: 0;
    padding: 12px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(17, 20, 24, 0.98);
    transform: translateY(-120%);
    transition: transform 200ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand small {
    display: none;
  }

  .section {
    width: min(100% - 28px, var(--max-width));
    padding: 72px 0;
  }

  .hero {
    width: 100%;
    min-height: 590px;
    padding: 82px 18px 74px;
    background-position: 75% center;
    background-size: 1320px auto;
  }

  .hero::after {
    right: 18px;
    bottom: 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-subtitle {
    font-size: 1.44rem;
  }

  h2 {
    font-size: 2rem;
  }

  .operations-panel {
    padding: 14px;
  }

  .panel-metrics,
  .case-spec-panel li,
  .case-timeline,
  .snapshot-grid,
  .case-investigation,
  .case-outcome-dashboard,
  .case-lesson-grid,
  .case-value-grid.enterprise,
  .timeline li,
  .status-column li {
    grid-template-columns: 1fr;
  }

  .case-spec-panel li strong {
    text-align: left;
  }

  .panel-metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
  }

  .panel-metrics div:last-child {
    border-bottom: 0;
  }

  .timeline li::before {
    display: none;
  }

  .timeline span,
  .timeline h3,
  .timeline p {
    grid-column: 1;
    grid-row: auto;
  }

  .case-investigation article,
  .case-investigation article:nth-child(2n),
  .case-outcome-dashboard article,
  .case-outcome-dashboard article:nth-child(2n),
  .case-outcome-dashboard article:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-investigation article:last-child,
  .case-outcome-dashboard article:last-child {
    border-bottom: 0;
  }

  .case-screenshot-placeholders {
    grid-template-columns: 1fr;
  }

  .status-heading {
    display: grid;
  }

  .status-heading strong {
    text-align: left;
  }

  .lab-stack li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .lab-stack li strong {
    text-align: left;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
