/* Zillusion — built on the YBM editorial system:
   white field, black type, grey support copy, 1px rules, one idea per section. */

:root {
  --ink: #000;
  --paper: #fff;
  --grey: #595959;
  --quiet: #f8f8f8;
  --rule: #d3d3d3;
  --font: "Neue Haas Grotesk Display Pro", "neue-haas-grotesk-display", "Helvetica Neue", "Inter Tight", Arial, sans-serif;
  --pad: 48px;
  --section: 80px;
  --spring: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }
section { scroll-margin-top: 66px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 16px/1.2 var(--font);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; font-weight: 500; }

/* ---------- Shared pieces ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--ink);
  border-radius: 1111px;
  font-size: 16px;
  line-height: 1.2;
  transition: background-color 0.3s var(--spring), color 0.3s var(--spring);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn__arrow { display: inline-block; transition: transform 0.4s var(--spring); }
.btn:hover .btn__arrow { transform: translateY(3px); }
.btn--solid:hover .btn__arrow { transform: translateX(4px); }

.pill {
  display: inline-block;
  padding: 12px 20px;
  border: 1px dashed var(--ink);
  border-radius: 1111px;
  font-size: 16px;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--ink);
  border-radius: 1111px;
  font-size: 12px;
  white-space: nowrap;
}

/* Quiet upward reveal, once, when in view */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--spring), transform 1s var(--spring);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 20px var(--pad);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: padding 0.4s var(--spring), border-color 0.4s var(--spring);
}
.nav.is-scrolled { padding-block: 12px; border-color: var(--rule); }
.nav__logo { display: block; height: 26px; margin-right: auto; }
.nav__logo svg { display: block; height: 100%; width: auto; aspect-ratio: 1414.5 / 290; fill: currentColor; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { color: var(--grey); transition: color 0.3s; }
.nav__links a:hover { color: var(--ink); }

/* ---------- 01 Manifesto ---------- */
.hero { padding: 148px var(--pad) var(--section); }
.hero .pill { margin-bottom: 32px; }
.manifesto {
  font-size: 60px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.manifesto .line { display: block; }
.manifesto .line:nth-child(2) { color: var(--grey); }
.hero__intro { max-width: 62ch; margin-top: 32px; font-size: 20px; line-height: 1.4; color: var(--grey); }
.hero .btn { margin-top: 40px; }

/* Headline token reveal */
.js .manifesto .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.js .manifesto .w > span { display: inline-block; transform: translateY(105%); transition: transform 0.8s var(--spring); transition-delay: calc(var(--i) * 35ms + 200ms); }
.js .manifesto.is-in .w > span { transform: none; }

/* The nine logo pieces — a row that assembles into the mark on scroll */
.shapes { position: relative; margin-top: 64px; }
.tile {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  fill: var(--ink);
  will-change: transform;
}
.js .tile { opacity: 0; transition: opacity 0.8s var(--spring); transition-delay: calc(var(--n) * 60ms + 700ms); }
.js .shapes.is-in .tile { opacity: 1; }
.shapes__hint { position: absolute; left: 0; right: 0; text-align: center; font-size: 14px; color: var(--grey); }

/* ---------- 02 Brands ---------- */
.brands { padding: var(--section) var(--pad); border-top: 1px solid var(--rule); }
.brands__head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 32ch);
  align-items: end;
  gap: 24px 48px;
  margin-bottom: 48px;
}
.brands__head h2 { font-size: 48px; line-height: 1.2; letter-spacing: -0.02em; }
.brands__lede { font-size: 20px; color: var(--grey); }

/* Brand index: one row per brand, text-led. Adding or removing a brand is just a row. */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.brand { border-bottom: 1px solid var(--rule); }
.brand__link {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) 120px 200px;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
}
.brand__link:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.brand__name {
  display: flex;
  align-items: center;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.brand__piece {
  flex: none;
  width: 0;
  height: 0.7em;
  fill: var(--ink);
  opacity: 0;
  transform: rotate(-90deg) scale(0.4);
  transition: width 0.5s var(--spring), margin 0.5s var(--spring), opacity 0.4s var(--spring), transform 0.6s var(--spring);
}
.brand__desc { font-size: 16px; line-height: 1.3; color: var(--grey); max-width: 44ch; }
.brand .badge { justify-self: start; }
.brand__url { justify-self: end; font-size: 14px; white-space: nowrap; }
.brand__url span { display: inline-block; transition: transform 0.4s var(--spring); }

.brand:hover .brand__piece,
.brand__link:focus-visible .brand__piece { width: 0.7em; margin-right: 0.35em; opacity: 1; transform: none; }
.brand:hover .brand__url span { transform: translate(2px, -2px); }

/* ---------- Footer ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 48px;
  padding: 24px var(--pad);
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--grey);
}
.foot__legal { margin: 0; }
.nowrap { white-space: nowrap; }
.foot__logo { height: 20px; width: auto; aspect-ratio: 1414.5 / 290; fill: var(--ink); }

/* ---------- Breakpoints ---------- */
@media (min-width: 1600px) {
  .manifesto { font-size: 72px; }
  .brands__head h2 { font-size: 64px; }
  .brand__name { font-size: 40px; }
}
@media (min-width: 2200px) {
  .manifesto { font-size: 90px; }
}
@media (max-width: 1199px) {
  :root { --pad: 24px; --section: 72px; }
  .manifesto { font-size: 44px; }
  .brand__link { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; }
  .brand__url { display: none; }
  .brands__head h2 { font-size: 42px; }
}
@media (max-width: 809px) {
  .nav { gap: 20px; }
  .nav__links { display: none; }
  .nav__logo { height: 22px; }
  .hero { padding-top: 132px; }
  .manifesto { font-size: 32px; }
  .brands__head { grid-template-columns: 1fr; gap: 16px; }
  .brand__link { grid-template-columns: 1fr auto; gap: 8px 16px; padding: 24px 0; }
  .brand__name { font-size: 24px; }
  .brand__desc { grid-column: 1 / -1; grid-row: 2; }
  .brand__url { display: inline; grid-column: 1 / -1; justify-self: start; }
  .brands__head h2 { font-size: 32px; }
  .brands__lede { font-size: 16px; }
  .hero__intro { font-size: 16px; margin-top: 24px; }
  .btn { font-size: 14px; }
}

/* No hover on touch screens: keep the pieces in place */
@media (hover: none) {
  .brand__piece { width: 0.7em; margin-right: 0.35em; opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .tile { opacity: 1; transform: none; }
  .js .manifesto .w > span { transform: none; }
}
