:root {
  --ink: #0a0a0a;
  --paper: #f4f4f0;
  --brand: #e8222b;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 3.5rem;
  --pad: clamp(1rem, 4vw, 3.5rem);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.4;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a:hover,
a:active {
  color: var(--brand);
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.skip:focus {
  top: 1rem;
}

#top,
#approach,
#method,
#contact {
  scroll-margin-top: var(--nav-h);
}

/* —— NAV —— */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 var(--pad);
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 12%, transparent);
}

.nav__mark {
  font-weight: 900;
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  letter-spacing: 0.22em;
}

.nav__list {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

/* —— TYPE —— */

.display,
.display-stack,
.display-md,
.display-sm,
.footer__mark {
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.8;
  text-transform: uppercase;
  margin: 0;
}

.display {
  display: block;
  font-size: clamp(3.8rem, 14.5vw, 13rem);
  line-height: 0.86;
}

.display-md {
  font-size: clamp(2.6rem, 9vw, 8.5rem);
}

.display-sm {
  font-size: clamp(1.8rem, 5vw, 4.2rem);
}

.eyebrow,
.kicker,
.soon {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.eyebrow {
  font-size: clamp(0.62rem, 1vw, 0.85rem);
  letter-spacing: 0.16em;
  line-height: 1.35;
  max-width: 100%;
}

.kicker {
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--paper) 70%, transparent);
}

.soon {
  font-size: clamp(1.1rem, 3.2vw, 2.6rem);
  letter-spacing: 0.18em;
  color: var(--paper);
}

.lede,
.body {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  max-width: 28ch;
  font-weight: 400;
}

/* —— REVEAL —— */

[data-reveal] {
  display: block;
  overflow: hidden;
  padding-top: 0.08em;
  padding-bottom: 0.14em;
}

[data-reveal] > span {
  display: block;
  transform: translateY(115%);
  transition: transform 0.95s var(--ease);
}

[data-reveal].is-in > span {
  transform: translateY(0);
}

.display-stack [data-reveal]:nth-child(2) > span,
.display-md [data-reveal]:nth-child(2) > span {
  transition-delay: 0.08s;
}

.display-md [data-reveal]:nth-child(3) > span {
  transition-delay: 0.16s;
}

/* —— HERO —— */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  grid-template-rows: 1fr;
  overflow: hidden;
}

.hero__media {
  grid-column: 2 / -1;
  grid-row: 1;
  min-height: calc(100vh - var(--nav-h));
}

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

.hero__copy {
  grid-column: 1 / -1;
  grid-row: 1;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--pad);
  padding-bottom: clamp(1.5rem, 5vh, 4rem);
  pointer-events: none;
}

.hero__copy a,
.hero__copy button {
  pointer-events: auto;
}

.hero .display {
  margin-left: -0.06em;
}

.hero .lede {
  margin-top: 1.25rem;
  max-width: 22ch;
}

.hero .soon {
  position: absolute;
  right: var(--pad);
  bottom: var(--pad);
  margin: 0;
  z-index: 4;
  text-align: right;
}

/* —— MANIFESTO —— */

.manifesto {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  padding: clamp(4rem, 12vh, 9rem) var(--pad);
  overflow: hidden;
}

.manifesto__media {
  grid-column: 6 / -1;
  grid-row: 1;
  z-index: 1;
}

.manifesto__media img {
  width: 100%;
  height: min(88vh, 920px);
  object-fit: cover;
}

.manifesto__copy {
  grid-column: 1 / 9;
  grid-row: 1;
  z-index: 2;
  align-self: center;
  padding-top: 8vh;
}

.manifesto .display-md span {
  display: block;
}

.manifesto .body {
  margin-top: 1.75rem;
  max-width: 34ch;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  padding: 0.4rem 0;
}

/* —— CARDS —— */

.axis {
  padding: clamp(3rem, 10vh, 7rem) var(--pad) clamp(2rem, 6vh, 4rem);
}

.axis__head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.flip {
  perspective: 1400px;
}

.flip__btn {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.flip__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease);
}

.flip.is-flipped .flip__inner,
.flip:focus-within .flip__inner {
  transform: rotateY(180deg);
}

@media (hover: hover) and (pointer: fine) {
  .flip:hover .flip__inner {
    transform: rotateY(180deg);
  }
}

.flip__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem;
}

.flip__face--front img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip__face--front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(10 10 10 / 0.82) 0%,
    rgb(10 10 10 / 0.05) 55%
  );
}

.flip__face--back {
  background: var(--paper);
  color: var(--ink);
  transform: rotateY(180deg);
  justify-content: space-between;
}

.flip__index {
  position: relative;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.flip__word {
  position: relative;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.85;
}

.flip__body {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.35;
  max-width: 22ch;
}

.flip__face--back .flip__word {
  color: var(--brand);
}

/* —— STATUS —— */

.status {
  border-top: 1px solid color-mix(in srgb, var(--paper) 14%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 14%, transparent);
  padding: clamp(1.5rem, 4vh, 2.75rem) var(--pad);
  overflow: hidden;
}

.status__line {
  margin: 0;
  font-weight: 900;
  font-size: clamp(1.4rem, 6.2vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
}

/* —— FOOTER —— */

.footer {
  padding: clamp(3rem, 10vh, 6rem) var(--pad) 1.5rem;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
}

.footer__mark {
  font-size: clamp(4.2rem, 22vw, 22rem);
  line-height: 0.78;
}

.footer__mark span {
  display: block;
}

.footer__bar {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--paper) 14%, transparent);
}

.footer__bar nav {
  display: flex;
  gap: 1.5rem;
}

/* —— TABLET + PHONE —— */

@media (max-width: 900px) {
  :root {
    --nav-h: 6.5rem;
  }

  .nav {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
    padding-top: 0.5rem;
    padding-bottom: 0.35rem;
    gap: 0.15rem;
  }

  .nav__list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
  }

  .nav__list a {
    justify-content: center;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    min-height: 44px;
  }

  .nav__list li:nth-child(1) a {
    justify-content: flex-start;
  }

  .nav__list li:nth-child(3) a {
    justify-content: flex-end;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .hero__media {
    min-height: 38vh;
    order: 1;
  }

  .hero__media img {
    height: 38vh;
  }

  .hero__copy {
    position: relative;
    order: 2;
    padding-top: 1.25rem;
    pointer-events: auto;
  }

  .hero .display {
    font-size: clamp(3.2rem, 16vw, 5.5rem);
    margin-left: 0;
  }

  .hero .lede,
  .hero .soon {
    position: static;
    text-align: left;
  }

  .hero .soon {
    margin-top: 0.65rem;
  }

  .hero .lede {
    margin-top: 0.85rem;
    max-width: none;
  }

  .manifesto {
    display: flex;
    flex-direction: column;
    padding-top: 3rem;
    padding-bottom: 3rem;
    gap: 1.5rem;
  }

  .manifesto__media {
    grid-column: auto;
  }

  .manifesto__media img {
    height: 42vh;
    max-height: 420px;
  }

  .manifesto__copy {
    grid-column: auto;
    padding-top: 0;
    max-width: none;
  }

  .display-md {
    font-size: clamp(2.2rem, 12vw, 4.5rem);
  }

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

  .flip__btn {
    min-height: 44px;
    aspect-ratio: 5 / 4;
  }

  .status {
    overflow: visible;
  }

  .status__line {
    white-space: normal;
    font-size: clamp(1.35rem, 8vw, 2.4rem);
  }

  .footer {
    min-height: auto;
  }

  .footer__mark {
    font-size: clamp(3.4rem, 22vw, 7rem);
  }

  .footer__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer__bar nav {
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
  }

  .footer__bar a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* —— REDUCED MOTION —— */

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

  [data-reveal] > span,
  .flip__inner {
    transition: none;
  }

  [data-reveal] > span {
    transform: none;
  }

  .flip.is-flipped .flip__inner,
  .flip:hover .flip__inner,
  .flip:focus-within .flip__inner {
    transform: none;
  }

  .flip.is-flipped .flip__face--front,
  .flip:hover .flip__face--front,
  .flip:focus-within .flip__face--front {
    visibility: hidden;
  }

  .flip.is-flipped .flip__face--back,
  .flip:hover .flip__face--back,
  .flip:focus-within .flip__face--back {
    transform: none;
    visibility: visible;
    z-index: 2;
  }
}
