/* Torch — website styles. Light paper, black type, a few bold colours, real photos. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f3ef;
  --paper-2: #eae8e2;
  --card: #fff;
  --ink: #121212;
  --ink-2: #55524d;
  --ink-3: #9a968f;
  --hair: rgba(18, 18, 18, 0.1);

  --ember: #ff5b1f;
  --cobalt: #2337e6;
  --lime: #dff45a;
  --rose: #ff6f9c;

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: clamp(20px, 2vw, 28px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: clamp(16px, 0.25vw + 15px, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.045em; }
h1 { font-size: clamp(42px, 6.6vw, 92px); line-height: 1; }
h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; }
h3 { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.15; letter-spacing: -0.03em; }
p { margin: 0; }
.soft { color: var(--ink-3); }
.line { display: block; }
.lead { color: var(--ink-2); font-size: clamp(17px, 1.1vw, 20px); max-width: 40ch; }
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.kicker b { color: var(--ember); font-weight: 600; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.btn:hover { background: #333; }
.btn svg { width: 19px; height: 19px; margin-top: -2px; }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: #f0efeb; }

/* ---------- Logo ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 19px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.logo img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }

/* ---------- Nav ---------- */

.nav { position: relative; z-index: 2; }
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.nav-links a:not(.btn) { font-size: 15px; color: var(--ink-2); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav .btn { padding: 10px 18px; font-size: 14px; }
@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); text-align: center; overflow: hidden; }
.hero h1 { text-wrap: balance; }
.hero .lead { margin: 0 auto; max-width: 44ch; }
.hero-cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 30px; }
.hero-cta .note { font-size: 14px; color: var(--ink-3); }

.fan {
  position: relative;
  margin: clamp(40px, 5vw, 64px) auto clamp(36px, 4vw, 52px);
  padding-top: 12px;
  max-width: 1000px;
}
.cards { display: flex; justify-content: center; align-items: center; }
.cards > * {
  flex: none;
  width: clamp(92px, 13vw, 168px);
  margin-inline: clamp(-14px, -1.4vw, -8px);
  transform: translateY(var(--y, 0)) rotate(var(--r, 0deg));
}
.cards > img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: clamp(12px, 1.3vw, 18px);
  border: 3px solid #fff;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.45);
  background: #ddd;
}
/* The phone: a titanium edge, a thin black bezel and the side buttons. */
.fan .screen { --pw: clamp(112px, 15vw, 204px); width: var(--pw); z-index: 1; }
.device {
  position: relative;
  padding: calc(var(--pw) * 0.016);
  border-radius: calc(var(--pw) * 0.175);
  background: linear-gradient(140deg, #8d8d92 0%, #3a3a3e 22%, #6e6e73 48%, #2c2c30 74%, #85858a 100%);
  box-shadow:
    0 calc(var(--pw) * 0.2) calc(var(--pw) * 0.32) calc(var(--pw) * -0.12) rgba(20, 12, 4, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.18);
}
.device::before, .device::after {
  content: "";
  position: absolute;
  width: calc(var(--pw) * 0.014 + 1px);
  background: #57575c;
}
.device::before {
  left: calc(var(--pw) * -0.012 - 1px);
  top: 19%;
  height: 5.5%;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 calc(var(--pw) * 0.17) 0 #57575c, 0 calc(var(--pw) * 0.32) 0 #57575c;
}
.device::after {
  right: calc(var(--pw) * -0.012 - 1px);
  top: 27%;
  height: 11%;
  border-radius: 0 2px 2px 0;
}
.bezel {
  padding: calc(var(--pw) * 0.026);
  border-radius: calc(var(--pw) * 0.16);
  background: #050505;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.bezel img {
  width: 100%;
  aspect-ratio: 660 / 1434;
  border-radius: calc(var(--pw) * 0.135);
  background: #000;
}
.cards > :nth-child(1) { --r: -13deg; --y: 64px; --d: 3; }
.cards > :nth-child(2) { --r: -8deg;  --y: 26px; --d: 2; }
.cards > :nth-child(3) { --r: -3deg;  --y: 6px;  --d: 1; }
.cards > :nth-child(4) { --d: 0; }
.cards > :nth-child(5) { --r: 3deg;   --y: 6px;  --d: -1; }
.cards > :nth-child(6) { --r: 8deg;   --y: 26px; --d: -2; }
.cards > :nth-child(7) { --r: 13deg;  --y: 64px; --d: -3; }

.tag {
  position: absolute;
  z-index: 2;
  padding: 7px 13px;
  border-radius: 14px;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.35);
  transform: rotate(var(--tr, 0deg));
}
.tag::after {
  content: "";
  position: absolute;
  bottom: -5px;
  width: 12px; height: 12px;
  background: inherit;
  transform: rotate(45deg);
  border-radius: 2px;
}
.tag.left { left: 9%; top: -6px; --tr: -4deg; }
.tag.left::after { left: 18px; }
.tag.right { right: 8%; top: 4px; --tr: 4deg; }
.tag.right::after { right: 18px; }
.tag.ember { background: var(--ember); }
.tag.cobalt { background: var(--cobalt); }
.tag.ink { background: var(--ink); }

@media (min-width: 641px) {
  .tag.left, .tag.right { top: clamp(0px, calc(6.8vw - 4px), 92px); }
}
@media (max-width: 640px) {
  .cards > :nth-child(1), .cards > :nth-child(7) { display: none; }
  .cards > * { width: 27vw; margin-inline: -3vw; }
  .fan .screen { --pw: 32vw; }
  .tag.left { left: 2%; }
  .tag.right { right: 2%; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 130px); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.split {
  grid-template-columns: 1fr minmax(0, 0.8fr);
  align-items: end;
  gap: 20px 48px;
}
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; } }

/* ---------- Rules ---------- */

.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.rule {
  display: flex;
  flex-direction: column;
  min-height: clamp(340px, 34vw, 460px);
  padding: clamp(24px, 2.4vw, 36px);
  border-radius: var(--radius);
}
.rule .num { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
.rule .big {
  margin: auto 0 18px;
  font-size: clamp(60px, 7vw, 104px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.9;
}
.rule .big small { font-size: 0.4em; letter-spacing: -0.03em; margin-left: 0.08em; }
.rule p { margin-top: 10px; max-width: 34ch; }
.rule.ember { background: var(--ember); color: #1a0a00; }
.rule.ink { background: var(--ink); color: #fff; }
.rule.ink p { color: rgba(255, 255, 255, 0.72); }
.rule.lime { background: var(--lime); color: #1b1f00; }
@media (max-width: 860px) {
  .rules { grid-template-columns: 1fr; }
  .rule { min-height: 300px; }
}

/* ---------- Lineage ---------- */

.lineage { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.lineage .section-head { position: sticky; top: 40px; margin-bottom: 0; }
.lineage .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lineage .facts span {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--hair);
  font-size: 14px;
  color: var(--ink-2);
}
.thread {
  list-style: none;
  margin: 0;
  padding: clamp(10px, 1.4vw, 18px) clamp(22px, 2.4vw, 36px);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.3);
}
.thread .head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 14px;
  color: var(--ink-3);
}
.thread .head b { color: var(--ink); font-weight: 600; }
.thread li:not(.head) {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 4px 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
}
.thread li:last-child { border-bottom: 0; }
.thread .n { font-weight: 650; letter-spacing: -0.02em; color: hsl(var(--h) 90% 46%); }
.thread .who { font-weight: 600; letter-spacing: -0.01em; }
.thread .where { display: block; font-size: 14px; color: var(--ink-3); font-weight: 400; }
.thread .when { font-size: 13px; color: var(--ink-3); }
.thread blockquote {
  grid-column: 2 / -1;
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--ink-2);
}
.thread figure { grid-column: 2 / -1; margin: 10px 0 0; max-width: 340px; }
.thread figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
@media (max-width: 860px) {
  .lineage { grid-template-columns: 1fr; }
  .lineage .section-head { position: static; }
}
@media (max-width: 480px) {
  .thread li:not(.head) { grid-template-columns: 52px 1fr auto; }
}

/* ---------- Colour blocks ---------- */

.block { border-radius: calc(var(--radius) + 6px); overflow: hidden; }

.friends {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--rose);
  color: #2a0412;
}
.friends .copy { display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 4.4vw, 64px); }
.friends .copy .lead { color: rgba(42, 4, 18, 0.78); }
.friends .copy ul { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 10px; }
.friends .copy li { display: flex; gap: 12px; align-items: baseline; }
.friends .copy li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; transform: translateY(-2px); }
.friends .photo { position: relative; min-height: 340px; }
.friends .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatars { display: flex; }
.avatars span {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-right: -8px;
  border-radius: 50%;
  border: 3px solid var(--rose);
  background: hsl(var(--h) 85% 52%);
  color: #fff;
  font-weight: 650;
  font-size: 16px;
}
@media (max-width: 860px) {
  .friends { grid-template-columns: 1fr; }
  .friends .photo { min-height: 0; aspect-ratio: 16 / 10; order: -1; }
}

.screens {
  background: var(--cobalt);
  color: #fff;
  padding: clamp(36px, 5vw, 72px) clamp(20px, 4vw, 56px) clamp(40px, 5vw, 72px);
}
.screens .section-head { text-align: center; justify-items: center; }
.screens .soft { color: rgba(255, 255, 255, 0.55); }
.phones { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.6vw, 24px); align-items: start; }
.phone { margin: 0; }
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 660 / 1434;
  border-radius: clamp(16px, 2.2vw, 32px);
  border: clamp(3px, 0.35vw, 5px) solid #0b0b0b;
  background: #000;
  box-shadow: 0 30px 50px -30px rgba(0, 0, 20, 0.6);
}
.phone figcaption { margin-top: 14px; text-align: center; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.8); }
.phones .phone:nth-child(even) { margin-top: clamp(20px, 3vw, 48px); }
@media (max-width: 860px) {
  .phones {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * clamp(20px, 4vw, 56px));
    padding-inline: clamp(20px, 4vw, 56px);
    scrollbar-width: none;
  }
  .phones::-webkit-scrollbar { display: none; }
  .phone { flex: none; width: 44vw; max-width: 220px; scroll-snap-align: center; }
  .phones .phone:nth-child(even) { margin-top: 0; }
}

/* ---------- Milestones ---------- */

.marks {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10px 0 20px;
}
.mark {
  flex: 1 1 0;
  min-width: 0;
  max-width: 250px;
  min-height: 250px;
  margin-inline: -6px;
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.35);
  transform: translateY(var(--y, 0)) rotate(var(--r, 0deg));
}
.mark svg { width: 26px; height: 32px; }
.mark .big { margin-top: auto; font-size: clamp(26px, 2.6vw, 44px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.mark p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.mark .lbl { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-top: 14px; }
.mark.ember { background: var(--ember); }
.mark.ember p, .mark.ember .lbl { color: rgba(26, 10, 0, 0.75); }
.mark.ink { background: var(--ink); color: #fff; }
.mark.ink p, .mark.ink .lbl { color: rgba(255, 255, 255, 0.65); }
.mark:nth-child(1) { --r: -5deg; --y: 22px; }
.mark:nth-child(2) { --r: 3deg;  --y: 0; z-index: 1; }
.mark:nth-child(3) { --r: -2deg; --y: -14px; z-index: 2; }
.mark:nth-child(4) { --r: 4deg;  --y: 6px; z-index: 1; }
.mark:nth-child(5) { --r: -3deg; --y: 26px; }
@media (max-width: 860px) {
  .marks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .mark { max-width: none; min-height: 200px; margin: 0; }
  .mark:nth-child(5) { grid-column: 1 / -1; }
  .mark:nth-child(n) { --y: 0; --r: 0deg; }
}

/* ---------- Free ---------- */

.free {
  background: var(--lime);
  color: #1b1f00;
  padding: clamp(32px, 4.6vw, 68px);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px clamp(32px, 5vw, 80px);
  align-items: end;
}
.free h2 { font-size: clamp(48px, 7vw, 108px); line-height: 0.95; }
.free ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.free li { border-top: 1.5px solid rgba(27, 31, 0, 0.8); padding-top: 14px; font-weight: 500; line-height: 1.4; }
@media (max-width: 860px) {
  .free { grid-template-columns: 1fr; }
  .free ul { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Download ---------- */

.download { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.4vw, 20px); }
.download .photo {
  position: relative;
  min-height: clamp(420px, 44vw, 600px);
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 3.4vw, 48px);
  color: #fff;
}
.download .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.download .photo::before {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  z-index: 1;
}
.download .photo h2 { position: relative; z-index: 2; max-width: 12ch; }
.download .get {
  background: var(--card);
  padding: clamp(24px, 3.4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.download .get .row { display: flex; align-items: center; gap: 22px; margin-top: auto; flex-wrap: wrap; }
.qr { position: relative; width: 150px; flex: none; }
.qr img { width: 100%; }
.qr .badge {
  position: absolute;
  left: 50%; top: 50%;
  width: 22%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  background: var(--ink);
  border: 3px solid #fff;
  border-radius: 50%;
}
.qr .badge svg { width: 55%; height: 55%; }
.download .get .row p { font-size: 14px; color: var(--ink-3); max-width: 18ch; }
.download .meta { font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--hair); padding-top: 16px; }
@media (max-width: 860px) {
  .download { grid-template-columns: 1fr; }
  .download .photo { min-height: 380px; }
}
@media (hover: none) and (pointer: coarse) {
  .qr, .download .get .row p { display: none; }
}

/* ---------- Footer ---------- */

footer { background: var(--paper-2); margin-top: clamp(64px, 9vw, 130px); }
footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, minmax(0, 0.5fr));
  gap: 32px;
  padding-block: clamp(40px, 5vw, 64px) 28px;
}
footer .about p { margin-top: 12px; color: var(--ink-2); max-width: 30ch; font-size: 15px; }
footer nav { display: grid; gap: 10px; align-content: start; font-size: 15px; }
footer nav b { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
footer nav a { text-decoration: none; color: var(--ink-2); }
footer nav a:hover { color: var(--ink); }
footer .legal-line {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  font-size: 13px;
  color: var(--ink-3);
}
@media (max-width: 640px) {
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .about { grid-column: 1 / -1; }
}

/* ---------- Text pages (privacy, terms, help) ---------- */

.legal { padding-top: clamp(40px, 6vw, 80px); }
.legal article { max-width: 720px; }
.legal h1 { font-size: clamp(42px, 5.4vw, 76px); margin-bottom: 24px; }
.legal h2 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.03em; margin: 44px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 8px 0; }
.legal strong { color: var(--ink); }
.legal a { color: var(--ink); text-decoration-color: var(--ember); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- 404 ---------- */

.gone { min-height: 70svh; display: grid; place-content: center; justify-items: center; gap: 20px; text-align: center; }

/* ---------- Motion ----------
   Scroll reveals, switched on by the script at the end of index.html, which
   adds "in" as each [data-reveal] element comes into view. Without JavaScript,
   or with Reduce Motion on, nothing is hidden and nothing moves. */

:root { --ease: cubic-bezier(0.16, 1, 0.3, 1); }

@media (prefers-reduced-motion: no-preference) {
  /* Fade up, one after another when --i is set. */
  .js [data-reveal=""] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js [data-reveal=""].in { opacity: 1; transform: none; }

  /* Headlines rise line by line from behind a mask. */
  .js [data-reveal="lines"] .line { overflow: hidden; padding-block: 0.14em; margin-block: -0.14em; }
  .js [data-reveal="lines"] .line > span {
    display: inline-block;
    transform: translateY(105%);
    transition: transform 1.1s var(--ease);
  }
  .js [data-reveal="lines"] .line + .line > span { transition-delay: 0.1s; }
  .js [data-reveal="lines"].in .line > span { transform: none; }

  /* The hero photos deal out from behind the phone; the milestones fan out. */
  .js .cards[data-reveal="deal"] > * {
    opacity: 0;
    transform: translateX(calc(var(--d, 0) * 62%)) translateY(36px) scale(0.94);
    transition: opacity 0.7s var(--ease), transform 1.4s var(--ease);
    transition-delay: calc(0.2s + max(var(--d, 0), -1 * var(--d, 0)) * 80ms);
  }
  .js .cards[data-reveal="deal"].in > * { opacity: 1; transform: translateY(var(--y, 0)) rotate(var(--r, 0deg)); }
  .js .marks[data-reveal="deal"] .mark {
    opacity: 0;
    transform: translateY(70px) rotate(0deg);
    transition: opacity 0.8s var(--ease), transform 1.3s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js .marks[data-reveal="deal"].in .mark { opacity: 1; transform: translateY(var(--y, 0)) rotate(var(--r, 0deg)); }

  /* The name labels pop on once the photos have landed. */
  .js .tag[data-reveal="pop"] {
    opacity: 0;
    transform: rotate(var(--tr, 0deg)) translateY(10px) scale(0.7);
    transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.34, 1.5, 0.64, 1);
    transition-delay: 1.1s;
  }
  .js .tag.right[data-reveal="pop"] { transition-delay: 1.25s; }
  .js .tag[data-reveal="pop"].in { opacity: 1; transform: rotate(var(--tr, 0deg)); }

  /* Big photo blocks fade up while the picture settles from a slow zoom. */
  .js [data-reveal="zoom"] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
  }
  .js [data-reveal="zoom"] .photo img, .js .photo[data-reveal="zoom"] > img {
    transform: scale(1.14);
    transition: transform 2.2s var(--ease);
  }
  .js [data-reveal="zoom"].in { opacity: 1; transform: none; }
  .js [data-reveal="zoom"].in .photo img, .js .photo[data-reveal="zoom"].in > img { transform: none; }

  /* The hero photos drift up a little as the page scrolls, where supported. */
  @supports (animation-timeline: scroll()) {
    .fan { animation: drift linear both; animation-timeline: scroll(root); }
    @keyframes drift { to { translate: 0 -420px; } }
  }
}
