.home { --nav-box: calc(var(--nav-top) + clamp(52px, 8.56vw, 148px)); }
.home .site-nav { height: var(--nav-box); }
.home .site-nav + main { margin-top: calc(-1 * var(--nav-box)); }

.display {
  font-size: var(--t-display);
  line-height: 1.27;
  text-align: center;
}

.hero {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  padding-top: min(271px, calc(140px + 6.1vw));
  padding-bottom: clamp(48px, 6.4vw, 110px);
  background: var(--lavender);
}
.hero__headline {
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
  padding: 10px;
  font-size: clamp(2.125rem, 3.75vw, 4.6875rem);
}
.scribble-underline,
.scribble-burst {
  position: relative;
  display: inline-block;
  z-index: 0;
}
.scribble-underline::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -4%;
  bottom: 0.08em;
  height: 0.13em;
  background: url("/assets/img/home/scribble-hero-underline.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.scribble-burst::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.5em;
  aspect-ratio: 186 / 124;
  transform: translate(-48%, -44%);
  background: url("/assets/img/home/scribble-hero-starburst.svg") center / 100% 100% no-repeat;
  z-index: -1;
  pointer-events: none;
}
.hero__headline .scribble-burst::before {
  width: 4.7em;
  height: 1.75em;
  aspect-ratio: auto;
  transform: translate(-50%, -50%);
  background-image: url("/assets/img/home/scribble-hero-burst-wide.svg");
}
.scribble-x {
  position: relative;
  display: inline-block;
}
.scribble-x::after {
  content: "";
  position: absolute;
  inset: 0.08em -0.05em 0.02em;
  background: url("/assets/img/home/scribble-hero-x.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.hero__cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(24px, 4.57vw, 79px);
  max-width: 1400px;
  margin: clamp(40px, 4.9vw, 85px) auto 0;
  padding: 0;
  list-style: none;
}
.hero__cards > li {
  width: min(100%, 401px);
  list-style: none;
}

.hero-card {
  width: 100%;
  aspect-ratio: 401 / 441;
  perspective: 900px;
  --tc-radius: 0px;
  --tc-shadow-color: rgba(21, 43, 48, 0.55);
}
.hero-card .tilted-card__body,
.hero-card .tilted-card__shadow {
  width: 100%;
  height: 100%;
}
.hero-card .tilted-card__shadow {
  -webkit-mask: var(--card-mask) center / 100% 100% no-repeat;
  mask: var(--card-mask) center / 100% 100% no-repeat;
  filter: blur(14px);
}
.hero-card .tilted-card__face {
  -webkit-mask: var(--card-mask) center / 100% 100% no-repeat;
  mask: var(--card-mask) center / 100% 100% no-repeat;
  border-radius: 0;
}
.hero-card .tilted-card__rim { display: none; }
.hero-card--circle { --card-mask: url("/assets/img/home/hero-circle.png"); }
.hero-card--pen { --card-mask: url("/assets/img/home/hero-pen.png"); }
.hero-card--hand { --card-mask: url("/assets/img/home/hero-hand.png"); }
.hero-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.hero-card__label {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 7.5%;
  z-index: 2;
  color: var(--white);
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(1rem, 1.39vw, 1.5rem);
  line-height: 1.3;
}
.hero-card--pen .hero-card__label { left: 12%; }
.hero-card--hand .hero-card__label { left: 9.5%; bottom: 6%; }
.hero-card__text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 21.5% 13.2% 6%;
  color: var(--white);
  text-align: center;
}
.hero-card__text h2 {
  padding: 0 2px;
  background: var(--deep);
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(1rem, 1.39vw, 1.5rem);
  line-height: 1.3;
}
.hero-card__text p {
  margin-top: 10px;
  font-size: clamp(0.9375rem, 1.39vw, 1.5rem);
  line-height: 1.25;
}
.hero-card--pen .hero-card__text { padding-top: 18%; }
.hero__cta {
  max-width: 1400px;
  margin: clamp(40px, 4.6vw, 80px) auto 0;
  padding-right: clamp(72px, 7vw, 130px);
  color: var(--night);
  font-size: var(--t-copy);
  line-height: 1.3;
  text-align: right;
}
.hero__cta a { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; }
.hero__cta a:hover { color: var(--white); }
.hero-card--hand .hero-card__text { padding-top: 24.7%; }

.tagline {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(120px, 9.3vw, 160px) var(--gutter) clamp(64px, 8vh, 120px);
  background: var(--lavender);
}
.features__track .chapter--shot {
  --notes-w: clamp(170px, 15vw, 270px);
  --gotya-w: clamp(170px, 15vw, 260px);
  position: relative;
  align-self: center;
  width: 100vw;
  max-width: none;
  min-height: 100svh;
  margin: 0 var(--gotya-w) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.4vw, 44px);
  padding: clamp(100px, 9vw, 160px) var(--gutter) clamp(32px, 5vh, 72px);
}
.shot-frame {
  position: relative;
  flex: none;
  width: min(calc(100vw - 2 * var(--gutter) - var(--notes-w) - clamp(20px, 2.4vw, 44px)), calc((100svh - clamp(132px, 14vw, 232px)) * 1.733));
}
.shot-notes {
  flex: none;
  align-self: stretch;
  width: var(--notes-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(8px, 2vh, 32px);
}
.note {
  position: relative;
  color: var(--white);
  font-family: var(--heading);
  font-weight: 300;
  line-height: 1.15;
  text-decoration: none;
}
.note--draft {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 480 / 162;
  padding: 0 14%;
  background: url("/assets/img/home/scribble-starburst-wide.svg") center / 100% 100% no-repeat;
  font-size: clamp(1rem, 1.35vw, 1.5rem);
  text-align: center;
  transform: rotate(-7deg);
}
.note--draft:hover span,
.note--draft:focus-visible span { text-decoration: underline; text-underline-offset: 0.18em; }
.note--scroll {
  margin-top: clamp(28px, 5vh, 64px);
  width: 78%;
  font-size: clamp(1.125rem, 1.6vw, 1.75rem);
  text-align: center;
}
.note__down { transform: rotate(-6deg); }
.note__arrow,
.note__strike {
  display: block;
  overflow: visible;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.note__arrow path,
.note__strike path { vector-effect: non-scaling-stroke; }
.note__arrow--down {
  width: 30%;
  margin: 8px auto 0;
}
.note__strike {
  position: absolute;
  left: -8%;
  top: -6%;
  width: 116%;
  height: 108%;
}
.note__strike path,
.note--gotya path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 260ms var(--ease);
}
.note__strike path + path { transition-delay: 200ms; }
.note--gotya {
  position: absolute;
  left: 100%;
  top: 50%;
  width: var(--gotya-w);
  padding: 0 clamp(12px, 1.4vw, 24px);
  font-size: clamp(1.25rem, 1.9vw, 2rem);
  transform: translateY(-50%);
}
.note__gotya {
  opacity: 0;
  transform: rotate(-5deg) scale(0.9);
  transition: opacity 200ms var(--ease) 380ms, transform 260ms var(--ease) 380ms;
}
.note__arrow--right {
  width: 100%;
  margin-top: 10px;
}
.note--gotya path { transition-delay: 560ms; }
.note--gotya path + path { transition-delay: 760ms; }
.chapter--shot.is-moving .note__strike path,
.chapter--shot.is-moving .note--gotya path { stroke-dashoffset: 0; }
.chapter--shot.is-moving .note__gotya { opacity: 1; transform: rotate(-5deg) scale(1); }
.shot {
  width: 100%;
  border-radius: clamp(10px, 1.1vw, 18px);
  box-shadow: 0 28px 60px -18px rgba(21, 43, 48, 0.55);
}
.tagline__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tagline__icon {
  width: clamp(180px, 21.2vw, 367px);
  margin-bottom: clamp(-40px, -3.76vw, -65px);
  position: relative;
  z-index: 1;
  --nudge-y: 0px;
  will-change: transform;
}
.tagline__icon img {
  width: 100%;
  transform: translateY(var(--nudge-y));
  transition: transform 500ms var(--ease);
}
.tagline__headline {
  max-width: 1330px;
  position: relative;
  z-index: 2;
}
.tagline__live { display: block; }
.tagline__live div { position: relative; }

.story {
  position: relative;
  z-index: 2;
  background: var(--lavender);
}
.story__bg {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  margin-bottom: -100vh;
  margin-bottom: -100svh;
  background: #070b12;
  overflow: hidden;
}

.features {
  position: relative;
  z-index: 2;
}
.features__inner {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--lavender);
  overflow: hidden;
}
.features__track {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.1vw, 19px);
  width: max-content;
  padding: 0 clamp(16px, 1.33vw, 23px) 0 0;
  will-change: transform;
}
.chapter {
  flex: none;
  align-self: flex-start;
  margin-top: max(0px, calc((100svh - 800px) / 2));
  width: calc(100vw - 2 * clamp(16px, 1.33vw, 23px));
  max-width: 1682px;
}
.chapter__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 4.9vw, 85px) clamp(40px, 10vw, 180px);
  max-width: min(1500px, calc((100svh - 470px) * 3.56 + 260px));
  margin: 0 auto;
  padding: clamp(56px, 6vw, 110px) clamp(16px, 4vw, 80px) 0;
}
.chapter__statement {
  grid-column: 1 / -1;
  grid-row: 2;
  max-width: 60%;
  align-self: start;
  color: var(--white);
  font-size: clamp(1.5rem, 2.5vw, 2.75rem);
  line-height: 1.33;
}
.chapter__aside {
  display: flex;
  flex-direction: column;
  gap: 6px;
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  max-width: 320px;
  padding-top: clamp(0px, 0.8vw, 14px);
}
.chapter__aside h3 { font-size: var(--t-copy); }
.chapter__aside p { font-size: var(--t-small); line-height: 1.3; }

.video-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.video-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  padding-left: clamp(12px, 1.39vw, 24px);
  color: var(--white);
  font-size: var(--t-label);
}
.video-card__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  background: var(--night);
  overflow: hidden;
}
.video-card__screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-card__enlarge {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--lavender);
  border-radius: 50%;
  background: var(--night);
  cursor: pointer;
}
.video-card__enlarge img { width: 16px; height: 16px; }
.video-card__enlarge:hover { background: #24454c; }

.video-lightbox {
  width: min(90vw, calc((100svh - 140px) * 16 / 9));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 52px 0 0;
  border: 0;
  background: transparent;
  overflow: auto;
  overscroll-behavior: contain;
}
.video-lightbox::backdrop { background: rgba(21, 43, 48, 0.85); }
.video-lightbox__frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  background: var(--night);
  overflow: hidden;
}
.video-lightbox__frame video {
  display: block;
  width: 100%;
  height: 100%;
}
.video-lightbox__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--lavender);
  border-radius: 50%;
  background: var(--night);
  cursor: pointer;
}
.video-lightbox__close::before,
.video-lightbox__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--white);
  transform: translate(-50%, -50%) rotate(45deg);
}
.video-lightbox__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.video-lightbox__close:hover { background: #24454c; }
.video-lightbox :focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.video-card__context {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 2.9vw, 50px);
  padding-left: clamp(12px, 2.3vw, 40px);
}
.scribble {
  position: relative;
  flex: none;
  width: clamp(104px, 7.3vw, 126px);
  min-height: clamp(62px, 4.3vw, 75px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--t-label);
  line-height: 1;
  text-align: center;
}
.scribble::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 146%;
  aspect-ratio: 184 / 130;
  transform: translate(-50%, -50%);
  background: var(--scribble) center / 100% 100% no-repeat;
  pointer-events: none;
}
.scribble span {
  position: relative;
  display: block;
  transform: rotate(6deg);
}
.scribble--world { --scribble: url("/assets/img/home/scribble-world.svg"); }
.scribble--plan { --scribble: url("/assets/img/home/scribble-plan.svg"); }
.scribble--draft { --scribble: url("/assets/img/home/scribble-draft.svg"); }
.scribble--history { --scribble: url("/assets/img/home/scribble-history.svg"); }
.scribble--insight { --scribble: url("/assets/img/home/scribble-insight.svg"); }
.scribble--share { --scribble: url("/assets/img/home/scribble-share.svg"); }
.video-card__copy {
  max-width: 304px;
  padding-top: 2px;
  font-size: var(--t-small);
  line-height: 1.3;
}

.statements {
  position: relative;
  z-index: 1;
}
.statement {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(64px, 10vh, 120px) var(--gutter);
  color: var(--white);
}
.statement p {
  max-width: 1277px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: var(--t-statement);
  line-height: 1.32;
  text-align: center;
  text-shadow: 0 2px 24px rgba(7, 11, 18, 0.6);
}

.enter {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(48px, 3.4vw, 59px) 0;
  background: var(--lavender);
}
.enter > .wrap { width: 100%; }
.enter__grid {
  display: grid;
  grid-template-columns: minmax(0, 818fr) minmax(0, 781fr);
  align-items: center;
  gap: clamp(32px, 2.9vw, 50px);
}
.enter__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(48px, 6vw, 104px);
  padding: 0 clamp(0px, 7.1vw, 123px);
}
.enter__headline {
  color: var(--white);
}
.enter__lead {
  max-width: 572px;
  margin-top: clamp(24px, 2.9vw, 50px);
  font-size: var(--t-copy);
  line-height: 1.27;
  text-align: center;
}
.enter__by {
  position: relative;
  padding: clamp(32px, 3.6vw, 62px) clamp(40px, 4.2vw, 72px);
  color: var(--white);
  font-size: var(--t-copy);
  text-align: center;
  white-space: nowrap;
}
.enter__by::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/img/home/scribble-starburst-wide.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.enter__by span { position: relative; }
.enter__spiral {
  width: 100%;
  max-width: 781px;
  aspect-ratio: 781 / 1000;
  max-height: 100svh;
  justify-self: end;
}
.enter__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.enter__spiral .infinite-spiral__item {
  border: 0;
  background: none;
  box-shadow: none;
}

.values {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--lavender);
}
.values__stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.values__gallery {
  width: 100%;
  height: min(84svh, 860px);
}
.values__fallback {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  height: 100%;
  margin: 0;
  padding: 24px var(--gutter);
  list-style: none;
  color: var(--white);
  text-align: center;
}
.values__fallback li {
  width: min(100%, 405px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.values__fallback img {
  width: 100%;
  aspect-ratio: 405 / 544;
  object-fit: cover;
  border-radius: var(--radius-frame);
}
.values__fallback p { font-size: var(--t-copy); line-height: 1.27; }
.values__gallery .circular-gallery-label {
  font-family: var(--heading);
  text-align: center;
  white-space: normal;
  width: 405px;
  max-width: 80vw;
  padding-top: 2.4em;
  line-height: 1.27;
}
.values__gallery .circular-gallery-caption { display: none; }
.values__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: min(92vw, 640px);
  transform: translate(-50%, -62%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 46px;
  color: var(--white);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--calm) var(--ease);
}
.values__panel[hidden] { display: none; }
.values__panel.is-open { opacity: 1; }
.values__panel p { font-size: var(--t-copy); line-height: 1.27; }
.values__panel p + p { margin-top: 16px; }
.values__panel .button { pointer-events: auto; }

.humans {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(64px, 9.6vw, 166px) 0;
}
.paper {
  position: relative;
  width: 100%;
  max-width: 1298px;
  aspect-ratio: 1298 / 786;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
.paper__stage {
  position: absolute;
  inset: -6% -4%;
  display: none;
}
.paper--live .paper__stage { display: block; }
.paper--live .paper__sheet {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  background: none;
  box-shadow: none;
}
.paper__stage .paper-crumple-hit { cursor: pointer; }
.paper__stage .paper-crumple-hit[data-held='true'] { cursor: grabbing; }
.paper__sheet {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px clamp(24px, 4vw, 80px);
  background: #d6d4d1 url("/assets/img/home/paper-scrap.jpg") center / cover no-repeat;
  box-shadow: 0 24px 60px -30px rgba(21, 43, 48, 0.45);
  will-change: transform, clip-path, filter;
}
.paper:focus-visible { outline: 3px solid var(--night); outline-offset: 6px; }
.paper__text {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.28em;
}
.paper__accent {
  position: relative;
  z-index: 0;
  color: #846593;
}
.paper__accent[data-star]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: 2.6em;
  aspect-ratio: 186 / 124;
  transform: translate(-50%, -48%);
  background: url("/assets/img/home/scribble-hero-starburst.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}

.site-foot { position: relative; z-index: 3; }

@media (max-width: 1099px) {
  .features__inner { min-height: 0; display: block; }
  .features__track {
    flex-direction: column;
    width: auto;
    gap: clamp(48px, 6vw, 85px);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
  .chapter { width: auto; margin-top: 0; }
  .features__track .chapter--shot { width: auto; min-height: 0; margin: 0; padding: 96px 0 24px; flex-direction: column-reverse; }
  .shot-frame { width: 100%; }
  .shot-notes { align-self: center; width: auto; padding: 0; }
  .note--draft { width: 260px; }
  .note--gotya { display: none; }
  .shot { width: 100%; }
  .chapter__grid { grid-template-columns: 1fr; gap: 40px; max-width: none; padding: 0; }
  .chapter__statement { grid-column: auto; grid-row: auto; max-width: none; }
  .chapter__aside { grid-column: auto; grid-row: auto; justify-self: start; }
  .note--scroll { display: none; }
  .chapter__aside { max-width: none; }
  .enter__grid { grid-template-columns: 1fr; }
  .enter__spiral { justify-self: center; aspect-ratio: 4 / 5; max-height: 80svh; }
  .enter__text { padding: 0; }
  .values { position: relative; }
}

@media (max-width: 720px) {
  .home .site-nav { height: auto; }
  .home .site-nav + main { margin-top: 0; }
  .hero { padding-top: 48px; min-height: 0; }
  .hero__headline { padding: 0; }
  .hero__headline .scribble-burst::before { width: 3.9em; height: 1.45em; }
  .hero__cards { gap: 32px; }
  .hero__cta { padding-right: 0; text-align: center; }
  .hero-card { width: min(100%, 320px); }
  .features__track .chapter--shot { padding: 48px 0 24px; }
  .tagline { min-height: 0; padding: 72px var(--gutter); }
  .video-card__context { flex-direction: column; gap: 24px; padding-left: 28px; }
  .video-card__copy { max-width: none; }
  .video-card__enlarge { display: none; }
  .statement { min-height: 70svh; }
  .enter__by { white-space: normal; }
  .values__stage { min-height: 0; }
  .values__gallery { height: 72svh; }
  .values__panel { gap: 24px; }
  .humans { min-height: 0; }
  .paper:not(.paper--live) { aspect-ratio: auto; }
  .paper__sheet { padding: 48px 20px; }
  .paper__stage { inset: -4% -2%; }
}

@media (prefers-reduced-motion: reduce) {
  .values { position: relative; }
}
