:root {
  --ink: #14213d;
  --ink-deep: #0b1429;
  --paper: #f8fafc;
  --blueprint: #e8eff7;
  --blueprint-deep: #cbd9e8;
  --coral: #ff5a3c;
  --coral-dark: #d94026;
  --yellow: #ffd43b;
  --white: #ffffff;
  --display: "Archivo Black", Impact, sans-serif;
  --body: "DM Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --gutter: clamp(1.25rem, 4vw, 4.75rem);
  --rule: 2px solid var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  content: "";
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

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

button,
input {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 2000;
  padding: 0.75rem 1rem;
  transform: translateY(-180%);
  color: var(--white);
  background: var(--ink);
  font-weight: 700;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.75rem;
  padding: 0 var(--gutter);
  border-bottom: var(--rule);
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(12px);
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 3.15rem;
  height: 3.15rem;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 0.76rem;
  line-height: 3rem;
  text-align: center;
}

.brand-mark span:nth-child(1) { background: var(--coral); }
.brand-mark span:nth-child(2) { background: var(--yellow); }
.brand-mark span:nth-child(3) { background: var(--blueprint); }

.brand-name {
  font-family: var(--display);
  font-size: 0.78rem;
  line-height: 1.03;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.75rem);
}

.site-header nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4rem;
}

.site-header nav .nav-cta {
  padding: 0.7rem 1rem;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--yellow);
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.site-header nav .nav-cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 0.5fr);
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(4rem, 9vw, 8rem) var(--gutter) var(--gutter);
  background:
    linear-gradient(rgba(20, 33, 61, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 33, 61, 0.06) 1px, transparent 1px),
    var(--blueprint);
  background-size: 28px 28px;
}

.eyebrow,
.section-kicker,
.stage-label,
.project-state,
.project-details,
.form-note,
.copyright {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.75rem;
  font-size: clamp(3.9rem, 8.5vw, 9rem);
  text-transform: uppercase;
}

h1 span {
  color: var(--coral);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
}

.hero-intro {
  max-width: 38rem;
  margin-bottom: 2.2rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-width: min(100%, 19rem);
  padding: 1rem 1.25rem;
  border: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

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

.text-link {
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35rem;
}

.site-note {
  position: relative;
  align-self: center;
  max-width: 22rem;
  padding: 2.8rem 2rem 2rem;
  border: 2px solid var(--ink);
  background: var(--yellow);
  box-shadow: 10px 10px 0 rgba(20, 33, 61, 0.18);
  transform: rotate(2deg);
}

.site-note p:not(.note-label) {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.35;
}

.note-label,
.note-signoff {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.note-signoff {
  display: block;
  text-align: right;
}

.tape {
  position: absolute;
  width: 5rem;
  height: 1.3rem;
  background: rgba(255, 255, 255, 0.72);
}

.tape-one { top: -0.4rem; left: -1.8rem; transform: rotate(-20deg); }
.tape-two { right: -1.5rem; bottom: 0.2rem; transform: rotate(-14deg); }

.wordmark-stage {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  grid-column: 1 / -1;
  min-height: 0;
  padding-bottom: clamp(0.85rem, 1.5vw, 1.35rem);
  overflow: hidden;
  border: 2px solid var(--ink);
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255,255,255,0.92), transparent 24rem),
    var(--white);
}

.wordmark-stage::before {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.wordmark-stage::before {
  inset: 1rem;
  border: 1px dashed rgba(20, 33, 61, 0.45);
}

.wordmark-stage img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  margin: -4.8% auto -10%;
  filter: drop-shadow(0 20px 14px rgba(20, 33, 61, 0.08));
}

.stage-label {
  position: absolute;
  top: 1.7rem;
  z-index: 3;
  padding: 0.35rem 0.55rem;
  color: var(--white);
  background: var(--ink);
}

.stage-label-left { left: 1.7rem; }
.stage-label-right { right: 1.7rem; }

.build-loop {
  width: 100%;
  overflow: hidden;
  border-block: var(--rule);
  color: var(--white);
  background: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.build-loop-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 20s linear infinite;
}

.build-loop-set {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2rem;
  padding: 1rem 2rem 1rem 0;
}

.build-loop i {
  color: var(--yellow);
  font-style: normal;
}

.section {
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
}

.studio {
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
}

.section-kicker {
  display: flex;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: var(--rule);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.65fr);
  gap: clamp(2rem, 8vw, 9rem);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem);
}

.studio h2,
.crew h2 {
  margin-bottom: 0;
  font-size: clamp(3.1rem, 7vw, 7.5rem);
  text-transform: uppercase;
}

.studio-copy {
  align-self: end;
  max-width: 38rem;
  font-size: 1.05rem;
}

.studio-copy .lede {
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  font-weight: 700;
  line-height: 1.35;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--rule);
  border-left: var(--rule);
}

.principle {
  position: relative;
  display: flex;
  min-height: 18rem;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-right: var(--rule);
  border-bottom: var(--rule);
  background: var(--coral);
}

.principle-yellow { background: var(--yellow); }
.principle-blue { background: var(--blueprint); }

.principle h3 {
  margin-bottom: 1.4rem;
  font-size: clamp(1.8rem, 3vw, 3rem);
  text-transform: uppercase;
}

.principle p {
  max-width: 25rem;
  margin-bottom: 0;
}

.project {
  color: var(--white);
  background:
    repeating-linear-gradient(135deg, transparent 0 20px, rgba(255,255,255,0.018) 20px 40px),
    var(--ink-deep);
}

.section-kicker-light {
  border-color: rgba(255,255,255,0.42);
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(17rem, 0.7fr) minmax(0, 1fr);
  gap: clamp(2rem, 8vw, 10rem);
  padding: clamp(3rem, 7vw, 7rem) 0;
}

.project-number {
  align-self: start;
  color: var(--yellow);
  font-family: var(--display);
  font-size: clamp(7rem, 18vw, 18rem);
  line-height: 0.74;
  letter-spacing: -0.09em;
}

.project-state {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--yellow);
}

.project-state span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--coral);
}

.project-copy h2 {
  max-width: 13ch;
  margin: 1.75rem 0;
  font-size: clamp(3rem, 6.5vw, 6.7rem);
  text-transform: uppercase;
}

.project-copy {
  min-width: 0;
}

.project-copy > p:not(.project-state) {
  max-width: 38rem;
  color: #cbd4e6;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.project-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.project-details div {
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.35);
}

.project-details dt {
  margin-bottom: 0.4rem;
  color: #7f8ba4;
}

.project-details dd {
  margin: 0;
  color: var(--white);
}

.progress-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 1.4rem;
  color: #77849d;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.progress-rail::before,
.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  content: "";
}

.progress-rail::before { width: 100%; background: #2b3853; }
.progress-fill { z-index: 1; width: 25%; background: var(--coral); }
.progress-rail span:not(:first-of-type) { text-align: center; }
.progress-rail span:last-child { text-align: right; }
.progress-rail .active { color: var(--white); }

.crew {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.75fr);
  gap: clamp(3rem, 9vw, 10rem);
  align-items: end;
  background: var(--coral);
}

.crew-copy > p:last-child {
  max-width: 38rem;
  margin-top: 2rem;
  font-size: 1.15rem;
}

.signup label {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.signup-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup-row {
  display: flex;
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
}

.signup input {
  min-width: 0;
  flex: 1;
  padding: 1.1rem;
  border: 0;
  border-right: 2px solid var(--ink);
  color: var(--ink);
  background: var(--white);
}

.signup button {
  padding: 1rem 1.2rem;
  border: 0;
  color: var(--white);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}

.signup button:hover { background: var(--ink-deep); }
.signup button:disabled { cursor: default; opacity: 0.86; }
.form-note { margin: 1rem 0 0; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: end;
  padding: 3rem var(--gutter);
  color: var(--white);
  background: var(--ink);
}

.footer-brand p {
  margin: 0;
  font-family: var(--display);
  font-size: 0.9rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-brand p span {
  color: #8e99b0;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: none;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.copyright {
  margin: 0;
  color: #8e99b0;
  text-align: right;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1);
}

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

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 880px) {
  .site-header nav a:not(.nav-cta) { display: none; }

  .hero,
  .studio-grid,
  .project-grid,
  .crew {
    grid-template-columns: 1fr;
  }

  .site-note {
    justify-self: end;
    margin-right: 1rem;
  }

  .wordmark-stage img { margin: 0 auto -10%; }

  .principles {
    grid-template-columns: 1fr;
  }

  .principle {
    min-height: auto;
  }

  .project-number { font-size: clamp(7rem, 34vw, 13rem); }

  .project-copy h2 {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 2.6rem);
    letter-spacing: -0.065em;
  }
}

@media (max-width: 600px) {
  :root { --gutter: 1.1rem; }

  .site-header { min-height: 4.9rem; }
  .brand-mark { width: 2.7rem; height: 2.7rem; font-size: 0.63rem; line-height: 2.55rem; }
  .site-header nav .nav-cta { padding: 0.6rem 0.72rem; box-shadow: 3px 3px 0 var(--ink); }

  .hero { padding-top: 3.5rem; }
  h1 {
    max-width: none;
    font-size: clamp(2.2rem, 10vw, 4rem);
    letter-spacing: -0.065em;
  }
  h1 span { -webkit-text-stroke-width: 1px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }

  .site-note { max-width: calc(100% - 1rem); }
  .stage-label-right { display: none; }
  .wordmark-stage::before { inset: 0.55rem; }
  .stage-label { top: 0.8rem; left: 0.8rem; font-size: 0.52rem; }

  .section-kicker span:last-child { display: none; }
  .project-details { grid-template-columns: 1fr; }
  .progress-rail { font-size: 0.5rem; }

  .signup-row { flex-direction: column; }
  .signup input { border-right: 0; border-bottom: 2px solid var(--ink); }
  .signup button { padding-block: 1rem; }

  .site-footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: space-between; }
  .copyright {
    padding-top: 1.25rem;
    border-top: 1px solid #36415a;
    text-align: left;
  }
}

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