:root {
  --ink: #111111;
  --cream: #f3f0e8;
  --white: #ffffff;
  --hairline: 1px solid var(--ink);
  --pad: clamp(20px, 4vw, 48px);
  --max: 1440px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter Tight", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--pad);
  color: var(--white);
  mix-blend-mode: normal;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-light {
  background: var(--white);
  color: var(--ink);
  border-bottom: var(--hairline);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: cover;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.nav a:hover {
  opacity: 0.6;
}

.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  color: var(--white);
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.05) 45%);
}

.hero h1 {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(28px, 4vh, 56px);
  z-index: 1;
  margin: 0;
  font-size: clamp(36px, 6.4vw, 96px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  max-width: 11em;
}

.section {
  padding: 88px var(--pad) 72px;
  max-width: var(--max);
  margin: 0 auto;
}

.section-tight {
  padding-top: 48px;
  padding-bottom: 32px;
}

.display {
  margin: 0;
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.lede {
  max-width: 36em;
  font-size: 18px;
  margin: 28px 0 0;
}

.marquee {
  overflow: hidden;
  border-top: var(--hairline);
  border-bottom: var(--hairline);
  padding: 28px 0;
}

.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 42s linear infinite;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.marquee-track span::after {
  content: " · ";
  font-weight: 400;
}

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.stack-diagram {
  border: var(--hairline);
  min-height: 320px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  background: var(--white);
}

.stack-node {
  border: var(--hairline);
  padding: 18px 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stack-node.center {
  background: var(--ink);
  color: var(--white);
  align-self: center;
  width: 70%;
  text-align: center;
}

.stack-arrow {
  height: 28px;
  width: 1px;
  background: var(--ink);
  margin: 0 auto;
}

.stack-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.stack-row span {
  border: var(--hairline);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
}

.work-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
}

.work-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.work-card {
  flex: 0 0 min(78vw, 420px);
  scroll-snap-align: start;
}

.work-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #ddd;
}

.work-card.placeholder {
  background: var(--ink);
  color: var(--white);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.work-card h3 {
  margin: 16px 0 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.work-card p {
  margin: 0;
  font-size: 15px;
  max-width: 36em;
}

.stats-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  border-top: var(--hairline);
  padding: 20px 0;
}

.stat-row:last-child {
  border-bottom: var(--hairline);
}

.stat-row dt {
  font-size: 16px;
  font-weight: 700;
}

.stat-row dd {
  margin: 0;
  font-size: clamp(56px, 10vw, 140px);
  font-weight: 300;
  letter-spacing: -0.06em;
  line-height: 0.85;
}

.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: var(--hairline);
  border-bottom: var(--hairline);
}

.logos li {
  list-style: none;
  margin: 0;
  padding: 28px 12px;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 15px;
  border-right: var(--hairline);
}

.logos {
  padding: 0;
}

.logos li:last-child {
  border-right: 0;
}

.cta {
  padding: 96px var(--pad);
}

.cta .display {
  margin-bottom: 28px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.store-badge img {
  height: 48px;
  width: auto;
}

.site-footer {
  border-top: var(--hairline);
  padding: 40px var(--pad) 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 24px;
  align-items: end;
  max-width: var(--max);
  margin: 0 auto;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.footer-mark {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-align: right;
}

.footer-copy {
  grid-column: 1 / -1;
  font-size: 13px;
  opacity: 0.7;
  margin-top: 12px;
}

/* Legal */
body.legal {
  background: var(--cream);
}

.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) var(--pad) 80px;
}

.legal-main h1 {
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 16px;
}

.legal-main h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
  margin: 40px 0 12px;
}

.legal-main h3 {
  font-size: 17px;
  margin: 24px 0 8px;
}

.legal-main h4 {
  font-size: 15px;
  margin: 20px 0 8px;
}

.legal-main p,
.legal-main li {
  font-size: 15px;
  line-height: 1.55;
}

.legal-main a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-main ul {
  padding-left: 1.2em;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    color: var(--ink);
    flex-direction: column;
    padding: 20px var(--pad) 28px;
    border-bottom: var(--hairline);
    gap: 16px;
  }

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

  .split,
  .stats-intro,
  .site-footer,
  .logos {
    grid-template-columns: 1fr;
  }

  .logos li {
    border-right: 0;
    border-bottom: var(--hairline);
  }

  .footer-mark {
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 72px);
    bottom: 32px;
  }
}
