:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --muted: #5c5c5c;
  --faint: #909090;
  --border: #dedede;
  --accent: #0767f9;
  --accent-dark: #0555ce;
  --shell: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(4.5rem, 8vw, 7.5rem);
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.shell {
  width: min(100%, calc(var(--shell) + (var(--gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--foreground);
  color: var(--background);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--border);
}

.header-inner {
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  color: var(--foreground);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  font-size: 0.875rem;
}

.site-nav a {
  position: relative;
  padding-block: 0.5rem;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 1px;
  margin: 0.4rem auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.hero {
  display: grid;
  min-height: min(48rem, calc(100vh - 4.75rem));
  align-items: center;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.88fr) minmax(26rem, 1.12fr);
  padding-block: clamp(4.5rem, 10vh, 8rem);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 5.4vw, 5.15rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero-copy > p {
  max-width: 34rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  letter-spacing: -0.018em;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.35rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--foreground);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.text-link:focus-visible,
.site-nav a:focus-visible,
.wordmark:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.button-primary {
  background: var(--foreground);
  color: var(--background);
}

.button-primary:hover {
  background: #252525;
}

.button-secondary {
  background: transparent;
  color: var(--foreground);
}

.button-secondary:hover {
  background: #f4f4f4;
}

.hero-system {
  color: #b8b8b8;
}

.hero-system svg {
  overflow: visible;
}

.system-lines path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw-system 2.2s cubic-bezier(0.22, 1, 0.36, 1) 220ms forwards;
}

.system-lines path:nth-child(2n) {
  animation-delay: 380ms;
}

.system-nodes circle {
  opacity: 0;
  animation: reveal-node 500ms ease 1.4s forwards;
}

.rule-section {
  border-top: 1px solid var(--border);
}

.split-statement {
  display: grid;
  gap: clamp(2rem, 6vw, 7rem);
  grid-template-columns: minmax(12rem, 0.62fr) minmax(18rem, 1.38fr);
  padding-block: var(--section-space);
}

.split-statement h2,
.factory-copy h2,
.product-copy h2,
.contact-layout h2 {
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.split-statement > p {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  letter-spacing: -0.022em;
  line-height: 1.6;
}

.product-layout {
  display: grid;
  gap: clamp(3rem, 7vw, 6rem);
  grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.5fr);
  padding-block: var(--section-space);
}

.section-label {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-copy h2 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
}

.product-lede {
  margin: 1.25rem 0 0;
  color: var(--foreground);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
}

.product-copy > p:not(.section-label):not(.product-lede) {
  max-width: 24rem;
  margin: 2rem 0 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.text-link svg {
  width: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
  transition: transform 180ms ease;
}

.text-link:hover svg {
  transform: translateX(4px);
}

.product-visual {
  margin: 0;
}

.browser-frame {
  overflow: hidden;
  border: 1px solid #cfcfcf;
  border-radius: 0.45rem;
  background: #0d0d0f;
  box-shadow: 0 2.5rem 5rem rgb(0 0 0 / 10%);
}

.browser-bar {
  display: grid;
  height: 2.75rem;
  align-items: center;
  border-bottom: 1px solid #2a2a2d;
  color: #85858a;
  grid-template-columns: repeat(3, 0.55rem) 1fr;
  gap: 0.45rem;
  padding-inline: 0.9rem;
}

.browser-bar span {
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid #55555a;
  border-radius: 50%;
}

.browser-bar div {
  margin-left: 0.6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.015em;
  text-align: center;
}

.browser-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.product-visual figcaption {
  margin-top: 1rem;
  color: var(--faint);
  font-size: 0.78rem;
}

.factory-layout {
  display: grid;
  gap: clamp(3rem, 6vw, 6rem);
  grid-template-columns: minmax(12rem, 0.55fr) minmax(0, 1.6fr);
  padding-block: var(--section-space);
}

.factory-copy h2 {
  max-width: 7ch;
}

.factory-copy > p {
  max-width: 19rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.factory-steps {
  display: grid;
  margin: 0;
  padding: 0;
  counter-reset: steps;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}

.factory-steps li {
  position: relative;
  min-width: 0;
  padding: 0 1.4rem 0 1.65rem;
  border-left: 1px solid var(--border);
}

.factory-steps li::after {
  position: absolute;
  top: 0.18rem;
  right: -0.28rem;
  width: 0.45rem;
  height: 0.45rem;
  border-top: 1px solid var(--foreground);
  border-right: 1px solid var(--foreground);
  content: "";
  transform: rotate(45deg);
}

.factory-steps li:last-child::after {
  display: none;
}

.step-number {
  display: block;
  margin-bottom: 1.1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.factory-steps h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.factory-steps p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.founder-section .split-statement p {
  max-width: 38rem;
}

.coming-section .split-statement {
  padding-block: clamp(3.5rem, 6vw, 5.25rem);
}

.coming-section .split-statement h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
}

.coming-section .split-statement p {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.contact-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.contact-layout {
  display: grid;
  min-height: 25rem;
  align-items: center;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.9fr);
  padding-block: var(--section-space);
}

.contact-layout h2 {
  max-width: 15ch;
}

.contact-system {
  align-self: end;
  color: #c0c0c0;
  margin-bottom: -1px;
}

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  min-height: 6rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

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

[data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes reveal-node {
  to {
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: clamp(4rem, 12vw, 7rem);
  }

  .hero-copy {
    max-width: 46rem;
  }

  .hero-system {
    width: min(100%, 42rem);
    margin: -2rem 0 -1rem auto;
  }

  .product-layout,
  .factory-layout {
    grid-template-columns: 1fr;
  }

  .product-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }

  .product-copy .section-label,
  .product-copy h2,
  .product-copy .product-lede {
    grid-column: 1;
  }

  .product-copy > p:not(.section-label):not(.product-lede),
  .product-copy .text-link {
    grid-column: 2;
  }

  .product-copy > p:not(.section-label):not(.product-lede) {
    grid-row: 1 / span 3;
    margin-top: 0;
  }

  .product-copy .text-link {
    align-self: end;
  }

  .factory-copy h2 {
    max-width: none;
  }

  .factory-copy > p {
    max-width: 42rem;
  }

  .factory-steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 3rem;
  }

  .factory-steps li:nth-child(3)::after {
    display: none;
  }

  .contact-layout {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .contact-system {
    width: min(100%, 38rem);
    margin-left: auto;
  }
}

@media (max-width: 680px) {
  :root {
    --section-space: 4.25rem;
  }

  html {
    scroll-padding-top: 4.4rem;
  }

  .header-inner {
    min-height: 4.25rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(0.23rem) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-0.23rem) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    z-index: -1;
    top: 4.25rem;
    right: 0;
    left: 0;
    display: grid;
    visibility: hidden;
    align-content: start;
    gap: 0;
    padding: 1.5rem var(--gutter) 2.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--background);
    opacity: 0;
    transform: translateY(-0.75rem);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav a {
    padding-block: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 1.15rem;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    gap: 0;
    padding-block: 4.5rem 3.5rem;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 11.4vw, 3.2rem);
  }

  .hero-system {
    width: 100%;
    margin: 1rem 0 -3rem;
    overflow: hidden;
    opacity: 0.78;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .split-statement,
  .product-layout,
  .factory-layout {
    grid-template-columns: 1fr;
  }

  .split-statement {
    gap: 2rem;
  }

  .product-copy {
    display: block;
  }

  .product-copy > p:not(.section-label):not(.product-lede) {
    margin-top: 1.75rem;
  }

  .factory-steps {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .factory-steps li {
    padding: 0 0 2.5rem 2rem;
  }

  .factory-steps li::after {
    top: auto;
    right: auto;
    bottom: 1rem;
    left: -0.28rem;
    transform: rotate(135deg);
  }

  .factory-steps li:nth-child(3)::after {
    display: block;
  }

  .factory-steps li:last-child {
    padding-bottom: 0;
  }

  .contact-layout {
    display: block;
  }

  .contact-system {
    width: calc(100% - 2rem);
    margin: 3rem 0 -4.25rem 2rem;
    overflow: hidden;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@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;
    transition-duration: 0.01ms !important;
  }

}
