/* Brat Group. One film, cut into a page. */

@font-face {
  font-family: "Jost";
  src: url("fonts/jost.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url("fonts/sofia-xcond.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --white: #fff;
  --blue: #0061ef;          /* the logo's blue, for actions */
  --action: linear-gradient(100deg, #0054e6, #0b74ec 55%, #0061ef);  /* the logo's rule, as a button */
  --blue-deep: #0d2145;     /* deep navy: the end card and the figure tiles */
  --navy-lit: #17335f;      /* the lighter edge of a navy tile */
  --sky: #9db9ea;           /* pale navy for text and lines on black */
  --ice: #d5e0f3;           /* secondary text on navy */
  --rule: linear-gradient(90deg, #0054e6, #009de9);
  --ash: #a9b1bd;           /* secondary text on black */
  --line: rgb(255 255 255 / 0.2);
  --paper-ink: #000;
  --paper-soft: #434a54;    /* secondary text on white */

  --sans: "Jost", "Century Gothic", "Avenir Next", sans-serif;
  --bill: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --bar: 76px;
  --scene: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 100%;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--bar);
  scrollbar-color: #56606e #000;
}
body { margin: 0; font-size: 1.125rem; -webkit-font-smoothing: antialiased; }

h1, h2, h3, p, dl, dd, figure, blockquote, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; }

.wrap { padding-inline: var(--gutter); max-width: 1600px; margin-inline: auto; }

h2 {
  font-weight: 500;
  font-size: clamp(2.1rem, 4.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.nb { white-space: nowrap; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 30;
  background: var(--blue); color: var(--white); padding: 12px 18px; font-weight: 500;
}
.skip:focus { top: 12px; }

/* ---------- Top bar ---------- */

.bar {
  position: sticky; top: 0; z-index: 20;
  height: var(--bar);
  background: rgb(0 0 0 / 0.72);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--gutter);
}
.brand { display: block; width: 68px; color: var(--white); flex: none; }
.brand svg { width: 100%; height: auto; fill: currentColor; }
.bar nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); font-size: 1.0625rem; }
.bar nav a { text-decoration: none; padding-block: 10px; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 6px) / 0 1px no-repeat; transition: background-size 0.35s var(--ease); }
.bar nav a:hover, .bar nav a:focus-visible { background-size: 100% 1px; }
/* Language switch: both codes in the billing-block face, the current one under the logo's rule. */
.bar nav .lang {
  display: flex; align-items: center; gap: 14px;
  padding-left: clamp(18px, 2.6vw, 40px); border-left: 1px solid var(--line);
  font-family: var(--bill); font-weight: 600; font-size: 1.25rem; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase;
}
.bar nav .lang > * {
  padding: 10px 0 10px 0.12em; color: var(--ash);
  background: var(--rule) 0 calc(100% - 3px) / 0 2px no-repeat;
  transition: background-size 0.35s var(--ease), color 0.2s;
}
.bar nav .lang [aria-current] { color: var(--white); background-size: 100% 2px; }
.bar nav .lang a:hover, .bar nav .lang a:focus-visible { color: var(--white); background-size: 100% 2px; }
@media (max-width: 760px) {
  .bar nav a.sec { display: none; }
}

/* ---------- Opening frame ---------- */

.hero { display: flex; flex-direction: column; min-height: calc(100svh - var(--bar)); }

.frame {
  position: relative;
  height: min(calc(100vw / 2.39), calc(100svh - var(--bar) - 236px));
  min-height: 340px;
  background: #0b0d10;
  overflow: hidden;
  flex: none;
}
.frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgb(0 0 0 / 0.6) 0%, rgb(0 0 0 / 0.2) 34%, rgb(0 0 0 / 0) 56%);
}
.frame h1 {
  position: absolute; z-index: 2;
  left: var(--gutter); right: var(--gutter); bottom: clamp(22px, 3.4vw, 46px);
  max-width: 17ch;
  font-weight: 500;
  font-size: clamp(2.15rem, 5.5vw, 5.1rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 1px 28px rgb(0 0 0 / 0.45);
}
.slate {
  position: absolute; z-index: 2; left: var(--gutter); top: clamp(16px, 2.2vw, 28px);
  font-family: var(--bill); font-weight: 600; font-size: 1.25rem; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white); text-shadow: 0 1px 14px rgb(0 0 0 / 0.6);
}
.toggle {
  position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(22px, 3.4vw, 46px);
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px 0 14px;
  font: 500 0.9375rem var(--sans); color: var(--white);
  background: rgb(0 0 0 / 0.45); border: 1px solid rgb(255 255 255 / 0.55); border-radius: 0; cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.toggle:hover { background: var(--white); color: var(--black); }
.toggle svg { width: 12px; height: 12px; fill: currentColor; }
.toggle .i-play, .toggle[aria-pressed="true"] .i-pause { display: none; }
.toggle[aria-pressed="true"] .i-play { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .frame video { animation: open 1.3s var(--ease) both; }
  @keyframes open {
    from { clip-path: inset(46% 0 46% 0); }
    to { clip-path: inset(0); }
  }
}

/* The logo's rule, used as the film's running time */
.reel { position: relative; margin: 22px var(--gutter) 0; height: 5px; }
.reel i { position: absolute; inset: 0; background: rgb(255 255 255 / 0.24); }
.reel .run { background: var(--rule); clip-path: inset(0 100% 0 0); }

.under {
  flex: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 32px 56px; flex-wrap: wrap;
  padding: 26px var(--gutter) 34px;
}
.bill {
  font-family: var(--bill);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.35vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--white);
  max-width: 34em;
  min-width: 0;
  flex: 1 1 320px;
}
.bill small { font-size: max(0.52em, 0.8125rem); font-weight: 500; letter-spacing: 0.1em; color: var(--ash); margin-inline: 0.15em; }
.bill b { font-weight: 600; margin-right: 0.5em; display: inline-block; }
.bill > span { white-space: nowrap; }

.cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 0 30px;
  --bg: var(--action); --fill: var(--white); --ink: var(--black);
  background: linear-gradient(var(--fill), var(--fill)) no-repeat 0 100% / 100% 0%, var(--bg); color: var(--white);
  font: 500 1.1875rem var(--sans); text-decoration: none; border: 0; cursor: pointer;
  transition: background-size 0.45s var(--ease), color 0.25s, transform 0.2s var(--ease);
}
.cta:hover { background-size: 100% 100%, auto; color: var(--ink); }
.cta.ghost { --bg: linear-gradient(transparent, transparent); color: var(--white); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.6); gap: 12px; }
.cta.ghost:hover { color: var(--ink); }
.cta.ghost svg { width: 12px; height: 12px; fill: currentColor; flex: none; }
.cta[hidden] { display: none; }
.cta:active { transform: translateY(1px); }
.under .act { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }

/* ---------- The group ---------- */

.scene { padding-block: var(--scene); }
.group .wrap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; row-gap: 36px; }
.group h2 { grid-column: 1 / span 6; }
.group .text { grid-column: 8 / span 5; font-size: clamp(1.125rem, 1.45vw, 1.3125rem); max-width: 34em; }
.group .text p + p { margin-top: 1.1em; }
@media (max-width: 900px) {
  .group h2, .group .text { grid-column: 1 / -1; }
}

/* ---------- Four lines: a white reel, set as a storyboard ---------- */

.lines { background: var(--white); color: var(--paper-ink); }
.lines ::selection { background: var(--black); color: var(--white); }
.lines :focus-visible { outline-color: var(--black); }
.lines h2 { max-width: 14ch; }
.board { margin-top: clamp(40px, 5.5vw, 80px); display: grid; gap: clamp(48px, 6.5vw, 104px); }
.shot { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; row-gap: 18px; align-items: end; }
.shot .pic { position: relative; grid-column: 1 / span 8; aspect-ratio: 2.39 / 1; overflow: hidden; background: #0b0d10; }
.clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s var(--ease); }
.clip.on { opacity: 1; }
.shot .pic img { width: 100%; height: 100%; object-fit: cover; }
.shot .cap { grid-column: 9 / span 4; }
.shot:nth-child(even) .pic { grid-column: 5 / span 8; order: 2; }
.shot:nth-child(even) .cap { grid-column: 1 / span 4; }
.shot h3 { font-weight: 500; font-size: clamp(1.7rem, 2.7vw, 2.5rem); line-height: 1.08; letter-spacing: -0.014em; }
.shot p { margin-top: 12px; max-width: 30em; color: var(--paper-soft); }
@media (max-width: 900px) {
  .shot .pic, .shot:nth-child(even) .pic { grid-column: 1 / -1; order: 0; }
  .shot .cap, .shot:nth-child(even) .cap { grid-column: 1 / -1; }
}

/* ---------- Figures: five tiles ---------- */

.bento {
  margin-top: clamp(36px, 5vw, 72px);
  display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(clamp(210px, 20vw, 300px), auto);
  gap: clamp(12px, 1.3vw, 18px);
}
.bento > div {
  position: relative; isolation: isolate;
  grid-column: span 2;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: clamp(22px, 2.4vw, 36px);
  border-radius: clamp(22px, 2.3vw, 34px);
  background: linear-gradient(180deg, #1b1c20, #101114);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07), inset 0 1px 0 rgb(255 255 255 / 0.1);
  overflow: hidden;
}
.bento > div > .clip { position: absolute; z-index: -2; }
.bento dd { font-weight: 500; font-size: clamp(3.25rem, 6vw, 5.75rem); line-height: 0.95; letter-spacing: -0.04em; font-variant-numeric: tabular-nums lining-nums; }
.bento dd small { font-size: 0.3em; font-weight: 500; letter-spacing: -0.01em; margin-left: 0.15em; }
.bento dt { order: 2; font-size: clamp(1.0625rem, 1.35vw, 1.3125rem); line-height: 1.25; color: var(--ash); }

/* Two tiles are windows onto the film. */
.bento > div:nth-child(-n+2) { background: #0a1220 center / cover no-repeat; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); }
.bento > div:nth-child(-n+2)::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bento > div:nth-child(-n+2) dt { color: rgb(255 255 255 / 0.86); }
.bento > div:nth-child(1) { grid-column: span 3; grid-row: span 2; justify-content: flex-end; gap: 10px; background-image: url("../media/sea.webp"); }
.bento > div:nth-child(1)::before { background: linear-gradient(to top, rgb(4 12 28 / 0.9) 6%, rgb(4 12 28 / 0.25) 58%, rgb(4 12 28 / 0.05)); }
.bento > div:nth-child(1) dd { font-size: clamp(7rem, 19vw, 17rem); line-height: 0.8; letter-spacing: -0.055em; }
.bento > div:nth-child(1) dd small { font-size: 0.16em; letter-spacing: -0.015em; }
.bento > div:nth-child(1) dt { font-size: clamp(1.25rem, 1.7vw, 1.625rem); }
.bento > div:nth-child(2) { grid-column: span 3; background-image: url("../media/manta.webp"); }
.bento > div:nth-child(2)::before { background: linear-gradient(100deg, rgb(4 14 32 / 0.88) 10%, rgb(4 14 32 / 0.45) 55%, rgb(4 14 32 / 0.15)); }
.bento > div:nth-child(2) dd { font-size: clamp(3.75rem, 7.6vw, 7.25rem); }

/* Three tiles are graphite, with the figure in the logo's blue. */
.bento > div:nth-child(n+3) { grid-column: span 1; }
.bento > div:nth-child(n+3) dd {
  font-size: clamp(2.75rem, 4.6vw, 4.5rem);
  background: linear-gradient(170deg, #7cc0ff 5%, #1c78f2 55%, #0054e6); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-block: 0.06em; margin-block: -0.06em;
}
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .bento > div, .bento > div:nth-child(n+3) { grid-column: span 1; min-height: 170px; }
  .bento > div:nth-child(1), .bento > div:nth-child(2) { grid-column: 1 / -1; }
  .bento > div:nth-child(1) { grid-row: auto; min-height: 320px; }
  .bento > div:nth-child(2) { min-height: 200px; }
  .bento > div:nth-child(5) { grid-column: 1 / -1; }
}

/* ---------- End card ---------- */

.end { background: var(--white); color: var(--black); }
.end ::selection { background: var(--blue); color: var(--white); }
.end :focus-visible { outline-color: var(--blue); }
.end .wrap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; row-gap: 56px; }
.end .pitch { grid-column: 1 / span 6; }
.end .pitch > p { margin-top: 26px; max-width: 30em; font-size: clamp(1.125rem, 1.45vw, 1.3125rem); color: var(--paper-soft); }

.offices { margin-top: clamp(40px, 5vw, 72px); border-top: 2px solid var(--black); }
.offices li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: baseline; padding-block: 18px; border-bottom: 1px solid rgb(0 0 0 / 0.2); }
.offices .city { font-size: clamp(1.5rem, 2.3vw, 2rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
.offices time { font-family: var(--bill); font-weight: 600; font-size: clamp(1.75rem, 2.6vw, 2.375rem); line-height: 1; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.offices .more { grid-column: 1 / -1; color: var(--paper-soft); font-size: 1.0625rem; }
.offices .more a { color: var(--black); white-space: nowrap; }

.form { grid-column: 8 / span 5; align-self: start; display: grid; gap: 26px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 1rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 10px 0;
  font: 400 1.1875rem/1.4 var(--sans); color: var(--black);
  background: transparent; border: 0; border-bottom: 2px solid var(--black); border-radius: 0;
  caret-color: var(--blue); appearance: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field select {
  padding-right: 32px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") right 4px center / 14px 9px no-repeat;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #5d6570; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--blue); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 0; border-bottom-color: var(--blue); box-shadow: 0 2px 0 var(--blue); }
.field .err { display: none; font-size: 0.9375rem; font-weight: 500; color: #b3261e; }
.field.bad .err { display: block; }
.field.bad input, .field.bad textarea { border-bottom-color: #b3261e; box-shadow: 0 2px 0 #b3261e; }

.send { --fill: var(--black); --ink: var(--white); justify-self: start; }
.status { min-height: 1.6em; font-size: 1rem; color: var(--paper-soft); }
.status a { color: var(--black); }

@media (max-width: 960px) {
  .end .pitch, .form { grid-column: 1 / -1; }
}

/* ---------- Legal notice ---------- */

.legal { padding-block: clamp(56px, 8vw, 120px) var(--scene); }
.legal .wrap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; row-gap: 40px; }
.legal h1 { grid-column: 1 / span 5; font-weight: 500; font-size: clamp(2.1rem, 4.4vw, 3.9rem); line-height: 1.04; letter-spacing: -0.018em; }
.clauses { grid-column: 6 / span 7; max-width: 40em; }
.clauses section + section { margin-top: clamp(36px, 4vw, 56px); }
.clauses h2 { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -0.01em; }
.clauses p { margin-top: 0.8em; }
.clauses a { color: var(--sky); }
.clauses .dated { margin-top: clamp(40px, 5vw, 64px); padding-top: 22px; border-top: 1px solid var(--line); color: var(--ash); font-size: 1rem; }
@media (max-width: 900px) {
  .legal h1, .clauses { grid-column: 1 / -1; }
}

/* ---------- Full film ---------- */

.screen { width: min(1280px, 100vw - 2 * var(--gutter)); max-width: none; padding: 0; border: 0; background: transparent; color: var(--white); overflow: visible; }
.screen::backdrop { background: rgb(0 0 0 / 0.92); }
.screen iframe { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100svh - 120px); border: 0; background: #000; }
.screen .shut { margin: 0 0 12px auto; display: flex; align-items: center; min-height: 44px; padding: 0 16px; font: 500 0.9375rem var(--sans); color: var(--white); background: transparent; border: 1px solid rgb(255 255 255 / 0.55); cursor: pointer; }
.screen .shut:hover { background: var(--white); color: var(--black); }

.lost { min-height: calc(100svh - var(--bar)); }
.lost .clauses p:last-child { margin-top: 2em; display: flex; flex-wrap: wrap; gap: 14px; }
.lost .clauses .cta { color: var(--white); }
.lost .clauses .cta:hover { color: var(--ink); }

/* ---------- Foot ---------- */

.foot { padding: 40px var(--gutter) 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; color: var(--ash); font-size: 1rem; }
.foot .brand { width: 54px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot a { color: var(--white); }

@media (max-width: 560px) {
  .under { padding-bottom: 40px; }
  .under .act { flex-basis: 100%; }
  .cta.ghost { font-size: 1.0625rem; padding: 0 14px; white-space: nowrap; }
  .cta { width: 100%; }
  .send { justify-self: stretch; }
  .toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .toggle { padding: 0; width: 44px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after, ::backdrop { transition-duration: 0.01ms !important; }
}

.toggle[hidden] { display: none; }

@media (max-width: 760px) {
  .hero { min-height: 0; position: relative; }
  .frame { display: contents; }
  .frame::after { display: none; }
  .frame video { position: static; order: 1; aspect-ratio: 2.39 / 1; height: auto; background: #0b0d10; }
  .reel { order: 2; margin-top: 14px; }
  .frame h1 { position: static; order: 3; max-width: none; padding: 30px var(--gutter) 0; text-shadow: none; }
  .under { order: 4; }
  .slate { top: 12px; font-size: 1rem; }
  .toggle { top: calc(100vw / 2.39 - 54px); bottom: auto; right: 10px; }
}

/* ---------- Motion ---------- */

/* Tiles catch the light under the pointer. */
.bento > div::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%), rgb(90 160 255 / 0.2), transparent 62%);
  transition: opacity 0.5s var(--ease);
}
.bento > div:hover::after { opacity: 1; }

/* The full film opens like a screen coming up. */
.screen { opacity: 0; transform: scale(0.965); transition: opacity 0.35s var(--ease), transform 0.55s var(--ease), overlay 0.55s allow-discrete, display 0.55s allow-discrete; }
.screen[open] { opacity: 1; transform: none; }
.screen::backdrop { opacity: 0; transition: opacity 0.45s var(--ease), overlay 0.45s allow-discrete, display 0.45s allow-discrete; }
.screen[open]::backdrop { opacity: 1; }
@starting-style {
  .screen[open] { opacity: 0; transform: scale(0.965); }
  .screen[open]::backdrop { opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Pages cut into one another; the logo holds its place. */
  @view-transition { navigation: auto; }
  .bar .brand { view-transition-name: brand; }
  ::view-transition-old(root) { animation: 0.3s var(--ease) both cut-out; }
  ::view-transition-new(root) { animation: 0.55s var(--ease) both cut-in; }
  @keyframes cut-out { to { opacity: 0; } }
  @keyframes cut-in { from { opacity: 0; transform: translateY(18px); } }

  /* Titles rise word by word out of the line. */
  .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.14em 0.04em; margin: -0.14em -0.04em; }
  .w > span { display: inline-block; }
  .motion .split .w > span { transform: translateY(118%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 42ms + var(--d, 0) * 1ms); }
  .motion .split.in .w > span { transform: none; }
  .motion h1:not(.split), .motion h2:not(.split) { visibility: hidden; }

  /* Everything else comes up once, in order. */
  .motion .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
  .motion .rv.in { opacity: 1; transform: none; }
  .motion .bento > .rv { transform: translateY(44px) scale(0.955); transition-duration: 1.1s; }
  .motion .bento > .rv.in { transform: none; }

  /* Pictures open like the film: from a slit to the full frame. */
  .motion .shot .pic { clip-path: inset(50% 0); transition: clip-path 1.25s var(--ease); }
  .motion .shot.in .pic { clip-path: inset(0); }

  @supports (animation-timeline: view()) {
    /* The film recedes as the page leaves it. */
    .frame video { animation: open 1.3s var(--ease) both, recede linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 90vh; }
    @keyframes recede { to { transform: scale(1.1); opacity: 0.45; } }
    @media (max-width: 760px) { .frame video { animation: open 1.3s var(--ease) both; animation-timeline: auto; } }
    /* Each picture drifts inside its frame while it crosses the screen. */
    .pic img, .pic video { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { transform: scale(1.16) translateY(-4.5%); } to { transform: scale(1.16) translateY(4.5%); } }
    /* The navy end card rises like a curtain. */
    .end { animation: curtain linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
    @keyframes curtain { from { clip-path: inset(0 calc(var(--gutter) - 16px) 0 calc(var(--gutter) - 16px) round 56px 56px 0 0); } to { clip-path: inset(0 0 0 0 round 0); } }
  }
}
