:root {
  --bg: #071017;
  --bg-2: #09131b;
  --panel: #0b151e;
  --panel-soft: #0e1922;
  --panel-lift: #111d26;
  --line: #1b2a34;
  --line-strong: #263a46;
  --text: #f5f6f7;
  --muted: #a9b4bc;
  --dim: #6e7b84;
  --amber: #ff9a18;
  --amber-2: #ffb127;
  --green: #4bd178;
  --max: 1440px;
  --radius: 14px;
  --shadow: 0 24px 70px rgba(0,0,0,.34);
  --font-body: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-display: Bahnschrift, "DIN Alternate", "Arial Narrow", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 0%, rgba(31,53,67,.18), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
p { line-height: 1.58; }
strong { font-weight: 720; }
::selection { color: #111; background: var(--amber); }

h1, h2, h3,
.main-nav,
.button,
.section-kicker,
.eyebrow,
.diagram-title strong,
.diagram-core strong,
.footer-projects-title,
.leo-link {
  font-family: var(--font-display);
}

.shell {
  width: min(calc(100% - 64px), var(--max));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  top: .75rem;
  transform: translateY(-160%);
  padding: .7rem 1rem;
  border-radius: 8px;
  background: var(--amber);
  color: #121212;
  font-weight: 700;
}
.skip-link:focus { transform: none; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#i-github path { fill: currentColor; stroke: none; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 78px;
  background: rgba(6,14,20,.93);
  border-bottom: 1px solid rgba(49,72,86,.52);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 275px 1fr auto;
  gap: 28px;
  align-items: center;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
  max-width: 100%;
}
.brand img {
  width: 265px;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 100%;
  gap: 8px;
}
.main-nav a {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  padding: 0 15px;
  color: #d9dfe3;
  font-size: 14px;
  transition: color .2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}
.main-nav a:hover,
.main-nav a.is-active { color: #fff; }
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel);
  padding: 10px;
  cursor: pointer;
}
.menu-toggle > span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: #fff;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 690;
  font-size: 14px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.button svg { width: 20px; height: 20px; }
.button:hover { transform: translateY(-1px); }
.button-primary {
  color: #17120b;
  background: linear-gradient(135deg, var(--amber-2), #ff8d10);
  box-shadow: 0 8px 25px rgba(255,154,24,.17);
}
.button-primary:hover { background: linear-gradient(135deg, #ffc04b, var(--amber)); }
.button-secondary {
  color: #f6f7f8;
  background: rgba(5,11,16,.54);
  border-color: #8b99a3;
}
.button-secondary:hover { border-color: #dce4e9; background: rgba(19,31,40,.88); }
.button-github {
  color: #15110c;
  background: linear-gradient(135deg, var(--amber-2), #ff8c10);
  min-width: 156px;
}
.button-arrow { width: 16px !important; height: 16px !important; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 600px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #071018;
}

.hero-media {
  position: absolute;
  z-index: -3;
  inset: 0;
  overflow: hidden;
  background: #06161a;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.66) saturate(.9) contrast(1.05);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,16,24,.98) 0%, rgba(7,16,24,.94) 36%, rgba(7,16,24,.65) 56%, rgba(7,16,24,.18) 100%),
    linear-gradient(0deg, rgba(7,16,24,.82) 0%, transparent 42%);
}

.hero-shadow {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,16,24,.08), rgba(7,16,24,.30) 72%, rgba(7,16,24,.76));
}

.hero-grid,
.architecture-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .17;
  background-image:
    linear-gradient(rgba(83,111,128,.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83,111,128,.25) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000, transparent 65%);
}

.hero-inner {
  position: relative;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 590px) 310px 1fr;
  align-items: center;
  gap: 42px;
  padding-top: 55px;
  padding-bottom: 56px;
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: #aab8c0;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .3em;
  font-weight: 680;
}
.eyebrow i {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #7a8790;
}

.hero h1 {
  margin: 0;
  max-width: 590px;
  font-size: clamp(48px, 5vw, 76px);
  line-height: .99;
  letter-spacing: -.047em;
  font-weight: 780;
}
.hero h1 strong {
  color: var(--amber);
  font-weight: inherit;
}

.hero-lead {
  max-width: 590px;
  margin: 23px 0 0;
  color: #f1f3f4;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -.018em;
}
.hero-note {
  max-width: 585px;
  margin: 15px 0 0;
  color: #aeb9c0;
  font-size: 16px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.session-card {
  align-self: center;
  justify-self: end;
  width: 100%;
  padding: 20px 20px 18px;
  border: 1px solid rgba(132,154,167,.54);
  border-radius: 10px;
  background: rgba(8,17,24,.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.session-step {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 45px;
  color: #dce3e7;
  font-size: 14px;
}
.status-dot {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid #45545f;
  border-radius: 50%;
}
.status-dot svg { width: 14px; height: 14px; stroke-width: 2.5; }
.session-step.done .status-dot {
  border-color: rgba(75,209,120,.52);
  color: #fff;
  background: #218a48;
}
.session-step.active .status-dot {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(255,154,24,.09), 0 0 18px rgba(255,154,24,.25);
}
.session-step.pending { color: #5f6d76; }

.handwritten {
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-weight: 400;
  letter-spacing: .02em;
}
.hero-handwritten {
  position: absolute;
  right: 1%;
  bottom: 36px;
  margin: 0;
  color: #f7f3e9;
  font-size: 21px;
  line-height: 1.25;
  transform: rotate(-5deg);
  text-shadow: 0 2px 12px #000;
}
.hero-handwritten::after,
.manifesto span,
.architecture-quote p::after {
  content: "";
  display: block;
  width: 68px;
  height: 3px;
  margin-top: 10px;
  background: var(--amber);
  transform: rotate(-3deg);
}

.section {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.overview {
  padding: 68px 0 62px;
  background:
    linear-gradient(90deg, rgba(11,22,30,.9), rgba(6,14,20,.98)),
    var(--bg);
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.12fr .98fr .65fr;
  gap: 54px;
  align-items: stretch;
}
.section-copy h2 {
  margin: 0 0 20px;
  max-width: 650px;
  color: #f7f8f8;
  font-size: clamp(31px, 3vw, 46px);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.section-copy h2 strong { color: var(--amber); }
.section-copy p:not(.section-kicker):not(.handwritten) {
  color: #b3bdc3;
  margin: 0 0 15px;
  font-size: 16px;
}
.section-kicker {
  position: relative;
  padding-left: 23px;
  margin-bottom: 20px;
}
.section-kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: -.18em;
  width: 3px;
  height: 23px;
  background: var(--amber);
}

.overview-list {
  display: grid;
  gap: 0;
  align-self: center;
  padding-left: 36px;
  border-left: 1px solid rgba(255,154,24,.65);
}
.overview-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 17px;
  padding: 10px 0;
}
.square-icon {
  display: grid;
  width: 48px; height: 48px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(25,38,48,.92), rgba(7,15,21,.8));
  color: #eef1f3;
}
.square-icon svg { width: 28px; height: 28px; }
.overview-list h3,
.open-value h3 {
  margin: 0 0 3px;
  font-size: 16px;
}
.overview-list p,
.open-value p {
  margin: 0;
  color: #9da9b1;
  font-size: 14px;
}

.manifesto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 310px;
  padding: 0 0 0 44px;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle at 70% 45%, rgba(255,154,24,.05), transparent 38%);
}
.manifesto .handwritten {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  color: #9ba8b1;
  transform: rotate(-2deg);
}
.manifesto span {
  margin: 22px 0 15px;
  width: 52px;
}
.manifesto > p:last-child {
  max-width: 245px;
  color: #8e9ba4;
  font-size: 15px;
}

.capabilities {
  padding: 35px 0 48px;
  background: #071018;
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.capability-card {
  min-height: 190px;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(150deg, rgba(15,28,37,.92), rgba(7,15,21,.82));
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.capability-card:hover {
  transform: translateY(-3px);
  border-color: #344b59;
  background: linear-gradient(150deg, rgba(18,34,45,.98), rgba(8,17,24,.95));
}
.capability-card > svg {
  width: 36px; height: 36px;
  color: #edf0f1;
  margin-bottom: 17px;
}
.capability-card h3 {
  margin: 0 0 9px;
  font-size: 16px;
}
.capability-card p {
  margin: 0;
  color: #97a4ac;
  font-size: 13.5px;
}

.architecture {
  isolation: isolate;
  padding: 58px 0 62px;
  overflow: hidden;
  background:
    linear-gradient(90deg, #071018 0%, #071018 68%, rgba(7,16,24,.75) 100%),
    var(--bg);
}
.architecture-art {
  z-index: -1;
  opacity: .12;
  mask-image: linear-gradient(90deg, #000 10%, #000 75%, transparent);
}
.architecture-grid {
  display: grid;
  grid-template-columns: .88fr 1.65fr .55fr;
  align-items: center;
  gap: 42px;
}
.mini-note {
  margin: 28px 0 0 !important;
  color: #f5f0e6 !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
  transform: rotate(-4deg);
}

.architecture-diagram {
  display: grid;
  grid-template-columns: 1fr 50px 1.04fr 50px .95fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0;
}
.diagram-panel,
.diagram-core {
  min-height: 290px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  overflow: hidden;
  background: rgba(8,17,24,.84);
}
.diagram-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 15px 17px 12px;
  border-bottom: 1px solid var(--line);
  color: #f2f4f5;
}
.diagram-title small {
  color: #a8b2b8;
  font-size: 12px;
}
.diagram-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.diagram-panel li {
  padding: 12px 17px;
  border-bottom: 1px solid rgba(29,44,54,.75);
  color: #b2bdc4;
  font-size: 13px;
}
.diagram-panel li:last-child { border-bottom: 0; }

.omsi-title {
  min-height: 63px;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.omsi-title svg { width: 24px; height: 24px; }

.diagram-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #d4dde2;
  font-size: 28px;
  line-height: .8;
}
.diagram-link span:last-child { color: #788995; }

.diagram-core {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 20px;
  border-color: var(--amber);
  box-shadow: inset 0 0 0 1px rgba(255,154,24,.15);
  text-align: center;
}
.diagram-core img {
  width: 105px;
  height: 105px;
  object-fit: contain;
  margin-bottom: 2px;
}
.diagram-core strong {
  font-size: 25px;
  letter-spacing: -.03em;
}
.diagram-core strong span { color: var(--amber); }
.diagram-core small {
  margin-top: 5px;
  color: #a9b4bb;
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: .28em;
}
.gpl-pill {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(13,25,33,.8);
  color: #e5e9eb;
  font-size: 13px;
}
.gpl-pill svg { width: 20px; height: 20px; }

.architecture-quote {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--line);
}
.architecture-quote p {
  max-width: 230px;
  margin: 0;
  color: #f0eee9;
  font-size: 20px;
  line-height: 1.3;
  transform: rotate(-4deg);
}

.open-source {
  padding: 58px 0 64px;
  background:
    linear-gradient(90deg, rgba(6,14,20,.99), rgba(10,21,29,.94)),
    var(--bg);
}
.open-grid {
  display: grid;
  grid-template-columns: .92fr 1.05fr .82fr;
  gap: 44px;
  align-items: center;
}
.open-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.open-value {
  min-height: 185px;
  padding: 8px 24px 12px;
  border-left: 1px solid var(--line);
}
.open-value:first-child { border-left: 0; }
.open-value svg {
  width: 40px; height: 40px;
  margin-bottom: 17px;
  color: #f3f5f6;
}
.open-value h3 { color: var(--amber); }

.project-box {
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(13,25,33,.95), rgba(7,15,21,.92));
}
.project-box > p {
  margin: 0 0 18px;
  color: #aeb9bf;
  font-size: 14px;
}
.project-box .button {
  width: 100%;
  margin-top: 9px;
  justify-content: flex-start;
}
.project-box .button-arrow { margin-left: auto; }

.site-footer {
  background: #061018;
  border-top: 1px solid var(--line);
}
.footer-inner {
  min-height: 128px;
  display: grid;
  grid-template-columns: 290px 1fr auto minmax(330px, auto);
  align-items: center;
  gap: 28px;
}
.footer-brand img {
  width: 245px;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
}
.footer-inner > p:not(.handwritten) {
  margin: 0;
  color: #71808a;
  font-size: 10px;
  letter-spacing: .18em;
}
.footer-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.footer-meta i {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #657680;
}
.footer-projects {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-left: 22px;
  border-left: 2px solid var(--amber);
}
.footer-projects-title {
  color: #8f9ca5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.footer-projects-links {
  display: flex;
  align-items: center;
  gap: 15px;
}
.omsimods-link {
  display: inline-flex;
  align-items: center;
}
.omsimods-link img {
  width: 145px;
  max-height: 46px;
  object-fit: contain;
}
.footer-projects-separator {
  width: 1px;
  height: 34px;
  background: var(--line-strong);
}
.leo-link {
  color: #f1f3f4;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: .01em;
  white-space: nowrap;
}
.leo-link:hover { color: var(--amber); }

/* Reveal is progressive-enhancement only. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1220px) {
  .header-inner { grid-template-columns: 245px 1fr auto; gap: 16px; }
  .main-nav a { padding-inline: 9px; }
  .main-nav a::after { left: 9px; right: 9px; }
  .hero-inner { grid-template-columns: minmax(0, 560px) 285px 1fr; gap: 28px; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .manifesto { grid-column: 1 / -1; min-height: 180px; padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .capability-grid { grid-template-columns: repeat(3, 1fr); }
  .architecture-grid { grid-template-columns: .72fr 1.6fr; }
  .architecture-quote { display: none; }
  .open-grid { grid-template-columns: 1fr 1.2fr; }
  .project-box { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 260px 1fr; }
  .footer-projects { grid-column: 1 / -1; justify-self: start; border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; width: 100%; }
  .footer-projects {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-left: 22px;
  border-left: 2px solid var(--amber);
}
.footer-projects-title {
  color: #8f9ca5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.footer-projects-links {
  display: flex;
  align-items: center;
  gap: 15px;
}
.omsimods-link {
  display: inline-flex;
  align-items: center;
}
.omsimods-link img {
  width: 145px;
  max-height: 46px;
  object-fit: contain;
}
.footer-projects-separator {
  width: 1px;
  height: 34px;
  background: var(--line-strong);
}
.leo-link {
  color: #f1f3f4;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: .01em;
  white-space: nowrap;
}
.leo-link:hover { color: var(--amber); }
}

@media (max-width: 940px) {
  .shell { width: min(calc(100% - 38px), var(--max)); }
  .site-header { height: 68px; }
  .header-inner { grid-template-columns: 1fr auto auto; }
  .brand img {
  width: 265px;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
}
    .header-inner > .button-github { display: none; }
  .menu-toggle { display: block; }

  .main-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    height: auto;
    display: grid;
    justify-content: stretch;
    padding: 12px 20px 22px;
    background: rgba(6,14,20,.985);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .main-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a {
    height: 48px;
    justify-content: start;
    border-bottom: 1px solid rgba(29,44,54,.65);
  }
  .main-nav a::after { display: none; }

  .hero { min-height: 760px; }
  .hero-media { width: 100%; opacity: .55; }
  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(7,16,24,.96), rgba(7,16,24,.35)),
      linear-gradient(0deg, #071018 0%, transparent 55%);
  }
  .hero-shadow {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,16,24,.08), rgba(7,16,24,.30) 72%, rgba(7,16,24,.76));
}
  .hero-inner {
    min-height: 760px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding-top: 48px;
  }
  .hero-copy { max-width: 620px; }
  .session-card { width: min(370px, 100%); justify-self: start; }
  .hero-handwritten { right: 5%; bottom: 28px; }

  .overview-grid,
  .architecture-grid,
  .open-grid { grid-template-columns: 1fr; }
  .overview-list { padding: 18px 0 0; border-left: 0; border-top: 1px solid rgba(255,154,24,.55); }
  .manifesto { grid-column: auto; }
  .architecture-diagram { max-width: 760px; }
  .open-values { max-width: 800px; }
  .project-box { grid-column: auto; max-width: 650px; }

  .footer-inner { grid-template-columns: 1fr auto; padding-block: 26px; }
  .footer-inner > p:nth-child(2) { grid-column: 1 / -1; order: 3; }
}

@media (max-width: 700px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }

  .brand img {
  width: 265px;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
}
  
  .hero { min-height: 790px; }
  .hero-media { width: 118%; right: -25%; }
  .hero h1 { font-size: clamp(42px, 13vw, 62px); }
  .hero-lead { font-size: 20px; }
  .hero-note { font-size: 14px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-handwritten { display: none; }

  .section { overflow: hidden; }
  .overview,
  .architecture,
  .open-source { padding-block: 48px; }

  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 0; }

  .architecture-diagram {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 12px;
  }
  .diagram-panel, .diagram-core { min-height: 0; }
  .diagram-core { padding-block: 24px; }
  .diagram-link {
    flex-direction: row;
    justify-content: center;
    gap: 18px;
    transform: rotate(90deg);
    height: 28px;
  }
  .gpl-pill { grid-column: 1; grid-row: auto; margin-top: 0; }

  .open-values { grid-template-columns: 1fr; }
  .open-value {
    min-height: 0;
    padding: 22px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .open-value:first-child { border-top: 0; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: left;
  }
  .footer-meta { white-space: normal; }
}

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