/* ===== styles.css ===== */
/* ===== styles.css ===== */
/* ===== styles.css ===== */
/* ===== styles.css ===== */
/* ===== styles.css ===== */
/* ===== styles.css ===== */
/* ===== styles.css ===== */
/* ===== styles.css ===== */
/* ===== styles.css ===== */
/* ===== styles.css ===== */
/* ===== styles.css ===== */
/* ===== styles.css ===== */
:root,
[data-theme='light'] {
  color-scheme: light;
  --canvas: #ffffff;
  --paper: #f7f5ef;
  --paper-strong: #efebe1;
  --ink: #111111;
  --muted: #55504a;
  --faint: #7b756d;
  --line: #d8d2c8;
  --line-strong: #aaa39a;
  --red: #cf1f1f;
  --blue: #0b4f9f;
  --green: #18723c;
  --amber: #c47a00;
  --navy: #033153;
  --shadow: 0 18px 44px rgba(17, 17, 17, 0.08);
  --focus: #0b4f9f;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --max: 1424px;
  --gutter: clamp(20px, 3vw, 56px);
}

[data-theme='dark'] {
  color-scheme: dark;
  --canvas: #0d1114;
  --paper: #141a1f;
  --paper-strong: #1b232a;
  --ink: #f8f5ee;
  --muted: #cbc3b8;
  --faint: #9e978f;
  --line: #333b42;
  --line-strong: #58616a;
  --red: #ff6a5f;
  --blue: #75b7ff;
  --green: #74d797;
  --amber: #f0b651;
  --navy: #092944;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  --focus: #75b7ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px) 0 0 / 88px 88px,
    var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 36%, transparent), transparent 420px),
    radial-gradient(circle at 40% 0, rgba(207, 31, 31, 0.08), transparent 280px);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

button,
input {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 50;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--canvas);
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

.site-header,
.section-shell,
.site-footer {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
}

.site-header nav a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--red);
}

.nav-toggle {
  display: none;
}

.theme-toggle {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--canvas);
  color: var(--ink);
  padding: 0 13px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

#command-open {
  border-radius: 4px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 0 22px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.button.primary {
  border-color: var(--red);
  background: var(--red);
  color: #ffffff;
}

.button.primary::after {
  content: '->';
  margin-left: 10px;
}

.button.secondary {
  background: color-mix(in srgb, var(--canvas) 84%, transparent);
}

.command-palette {
  position: fixed;
  top: 92px;
  left: 50%;
  z-index: 40;
  width: min(640px, calc(100% - 32px));
  transform: translateX(-50%);
  border: 1px solid var(--line-strong);
  background: var(--canvas);
  box-shadow: var(--shadow);
  padding: 18px;
}

.command-palette label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.command-palette input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--canvas);
  color: var(--ink);
  padding: 12px;
}

.command-palette ul {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.command-palette a {
  display: block;
  padding: 10px;
  text-decoration: none;
}

.continue {
  margin-top: 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(580px, 1.28fr);
  gap: clamp(32px, 5.2vw, 76px);
  align-items: center;
  min-height: min(680px, calc(100vh - 72px));
  padding: clamp(22px, 3.8vw, 48px) 0 28px;
  border-bottom: 1px solid var(--line);
}

.hero-copy h1 {
  max-width: 680px;
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 4.75vw, 5.1rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy h1::after {
  content: '';
  display: block;
  width: 32px;
  height: 4px;
  margin-top: 22px;
  background: var(--red);
}

.hero-detail {
  max-width: 560px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.7vw, 1.5rem);
  line-height: 1.36;
}

.hero-actions,
.hero-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.hero-principles {
  margin: 34px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-principles li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  min-width: 178px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.hero-principles span {
  color: var(--ink);
  font-size: 1.1rem;
}

.product-orbit {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle, color-mix(in srgb, var(--line) 44%, transparent) 1px, transparent 1px)
      0 0 / 14px 14px;
}

.product-orbit::before,
.product-orbit::after {
  content: '';
  position: absolute;
  background: var(--blue);
  opacity: 0.62;
  transform-origin: left center;
}

.product-orbit::before {
  top: 204px;
  left: 166px;
  width: 238px;
  height: 2px;
}

.product-orbit::after {
  top: 252px;
  left: 420px;
  width: 222px;
  height: 2px;
  background: var(--green);
}

.map-column {
  position: absolute;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-column-documents {
  top: 18px;
  left: 118px;
}

.map-column-routes {
  top: 18px;
  right: 180px;
  color: var(--green);
}

.map-column-deadlines {
  left: 450px;
  bottom: 140px;
  color: var(--amber);
}

.orbit-shield {
  position: absolute;
  top: 150px;
  left: 365px;
  z-index: 3;
  display: grid;
  width: 136px;
  height: 136px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--canvas);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--canvas) 82%, transparent);
}

.orbit-shield svg {
  width: 72px;
  height: 82px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orbit-shield::after {
  content: 'Your case\a Everything stays on your device';
  white-space: pre;
  position: absolute;
  top: 88px;
  width: 132px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.product-card,
.terminal-card {
  position: absolute;
  z-index: 5;
  width: 190px;
  min-height: 86px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: color-mix(in srgb, var(--canvas) 94%, transparent);
  padding: 14px 14px 12px 54px;
  box-shadow: 0 4px 18px rgba(17, 17, 17, 0.05);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.product-card::before,
.terminal-card::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 14px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: var(--blue);
  box-shadow: inset 0 -8px 0 rgba(255, 255, 255, 0.16);
}

.product-card::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 22px;
  width: 12px;
  height: 13px;
  border: 2px solid #ffffff;
  border-top-width: 5px;
}

.product-card span,
.terminal-card span {
  display: block;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.product-card strong,
.terminal-card strong {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.product-card a,
.product-card small,
.terminal-card em {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  text-decoration: none;
}

.product-card i,
.score-line b,
.path-line b,
.swatches b {
  display: inline-block;
  background: var(--line);
}

.product-card i {
  width: 36px;
  height: 4px;
  margin: 8px 4px 0 0;
}

.score-line,
.path-line,
.swatches {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
}

.score-line b,
.path-line b {
  width: 20px;
  height: 5px;
}

.score-line em {
  color: var(--green);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

.swatches b {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.swatches b:nth-child(1) {
  background: var(--blue);
}

.swatches b:nth-child(2) {
  background: var(--green);
}

.swatches b:nth-child(3) {
  background: var(--amber);
}

.swatches b:nth-child(4) {
  background: var(--red);
}

.card-letter {
  top: 56px;
  left: 64px;
}

.card-forms {
  top: 146px;
  left: 64px;
}

.card-template {
  top: 226px;
  left: 64px;
}

.card-map {
  top: 68px;
  right: 72px;
}

.card-design {
  top: 158px;
  right: 72px;
}

.card-foi {
  left: 270px;
  bottom: 30px;
}

.card-case {
  left: 462px;
  bottom: 30px;
}

.card-map::before,
.card-design::before {
  background: var(--green);
}

.card-foi::before,
.card-case::before {
  background: var(--amber);
}

.terminal-card {
  right: 14px;
  bottom: 112px;
  width: 204px;
  border-style: dashed;
}

.terminal-card::before {
  background: transparent;
  border: 2px solid var(--line-strong);
  box-shadow: none;
}

.product-card:hover,
.terminal-card:hover {
  transform: translateY(-3px);
  border-color: currentColor;
  box-shadow: var(--shadow);
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-kicker.green {
  color: var(--green);
}

.section-kicker.cyan {
  color: var(--blue);
}

.section-kicker.violet,
.section-kicker.lime {
  color: var(--red);
}

.toolkit,
.workflows,
.open-design,
.vision,
.github,
.roadmap {
  padding: clamp(34px, 5.4vw, 80px) 0;
  border-bottom: 1px solid var(--line);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-bottom: 24px;
}

.split-heading h2,
.open-design h2,
.github h2,
.roadmap h2,
.vision h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 3.6rem);
  line-height: 1.03;
}

.split-heading p,
.open-design p,
.github p,
.roadmap p,
.vision p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

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

.tool-card {
  min-height: 168px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  padding: 22px 20px;
  color: var(--ink);
  text-align: left;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.tool-card:last-child {
  border-right: 0;
}

.tool-card:hover,
.tool-card.is-active {
  background: color-mix(in srgb, var(--paper) 74%, transparent);
}

.tool-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
}

.tool-icon.green,
.tool-icon.lime,
.tool-icon.cyan {
  background: var(--green);
}

.tool-icon.amber {
  background: var(--amber);
}

.tool-icon.violet,
.tool-icon.rose {
  background: #56616b;
}

.tool-card h3 {
  margin: 0 0 7px;
  font-size: 0.92rem;
  line-height: 1.2;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.tool-meta {
  margin-top: 8px !important;
  color: var(--faint) !important;
  font-size: 0.7rem !important;
  text-transform: capitalize;
}

.tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.tool-links a {
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 900;
  text-decoration: none;
}

.tool-links a::after {
  content: ' ->';
}

.workflows {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 34px;
}

.workflows > .section-kicker,
.workflows > .split-heading {
  grid-column: 1;
}

.workflows > .split-heading {
  display: block;
  margin: 0;
}

.workflow-board,
.workflow-detail {
  grid-column: 2;
}

.workflow-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.workflow-card {
  position: relative;
  min-height: 168px;
  border: 0;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  color: var(--ink);
  padding: 22px 18px 18px;
  text-align: left;
  cursor: pointer;
}

.workflow-card:last-child {
  border-right: 0;
}

.workflow-card span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.workflow-card strong {
  display: block;
  margin-bottom: 7px;
}

.workflow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.workflow-card.is-selected {
  box-shadow: inset 0 0 0 3px var(--blue);
  background: var(--canvas);
}

.workflow-card.is-selected span {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.workflow-detail {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  padding: 24px;
}

.workflow-detail h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.workflow-detail p {
  margin: 0 0 16px;
  color: var(--muted);
}

.workflow-detail ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.workflow-detail li {
  counter-increment: steps;
  border-left: 2px solid var(--line-strong);
  padding-left: 12px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.workflow-detail li::before {
  content: counter(steps) '. ';
  color: var(--red);
}

.design-layout,
.github-layout,
.roadmap {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--ink);
  font-weight: 800;
}

.check-list li::before {
  content: '✓';
  margin-right: 10px;
  color: var(--green);
}

.code-window,
.repo-window,
.privacy-centre {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 8px 28px rgba(17, 17, 17, 0.04);
}

.code-window {
  overflow: hidden;
  padding: 0;
}

.window-bar,
.repo-window-head {
  display: flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

.window-bar span,
.repo-window-head span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.window-bar span:nth-child(2) {
  background: var(--amber);
}

.window-bar span:nth-child(3) {
  background: var(--green);
}

.code-window pre {
  margin: 0;
  overflow: auto;
  padding: 22px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.code-window button {
  margin: 0 22px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--canvas);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.vision {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
}

.vision figure {
  margin: 0;
}

.vision img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.repo-window {
  display: grid;
  overflow: hidden;
}

.repo-window-head strong {
  font-size: 0.86rem;
}

.repo-window a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.repo-window a:last-child {
  border-bottom: 0;
}

.repo-window em {
  color: var(--green);
  font-size: 0.78rem;
  font-style: normal;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.timeline article {
  min-height: 160px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--canvas) 90%, transparent);
  padding: 22px;
}

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

.timeline h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.timeline p {
  font-size: 0.88rem;
}

.dot {
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--blue);
}

.dot.next {
  background: var(--green);
}

.dot.later {
  background: var(--amber);
}

.privacy-centre {
  grid-column: 2;
  margin-top: 18px;
  padding: 18px;
}

.privacy-centre h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.privacy-centre ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.privacy-centre li {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.privacy-centre button {
  border: 1px solid var(--red);
  border-radius: 4px;
  background: transparent;
  color: var(--red);
  padding: 9px 12px;
  font-weight: 900;
  cursor: pointer;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 50px;
  margin-top: 0;
  padding: 34px 0 24px;
  background: var(--navy);
  color: #ffffff;
}

.site-footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
}

.site-footer .brand,
.site-footer p,
.site-footer a {
  color: #ffffff;
}

.site-footer p {
  max-width: 360px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 28px;
}

.site-footer nav a {
  font-size: 0.86rem;
  text-decoration: none;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .product-orbit {
    min-height: 500px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-card:nth-child(2n) {
    border-right: 0;
  }

  .tool-card {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 880px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    min-height: 0;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: var(--canvas);
    color: var(--ink);
    padding: 0 12px;
    font-weight: 800;
  }

  .site-header nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }

  .site-header nav.is-open {
    display: flex;
  }

  .site-header nav a {
    min-height: 44px;
    padding: 10px 0;
  }

  .theme-toggle {
    min-height: 38px;
    padding-inline: 12px;
  }

  .hero-copy h1 {
    font-size: clamp(2.65rem, 11.2vw, 4.25rem);
  }

  .product-orbit {
    display: flex;
    gap: 10px;
    min-height: 0;
    margin-top: 8px;
    padding: 16px 0 10px;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .product-orbit::before,
  .product-orbit::after,
  .map-column,
  .orbit-shield {
    display: none;
  }

  .product-card,
  .terminal-card {
    position: relative;
    inset: auto;
    flex: 0 0 min(250px, 78vw);
    width: auto;
    min-height: 96px;
    scroll-snap-align: start;
  }

  .split-heading,
  .workflows,
  .design-layout,
  .github-layout,
  .roadmap,
  .vision {
    grid-template-columns: 1fr;
  }

  .workflows > .section-kicker,
  .workflows > .split-heading,
  .workflow-board,
  .workflow-detail,
  .privacy-centre {
    grid-column: auto;
  }

  .workflow-board,
  .workflow-detail ol,
  .timeline,
  .site-footer,
  .site-footer nav {
    grid-template-columns: 1fr;
  }

  .workflow-card,
  .timeline article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow-card:last-child,
  .timeline article:last-child {
    border-bottom: 0;
  }

  .tool-card {
    min-height: 146px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 14px;
    background-size: 88px 88px;
  }

  .site-header,
  .section-shell,
  .site-footer {
    width: min(var(--max), calc(100% - 32px));
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    padding: 10px 0;
  }

  .brand {
    min-width: 0;
    gap: 8px;
    font-size: clamp(1.25rem, 6vw, 1.55rem);
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-mark {
    width: 20px;
    height: 20px;
  }

  .nav-toggle,
  .theme-toggle {
    min-height: 38px;
    padding-inline: 11px;
  }

  #theme-toggle {
    width: 40px;
    padding: 0;
    overflow: hidden;
    border-radius: 50%;
    background:
      radial-gradient(circle, var(--ink) 0 6px, transparent 6.5px) center / 18px 18px no-repeat,
      var(--canvas);
    color: transparent;
    white-space: nowrap;
  }

  #theme-toggle::before {
    content: none;
  }

  #command-open {
    display: none;
  }

  .hero {
    gap: 18px;
    padding: 22px 0 18px;
  }

  .hero-copy h1 {
    max-width: 10ch;
    margin-bottom: 16px;
    font-size: clamp(2.85rem, 12vw, 3.55rem);
    line-height: 0.94;
  }

  .hero-copy h1::after {
    width: 30px;
    height: 4px;
    margin-top: 16px;
  }

  .hero-detail {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.48;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .button {
    width: 100%;
    min-height: 48px;
  }

  .hero-principles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 22px;
    padding-top: 14px;
  }

  .hero-principles li {
    width: 100%;
    min-width: 0;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    font-size: 0.88rem;
  }

  .product-orbit {
    margin-inline: -16px;
    padding: 14px 16px 12px;
  }

  .product-card,
  .terminal-card {
    flex-basis: 224px;
    min-height: 88px;
    padding: 13px 13px 12px 50px;
  }

  .product-card:nth-of-type(n + 5) {
    display: none;
  }

  .product-card span,
  .terminal-card span {
    font-size: 0.84rem;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0 14px;
    min-height: 0;
    border-right: 0;
    padding: 18px 0;
  }

  .tool-icon {
    grid-row: span 4;
    width: 40px;
    height: 40px;
    margin: 0;
  }

  .tool-card h3 {
    margin-bottom: 6px;
    font-size: 1rem;
  }

  .tool-card p,
  .tool-meta,
  .tool-links {
    grid-column: 2;
  }

  .tool-card p {
    font-size: 0.88rem;
  }

  .tool-links a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
  }

  .toolkit,
  .workflows,
  .open-design,
  .vision,
  .github,
  .roadmap {
    padding: 32px 0;
  }

  .split-heading {
    gap: 12px;
    margin-bottom: 18px;
  }

  .split-heading h2,
  .open-design h2,
  .github h2,
  .roadmap h2,
  .vision h2 {
    font-size: clamp(1.9rem, 9vw, 2.55rem);
  }

  .workflow-board {
    border-radius: 0;
  }

  .workflow-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0 12px;
    min-height: 0;
    padding: 16px;
  }

  .workflow-card span {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    margin: 0;
    font-size: 1.1rem;
  }

  .workflow-card p {
    grid-column: 2;
    font-size: 0.84rem;
  }

  .workflow-detail {
    padding: 18px 16px;
  }

  .workflow-detail h3 {
    font-size: 1.55rem;
  }

  .workflow-detail li {
    font-size: 0.9rem;
  }

  .code-window pre {
    padding: 16px;
    font-size: 0.78rem;
  }

  .repo-window a,
  .timeline article,
  .privacy-centre {
    padding: 16px;
  }

  .site-footer {
    padding: 28px 0 24px;
  }

  .site-footer nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
  }
}

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

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .nav-toggle,
  .theme-toggle,
  #command-open,
  .command-palette {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  a::after {
    content: ' (' attr(href) ')';
    font-size: 9pt;
  }
}
