@font-face {
  font-family: "Ndot";
  src: url("/assets/ndot.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "NType";
  src: url("/assets/ntype82.otf") format("opentype");
  font-display: swap;
}

:root {
  --ink: #1c1c1b;
  --paper: #f2f2f0;
  --card: #fff;
  --yellow: #ffc62d;
  --radius: 20px;
  --page: min(1152px, calc(100vw - 96px));
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 13% 12%, rgba(255, 255, 255, 0.85), transparent 24%),
    radial-gradient(circle at 83% 34%, rgba(255, 255, 255, 0.62), transparent 30%),
    var(--paper);
  color: var(--ink);
  font-family: "NType", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  line-height: 1.42;
  text-rendering: optimizeLegibility;
}

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

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

.site-mark {
  position: fixed;
  z-index: 90;
  top: 31px;
  right: 31px;
  width: 31px;
  height: 31px;
  transition: transform 180ms ease;
}

.site-mark img {
  width: 100%;
  height: 100%;
}

.site-mark:hover {
  transform: rotate(30deg) scale(1.06);
}

.edge-cross {
  position: fixed;
  z-index: 80;
  color: #bebfbd;
  font: 300 28px/1 Arial, sans-serif;
  pointer-events: none;
}

.edge-cross--tl { top: 38px; left: 39px; }
.edge-cross--tr { top: 38px; right: 50%; }
.edge-cross--bl { bottom: 35px; left: 39px; }
.edge-cross--br { right: 39px; bottom: 35px; }

.floating-playground {
  position: fixed;
  z-index: 70;
  bottom: 29px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.03);
  transform: translateX(-50%);
  transition: opacity 250ms ease, transform 250ms ease, background 200ms ease;
}

.floating-playground:hover {
  background: var(--yellow);
}

body.footer-visible .floating-playground {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  overflow-x: clip;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  width: 100%;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__film,
.hero__wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__film {
  z-index: -2;
  object-fit: cover;
  transform: scale(calc(1.02 + var(--hero-progress, 0) * 0.1));
  transform-origin: center;
}

.hero__wash {
  z-index: -1;
  background: rgba(242, 242, 240, 0.08);
  mix-blend-mode: screen;
}

.hero__title,
.statement h2,
.nothing-wordmark,
.gallery-scene > p,
.history__nav button {
  font-family: "Ndot", "NType", monospace;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.hero__title {
  margin: 0;
  font-size: clamp(58px, 10vw, 144px);
  line-height: 0.8;
  text-align: center;
  animation: hero-in 1s 300ms both cubic-bezier(0.22, 1, 0.36, 1);
  opacity: calc(1 - var(--hero-progress, 0) * 1.4);
  translate: 0 calc(var(--hero-progress, 0) * -36px);
}

.hero__eyebrow {
  position: absolute;
  bottom: 70px;
  left: 50%;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  transform: translateX(-50%);
}

.hero__scroll {
  position: absolute;
  bottom: 27px;
  left: 50%;
  font-size: 9px;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
}

@keyframes hero-in {
  from { opacity: 0; transform: scale(0.78); filter: blur(14px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

.statement {
  position: relative;
  display: grid;
  width: var(--page);
  min-height: 400px;
  margin: 80px 0 56px;
  place-items: center;
  text-align: center;
}

.statement--first {
  min-height: 226px;
  margin-top: 80px;
}

.statement h2 {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.06;
}

.scroll-drawn-headline {
  white-space: normal;
}

.headline-line {
  display: inline;
}

.headline-word {
  display: inline-block;
  white-space: nowrap;
}

.headline-character {
  --character-progress: 0;
  display: inline-block;
  opacity: var(--character-progress);
  filter: blur(calc((1 - var(--character-progress)) * 1.5px));
  transform: translateY(calc((1 - var(--character-progress)) * 0.13em)) scale(calc(0.86 + var(--character-progress) * 0.14));
  transform-origin: center;
  will-change: opacity, filter, transform;
}

.headline-mobile-gap {
  display: none;
}

.statement--chapter {
  min-height: 480px;
  margin-bottom: 110px;
}

.demo {
  width: 100%;
  padding: 0 48px;
  margin-bottom: 80px;
}

.demo__frame {
  position: relative;
  width: min(1024px, 100%);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e4e4e1;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.demo__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  transform: scale(1.015);
}

.copy-scene {
  position: relative;
  display: grid;
  width: var(--page);
  min-height: 520px;
  margin-bottom: 110px;
  place-items: center;
}

.copy-scene--offset {
  place-items: center;
}

.copy-card {
  position: relative;
  z-index: 3;
  display: flex;
  width: min(444px, 90vw);
  min-height: 296px;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.025);
}

.copy-card__body {
  display: grid;
  gap: 15px;
}

.copy-card__stage {
  position: relative;
}

.copy-card__body--ghost {
  visibility: hidden;
}

.copy-card__body--typed {
  position: absolute;
  inset: 0;
  align-content: start;
}

.copy-card__body--typed p:empty::after {
  content: "\00a0";
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.copy-card__body p {
  margin: 0;
}

.copy-card__body strong {
  font-weight: 700;
}

.copy-card footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 38px;
  font-size: 8px;
}

.copy-scene--values .copy-card {
  min-height: 316px;
}

.ascii-cloud,
.decoration {
  position: absolute;
  z-index: 0;
  overflow: hidden;
  opacity: 0.19;
  pointer-events: none;
  mix-blend-mode: multiply;
  transform: translate3d(0, var(--parallax-y, 0), 0);
  will-change: transform;
}

.ascii-cloud video,
.decoration video {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.ascii-cloud {
  width: 460px;
  height: 410px;
  filter: grayscale(1) contrast(0.7);
}

.ascii-cloud--right { right: -30px; top: 0; }
.ascii-cloud--left { left: 0; bottom: -30px; }
.ascii-cloud--wide { width: 720px; height: 390px; right: -80px; top: 0; }

.decoration {
  width: 156px;
  height: 130px;
  opacity: 0.92;
  border-radius: 12px;
}

.decoration--a { top: 10px; right: 7%; }
.decoration--b { top: 30px; left: 2%; }
.decoration--c { right: -10px; bottom: 100px; }
.decoration--d { top: -20px; left: -70px; }

.gallery-scene {
  position: relative;
  display: grid;
  width: var(--page);
  min-height: 360px;
  margin: 0 0 110px;
  place-items: center;
}

.gallery-scene > p {
  margin: 140px 0 0;
  font-size: 54px;
}

.gallery-stack {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 90px;
  height: 120px;
  transform: translate(-50%, calc(-50% + var(--parallax-y, 0px)));
  will-change: transform;
}

.gallery-stack img {
  position: absolute;
  inset: 0;
  width: 76px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 240ms ease;
}

.gallery-stack img:nth-child(1) { transform: translate(-33px, 4px) rotate(-11deg); }
.gallery-stack img:nth-child(2) { transform: translate(33px, 3px) rotate(11deg); }
.gallery-stack img:nth-child(3) { transform: translate(0, -3px); }
.gallery-scene:hover .gallery-stack img:nth-child(1) { transform: translate(-46px, 0) rotate(-15deg); }
.gallery-scene:hover .gallery-stack img:nth-child(2) { transform: translate(46px, 0) rotate(15deg); }

.history {
  position: relative;
  display: grid;
  min-height: 100svh;
  width: 100%;
  grid-template-columns: minmax(340px, 0.85fr) 1.15fr;
  align-items: center;
  padding: 58px 48px 90px;
  overflow: hidden;
}

.history::before {
  position: absolute;
  inset: 14% 28% 12% 18%;
  background: radial-gradient(circle, rgba(255,255,255,.9), transparent 68%);
  content: "";
}

.history__nav {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

.history__nav button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #c8c8c6;
  cursor: pointer;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.94;
  text-align: left;
  transition: color 200ms ease, transform 200ms ease;
}

.history__nav button:is(:hover, :focus-visible, .is-active) {
  color: var(--ink);
  outline: none;
  transform: translateX(14px);
}

.history__visual {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 540px;
  place-items: center;
}

.history__visual > video {
  width: min(510px, 48vw);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(0.8);
  transition: filter 260ms ease, transform 260ms ease;
}

.history__gallery {
  position: absolute;
  display: flex;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.history__gallery img {
  width: 104px;
  height: 144px;
  border-radius: 12px;
  object-fit: cover;
  transform: rotate(-4deg);
}

.history__gallery img:nth-child(2) { transform: rotate(4deg) translateY(-16px); }
.history__gallery img:nth-child(3) { transform: rotate(9deg); }
.history[data-active="4"] .history__gallery,
.history[data-active="5"] .history__gallery,
.history[data-active="6"] .history__gallery { opacity: 1; transform: translateY(0); }
.history[data-active="6"] .history__visual > video { filter: saturate(1.4) hue-rotate(25deg); transform: scale(1.08); }

.finale {
  position: relative;
  display: grid;
  min-height: 100svh;
  width: 100%;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.finale__film {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.finale::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(242, 242, 240, 0.08);
  content: "";
}

.finale__card {
  display: flex;
  width: min(438px, calc(100vw - 48px));
  min-height: 456px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 45px 28px;
  border-radius: 22px;
  background: white;
  text-align: center;
}

.finale__card img {
  width: 120px;
  height: 120px;
  margin-bottom: 28px;
  border-radius: 16px;
}

.finale__card h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 0.98;
}

.finale__card p {
  max-width: 360px;
  margin: 0 0 26px;
  line-height: 1.36;
}

.finale__card > a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--yellow);
  transition: transform 180ms ease;
}

.finale__card > a:hover {
  transform: scale(1.04);
}

.finale__meta {
  position: absolute;
  right: 7%;
  bottom: 26px;
  left: 7%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.finale__meta nav {
  display: flex;
  gap: 10px;
}

.finale__meta nav a {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
}

.finale__meta p {
  justify-self: end;
  margin: 0;
}

.nothing-wordmark {
  font-size: 21px;
}

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.statement.reveal,
.copy-card.reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 760px) {
  :root {
    --page: calc(100vw - 40px);
    --radius: 16px;
  }

  body { font-size: 13px; }
  .site-mark { top: 16px; right: 17px; width: 30px; height: 30px; }
  .edge-cross--tl { top: 24px; left: 24px; }
  .edge-cross--tr { top: 24px; right: 50%; }
  .edge-cross--bl { bottom: 23px; left: 24px; }
  .edge-cross--br { right: 24px; bottom: 23px; }
  .edge-cross { font-size: 22px; }

  .hero__film { height: 100%; object-fit: cover; }
  .hero__title { font-size: 63px; }
  .hero__eyebrow { width: 100%; bottom: 78px; text-align: center; }
  .hero__scroll { bottom: 40px; }

  .statement,
  .statement--first,
  .statement--chapter {
    min-height: 310px;
    margin: 55px 0;
  }

  .statement h2 {
    font-size: clamp(34px, 10vw, 47px);
    line-height: 1.03;
  }

  .headline-break { display: none; }
  .headline-mobile-gap { display: inline; }

  .demo {
    padding: 0 20px;
    margin-bottom: 54px;
  }

  .demo__frame {
    aspect-ratio: 4 / 5;
  }

  .demo__frame iframe {
    left: 50%;
    width: 178%;
    transform: translateX(-50%);
  }

  .copy-scene {
    min-height: 460px;
    margin-bottom: 50px;
  }

  .copy-card {
    width: 100%;
    min-height: 350px;
    padding: 14px;
  }

  .copy-card__body { gap: 13px; }

  .ascii-cloud { width: 310px; height: 300px; opacity: .15; }
  .ascii-cloud--wide { right: -20px; width: 370px; height: 320px; }
  .decoration { width: 102px; height: 88px; }
  .decoration--a { right: -16px; }
  .decoration--b { left: -12px; }
  .decoration--d { left: -22px; }

  .gallery-scene { min-height: 310px; margin-bottom: 50px; }
  .gallery-scene > p { margin-top: 136px; font-size: 42px; }

  .history {
    min-height: 830px;
    grid-template-columns: 1fr;
    padding: 70px 22px 110px;
  }

  .history__nav {
    z-index: 4;
    gap: 24px;
  }

  .history__nav button {
    font-size: clamp(40px, 12vw, 58px);
  }

  .history__visual {
    position: absolute;
    inset: 0;
    min-height: 100%;
    opacity: .65;
  }

  .history__visual > video {
    width: 430px;
  }

  .finale {
    min-height: 844px;
    padding: 24px 20px 180px;
  }

  .finale__card {
    min-height: 485px;
    padding: 40px 27px;
  }

  .finale__card h2 { font-size: 24px; }

  .finale__meta {
    right: 20px;
    bottom: 30px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .finale__meta nav {
    width: 100%;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .finale__meta nav a { padding: 7px 12px; }
  .finale__meta p { margin-top: 8px; }
  .nothing-wordmark { order: 2; margin-top: 14px; }
  .finale__meta p { order: 3; }
}

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