/* ==========================================================================
   ANTIHORIZN landing page: the new sections.
   Loaded after launch.css on index.html.
   H1  Hero            the tagline, two tones, and what sits under it
   H2  Ask             the prompt box from the launch film
   H3  Manifesto       four typed lines with six machines arriving around them
   H4  Film            the launch film's loop and its play control
   H5  Figures         four numbers on night
   H6  Finale          the close
   H7  Small screens and reduced motion
   ========================================================================== */

/* --- H1. Hero ------------------------------------------------------------ */

/* Two lines, two tones: grey sets up, paper lands. */
.lhero__title {
  font-size: clamp(52px, min(9.6vw, 15.4vh), 156px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--grey);
}
.lhero__title span { color: #FFFFFF; }
.lhero .chip { color: var(--on-dark-soft); border-color: var(--line-night-2); }
.lhero__sub { max-width: 46ch; }
.lhero__ask { margin-top: clamp(20px, 3vh, 34px); max-width: 620px; }
.lhero__actions { gap: clamp(18px, 2.2vw, 34px); margin-top: clamp(16px, 2.4vh, 26px); }
.lhero__actions .arrow-link { color: var(--on-dark-soft); border-bottom-color: var(--line-night-2); }

/* "Watch the film": a small disc and a line of text. */
.filmlink {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  color: #FFFFFF;
}
.filmlink i {
  position: relative;
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #FFFFFF;
  transition: transform 320ms var(--ease-out);
}
.filmlink i::before {
  content: "";
  position: absolute;
  left: 13px; top: 10px;
  border-left: 11px solid #0B0B0C;
  border-block: 7px solid transparent;
}
.filmlink small { font-size: 12px; font-weight: 400; color: var(--dim); }
@media (hover: hover) and (pointer: fine) {
  .filmlink:hover i { transform: scale(1.12); }
}

/* --- H2. Ask ------------------------------------------------------------- */
/* The prompt box as the film draws it: one pill, one line, one round button.
   It is a real form. Submitting goes to the studio with the text. */

.ask {
  position: relative;
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 8px 0 26px;
  border-radius: 32px;
  background: #FFFFFF;
  color: #0B0B0C;
  box-shadow: 0 0 0 1px rgba(11, 11, 12, 0.14), 0 18px 50px -18px rgba(0, 0, 0, 0.55);
  transition: box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.ask:focus-within { box-shadow: 0 0 0 2px #0B0B0C, 0 0 0 5px rgba(255, 255, 255, 0.9), 0 18px 50px -18px rgba(0, 0, 0, 0.55); }
.ask input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 18px;
  letter-spacing: -0.012em;
  color: #0B0B0C;
}
.ask input::placeholder { color: #8A8A8F; opacity: 1; }
/* While the examples type themselves the real placeholder steps aside. */
.ask[data-ghosting="true"] input::placeholder { color: transparent; }
.ask__ghost {
  position: absolute;
  left: 26px; right: 70px; top: 0; bottom: 0;
  display: none;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  font-size: 18px;
  letter-spacing: -0.012em;
  color: #0B0B0C;
  pointer-events: none;
}
.ask[data-ghosting="true"] .ask__ghost { display: flex; }
.ask__ghost::after {
  content: "";
  flex: none;
  width: 2px; height: 1.2em;
  margin-left: 2px;
  background: #0B0B0C;
  animation: tyBlink 900ms steps(1) infinite;
}
.ask button {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #0B0B0C;
  color: #FFFFFF;
  transition: transform 180ms var(--ease-out);
}
.ask button:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) {
  .ask button:hover { transform: scale(1.08); }
}
.ask button:focus-visible { outline: 2px solid #0B0B0C; outline-offset: 3px; }

/* --- H3. Manifesto ------------------------------------------------------- */

.manifesto { background: var(--paper); color: var(--ink); overflow: hidden; }
.manifesto__stage {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  min-height: clamp(700px, 112vh, 1100px);
  padding: clamp(110px, 15vh, 180px) var(--gutter) clamp(150px, 24vh, 260px);
  display: grid;
  place-content: center;
  justify-items: center;
}
.manifesto__lines {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(14px, 2.2vh, 26px);
  max-width: 21ch;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(28px, 3.9vw, 62px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.manifesto__lines p { min-height: 1.08em; }
.manifesto__lines strong { font-weight: 800; }
.manifesto__quiet { color: var(--grey); }
/* A line that has not started typing takes its room and shows nothing. */
.js .manifesto__lines [data-type]:not([data-typed]) { color: transparent; }
.manifesto__more {
  position: relative;
  z-index: 2;
  margin-top: clamp(34px, 5vh, 60px);
  color: var(--ink);
}

/* The six machines. Each pops in the way the film's insets do: a little
   small, a little soft, then exact. They are links to the History page. */
.pin {
  position: absolute;
  z-index: 1;
  width: var(--w);
}
.js .pin {
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  transition: opacity 620ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: calc(var(--k) * 520ms + 200ms);
}
.js .manifesto__stage.is-in .pin { opacity: 1; transform: none; }
.pin a { display: block; }
.pin img {
  width: 100%;
  aspect-ratio: var(--ar, 4 / 3);
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  box-shadow: 0 24px 60px -28px rgba(11, 11, 12, 0.5);
  transition: transform 520ms var(--ease-out), filter 520ms var(--ease-out);
}
.pin figcaption {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.2;
  color: var(--ink-mute);
}
.pin figcaption b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .pin a:hover img { transform: scale(1.04); filter: grayscale(1) contrast(1.2); }
}
.pin--1 { --w: clamp(120px, 12vw, 200px); --ar: 1 / 1;   left: 7%;    top: 11%; }
.pin--2 { --w: clamp(150px, 16vw, 270px); --ar: 4 / 3;   right: 4%;   top: 8%; }
.pin--3 { --w: clamp(150px, 17vw, 290px); --ar: 16 / 10; left: 2.5%;  top: 44%; }
.pin--4 { --w: clamp(120px, 12.5vw, 210px); --ar: 4 / 3; right: 7%;   top: 47%; }
.pin--5 { --w: clamp(96px, 9vw, 156px);   --ar: 2 / 3;   left: 15%;   bottom: 4%; }
.pin--6 { --w: clamp(160px, 18vw, 300px); --ar: 2 / 1;   right: 15%;  bottom: 5%; }

/* --- H4. Film ------------------------------------------------------------ */

.filmsec { padding-block: var(--stack); }
.filmsec .lead { margin-bottom: clamp(32px, 5vh, 60px); }
.filmcard {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 82vh;
  overflow: hidden;
  background: #000;
  color: #FFFFFF;
  text-align: left;
  cursor: pointer;
}
.filmcard video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transform: scale(1.01);
  transition: filter 900ms var(--ease-out), transform 1400ms var(--ease-out);
}
/* The page is black and white. The product is the only thing in colour, and
   only once you reach for it. */
@media (hover: hover) and (pointer: fine) {
  .filmcard:hover video { filter: none; transform: scale(1.035); }
}
.filmcard:focus-visible video { filter: none; }
.filmcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 12, 0.1) 40%, rgba(11, 11, 12, 0.72) 100%);
  pointer-events: none;
}
.filmcard__ui {
  position: absolute;
  z-index: 1;
  left: clamp(20px, 3vw, 48px);
  bottom: clamp(20px, 3vw, 44px);
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.8vw, 28px);
}
.filmcard__txt {
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.filmcard__txt small {
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.006em;
  color: rgba(255, 255, 255, 0.72);
}
.filmcard__tag {
  position: absolute;
  z-index: 1;
  right: clamp(20px, 3vw, 48px);
  bottom: clamp(20px, 3vw, 44px);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* The marquee between the manifesto and the film sits on paper. */
.manifesto + .marquee { color: var(--ink); background: var(--paper); border-bottom: 0; }

/* --- H5. Figures --------------------------------------------------------- */

.figures { padding-block: clamp(64px, 10vh, 120px); border-top: 1px solid var(--line-night); }
.figures__row {
  display: grid;
  grid-template-columns: 0.7fr 1.25fr 1fr 1fr;
  margin: 0;
  border-top: 1px solid var(--line-night-2);
}
.figures__row > div { padding: 22px clamp(16px, 2vw, 32px) 0 0; }
.figures__row > div + div { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line-night); }
.figures__row dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(56px, 8.4vw, 138px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: #FFFFFF;
}
.figures__row dd b { font-weight: inherit; }
.figures__row dt {
  margin-top: 16px;
  max-width: 26ch;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.006em;
  color: var(--dim);
}
.figures__out {
  margin-top: clamp(40px, 6vh, 72px);
  max-width: 34ch;
  font-family: var(--display);
  font-size: clamp(24px, 2.35vw, 36px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--grey);
}

/* --- H6. Finale ---------------------------------------------------------- */

.finale { padding-block: clamp(90px, 16vh, 200px) clamp(72px, 11vh, 140px); overflow: hidden; }
.finale__title {
  margin-top: 22px;
  font-family: var(--display);
  font-size: clamp(64px, 14.6vw, 264px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--grey);
}
.finale__title span { display: block; color: #FFFFFF; }
.finale__row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.4vw, 40px);
  align-items: start;
  margin-top: clamp(40px, 7vh, 88px);
}
.finale__ask { grid-column: span 7; }
.finale__side { grid-column: 9 / -1; }
.finale .ask { height: 76px; border-radius: 38px; padding-left: 32px; }
.finale .ask input, .finale .ask__ghost { font-size: 21px; }
.finale .ask__ghost { left: 32px; right: 82px; }
.finale .ask button { width: 58px; height: 58px; }

/* --- H7. Small screens and reduced motion -------------------------------- */

@media (max-width: 900px) {
  .manifesto__stage { min-height: 0; padding-block: 84px; }
  .pin { position: static; display: none; }
  .figures__row { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .figures__row > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .finale__ask, .finale__side { grid-column: 1 / -1; }
  .filmcard__tag { display: none; }
  .ask input, .ask__ghost { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .pin { opacity: 1; transform: none; transition: none; }
  .js .manifesto__lines [data-type]:not([data-typed]) { color: inherit; }
  .ask__ghost::after { animation: none; }
  .filmcard video { transition: none; }
}
