:root {
  color-scheme: dark;
  --bg: #070a0e;
  --bg-soft: #0c1117;
  --panel: #10171f;
  --panel-2: #131c25;
  --ink: #f2faf6;
  --copy: #b8c8c0;
  --muted: #8fa199;
  --muted-2: #64736d;
  --mint: #a1ffd6;
  --cyan: #79dfff;
  --accent-ink: #06100c;
  --line: rgba(161, 255, 214, 0.14);
  --line-strong: rgba(161, 255, 214, 0.3);
  --accent-haze: rgba(161, 255, 214, 0.09);
  --accent-faint: rgba(161, 255, 214, 0.04);
  --accent-border: rgba(161, 255, 214, 0.44);
  --accent-shadow: rgba(161, 255, 214, 0.14);
  --cyan-line: rgba(121, 223, 255, 0.25);
  --cyan-shadow: rgba(121, 223, 255, 0.7);
  --robot-color: rgba(161, 255, 214, 0.62);
  --code-accent: #a1ffd6;
  --glow-primary: rgba(58, 165, 138, 0.12);
  --glow-secondary: rgba(47, 120, 153, 0.1);
  --core-bg: rgba(13, 20, 28, 0.86);
  --card-bg: rgba(10, 15, 21, 0.45);
  --card-hover: rgba(161, 255, 214, 0.07);
  --card-gradient: linear-gradient(145deg, rgba(17, 24, 32, 0.92), rgba(8, 12, 17, 0.78));
  --feature-bg: #0a0f14;
  --feature-wordmark: rgba(161, 255, 214, 0.025);
  --telemetry-bg: rgba(7, 10, 14, 0.78);
  --mobile-menu-bg: rgba(8, 12, 17, 0.98);
  --note-bg: rgba(14, 20, 27, 0.72);
  --radius: 26px;
  --wrap: 1240px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f1;
  --bg-soft: #edf1eb;
  --panel: #ffffff;
  --panel-2: #e4ebe5;
  --ink: #101713;
  --copy: #34463d;
  --muted: #56665e;
  --muted-2: #758279;
  --mint: #087a55;
  --cyan: #087694;
  --accent-ink: #ffffff;
  --line: rgba(24, 66, 49, 0.14);
  --line-strong: rgba(11, 99, 69, 0.34);
  --accent-haze: rgba(8, 122, 85, 0.08);
  --accent-faint: rgba(8, 122, 85, 0.045);
  --accent-border: rgba(8, 122, 85, 0.4);
  --accent-shadow: rgba(8, 122, 85, 0.15);
  --cyan-line: rgba(8, 118, 148, 0.3);
  --cyan-shadow: rgba(8, 118, 148, 0.4);
  --robot-color: rgba(8, 122, 85, 0.72);
  --glow-primary: rgba(62, 174, 127, 0.12);
  --glow-secondary: rgba(47, 139, 174, 0.1);
  --core-bg: rgba(255, 255, 255, 0.88);
  --card-bg: rgba(255, 255, 255, 0.58);
  --card-hover: rgba(8, 122, 85, 0.08);
  --card-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(232, 239, 233, 0.82));
  --feature-bg: #e9eee9;
  --feature-wordmark: rgba(8, 122, 85, 0.045);
  --telemetry-bg: rgba(248, 251, 247, 0.88);
  --mobile-menu-bg: rgba(248, 250, 246, 0.98);
  --note-bg: rgba(255, 255, 255, 0.7);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 400 16px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 78% 8%, var(--glow-primary), transparent 32rem),
    radial-gradient(circle at 12% 82%, var(--glow-secondary), transparent 30rem),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.wrap { width: min(var(--wrap), calc(100% - 56px)); margin-inline: auto; }
.narrow { max-width: 900px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--accent-ink);
  background: var(--mint);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  width: max-content;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.brand span { color: var(--muted); font-weight: 500; }

.main-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.main-nav a, .site-footer nav a {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 180ms ease;
}
.main-nav a:hover, .main-nav a:focus-visible, .site-footer nav a:hover { color: var(--mint); }

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.system-status::before {
  content: "";
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 18px var(--mint);
}

.menu-toggle {
  display: none;
  padding: 8px 0;
  color: var(--ink);
  border: 0;
  background: transparent;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.theme-toggle {
  min-height: 36px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-bg);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.language-switcher { position: relative; }
.language-toggle {
  min-width: 52px;
  min-height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-bg);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}
.language-toggle:hover, .language-toggle:focus-visible, .language-toggle[aria-expanded="true"] {
  color: var(--ink);
  border-color: var(--line-strong);
}
.language-menu {
  width: 250px;
  max-height: min(520px, calc(100vh - 110px));
  padding: 8px;
  position: absolute;
  z-index: 50;
  top: calc(100% + 12px);
  inset-inline-end: 0;
  display: none;
  overflow-y: auto;
  direction: ltr;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--mobile-menu-bg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}
.language-menu.is-open { display: grid; }
.language-menu a {
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-radius: 11px;
  font: 500 13px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
}
.language-menu a:hover, .language-menu a:focus-visible { color: var(--ink); background: var(--card-hover); }
.language-menu a.is-current { color: var(--mint); background: var(--card-hover); }
.language-menu small { color: var(--muted-2); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .1em; }
.theme-toggle:hover, .theme-toggle:focus-visible {
  color: var(--ink);
  border-color: var(--line-strong);
}
.theme-icon { width: 15px; height: 15px; display: grid; place-items: center; }
.theme-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-icon-moon { display: none; }
:root[data-theme="light"] .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: block; }

.eyebrow {
  margin: 0 0 20px;
  color: var(--mint);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero {
  min-height: min(870px, calc(100vh - 84px));
  padding-block: clamp(76px, 9vw, 132px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(350px, 0.85fr);
  align-items: center;
  gap: clamp(50px, 8vw, 130px);
}

.hero h1, .page-head h1, .detail-head h1, .topic-head h1 {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(58px, 7.8vw, 112px);
  font-weight: 650;
  letter-spacing: -0.068em;
  line-height: 0.91;
}
.hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(112deg, var(--mint), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lead, .page-lead {
  max-width: 720px;
  margin: 34px 0 0;
  color: var(--copy);
  font: 400 clamp(17px, 1.5vw, 21px)/1.7 Inter, ui-sans-serif, system-ui, sans-serif;
}

.hero-actions { margin-top: 42px; display: flex; align-items: center; gap: 16px; }
.button-primary, .button-quiet {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.button-primary { color: var(--accent-ink); background: var(--mint); border-color: var(--mint); }
.button-primary:hover { background: var(--cyan); border-color: var(--cyan); }
.button-quiet { color: var(--muted); }
.button-quiet:hover { color: var(--ink); border-color: var(--muted); }

.machine {
  width: min(100%, 530px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-haze), transparent 66%);
  box-shadow: inset 0 0 90px var(--accent-faint);
}
.machine-ring {
  position: absolute;
  border: 1px dashed var(--cyan-line);
  border-radius: 50%;
  animation: orbit 28s linear infinite;
}
.ring-one { inset: 14%; }
.ring-two { inset: 31%; animation-direction: reverse; animation-duration: 18s; }
.machine-core {
  width: 31%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--mint);
  border: 1px solid var(--accent-border);
  border-radius: 28%;
  background: var(--core-bg);
  box-shadow: 0 0 60px var(--accent-shadow);
  transform: rotate(45deg);
}
.machine-core svg { width: 48%; transform: rotate(-45deg); }
.node {
  position: absolute;
  z-index: 2;
  width: 9px;
  aspect-ratio: 1;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 18px var(--cyan-shadow);
}
.node-one { top: 8%; left: 48%; }
.node-two { right: 11%; bottom: 26%; }
.node-three { left: 13%; bottom: 20%; }

.focus-section, .directions, .latest-section, .notes-section { padding-block: clamp(96px, 12vw, 180px); }
.focus-section { border-top: 1px solid var(--line); }
.focus-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 10vw; align-items: end; }
.focus-grid h2, .section-heading h2, .robotics-copy h2, .prose-block h2 {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(38px, 5.2vw, 76px);
  font-weight: 560;
  letter-spacing: -0.05em;
  line-height: 1.02;
}
.focus-grid p, .section-heading > p, .robotics-copy > p {
  margin: 0;
  color: var(--muted);
  font: 400 17px/1.75 Inter, ui-sans-serif, system-ui, sans-serif;
}

.directions { border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr 0.62fr; gap: 80px; align-items: end; margin-bottom: 64px; }
.section-heading.compact { grid-template-columns: 1fr auto; }
.section-heading .text-link { align-self: end; }

.direction-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.direction-card {
  min-height: 360px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card-bg);
  transition: background 220ms ease, transform 220ms ease;
}
.direction-card:hover { background: var(--card-hover); transform: translateY(-6px); }
.direction-number { color: var(--muted-2); font-size: 11px; letter-spacing: 0.14em; }
.direction-card h3, .project-card h3, .empty-project h3 {
  margin: auto 0 20px;
  font: 600 27px/1.08 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.035em;
}
.direction-card p, .project-card p, .empty-project p {
  margin: 0;
  color: var(--muted);
  font: 400 14px/1.65 Inter, ui-sans-serif, system-ui, sans-serif;
}
.card-link { margin-top: 26px; color: var(--mint); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

.robotics-feature { position: relative; padding-block: clamp(110px, 14vw, 210px); overflow: hidden; background: var(--feature-bg); border-block: 1px solid var(--line); }
.robotics-feature::before {
  content: "ROBOTICS";
  position: absolute;
  top: 1%;
  left: 50%;
  color: var(--feature-wordmark);
  font: 800 clamp(110px, 22vw, 360px)/1 Inter, sans-serif;
  letter-spacing: -0.08em;
  transform: translateX(-50%);
}
.robotics-grid { position: relative; display: grid; grid-template-columns: 1fr 0.92fr; gap: clamp(70px, 10vw, 160px); align-items: center; }
.robotics-visual {
  min-height: 620px;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--robot-color);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(var(--accent-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-faint) 1px, transparent 1px),
    radial-gradient(circle, var(--accent-haze), transparent 62%);
  background-size: 36px 36px, 36px 36px, auto;
  overflow: hidden;
}
.robotics-visual svg { width: min(82%, 500px); }
.scan-line { position: absolute; inset: 0 0 auto; height: 1px; background: var(--mint); box-shadow: 0 0 26px var(--mint); animation: scan 5s ease-in-out infinite; opacity: 0.55; }
.telemetry { position: absolute; padding: 7px 10px; color: var(--cyan); border: 1px solid var(--line-strong); background: var(--telemetry-bg); font-size: 9px; letter-spacing: .12em; }
.t-one { top: 22px; right: 22px; }
.t-two { bottom: 22px; left: 22px; }
.robotics-copy h2 { margin-bottom: 32px; }
.robotics-copy .text-link { margin-top: 36px; }

.text-link { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.text-link span { color: var(--mint); transition: transform 180ms ease; }
.text-link:hover span { transform: translate(3px, -3px); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card, .empty-project {
  min-height: 340px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-gradient);
}
.project-card { transition: border-color 180ms ease, transform 180ms ease; }
.project-card:hover { border-color: var(--line-strong); transform: translateY(-5px); }
.project-card-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.project-card h3, .empty-project h3 { margin-top: auto; }
.empty-project > span { color: var(--muted-2); font-size: 11px; }
.empty-project.ghost { opacity: .48; }

.notes-section { padding-top: 30px; }
.notes-list { border-top: 1px solid var(--line); }
.notes-list > a, .note-placeholder {
  min-height: 106px;
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 30px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.notes-list time, .notes-list span { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.notes-list strong { font: 500 20px/1.25 Inter, sans-serif; transition: color 180ms ease; }
.notes-list > a:hover strong { color: var(--mint); }

.site-footer {
  min-height: 260px;
  padding-block: 54px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 80px;
  align-items: end;
  border-top: 1px solid var(--line);
}
.site-footer > div > p { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.site-footer nav { display: grid; gap: 12px; }
.footer-meta { justify-self: end; margin: 0; color: var(--muted-2); font-size: 10px; line-height: 1.8; letter-spacing: .1em; text-align: right; }

.page-head, .detail-head, .topic-head { padding-block: clamp(100px, 12vw, 180px); }
.page-head h1, .detail-head h1, .topic-head h1 { font-size: clamp(58px, 8vw, 118px); }
.detail-meta { margin-bottom: 22px; display: flex; gap: 28px; color: var(--mint); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

.listing { padding-bottom: 160px; }
.project-row {
  min-height: 150px;
  padding: 26px 0;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 34px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.project-row:last-child { border-bottom: 1px solid var(--line); }
.project-row strong { display: block; font: 560 clamp(24px, 3vw, 42px)/1.1 Inter, sans-serif; letter-spacing: -.035em; }
.project-row small { max-width: 700px; margin-top: 12px; display: block; color: var(--muted); font: 400 14px/1.6 Inter, sans-serif; }
.project-year, .project-row .arrow { color: var(--muted); }
.project-row:hover strong { color: var(--mint); }

.notes-grid { padding-bottom: 160px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.note-card { min-height: 370px; padding: 28px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--note-bg); }
.note-meta { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.note-card h2 { margin: auto 0 18px; font: 560 29px/1.1 Inter, sans-serif; letter-spacing: -.035em; }
.note-card p { margin: 0 0 24px; color: var(--muted); font: 400 14px/1.65 Inter, sans-serif; }
.note-card:hover h2 { color: var(--mint); }

.empty-state { grid-column: 1 / -1; min-height: 260px; padding: 30px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.empty-state span { color: var(--mint); }

.detail-head { max-width: 1100px; }
.detail-head.narrow { max-width: 920px; }
.chip-list { margin: 34px 0 0; padding: 0; display: flex; gap: 9px; flex-wrap: wrap; list-style: none; }
.chip-list li { padding: 8px 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; }
.detail-visual { margin-bottom: 120px; }
.detail-visual img { width: 100%; max-height: 820px; object-fit: cover; border-radius: var(--radius); }

.topic-head { display: grid; grid-template-columns: 190px 1fr; gap: 70px; }
.topic-index { color: var(--mint); font-size: 14px; letter-spacing: .14em; }

.stream { padding-bottom: 80px; }
.stream-section { margin-block: 100px; }
.prose-block { max-width: 900px; }
.prose-block h2 { margin-bottom: 34px; font-size: clamp(34px, 4vw, 58px); }
.richtext { color: var(--copy); font: 400 18px/1.8 Inter, sans-serif; }
.richtext a { color: var(--mint); text-decoration: underline; text-underline-offset: 4px; }
.richtext h2, .richtext h3 { color: var(--ink); }
.richtext li + li { margin-top: 8px; }
.quote-block { max-width: 980px; padding-block: 50px; border-block: 1px solid var(--line); }
.quote-block blockquote { margin: 0; font: 500 clamp(30px, 4.5vw, 64px)/1.13 Inter, sans-serif; letter-spacing: -.045em; }
.quote-block figcaption { margin-top: 30px; color: var(--muted); }
.image-text { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.image-text.image-right img { order: 2; }
.image-text img { width: 100%; border-radius: var(--radius); }
.image-text h2 { font: 560 clamp(32px, 4vw, 58px)/1.05 Inter, sans-serif; letter-spacing: -.04em; }
.code-block { max-width: 1000px; padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #05080b; }
.code-language { padding: 12px 18px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.code-block pre { margin: 0; padding: 26px; overflow-x: auto; color: var(--code-accent); font-size: 13px; line-height: 1.7; }

.search-page, .error-page { min-height: 70vh; padding-block: clamp(80px, 10vw, 150px); }
.search-page h1, .error-page h1 { margin: 0 0 46px; font: 620 clamp(48px, 7vw, 96px)/.95 Inter, sans-serif; letter-spacing: -.055em; }
.search-page form { max-width: 760px; display: flex; gap: 12px; }
.search-page input[type="text"] { min-width: 0; flex: 1; min-height: 50px; padding: 0 18px; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; background: var(--card-bg); }
.search-page input[type="submit"] { min-height: 50px; padding: 0 22px; color: var(--accent-ink); border: 0; border-radius: 999px; background: var(--mint); cursor: pointer; }
.search-page ul { margin: 56px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.search-page li { padding-block: 24px; border-bottom: 1px solid var(--line); }

html[dir="rtl"] .eyebrow,
html[dir="rtl"] .main-nav a,
html[dir="rtl"] .site-footer nav a,
html[dir="rtl"] .text-link,
html[dir="rtl"] .card-link { letter-spacing: 0; }
html[dir="rtl"] .text-link:hover span { transform: translate(-3px, -3px); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes scan { 0%, 100% { top: 7%; } 50% { top: 92%; } }

@media (max-width: 1040px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .main-nav.is-open {
    position: absolute;
    z-index: 20;
    top: 84px;
    left: 28px;
    right: 28px;
    padding: 24px;
    display: grid;
    gap: 20px;
    background: var(--mobile-menu-bg);
    border: 1px solid var(--line);
    border-radius: 16px;
  }
  .menu-toggle { display: block; justify-self: end; }
  .system-status { display: none; }
  .hero { grid-template-columns: 1fr; }
  .machine { width: min(76vw, 520px); margin-inline: auto; }
  .direction-grid { grid-template-columns: repeat(2, 1fr); }
  .robotics-grid { grid-template-columns: 1fr; }
  .robotics-copy { max-width: 760px; }
  .project-grid, .notes-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: 1fr auto; }
  .footer-meta { grid-column: 1 / -1; justify-self: start; text-align: left; }
}

@media (max-width: 1180px) {
  .system-status { display: none; }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 28px, var(--wrap)); }
  .site-header { min-height: 70px; }
  .header-actions { gap: 10px; }
  .theme-toggle { width: 36px; padding: 0; justify-content: center; }
  .theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .main-nav.is-open { top: 70px; left: 14px; right: 14px; }
  .hero { min-height: 0; padding-block: 72px 90px; grid-template-columns: 1fr; gap: 70px; }
  .hero h1 { font-size: clamp(52px, 15vw, 78px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button-primary, .button-quiet { width: 100%; }
  .focus-grid, .section-heading, .section-heading.compact { grid-template-columns: 1fr; gap: 30px; }
  .section-heading { margin-bottom: 42px; }
  .direction-grid, .project-grid, .notes-grid { grid-template-columns: 1fr; }
  .direction-card { min-height: 300px; }
  .robotics-visual { min-height: 470px; }
  .notes-list > a, .note-placeholder { padding-block: 22px; grid-template-columns: 1fr; gap: 8px; }
  .site-footer { grid-template-columns: 1fr; gap: 38px; align-items: start; }
  .site-footer nav { grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px; }
  .footer-meta { grid-column: auto; }
  .page-head, .detail-head, .topic-head { padding-block: 90px 110px; }
  .page-head h1, .detail-head h1, .topic-head h1 { font-size: clamp(50px, 16vw, 78px); }
  .project-row { grid-template-columns: 1fr auto; }
  .project-year { grid-column: 1 / -1; }
  .topic-head { grid-template-columns: 1fr; gap: 22px; }
  .image-text { grid-template-columns: 1fr; gap: 34px; }
  .image-text.image-right img { order: initial; }
  .stream-section { margin-block: 70px; }
  .language-menu { position: fixed; top: 78px; left: 14px; right: 14px; width: auto; }
  .search-page form { flex-direction: column; }
}

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