:root {
  color-scheme: dark;
  --bg: #080907;
  --ink: #f4f0e7;
  --muted: rgba(244, 240, 231, 0.62);
  --line: rgba(244, 240, 231, 0.16);
  --panel: rgba(244, 240, 231, 0.055);
  --panel-strong: rgba(244, 240, 231, 0.105);
  --acid: #d8ff3f;
  --blue: #7aa7ff;
  --rose: #ff7c94;
  --aqua: #52e6c2;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family:
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(216, 255, 63, 0.08), transparent 28rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40vh),
    var(--bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(244, 240, 231, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 231, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

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

ul {
  padding-left: 1.2em;
}

#signalCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  min-height: 72px;
  padding: 18px clamp(18px, 4vw, 52px);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink);
  mix-blend-mode: difference;
}

.brand {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 800;
  line-height: 0.9;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 34px);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
}

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

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

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 100px clamp(18px, 4vw, 52px) 42px;
  align-items: end;
}

.hero-grid {
  display: grid;
  width: min(var(--max), 100%);
  margin: 0 auto;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(26px, 6vw, 82px);
  align-items: end;
}

.hero-kicker {
  display: grid;
  min-height: 56vh;
  align-content: space-between;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-kicker span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero-copy {
  max-width: 970px;
}

.eyebrow,
.section-label p,
.workbench-head p,
.contact p {
  margin: 0;
  color: var(--aqua);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 800;
  line-height: 1.5;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  text-wrap: balance;
}

h1 {
  margin-top: 18px;
  font-family: ui-serif, "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  font-size: clamp(44px, 10.5vw, 116px);
  font-weight: 900;
  line-height: 0.94;
}

h1 span {
  display: block;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
}

h2 {
  font-family: ui-serif, "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  font-size: clamp(38px, 7vw, 104px);
  font-weight: 900;
  line-height: 0.95;
}

.lead {
  margin: clamp(26px, 4vw, 52px) 0 0;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.18;
}

.sublead {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 23px);
  font-weight: 700;
  line-height: 1.75;
}

.sublead span {
  white-space: nowrap;
}

.hero-cta {
  display: inline-flex;
  width: fit-content;
  min-height: 54px;
  margin-top: 36px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(216, 255, 63, 0.68);
  border-radius: 999px;
  color: var(--bg);
  background: var(--acid);
  box-shadow: 0 0 32px rgba(216, 255, 63, 0.2);
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 900;
  line-height: 1;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 54px rgba(216, 255, 63, 0.38);
}

.scroll-cue {
  position: absolute;
  right: clamp(18px, 4vw, 52px);
  bottom: 34px;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.scroll-cue span {
  display: block;
  width: 1px;
  height: 70px;
  background: linear-gradient(var(--acid), transparent);
  animation: cue 1.8s ease-in-out infinite;
}

.story-section,
.workbench,
.english,
.pricing,
.contact {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.story-section {
  display: grid;
  min-height: 82svh;
  padding: clamp(90px, 12vw, 170px) 0;
  grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.section-label {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.section-label span {
  color: var(--acid);
  font-family: ui-serif, Georgia, serif;
  font-size: clamp(52px, 8vw, 116px);
  font-weight: 900;
  line-height: 0.8;
}

.section-copy {
  max-width: 860px;
}

.section-copy p {
  max-width: 620px;
  margin: clamp(22px, 3vw, 34px) 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.7;
}

.signal-strip {
  grid-column: 2;
  display: grid;
  margin-top: clamp(42px, 7vw, 86px);
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-strip span {
  min-height: 86px;
  padding: 18px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-strip span:last-child {
  border-right: 0;
}

.story-section--split {
  align-items: center;
}

.source-panel {
  grid-column: 2;
  display: grid;
  margin-top: clamp(42px, 6vw, 72px);
  gap: 1px;
  background: var(--line);
}

.source-panel div {
  display: flex;
  min-height: 86px;
  padding: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(8, 9, 7, 0.82);
}

.source-panel span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.source-panel strong {
  color: var(--ink);
  font-size: clamp(18px, 3vw, 34px);
  line-height: 1.2;
}

.workbench {
  padding: clamp(82px, 12vw, 150px) 0;
  border-top: 1px solid var(--line);
}

.workbench-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.workbench-head h2 {
  max-width: 820px;
  text-align: right;
}

.workbench-grid {
  display: grid;
  margin-top: clamp(42px, 7vw, 90px);
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.sample-tile {
  min-height: 360px;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(244, 240, 231, 0.04), rgba(244, 240, 231, 0.015)),
    rgba(8, 9, 7, 0.88);
}

.sample-tile--active {
  background:
    radial-gradient(circle at 70% 20%, rgba(216, 255, 63, 0.16), transparent 18rem),
    rgba(18, 20, 14, 0.92);
}

.sample-tile span {
  color: var(--aqua);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sample-tile strong {
  display: block;
  margin-top: 80px;
  color: var(--ink);
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.05;
}

.sample-tile p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
}

.english {
  padding: clamp(80px, 11vw, 140px) 0;
  border-top: 1px solid var(--line);
}

.english h2 {
  max-width: 980px;
  margin-top: 18px;
}

.english-grid {
  display: grid;
  margin-top: 38px;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(32px, 7vw, 110px);
}

.english p,
.english li {
  color: var(--muted);
  font-size: clamp(16px, 1.55vw, 21px);
  font-weight: 700;
  line-height: 1.8;
}

.english ul {
  margin: 0;
}

.pricing {
  display: grid;
  padding: clamp(80px, 11vw, 140px) 0;
  grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px);
  border-top: 1px solid var(--line);
}

.pricing h2,
.pricing-grid {
  grid-column: 2;
}

.pricing-grid {
  display: grid;
  margin-top: 40px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.pricing-grid article {
  min-height: 190px;
  padding: clamp(24px, 4vw, 44px);
  background: rgba(8, 9, 7, 0.86);
}

.pricing-grid span {
  color: var(--aqua);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.pricing-grid strong {
  display: block;
  margin-top: 40px;
  color: var(--acid);
  font-size: clamp(36px, 7vw, 86px);
  line-height: 0.95;
}

.contact {
  min-height: 74svh;
  padding: clamp(82px, 12vw, 160px) 0 clamp(52px, 8vw, 90px);
  border-top: 1px solid var(--line);
}

.contact h2 {
  max-width: 960px;
  margin-top: 24px;
}

.reveal {
  opacity: 0.65;
  transform: translateY(22px);
  transition:
    opacity 780ms ease,
    transform 780ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes cue {
  0%,
  100% {
    transform: scaleY(0.55);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
  }
}

@media (max-width: 860px) {
  .site-header {
    min-height: 62px;
    padding: 14px 18px;
    mix-blend-mode: normal;
    background: linear-gradient(rgba(8, 9, 7, 0.9), rgba(8, 9, 7, 0));
  }

  .site-nav {
    gap: 12px;
    font-size: 10px;
  }

  .site-nav a:nth-child(2),
  .site-nav a:nth-child(3) {
    display: none;
  }

  .hero {
    padding: 90px 18px 34px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-kicker {
    display: flex;
    min-height: auto;
    justify-content: space-between;
  }

  .hero-kicker span {
    writing-mode: horizontal-tb;
    transform: none;
  }

  h1 {
    font-size: clamp(39px, 10.2vw, 54px);
  }

  .sublead span {
    white-space: normal;
  }

  .story-section,
  .pricing {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section-label {
    position: static;
  }

  .section-label span {
    font-size: 64px;
  }

  .signal-strip,
  .source-panel,
  .pricing h2,
  .pricing-grid {
    grid-column: 1;
  }

  .signal-strip,
  .workbench-grid,
  .english-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .signal-strip span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-strip span:last-child {
    border-bottom: 0;
  }

  .source-panel div {
    display: grid;
    align-items: start;
  }

  .workbench-head {
    display: grid;
  }

  .workbench-head h2 {
    text-align: left;
  }

  .sample-tile {
    min-height: 260px;
  }

  .sample-tile strong {
    margin-top: 54px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
