:root {
  color-scheme: light;
  --paper: #fafafa;
  --paper-soft: #f1f4f2;
  --ink: #111111;
  --muted: #5d625f;
  --line: #171717;
  --line-soft: rgba(17, 17, 17, 0.16);
  --accent-blue: #246bfe;
  --accent-green: #16845b;
  --accent-red: #d1493f;
  --accent-yellow: #d4a017;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.16);
  --max: 1180px;
}

* {
  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 / 48px 48px,
    linear-gradient(rgba(17, 17, 17, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--paper);
  color: var(--ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  backdrop-filter: blur(14px);
}

.brand,
.site-nav {
  border: 1px solid var(--line);
  background: rgba(250, 250, 250, 0.88);
  box-shadow: 5px 5px 0 var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
}

.brand-mark::after {
  position: absolute;
  inset: 4px;
  background: var(--line);
  content: "";
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 42px;
  overflow: hidden;
}

.site-nav a {
  display: grid;
  min-width: 78px;
  min-height: 42px;
  place-items: center;
  border-left: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.site-nav a:first-child {
  border-left: 0;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline: 0;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(860px, calc(100svh - 86px));
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 6vw, 78px);
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(42px, 8vh, 86px) 0 32px;
}

.hero-grid {
  position: absolute;
  inset: 18px -18px 70px;
  z-index: -3;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.08) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(rgba(17, 17, 17, 0.08) 1px, transparent 1px) 0 0 / 38px 38px,
    rgba(255, 255, 255, 0.52);
}

.hero-illustration {
  position: absolute;
  inset: 44px 0 auto auto;
  z-index: -2;
  width: min(72vw, 820px);
  opacity: 0.22;
}

.hero-copy {
  align-self: center;
  padding-bottom: 96px;
}

.eyebrow,
.section-kicker,
.plate-label {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  border-bottom: 2px solid var(--line);
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.96;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(56px, 8vw, 116px);
}

h2 {
  max-width: 840px;
  margin-bottom: 22px;
  font-size: clamp(40px, 5vw, 74px);
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.12;
}

.hero-lede,
.section-heading p,
.roadmap-copy p {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
}

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

.text-link {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  padding: 0 16px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--line);
  font-size: 14px;
  font-weight: 800;
}

.hero-screens {
  position: relative;
  align-self: center;
  min-height: min(68svh, 640px);
  transform-style: preserve-3d;
}

.phone-shot {
  position: absolute;
  width: min(54vw, 292px);
  margin: 0;
  border: 2px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow), 8px 8px 0 var(--line);
  overflow: hidden;
  transition: transform 500ms ease;
}

.phone-shot img {
  width: 100%;
  aspect-ratio: 1284 / 2778;
  object-fit: cover;
}

.primary-shot {
  top: 0;
  right: 26%;
  z-index: 3;
  transform: rotate(-3deg);
}

.secondary-shot {
  top: 12%;
  right: 0;
  z-index: 2;
  transform: rotate(5deg) scale(0.9);
}

.tertiary-shot {
  top: 30%;
  right: 48%;
  z-index: 1;
  transform: rotate(-7deg) scale(0.84);
}

.hero-screens:hover .primary-shot {
  transform: translate(-8px, -12px) rotate(-4deg);
}

.hero-screens:hover .secondary-shot {
  transform: translate(20px, 8px) rotate(7deg) scale(0.9);
}

.hero-screens:hover .tertiary-shot {
  transform: translate(-24px, 16px) rotate(-8deg) scale(0.84);
}

.hero-index {
  position: absolute;
  right: 0;
  bottom: 26px;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 250, 250, 0.82);
}

.hero-index span {
  min-height: 42px;
  border-left: 1px solid var(--line);
  padding: 11px 14px;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-size: 12px;
  font-weight: 800;
}

.hero-index span:first-child {
  border-left: 0;
}

.hero-svg {
  overflow: visible;
}

.hero-svg path,
.hero-svg rect,
.hero-svg circle {
  fill: none;
  stroke: var(--line);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.hero-svg marker path {
  fill: var(--line);
  stroke: none;
}

.hero-svg .draw {
  marker-end: url("#arrow");
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw-line 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-svg .draw-delay-1 {
  animation-delay: 340ms;
}

.hero-svg .draw-delay-2 {
  animation-delay: 680ms;
}

.hero-svg .node {
  animation: float-node 7s ease-in-out infinite;
}

.hero-svg .node-b {
  animation-delay: -1.4s;
}

.hero-svg .node-c {
  animation-delay: -2.2s;
}

.pulse-dot circle:first-child {
  fill: var(--accent-blue);
  stroke: none;
}

.pulse-dot circle:last-child {
  stroke: var(--accent-blue);
  animation: pulse-ring 2.4s ease-out infinite;
}

.opening-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--paper);
}

.opening-strip div {
  display: grid;
  min-height: 118px;
  align-content: center;
  border-left: 1px solid var(--line);
  padding: 20px;
}

.opening-strip div:first-child {
  border-left: 0;
}

.strip-number {
  display: block;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 900;
  line-height: 1;
}

.manual-section,
.screens-section,
.modules-section,
.technology-section,
.roadmap-section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(88px, 12vw, 150px) 0;
}

.section-kicker {
  margin-bottom: 20px;
  color: var(--accent-blue);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 5vw, 78px);
  margin-bottom: clamp(38px, 6vw, 72px);
}

.section-heading.compact {
  align-items: end;
}

.system-layout,
.technology-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.technology-layout .section-heading {
  display: block;
  margin-bottom: 0;
}

.technology-layout h2 {
  max-width: 520px;
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 1;
}

.system-diagram {
  position: sticky;
  top: 108px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 8px 8px 0 var(--line);
}

.system-copy {
  display: grid;
  gap: 22px;
}

.system-copy article {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 24px 0 0 64px;
}

.chapter-number {
  position: absolute;
  top: 24px;
  left: 0;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--line);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-weight: 900;
}

.system-copy p,
.module-plate p,
.tech-list dd,
.screen-card figcaption {
  color: var(--muted);
}

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(246px, 1fr));
  gap: 18px;
  margin-right: calc((100vw - min(var(--max), calc(100vw - 32px))) / -2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 16px 18px 0;
}

.screen-gallery::-webkit-scrollbar {
  height: 10px;
}

.screen-gallery::-webkit-scrollbar-thumb {
  background: var(--line);
}

.screen-gallery::-webkit-scrollbar-track {
  border: 1px solid var(--line);
  background: transparent;
}

.screen-card {
  min-width: 246px;
  margin: 0;
  scroll-snap-align: start;
}

.screen-card img {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 6px 6px 0 var(--line);
  aspect-ratio: 1284 / 2778;
  object-fit: cover;
}

.screen-card figcaption {
  margin-top: 18px;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  font-size: 14px;
}

.screen-card figcaption span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-size: 12px;
  font-weight: 900;
}

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

.module-plate {
  display: grid;
  align-content: start;
  min-height: 560px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 7px 7px 0 var(--line);
}

.module-plate img {
  width: 100%;
  border-bottom: 1px solid var(--line);
}

.module-plate .plate-label,
.module-plate h3,
.module-plate p {
  margin-right: 22px;
  margin-left: 22px;
}

.module-plate .plate-label {
  margin-top: 24px;
  margin-bottom: 16px;
  color: var(--accent-green);
}

.tech-list {
  margin: 0;
}

.tech-list div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 22px;
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.tech-list dt {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-size: 13px;
  font-weight: 900;
}

.tech-list dd {
  margin: 0;
}

.roadmap-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.68fr);
  gap: clamp(32px, 7vw, 96px);
  border-top: 1px solid var(--line);
}

.roadmap-copy {
  grid-column: 2;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 26px 0 36px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.site-footer a {
  border-bottom: 1px solid currentColor;
}

html.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 760ms ease,
    transform 760ms ease;
}

html.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes float-node {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-ring {
  0% {
    opacity: 0.8;
    transform: scale(0.4);
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

@media (max-width: 920px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav {
    overflow-x: auto;
  }

  .site-nav a {
    min-width: 25%;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-screens {
    min-height: 520px;
  }

  .phone-shot {
    width: min(46vw, 220px);
  }

  .hero-index,
  .opening-strip,
  .section-heading,
  .system-layout,
  .technology-layout,
  .roadmap-section,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .hero-index {
    position: static;
    margin-top: 22px;
  }

  .system-diagram {
    position: relative;
    top: auto;
  }

  .roadmap-copy {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .site-nav a {
    min-width: 92px;
  }

  .hero {
    width: min(100% - 24px, var(--max));
    padding-top: 24px;
  }

  .hero-grid {
    inset: 8px -8px 54px;
  }

  h1 {
    font-size: clamp(46px, 15vw, 70px);
  }

  .hero-lede,
  .section-heading p,
  .roadmap-copy p {
    font-size: 16px;
  }

  .hero-screens {
    min-height: 410px;
  }

  .phone-shot {
    width: min(58vw, 190px);
  }

  .primary-shot {
    right: 18%;
  }

  .secondary-shot {
    right: -2%;
  }

  .tertiary-shot {
    right: 43%;
  }

  .opening-strip div {
    min-height: 88px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .opening-strip div:first-child {
    border-top: 0;
  }

  .manual-section,
  .screens-section,
  .modules-section,
  .technology-section,
  .roadmap-section {
    width: min(100% - 24px, var(--max));
    padding: 78px 0;
  }

  .system-copy article {
    padding-left: 0;
  }

  .chapter-number {
    position: static;
    margin-bottom: 18px;
  }

  .module-plate {
    min-height: auto;
  }

  .tech-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    width: min(100% - 24px, var(--max));
  }
}

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

  html.motion-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
