:root {
  --paper: #F2EBDD;
  --ink: #151515;
  --orange: #FF5A36;
  --acid: #C8F04B;
  --blue: #5D7CFF;
  --graphite: #77746E;
  --border: 2px solid var(--ink);
  --header-height: 72px;
  --display: "DIN Condensed", "Barlow Condensed", "Aptos Narrow", "PingFang SC", sans-serif;
  --body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "SF Mono", "Roboto Mono", monospace;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image: url("./assets/paper-grain.png");
  background-size: 620px;
  color: var(--ink);
}

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

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

:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  transform: translateY(-180%);
  background: var(--acid);
  border: var(--border);
  font-family: var(--mono);
  font-weight: 800;
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  height: var(--header-height);
  padding: 0 clamp(20px, 2.6vw, 42px);
  border-bottom: var(--border);
  background-color: rgba(242, 235, 221, 0.96);
  background-image: url("./assets/paper-grain.png");
  background-size: 560px;
}

.wordmark,
.contact-wordmark {
  font-family: var(--display);
  font-size: clamp(31px, 3vw, 45px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.045em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4.2vw, 66px);
  margin-left: auto;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.site-nav a:not(.nav-contact) {
  position: relative;
  padding: 24px 0 21px;
}

.site-nav a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: 15px;
  left: 0;
  height: 3px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--orange);
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="location"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-contact {
  min-width: 132px;
  padding: 13px 24px 12px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-contact:hover,
.nav-contact[aria-current="location"] {
  background: var(--orange);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 10px 14px 9px;
  border: var(--border);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 900;
}

.section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: var(--border);
}

.section::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: url("./assets/paper-grain.png");
  background-size: 620px;
  mix-blend-mode: multiply;
  opacity: 0.23;
}

.js .section > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 520ms ease, transform 680ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.js .section.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  min-height: max(720px, calc(100svh - var(--header-height) - 100px));
  background: var(--paper);
}

.hero-main {
  position: relative;
  min-height: 633px;
  padding: clamp(30px, 3vw, 48px) clamp(24px, 2.8vw, 44px) 28px;
}

.hero h1 {
  width: min(72%, 1040px);
  margin: 0;
  font-family: var(--display);
  font-size: clamp(82px, 10.5vw, 164px);
  font-weight: 950;
  line-height: 0.83;
  letter-spacing: -0.095em;
}

.registration-mark {
  position: absolute;
  top: 10%;
  right: 5.5%;
  width: 62px;
  aspect-ratio: 1;
  border: 2px solid var(--acid);
  border-radius: 50%;
}

.registration-mark::before,
.registration-mark::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  background: var(--acid);
  transform: translate(-50%, -50%);
}

.registration-mark::before {
  width: 94px;
  height: 2px;
}

.registration-mark::after {
  width: 2px;
  height: 94px;
}

.hero-rail {
  display: grid;
  grid-template-columns: minmax(390px, 1.05fr) minmax(500px, 0.95fr) 76px;
  min-height: 258px;
  border-top: var(--border);
}

.hero-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px clamp(28px, 3.5vw, 56px);
  border-right: var(--border);
}

.hero-intro p {
  max-width: 500px;
  margin: 0 0 28px;
  font-size: clamp(20px, 1.75vw, 29px);
  font-weight: 650;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 18px;
}

.button {
  display: inline-flex;
  min-width: 190px;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  border: var(--border);
  font-size: 21px;
  font-weight: 800;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translate(-4px, -4px);
}

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

.button-secondary {
  background: transparent;
}

.hero-mantra {
  display: flex;
  margin: 0;
  padding: 26px clamp(28px, 3vw, 48px);
  align-items: center;
  color: var(--orange);
  font-family: var(--display);
  font-size: clamp(50px, 5vw, 79px);
  font-weight: 950;
  line-height: 0.78;
  letter-spacing: -0.035em;
}

.hero-hatch {
  border-left: var(--border);
  background: repeating-linear-gradient(120deg, transparent 0 10px, var(--ink) 11px 13px, transparent 14px 20px);
  opacity: 0.78;
}

.proof {
  display: grid;
  grid-template-columns: 64% 36%;
  min-height: calc(100svh - var(--header-height));
  background: var(--paper);
}

.proof-ledger {
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  padding: 38px 28px;
  background: var(--blue);
  border-right: var(--border);
}

.proof-row {
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  font-family: var(--display);
}

.proof-row:nth-child(3) {
  border-bottom-width: 6px;
}

.proof-row span {
  padding: 0 18px;
  font-size: clamp(24px, 2.2vw, 37px);
  font-weight: 900;
}

.proof-row strong {
  padding-left: 34px;
  border-left: 1px solid var(--ink);
  font-size: clamp(76px, 8.4vw, 133px);
  font-weight: 950;
  line-height: 0.75;
  letter-spacing: -0.055em;
}

.proof-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vw 5vw;
}

.proof-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(64px, 6.2vw, 96px);
  font-weight: 950;
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.orange-rule {
  width: 240px;
  height: 11px;
  margin: 40px 0;
  background: var(--orange);
}

.proof-copy p {
  max-width: 360px;
  margin: 0;
  font-size: clamp(19px, 1.7vw, 27px);
  line-height: 1.75;
}

.work {
  min-height: calc(100svh - var(--header-height));
  padding: 30px clamp(30px, 3vw, 48px) 44px;
  background: var(--paper);
}

.work > h2 {
  margin: 0 0 28px;
  font-family: var(--display);
  font-size: clamp(84px, 9vw, 142px);
  font-weight: 950;
  line-height: 0.85;
  letter-spacing: -0.075em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(6, minmax(82px, 1fr));
  min-height: 650px;
  gap: 14px;
}

.project {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(28px, 3vw, 50px);
  border: var(--border);
}

.project h3 {
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 2px solid currentColor;
  font-family: var(--display);
  font-size: clamp(58px, 6vw, 96px);
  font-weight: 950;
  line-height: 0.85;
  letter-spacing: -0.045em;
}

.project p {
  margin: 18px 0;
  font-size: clamp(18px, 1.55vw, 25px);
  font-weight: 650;
  line-height: 1.5;
}

.project a {
  display: flex;
  width: fit-content;
  gap: 14px;
  margin-top: auto;
  padding: 10px 0 5px;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.project a span {
  transition: transform 160ms ease;
}

.project a:hover span {
  transform: translateX(8px);
}

.project-starveil {
  grid-column: 1 / 7;
  grid-row: 1 / 7;
  background: var(--ink);
  color: var(--paper);
}

.project-mvpfast {
  grid-column: 7 / 13;
  grid-row: 1 / 4;
  background: var(--orange);
}

.project-2hb {
  grid-column: 7 / 13;
  grid-row: 4 / 7;
  border-color: var(--blue);
  color: var(--blue);
}

.project-2hb h3 {
  font-size: clamp(48px, 5.2vw, 83px);
}

.method {
  min-height: calc(100svh - var(--header-height));
  padding: 72px clamp(28px, 4vw, 64px);
  background: var(--paper);
}

.method h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(66px, 7vw, 111px);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.method-path {
  position: relative;
  height: 600px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.method-line {
  position: absolute;
  inset: 8% 0 0;
  width: 100%;
  height: 74%;
  overflow: visible;
}

.method-line polyline,
.method-line path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 6;
  vector-effect: non-scaling-stroke;
}

.method-line circle {
  fill: var(--ink);
}

.method-step {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transform: translateY(-50%);
}

.method-step::after {
  position: absolute;
  bottom: -34px;
  left: 5px;
  width: 18px;
  height: 18px;
  display: none;
  content: "";
  border-radius: 50%;
  background: var(--ink);
}

.method-step strong {
  font-family: var(--display);
  font-size: clamp(60px, 6.2vw, 99px);
  font-weight: 950;
  line-height: 0.8;
  letter-spacing: -0.035em;
}

.method-step span {
  font-size: 22px;
  font-weight: 650;
}

.step-input { left: 0; top: 65%; }
.step-validate { left: 23%; top: 50%; }
.step-build { left: 44%; top: 50%; padding: 42px 28px; background: var(--acid); }
.step-ship { left: 65%; top: 28%; padding: 42px 28px; background: var(--orange); }
.step-compound { right: 0; top: 28%; }

@media (min-width: 761px) {
  .step-input span {
    transform: translateY(-12px);
  }
}

.build-log {
  display: grid;
  grid-template-columns: 28% 72%;
  min-height: calc(100svh - var(--header-height));
  padding: 42px clamp(28px, 4vw, 62px) 38px;
  background: var(--ink);
  color: var(--paper);
}

.build-log::after {
  opacity: 0.08;
}

.build-log h2 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 22px 0 0;
  font-family: var(--display);
  font-size: clamp(100px, 10vw, 158px);
  font-weight: 950;
  line-height: 0.75;
  letter-spacing: -0.08em;
}

.log-list {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  min-width: 0;
}

.log-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  align-items: center;
  padding: 34px 18px 30px 8px;
  border-bottom: 1px solid rgba(242, 235, 221, 0.45);
  transition: background-color 180ms ease, padding-left 180ms ease;
}

.log-row:hover {
  padding-left: 24px;
  background: rgba(242, 235, 221, 0.05);
}

.log-category {
  grid-column: 1;
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.category-orange { color: var(--orange); }
.category-green { color: var(--acid); }

.log-row strong {
  align-self: center;
  font-family: var(--display);
  font-size: clamp(41px, 4vw, 65px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.log-arrow {
  grid-column: 2;
  grid-row: 1 / 3;
  font-family: var(--display);
  font-size: 66px;
  font-weight: 300;
}

.now {
  display: grid;
  grid-template-columns: 49% 51%;
  min-height: calc(100svh - var(--header-height));
  background: var(--paper);
}

.now-field {
  position: relative;
  overflow: hidden;
  background: var(--blue);
}

.now-field span {
  position: absolute;
  bottom: -0.12em;
  left: -0.07em;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(250px, 33vw, 520px);
  font-weight: 950;
  line-height: 0.72;
  letter-spacing: -0.08em;
}

.now-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 9% 8% 6%;
}

.now-copy h2 {
  max-width: 770px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(52px, 5vw, 80px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.now-line {
  width: calc(100% + 20vw);
  height: 5px;
  margin: 54px 0 42px -20vw;
  background: var(--orange);
}

.now-copy p {
  max-width: 690px;
  margin: 0;
  color: var(--graphite);
  font-size: clamp(18px, 1.65vw, 27px);
  line-height: 1.65;
}

.now-copy small {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 14px;
}

.contact {
  display: grid;
  grid-template-columns: 94% 6%;
  min-height: calc(100svh - var(--header-height));
  background: var(--orange);
}

.contact-main {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px clamp(34px, 4.5vw, 72px) 142px;
}

.contact-wordmark {
  width: fit-content;
  padding-bottom: 18px;
}

.contact-main h2 {
  margin: auto 0 20px;
  font-family: var(--display);
  font-size: clamp(98px, 12.5vw, 196px);
  font-weight: 950;
  line-height: 0.82;
  letter-spacing: -0.1em;
}

.contact-main > p {
  margin: 0 0 18px;
  font-size: clamp(20px, 2vw, 31px);
  font-weight: 700;
}

.contact-rail {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 110px;
  border-top: var(--border);
}

.contact-rail span {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: var(--border);
  font-family: var(--mono);
  font-size: clamp(18px, 1.8vw, 27px);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.contact-rail span:last-child {
  border-right: 0;
}

.contact-mantra {
  overflow: hidden;
  padding: 18px 0;
  border-left: var(--border);
  background: var(--acid);
  font-family: var(--display);
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  writing-mode: vertical-rl;
}

@media (max-width: 1050px) {
  .site-nav { gap: 24px; }
  .hero-rail { grid-template-columns: 1fr 1fr 50px; }
  .proof { grid-template-columns: 60% 40%; }
  .proof-row { grid-template-columns: 45% 55%; }
  .log-row strong { font-size: clamp(34px, 4.2vw, 48px); }
}

@media (max-width: 760px) {
  :root { --header-height: 64px; }

  .site-header { padding: 0 18px; }
  .wordmark { font-size: 34px; }
  .menu-toggle { display: block; }

  .js .site-nav {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    left: 0;
    display: grid;
    visibility: hidden;
    gap: 0;
    margin: 0;
    border-bottom: var(--border);
    background: var(--paper);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  }

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

  .site-nav a,
  .site-nav a:not(.nav-contact) {
    padding: 15px 18px;
    border-top: 1px solid var(--ink);
  }

  .site-nav a:not(.nav-contact)::after { display: none; }
  .nav-contact { min-width: 0; text-align: left; }

  .hero { min-height: 0; }
  .hero-main { min-height: 440px; padding: 34px 18px 28px; }
  .hero h1 { width: 100%; font-size: clamp(67px, 18vw, 94px); line-height: 0.88; }
  .registration-mark { top: auto; right: 32px; bottom: 30px; width: 34px; }
  .registration-mark::before { width: 58px; }
  .registration-mark::after { height: 58px; }

  .hero-rail { grid-template-columns: 1fr; }
  .hero-intro { border-right: 0; border-bottom: var(--border); padding: 26px 18px 30px; }
  .hero-intro p { font-size: 19px; }
  .hero-actions { gap: 10px; }
  .button { min-width: 0; min-height: 54px; flex: 1; font-size: 17px; }
  .hero-mantra { min-height: 260px; font-size: clamp(51px, 15vw, 72px); }
  .hero-hatch { display: none; }

  .proof { grid-template-columns: 1fr; min-height: 0; }
  .proof-ledger { min-height: 690px; border-right: 0; border-bottom: var(--border); padding: 20px 14px; }
  .proof-row { grid-template-columns: 48% 52%; }
  .proof-row span { padding: 0 8px; font-size: 21px; }
  .proof-row strong { padding-left: 14px; font-size: clamp(58px, 18vw, 82px); }
  .proof-copy { min-height: 460px; padding: 58px 24px; }
  .proof-copy h2 { font-size: clamp(59px, 16vw, 78px); }
  .orange-rule { width: 160px; height: 8px; margin: 30px 0; }

  .work { min-height: 0; padding: 44px 16px 18px; }
  .work > h2 { margin-bottom: 30px; font-size: 80px; }
  .project-grid { display: flex; min-height: 0; flex-direction: column; gap: 12px; }
  .project { min-height: 360px; padding: 28px 22px; }
  .project h3, .project-2hb h3 { font-size: clamp(58px, 17vw, 78px); }
  .project-2hb h3 { font-size: clamp(45px, 13vw, 64px); }

  .method { min-height: 0; padding: 56px 20px 70px; }
  .method h2 { font-size: clamp(62px, 16vw, 82px); }
  .method-path { height: auto; margin-top: 45px; padding-left: 48px; }
  .method-line { display: none; }
  .method-path::before {
    position: absolute;
    top: 12px;
    bottom: 14px;
    left: 20px;
    width: 4px;
    content: "";
    background: var(--ink);
  }
  .method-step,
  .step-input,
  .step-validate,
  .step-build,
  .step-ship,
  .step-compound {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    margin: 0 0 34px;
    padding: 22px 18px;
    transform: none;
  }
  .method-step::after { top: 38px; bottom: auto; left: -37px; width: 14px; height: 14px; }
  .method-step::after { display: block; }
  .method-step strong { font-size: clamp(58px, 17vw, 78px); }

  .build-log { grid-template-columns: 1fr; min-height: 0; padding: 42px 18px 28px; }
  .build-log h2 { flex-direction: row; justify-content: flex-start; gap: 0; padding: 0 0 32px; font-size: clamp(78px, 22vw, 102px); }
  .log-list { grid-template-rows: none; }
  .log-row { min-height: 220px; padding: 30px 2px; }
  .log-row:hover { padding-left: 8px; }
  .log-row strong { font-size: clamp(34px, 10vw, 46px); }
  .log-arrow { font-size: 50px; }

  .now { grid-template-columns: 1fr; min-height: 0; }
  .now-field { min-height: 410px; }
  .now-field span { font-size: clamp(260px, 94vw, 390px); }
  .now-copy { min-height: 590px; padding: 68px 22px 38px; }
  .now-copy h2 { font-size: clamp(48px, 13vw, 64px); }
  .now-line { width: calc(100% + 44px); margin: 42px 0 34px -22px; }
  .now-copy small { margin-top: 72px; }

  .contact { grid-template-columns: 1fr; min-height: 780px; }
  .contact-main { min-height: 730px; padding: 30px 18px 216px; }
  .contact-main h2 { margin: auto 0 22px; font-size: clamp(82px, 24vw, 116px); line-height: 0.84; }
  .contact-main > p { font-size: 20px; }
  .contact-rail { grid-template-columns: 1fr; min-height: 188px; }
  .contact-rail span { min-height: 62px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .contact-mantra { height: 58px; padding: 12px 18px; border-top: var(--border); border-left: 0; font-size: 21px; writing-mode: horizontal-tb; }
}

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