:root {
  --ink: #0a0a09;
  --cream: #eeeade;
  --paper: #d8d3c5;
  --acid: #d9ff57;
  --orange: #ff6433;
  --line: rgba(238, 234, 222, 0.2);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: Manrope, system-ui, sans-serif;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .site-header {
  background: rgba(10, 10, 9, 0.97);
  border-bottom-color: var(--line);
}

img {
  max-width: 100%;
  height: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 40;
  padding: 12px 18px;
  background: var(--acid);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: none;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.07;
  background-image: url("assets/grain.png");
  background-size: 128px 128px;
  contain: strict;
}

.site-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 3vw;
  padding-left: max(3vw, env(safe-area-inset-left));
  padding-right: max(3vw, env(safe-area-inset-right));
  position: fixed;
  top: 0;
  z-index: 30;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 10, 9, 0.88);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 19px;
  flex-shrink: 0;
}

.brand-mark {
  color: var(--acid);
}

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

.site-header nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
}

.site-header nav a,
.shop-link {
  transition: opacity 0.2s ease;
}

.site-header nav a:hover,
.shop-link:hover {
  opacity: 0.55;
}

.shop-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  font: 500 11px/1 DM Mono, ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  touch-action: manipulation;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  margin-right: 8px;
  border: 0;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  place-items: center;
  touch-action: manipulation;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-bars::before {
  top: -6px;
}

.menu-toggle-bars::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.panel {
  margin: 14px;
  border-radius: 18px;
  overflow: hidden;
}

.hero {
  height: calc(100svh - 28px);
  min-height: 680px;
  position: relative;
  background:
    radial-gradient(circle at 70% 40%, #292d21 0, transparent 25%),
    linear-gradient(125deg, #0d0d0b 35%, #1d2119);
  display: flex;
  align-items: flex-end;
  padding: 9vw 4vw 5vw;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(0, 0, 0, 0.38));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
}

.eyebrow,
.section-tag,
.micro {
  font: 500 10px/1.4 DM Mono, ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow {
  display: flex;
  gap: 22px;
  color: rgba(238, 234, 222, 0.78);
}

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

h1,
h2 {
  text-wrap: balance;
}

h1 {
  font-size: clamp(70px, 11.5vw, 185px);
  line-height: 0.79;
  letter-spacing: -0.075em;
  margin: 32px 0 40px;
  font-weight: 500;
}

h1 em,
h2 em {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  color: var(--acid);
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.hero-bottom p {
  max-width: 410px;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  border-radius: 100px;
  padding: 8px 8px 8px 21px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.25s ease;
  touch-action: manipulation;
}

.button span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--cream);
}

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

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

.scroll-note {
  position: absolute;
  right: 4vw;
  top: 130px;
  z-index: 2;
  margin: 0;
  font: 10px/1.4 DM Mono, ui-monospace, monospace;
  writing-mode: vertical-rl;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(238, 234, 222, 0.55);
}

.scroll-note span {
  margin-top: 12px;
}

.hero-orbit {
  position: absolute;
  width: min(43vw, 650px);
  aspect-ratio: 1;
  right: 7vw;
  top: 10vh;
  display: grid;
  place-items: center;
  opacity: 0.8;
  will-change: transform;
  contain: layout paint;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(217, 255, 87, 0.28);
  border-radius: 50%;
}

.orbit-one {
  inset: 7%;
  animation: spin 25s linear infinite;
}

.orbit-one::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--acid);
  top: 15%;
  left: 12%;
  box-shadow: 0 0 30px var(--acid);
}

.orbit-two {
  inset: 25%;
  border-style: dashed;
  animation: spin 18s linear reverse infinite;
}

.core {
  font: 500 clamp(50px, 8vw, 110px)/1 DM Mono, ui-monospace, monospace;
  color: var(--cream);
  filter: drop-shadow(0 0 25px rgba(217, 255, 87, 0.3));
}

.core span {
  color: var(--acid);
}

.orbit-label {
  position: absolute;
  font: 9px/1 DM Mono, ui-monospace, monospace;
  letter-spacing: 0.2em;
}

.label-a {
  top: 5%;
  left: 44%;
}

.label-b {
  right: 2%;
  top: 52%;
}

.label-c {
  bottom: 8%;
  left: 20%;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.is-paused .orbit,
.is-paused.orbit,
.signal.is-paused span {
  animation-play-state: paused;
}

.manifesto,
.tools,
.process,
.bench,
.experiments {
  padding: 12vw 5vw;
}

#studio,
#products,
#tools,
#experiments,
#method,
#contact,
#top,
#main {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section-tag {
  color: var(--acid);
  margin-bottom: 55px;
}

.manifesto h2,
.section-heading h2,
.closing h2 {
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 500;
  max-width: 1100px;
}

.manifesto-copy {
  font-size: clamp(21px, 3vw, 43px);
  line-height: 1.25;
  letter-spacing: -0.035em;
  max-width: 960px;
  margin: 110px 0 60px auto;
  color: var(--paper);
}

.principles {
  margin: 0 0 0 auto;
  max-width: 960px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
  font: 10px/1.4 DM Mono, ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(238, 234, 222, 0.7);
  list-style: none;
}

.tools {
  background: var(--cream);
  color: var(--ink);
}

.tools .section-tag,
.experiments .section-tag {
  color: #5c5850;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 80px;
}

.section-heading h2 {
  margin: 0;
}

.section-heading h2 em {
  color: var(--orange);
}

.section-heading > p {
  max-width: 340px;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
}

.tool-card {
  min-height: 620px;
  background: #151513;
  color: var(--cream);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.tool-card:hover,
.tool-card:focus-within {
  transform: translateY(-6px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font: 10px/1.4 DM Mono, ui-monospace, monospace;
}

.status {
  border: 1px solid currentColor;
  border-radius: 20px;
  padding: 5px 9px;
}

.status::before {
  content: "";
  width: 5px;
  height: 5px;
  display: inline-block;
  background: var(--acid);
  border-radius: 50%;
  margin-right: 7px;
}

.status.dark::before {
  background: var(--ink);
}

.tool-visual {
  flex: 1;
  display: grid;
  place-items: center;
}

.product-visual img {
  width: 78%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 8px;
  transform: rotate(-4deg);
  box-shadow: 20px 30px 80px #000;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tool-card:hover .product-visual img,
.tool-card:focus-within .product-visual img {
  transform: rotate(-1deg) translateY(-6px);
}

.window {
  width: 68%;
  background: #ebe7da;
  color: var(--ink);
  border-radius: 8px;
  transform: rotate(-4deg);
  box-shadow: 20px 30px 80px #000;
}

.window-bar {
  height: 28px;
  border-bottom: 1px solid #aaa;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
}

.window-bar i {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

.window-body {
  padding: 25px;
  display: grid;
  grid-template-columns: 45px 1fr 1fr;
  gap: 12px;
  font: 9px/1.4 DM Mono, ui-monospace, monospace;
}

.window-body span {
  height: 30px;
  background: #cbc7ba;
  border-radius: 3px;
}

.window-body b {
  padding-top: 8px;
}

.card-copy {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 25px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.card-copy h3 {
  font-size: 28px;
  letter-spacing: -0.045em;
  margin: 5px 0 0;
  text-wrap: balance;
}

.card-copy p {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  color: #c4c4c0;
}

.card-copy a {
  font-size: 28px;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
}

.accent-card {
  background: var(--orange);
  color: var(--ink);
}

.accent-card .card-copy {
  border-color: rgba(0, 0, 0, 0.25);
  grid-template-columns: 1fr;
}

.accent-card .card-copy > a {
  position: absolute;
  right: 24px;
  bottom: 24px;
}

.accent-card .card-copy p {
  color: rgba(0, 0, 0, 0.72);
  max-width: 85%;
}

.accent-card .product-visual img {
  box-shadow: 16px 24px 50px rgba(0, 0, 0, 0.28);
}

.signal {
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  contain: layout paint;
}

.signal span {
  display: block;
  background: var(--ink);
  width: 7%;
  border-radius: 99px;
  animation: pulse 1.8s ease-in-out infinite;
  transform-origin: center;
}

.signal span:nth-child(1),
.signal span:nth-child(6) {
  height: 18%;
}

.signal span:nth-child(2),
.signal span:nth-child(5) {
  height: 48%;
  animation-delay: 0.15s;
}

.signal span:nth-child(3),
.signal span:nth-child(4) {
  height: 85%;
  animation-delay: 0.3s;
}

@keyframes pulse {
  50% {
    transform: scaleY(0.55);
  }
}

.light-card {
  background: #c5c0b2;
  color: var(--ink);
}

.light-card .card-copy {
  border-color: rgba(0, 0, 0, 0.2);
}

.light-card .card-copy p {
  color: #3f3c36;
}

.stamp-visual {
  flex: 1;
  display: grid;
  place-content: center;
}

.stamp-visual span {
  font: 500 clamp(30px, 5vw, 70px)/1 DM Mono, ui-monospace, monospace;
  border: 3px solid var(--ink);
  padding: 4px 14px;
  margin: -4px;
  transform: rotate(-7deg);
}

.stamp-visual span:nth-child(2) {
  transform: rotate(5deg);
  background: var(--acid);
}

.quote-card {
  background: var(--acid);
  color: var(--ink);
}

.quote-card blockquote {
  font-size: clamp(38px, 5vw, 77px);
  line-height: 1;
  letter-spacing: -0.055em;
  margin: 30px 0;
}

.quote-card blockquote p {
  margin: 0;
}

.quote-card blockquote em {
  font-family: "Playfair Display", Georgia, serif;
}

.formula {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font: 10px/1.4 DM Mono, ui-monospace, monospace;
  border-top: 1px solid rgba(0, 0, 0, 0.25);
  padding-top: 25px;
  margin: 0;
}

.formula b {
  font-size: 25px;
}

.bench {
  background: var(--ink);
}

.bench .section-heading h2 em {
  color: var(--acid);
}

.experiments {
  background: var(--cream);
  color: var(--ink);
}

.experiment-card {
  min-height: 540px;
}

.process {
  background: var(--ink);
}

.process-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 35px 0;
}

.process-row:last-child {
  border-bottom: 1px solid var(--line);
}

.process-row span {
  font: 10px/1.4 DM Mono, ui-monospace, monospace;
  color: var(--acid);
}

.process-row h3 {
  font-size: clamp(25px, 3vw, 45px);
  letter-spacing: -0.04em;
  margin: 0;
}

.process-row p {
  color: #b4b2ab;
  max-width: 380px;
  margin: 0;
  font-size: 14px;
}

.closing {
  min-height: calc(100svh - 28px);
  background: var(--orange);
  color: var(--ink);
  padding: 9vw 4vw 2.5vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.closing .eyebrow {
  color: rgba(0, 0, 0, 0.72);
}

.closing h2 em {
  color: var(--ink);
}

.closing-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.closing-actions p {
  max-width: 380px;
  font-size: 14px;
  line-height: 1.5;
}

.closing .text-link {
  font: 11px/1.4 DM Mono, ui-monospace, monospace;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.closing footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.3);
  padding-top: 20px;
  font: 10px/1.4 DM Mono, ui-monospace, monospace;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

:focus {
  outline: none;
}

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

.tools :focus-visible,
.experiments :focus-visible,
.button.primary:focus-visible,
.closing :focus-visible,
.quote-card :focus-visible,
.light-card :focus-visible,
.accent-card :focus-visible {
  outline-color: var(--ink);
}

@media (max-width: 800px) {
  .menu-toggle {
    display: grid;
  }

  .site-header nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(10, 10, 9, 0.97);
    flex-direction: column;
    gap: 0;
    padding: 24px 8vw 40px;
    font-size: 28px;
    letter-spacing: -0.04em;
    z-index: 29;
  }

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

  .site-header nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    min-height: 48px;
  }

  .hero {
    padding: 120px 25px 45px;
    min-height: 100svh;
    height: auto;
  }

  .hero-orbit {
    width: 90vw;
    right: -30vw;
    top: 12vh;
    opacity: 0.45;
  }

  .hero-bottom,
  .section-heading,
  .closing-actions,
  .bench-grid {
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
  }

  .hero-bottom p {
    max-width: 300px;
  }

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

  .tool-card,
  .experiment-card {
    min-height: 0;
  }

  .product-visual {
    min-height: 220px;
    padding: 20px 0;
  }

  .product-visual img {
    width: 86%;
    max-height: 260px;
  }

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

  .accent-card .card-copy {
    padding-right: 48px;
  }

  .section-heading > p {
    margin-top: 0;
  }

  .manifesto,
  .tools,
  .process,
  .bench,
  .experiments {
    padding: 100px 25px;
  }

  .manifesto-copy {
    margin-top: 70px;
  }

  .principles {
    flex-direction: column;
    gap: 16px;
  }

  .process-row {
    grid-template-columns: 40px 1fr;
  }

  .process-row p {
    grid-column: 2;
    margin-top: 12px;
  }

  .closing {
    padding: 100px 25px 25px;
    min-height: auto;
  }

  .closing footer {
    gap: 20px;
    flex-wrap: wrap;
  }

  h1 {
    font-size: clamp(52px, 16vw, 92px);
  }
}

@media (max-width: 480px) {
  .button {
    width: 100%;
  }

  .hero-orbit {
    top: 18vh;
  }

  .scroll-note {
    top: 96px;
  }

  .card-copy h3 {
    font-size: 22px;
  }

  .formula {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .grain {
    display: none;
  }

  .orbit,
  .orbit-one,
  .orbit-two,
  .signal span,
  .reveal {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .button:hover,
  .tool-card:hover,
  .tool-card:focus-within,
  .tool-card:hover .product-visual img,
  .tool-card:focus-within .product-visual img {
    transform: none;
  }

  .hero-orbit {
    will-change: auto;
  }
}
