:root {
  color-scheme: dark;
  --bg: #061211;
  --panel: #0d1d1b;
  --panel-2: #122823;
  --ink: #f3f7ef;
  --muted: #a7b7af;
  --line: rgba(238, 246, 236, 0.16);
  --green: #61d36f;
  --cyan: #54c5dc;
  --yellow: #f0c84b;
  --red: #e8674f;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

main {
  max-width: 100%;
}

.machine-layout,
.diagram-layout,
.machine-copy,
.section-heading,
.stack-copy {
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 68px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 18, 17, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  color: var(--muted);
  font-size: 14px;
}

nav a {
  padding: 8px 0;
}

nav a:hover,
footer a:hover,
.lang-toggle:hover {
  color: var(--ink);
}

.lang-toggle {
  min-width: 44px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: clamp(620px, 82svh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 18, 17, 0.96) 0%, rgba(6, 18, 17, 0.72) 42%, rgba(6, 18, 17, 0.32) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(6, 18, 17, 0.18) 38%, rgba(6, 18, 17, 0.05) 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 50%;
  filter: saturate(1.05) contrast(1.08);
}

.hero-content {
  width: min(var(--max), 100%);
  padding: 9vh clamp(20px, 5vw, 64px) 13vh;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(64px, 12vw, 146px);
  line-height: 0.86;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin-bottom: 32px;
  color: #d8e3dd;
  font-size: clamp(18px, 2.2vw, 24px);
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 760;
}

.button.primary {
  border-color: transparent;
  background: var(--green);
  color: #041210;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #081716;
}

.metrics div {
  min-height: 118px;
  padding: 22px clamp(18px, 3vw, 40px);
  border-right: 1px solid var(--line);
}

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

.metrics strong {
  display: block;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  width: min(var(--max), calc(100vw - 40px));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 132px) 0;
}

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

.machine-layout,
.diagram-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: stretch;
}

.machine-copy {
  min-width: 0;
}

.improvement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.improvement-grid article {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.improvement-grid strong {
  display: block;
  color: var(--green);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 0.96;
}

.improvement-grid span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.machine-photo,
.diagram-card {
  min-height: 100%;
}

.machine-photo img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

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

.breakthrough-grid article {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(84, 197, 220, 0.08), rgba(255, 255, 255, 0.018));
}

.breakthrough-grid span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

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

.diagram-card img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: contain;
  padding: clamp(10px, 2vw, 22px);
  background: #050a09;
}

.diagram-notes {
  display: grid;
  gap: 14px;
  align-content: stretch;
}

.diagram-notes article {
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.45fr);
  gap: clamp(32px, 6vw, 80px);
}

h2 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.machine-copy h2,
.diagram-section h2 {
  font-size: clamp(32px, 5vw, 60px);
}

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

.system-grid article {
  min-height: 254px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.system-grid span {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
}

h3 {
  margin: 36px 0 12px;
  font-size: 22px;
  line-height: 1.12;
}

.system-grid p,
.breakthrough-grid p,
.diagram-notes p,
.timeline p,
.stack-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.gallery-band {
  width: 100%;
  max-width: none;
  padding-left: clamp(20px, 4vw, 56px);
  padding-right: clamp(20px, 4vw, 56px);
  background: #0a1917;
}

.section-heading {
  width: min(var(--max), 100%);
  margin: 0 auto 30px;
}

.section-copy {
  max-width: 720px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.gallery {
  width: min(1420px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery .wide {
  grid-column: span 2;
}

figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

figure img {
  width: 100%;
  height: clamp(260px, 30vw, 440px);
  object-fit: cover;
}

figure:not(.wide) img {
  height: clamp(260px, 30vw, 440px);
}

figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 14px;
}

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

.posters-section {
  width: 100%;
  max-width: none;
  padding-left: clamp(20px, 4vw, 56px);
  padding-right: clamp(20px, 4vw, 56px);
}

.poster-grid {
  width: min(var(--max), 100%);
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 14px;
}

.poster-card {
  display: grid;
  grid-template-columns: minmax(170px, 0.92fr) minmax(220px, 0.58fr);
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.poster-card img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  object-position: center;
  background: #050a09;
}

.poster-meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: 24px;
}

.poster-meta time {
  color: var(--cyan);
}

.poster-meta h3 {
  margin-top: 56px;
}

.poster-meta p {
  margin-bottom: 24px;
  color: var(--muted);
}

.poster-meta span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 760;
}

.poster-placeholder {
  grid-template-columns: 1fr;
  background: linear-gradient(180deg, rgba(97, 211, 111, 0.08), rgba(255, 255, 255, 0.02));
}

.poster-empty {
  display: grid;
  place-items: center;
  min-height: 160px;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-size: 88px;
  font-weight: 300;
  line-height: 1;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.timeline li {
  min-height: 318px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

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

time {
  display: block;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
}

.timeline h3 {
  margin-top: 84px;
}

.stack-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
}

.stack-list {
  display: grid;
  gap: 14px;
}

.stack-list div {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  min-height: 116px;
  gap: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.stack-list img {
  max-width: 88px;
  max-height: 72px;
  object-fit: contain;
}

.stack-list span {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 820;
  line-height: 1.08;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  justify-content: flex-end;
}

footer strong {
  color: var(--ink);
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding-top: 160px;
  }

  .metrics,
  .split,
  .machine-layout,
  .diagram-layout,
  .gallery,
  .breakthrough-grid,
  .timeline,
  .stack-section,
  .poster-grid {
    grid-template-columns: 1fr;
  }

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

  .gallery .wide {
    grid-column: auto;
  }

  .poster-card {
    grid-template-columns: 1fr;
  }

  .metrics div,
  .timeline li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics div:last-child,
  .timeline li:last-child {
    border-bottom: 0;
  }

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

  .timeline li {
    min-height: 220px;
  }

  .machine-photo img,
  .diagram-card img {
    min-height: 360px;
  }

  .timeline h3 {
    margin-top: 48px;
  }
}

@media (max-width: 560px) {
  nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero {
    min-height: 720px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(6, 18, 17, 0.28) 0%, rgba(6, 18, 17, 0.82) 44%, var(--bg) 100%),
      linear-gradient(90deg, rgba(6, 18, 17, 0.88), rgba(6, 18, 17, 0.28));
  }

  .hero-media img {
    object-position: 60% 0;
  }

  .hero-content {
    width: 100vw;
    max-width: 100vw;
    padding-top: 260px;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 70px;
  }

  .lead {
    max-width: calc(100vw - 48px);
    font-size: 17px;
    word-break: break-word;
  }

  h2,
  .machine-copy h2,
  .diagram-section h2 {
    max-width: 100%;
    font-size: 30px;
    line-height: 1.08;
    word-break: break-all;
  }

  .hero-actions {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }

  .eyebrow {
    max-width: 310px;
    font-size: 11px;
  }

  .button {
    width: 100%;
    max-width: 100%;
  }

  .section {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    overflow-x: hidden;
  }

  .machine-copy,
  .machine-layout,
  .machine-copy h2,
  .section-copy,
  .breakthrough-grid,
  .diagram-layout,
  .diagram-notes,
  .gallery {
    max-width: 100%;
  }

  .machine-layout,
  .machine-copy {
    width: 100%;
  }

  .section-copy {
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .system-grid article {
    min-height: 220px;
  }

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

  .breakthrough-grid article {
    min-height: 0;
  }

  figure img,
  figure:not(.wide) img {
    height: 300px;
  }

  .stack-list div {
    grid-template-columns: 64px 1fr;
    gap: 16px;
  }

  .poster-card,
  .poster-card img {
    min-height: 0;
  }

  .poster-card img {
    height: 330px;
  }

  .poster-meta h3 {
    margin-top: 36px;
  }

  .stack-list img {
    max-width: 64px;
  }

  footer {
    flex-direction: column;
  }
}
