@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/plex-sans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/plex-sans-latin-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Radius rule: buttons and inputs 10px, media tiles 12px, panels and large media 16px. */
:root {
  color-scheme: light dark;
  --navy: #132f43;
  --navy-deep: #0e2232;
  --moss: #4c6035;
  --sage: #8ea683;
  --circuit: #1979ca;
  --paper: #f5f1ea;
  --white: #ffffff;
  --on-navy: #eef2f4;
  --on-navy-2: #b9c6d0;

  --bg: var(--paper);
  --surface: var(--white);
  --ink: var(--navy);
  --ink-2: #4b5a66;
  --line: rgb(19 47 67 / 0.14);
  --control: #7d8a94;
  --accent: var(--moss);
  --accent-hover: #3f5029;
  --accent-ink: var(--white);
  --focus: var(--circuit);
  --danger: #b42318;
  --danger-bg: #fdecea;
  --danger-ink: #7a1c14;
  --shadow: 0 1px 2px rgb(19 47 67 / 0.06), 0 18px 40px -18px rgb(19 47 67 / 0.28);

  --r-control: 10px;
  --r-tile: 12px;
  --r-panel: 16px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --section: clamp(88px, 11vw, 152px);

  --z-header: 20;
  --z-skip: 30;

  --font-display: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--navy-deep);
    --surface: var(--navy);
    --ink: var(--on-navy);
    --ink-2: var(--on-navy-2);
    --line: rgb(255 255 255 / 0.13);
    --control: #7f97a8;
    --accent: var(--sage);
    --accent-hover: #a5bb9a;
    --accent-ink: var(--navy-deep);
    --focus: #6fb3ec;
    --danger: #fca5a5;
    --danger-bg: #3a1f22;
    --danger-ink: #fecaca;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 20px 44px -20px rgb(0 0 0 / 0.7);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

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

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentColor;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: var(--z-skip);
  padding: 10px 16px;
  border-radius: var(--r-control);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transition: top 160ms var(--ease-out);
}

.skip:focus {
  top: 12px;
}

.section-title {
  font-size: clamp(2rem, 1.35rem + 2.5vw, 3.4rem);
}

.lede {
  margin-top: 18px;
  max-width: 58ch;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font: 600 1rem/1 var(--font-text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--accent-hover);
  }

  .btn-quiet:hover {
    background: var(--surface);
    border-color: color-mix(in oklab, var(--ink) 30%, transparent);
  }

  .btn-primary:hover .icon {
    transform: translateX(2px);
  }
}

.btn .icon {
  transition: transform 200ms var(--ease-out);
}

.btn-sm {
  height: 40px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

.btn-meta {
  color: var(--ink-2);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.btn[aria-busy="true"] {
  cursor: progress;
  opacity: 0.75;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in oklab, var(--bg) 94%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background-color 200ms ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: var(--bg);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.brand img {
  height: 40px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding-block: 8px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.975rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease-out);
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--ink);
}

.site-nav a[aria-current="true"]::after {
  transform: none;
}

.menu-btn {
  display: none;
}

.menu {
  position: fixed;
  inset: var(--header-h) 0 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 4px var(--gutter) 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 28px 40px -28px rgb(19 47 67 / 0.45);
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 140ms ease,
    transform 140ms var(--ease-out),
    overlay 140ms allow-discrete,
    display 140ms allow-discrete;
}

.menu:popover-open {
  opacity: 1;
  transform: none;
  transition-duration: 220ms;
}

@starting-style {
  .menu:popover-open {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.menu::backdrop {
  background: rgb(8 20 30 / 0.24);
}

.menu a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font: 600 1.125rem/1.2 var(--font-display);
  text-decoration: none;
}

.menu a:last-child {
  border-bottom: 0;
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .menu-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: var(--r-control);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: transform 160ms var(--ease-out), background-color 200ms ease;
  }

  .menu-btn:active {
    transform: scale(0.95);
  }

  .menu-btn .icon {
    grid-area: 1 / 1;
    width: 22px;
    height: 22px;
  }

  .menu-btn .icon:last-child,
  body:has(.menu:popover-open) .menu-btn .icon:first-child {
    display: none;
  }

  body:has(.menu:popover-open) .menu-btn .icon:last-child {
    display: block;
  }

  .header-row {
    gap: 10px;
  }
}

@media (max-width: 760px) {
  .brand img {
    height: 34px;
  }
}

/* Hero */

.hero {
  padding-block: clamp(32px, 5vh, 64px) clamp(110px, 14vh, 150px);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
}

.hero-copy {
  grid-column: 1 / span 5;
}

.hero-title {
  font-size: clamp(3rem, 1.4rem + 5.6vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.hero-title span {
  display: block;
}

.hero-title span:last-child {
  color: var(--accent);
}

.hero-sub {
  margin-top: 26px;
  max-width: 34ch;
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1.04rem + 0.4vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-visual {
  grid-column: 6 / span 7;
  position: relative;
  height: clamp(460px, 44vw, 620px);
}

.hero-key {
  position: absolute;
  top: 0;
  right: 3%;
  height: 100%;
}

.hero-key .key {
  height: 100%;
  width: auto;
}

.hero-shot {
  position: absolute;
  left: -2%;
  top: 58%;
  width: min(400px, 56%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--white);
  box-shadow: var(--shadow);
}

@media (prefers-color-scheme: dark) {
  .hero-key .key-bow,
  .hero-key .key-arms,
  .story .key-bow,
  .story .key-arms {
    stroke: var(--paper);
  }

  .hero-key .key-shaft path:not(:nth-child(2)),
  .story .key-shaft path:not(:nth-child(2)) {
    fill: var(--paper);
  }

  .hero-key .key-circuit,
  .hero-key .key-nodes,
  .story .key-circuit,
  .story .key-nodes {
    stroke: var(--focus);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 40px;
  }

  .hero-copy,
  .hero-visual {
    grid-column: 1;
  }

  .hero-visual {
    display: grid;
    justify-items: center;
    gap: 28px;
    height: auto;
  }

  .hero-key {
    position: static;
    height: clamp(260px, 62vw, 380px);
  }

  .hero-shot {
    position: static;
    width: min(520px, 100%);
  }
}

.hero-title span {
  animation: rise-title 900ms var(--ease-out) both;
}

.hero-sub,
.hero-actions {
  animation: rise 900ms var(--ease-out) both;
}

.hero-title span:nth-child(2) {
  animation-delay: 90ms;
}

.hero-sub {
  animation-delay: 200ms;
}

.hero-actions {
  animation-delay: 300ms;
}

.hero-shot {
  animation: rise-card 1000ms var(--ease-out) 250ms both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.4em);
    filter: blur(6px);
  }
}

@keyframes rise-title {
  from {
    transform: translateY(0.3em);
    filter: blur(8px);
  }
}

@keyframes rise-card {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
}

/* The key grows */

.key {
  overflow: visible;
}

.key-shaft,
.key-leaves path,
.key-nodes circle {
  transform-box: view-box;
}

.key-shaft {
  transform-origin: 511.5px 368px;
}

.key-leaves path:nth-child(1) {
  transform-origin: 474px 593px;
  --i: 0;
}

.key-leaves path:nth-child(2) {
  transform-origin: 548px 564px;
  --i: 1;
}

.key-leaves path:nth-child(3) {
  transform-origin: 484px 538px;
  --i: 2;
}

.key-leaves path:nth-child(4) {
  transform-origin: 552px 476px;
  --i: 3;
}

.key-leaves path:nth-child(5) {
  transform-origin: 479px 467px;
  --i: 4;
}

.key-circuit path:nth-child(2) {
  --i: 1;
}

.key-circuit path:nth-child(3) {
  --i: 2;
}

.key-circuit path:nth-child(4) {
  --i: 3;
}

.key-circuit path:nth-child(5) {
  --i: 4;
}

.key-nodes circle:nth-child(1) {
  transform-origin: 511.5px 136px;
  --i: 0;
}

.key-nodes circle:nth-child(2) {
  transform-origin: 481px 160px;
  --i: 1;
}

.key-nodes circle:nth-child(3) {
  transform-origin: 542px 160px;
  --i: 2;
}

.key-nodes circle:nth-child(4) {
  transform-origin: 460.5px 200px;
  --i: 3;
}

.key-nodes circle:nth-child(5) {
  transform-origin: 562.5px 200px;
  --i: 4;
}

.is-growing .key-bow path,
.is-growing .key-arms path,
.is-growing .key-circuit path,
.is-growing .key-vine,
.is-growing .key-gap {
  stroke-dasharray: 1;
}

.is-growing .key-bow path {
  animation: draw 950ms var(--ease-in-out) both;
}

.is-growing .key-bow path:nth-child(2) {
  animation-delay: 120ms;
}

.is-growing .key-arms path {
  animation: draw 700ms var(--ease-in-out) 380ms both;
}

.is-growing .key-arms path:nth-child(2) {
  animation-delay: 460ms;
}

.is-growing .key-shaft {
  animation: grow-shaft 650ms var(--ease-out) 700ms both;
}

.is-growing .key-vine,
.is-growing .key-gap {
  animation: draw 950ms var(--ease-in-out) 1150ms both;
}

.is-growing .key-leaves path {
  animation: leaf 640ms var(--ease-out) calc(1420ms + var(--i, 0) * 130ms) both;
}

.is-growing .key-circuit path {
  animation: draw 460ms var(--ease-out) calc(2050ms + var(--i, 0) * 60ms) both;
}

.is-growing .key-nodes circle {
  animation: node 420ms var(--ease-out) calc(2300ms + var(--i, 0) * 95ms) both;
}

.is-armed {
  visibility: hidden;
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes grow-shaft {
  from {
    transform: scaleY(0);
  }
}

@keyframes node {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}

@keyframes leaf {
  from {
    opacity: 0;
    transform: scale(0.2) rotate(-18deg);
  }
}

/* How it works */

.how {
  padding-block: var(--section);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: clamp(28px, 3vw, 44px) 24px;
}

.how-copy {
  display: contents;
}

.how-title {
  grid-column: 1 / -1;
}

.how-steps {
  grid-column: 1 / span 5;
  margin-top: 0;
}

.how-stage {
  grid-column: 6 / span 7;
  display: grid;
}

@media (max-width: 900px) {
  .how-title span {
    display: block;
  }
}

.how-shot {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  filter: blur(4px);
  transition:
    opacity 420ms var(--ease-out),
    transform 520ms var(--ease-out),
    filter 420ms var(--ease-out);
}

.how-shot.is-active {
  opacity: 1;
  transform: none;
  filter: none;
}

.how-shot img {
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow);
  background: var(--white);
}

.step-n {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  font: 600 0.9375rem/1 var(--font-text);
  letter-spacing: 0;
  color: var(--ink);
  transition:
    background-color 240ms ease,
    border-color 240ms ease,
    color 240ms ease;
}

.how-steps .part-glyph {
  opacity: 1;
}

.how-steps .part:not(.is-open) .step-n {
  color: var(--ink-2);
}

.how-steps .part.is-open .step-n {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

@media (max-width: 900px) {
  .how-grid {
    grid-template-columns: 1fr;
  }

  .how-title {
    order: 1;
  }

  .how-stage {
    order: 2;
    grid-column: 1;
  }

  .how-steps {
    order: 3;
    grid-column: 1;
    margin-top: 8px;
  }
}

/* Pinned sections: the stage holds still while the scroll moves through its steps */

.pin {
  position: relative;
}

.pin-steps {
  display: none;
}

@media (min-width: 901px) {
  .pin {
    height: calc(100svh - var(--header-h) + 180svh);
    scroll-margin-top: var(--header-h);
  }

  .pin-stage {
    position: sticky;
    top: var(--header-h);
    display: flex;
    align-items: center;
    height: calc(100svh - var(--header-h));
  }

  .pin-stage > .wrap {
    width: 100%;
  }

  .pin-steps {
    position: absolute;
    top: calc(50svh - var(--header-h));
    bottom: 50svh;
    left: 0;
    right: 0;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    visibility: hidden;
    pointer-events: none;
  }

  .how {
    padding-block: 0 clamp(32px, 4vw, 64px);
  }

  .story {
    padding-top: 0;
  }

  .pin .story-key {
    height: min(clamp(420px, 40vw, 560px), calc(100svh - var(--header-h) - 64px));
  }
}

/* Video styles */

.styles {
  padding-block: 0 var(--section);
}

.styles-head {
  max-width: 760px;
}

.style-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px) clamp(10px, 1.4vw, 16px);
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.style {
  display: grid;
  gap: 8px;
}

.style-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  background: var(--surface);
  cursor: pointer;
  transition:
    transform 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out);
}

.style-tile img,
.style-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.style-tile video {
  opacity: 0;
  transition: opacity 220ms ease;
}

.style.is-playing .style-tile video {
  opacity: 1;
}

.tile-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.94);
  color: var(--navy);
  box-shadow: 0 2px 10px rgb(19 47 67 / 0.22);
  transition: opacity 160ms ease, transform 160ms var(--ease-out);
}

.tile-play .icon {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

.style.is-playing .tile-play {
  opacity: 0;
  transform: scale(0.9);
}

.styles-more {
  display: none;
}

.style-tile:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .style-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }
}

.style-name {
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .style-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .style-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .style-wall.is-collapsed .style:nth-child(n + 7) {
    display: none;
  }

  .styles-more {
    display: inline-flex;
    width: 100%;
    margin-top: 20px;
  }

  .style-wall.is-open .style:nth-child(n + 7) {
    transition:
      opacity 320ms var(--ease-out),
      transform 320ms var(--ease-out);
  }

  .style-wall.is-open .style:nth-child(8) {
    transition-delay: 40ms;
  }

  .style-wall.is-open .style:nth-child(9) {
    transition-delay: 80ms;
  }

  .style-wall.is-open .style:nth-child(10) {
    transition-delay: 120ms;
  }

  .style-wall.is-open .style:nth-child(11) {
    transition-delay: 160ms;
  }

  .style-wall.is-open .style:nth-child(12) {
    transition-delay: 200ms;
  }

  .style-wall.is-open .style:nth-child(13) {
    transition-delay: 240ms;
  }

  .style-wall.is-open .style:nth-child(14) {
    transition-delay: 280ms;
  }

  .style-wall.is-open .style:nth-child(15) {
    transition-delay: 320ms;
  }

  .style-wall.is-open .style:nth-child(16) {
    transition-delay: 360ms;
  }

  @starting-style {
    .style-wall.is-open .style:nth-child(n + 7) {
      opacity: 0;
      transform: translateY(10px);
    }
  }
}

/* Studio */

.studio {
  padding-block: var(--section);
  background: var(--navy);
  color: var(--on-navy);
}

@media (prefers-color-scheme: dark) {
  .studio {
    box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line);
  }
}

.studio .section-title,
.studio .studio-label {
  color: var(--white);
}

.studio .lede,
.studio .studio-note,
.studio figcaption {
  color: var(--on-navy-2);
}

.studio-head {
  max-width: 780px;
}

.studio-label {
  margin-bottom: 18px;
  font-size: 1.3rem;
}

.studio-note {
  max-width: 60ch;
  font-size: 0.975rem;
}

.studio-cast {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.studio-cast .studio-label,
.studio-cast .studio-note {
  grid-column: 1 / -1;
}

.studio-cast .studio-label {
  margin-bottom: 0;
}

.studio-cast img {
  border-radius: var(--r-panel);
  background: #e6e6e9;
}

.studio-cast figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin-top: 12px;
}

.studio-cast figcaption b {
  color: var(--white);
  font-weight: 600;
}

.studio-app {
  margin-top: clamp(72px, 9vw, 112px);
}

.studio-app .frame {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--r-panel);
  background: #f0f3f6;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.6);
}

.studio-app .frame img {
  width: 100%;
}

.studio-app figcaption {
  max-width: 65ch;
  margin-top: 16px;
  font-size: 0.975rem;
}

.studio-board {
  margin-top: clamp(56px, 7vw, 88px);
}

.filmstrip {
  display: flex;
  gap: 14px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 14px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: rgb(255 255 255 / 0.3) transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
}

.filmstrip li {
  flex: 0 0 clamp(250px, 30vw, 360px);
  scroll-snap-align: start;
}

.filmstrip img {
  border-radius: var(--r-tile);
  background: #22384a;
}

.filmstrip span {
  display: block;
  margin-top: 8px;
  color: var(--on-navy-2);
  font-size: 0.85rem;
}

.studio-board .studio-note {
  margin-top: 14px;
}

.strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.strip-head .studio-label {
  margin: 0;
}

.strip-nav {
  display: flex;
  gap: 8px;
}

.strip-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: var(--r-control);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition:
    background-color 200ms ease,
    opacity 200ms ease,
    transform 160ms var(--ease-out);
}

.strip-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.strip-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .strip-btn:not(:disabled):hover {
    background: rgb(255 255 255 / 0.1);
  }
}

.icon.flip {
  transform: scaleX(-1);
}

@media (max-width: 900px) {
  .studio-cast {
    grid-template-columns: 1fr;
  }

  .studio-app .frame {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  .studio-app .frame {
    aspect-ratio: 4 / 5;
  }

  .studio-app .frame img {
    width: 172%;
    max-width: none;
  }

  .strip-nav {
    display: none;
  }
}

/* Your brand */

.yours {
  padding-block: var(--section);
}

.yours-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
}

.yours-copy {
  grid-column: 1 / span 4;
}

.yours-note {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.phones {
  grid-column: 6 / span 7;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(12px, 1.6vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.phones li:nth-child(2) {
  margin-top: 36px;
}

.phones li:nth-child(3) {
  margin-top: 72px;
}

.phones img {
  aspect-ratio: 780 / 1240;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  background: var(--white);
}

.phones span {
  display: block;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 900px) {
  .yours-grid {
    grid-template-columns: 1fr;
  }

  .yours-copy,
  .phones {
    grid-column: 1;
  }

  .phones {
    margin-top: 16px;
  }
}

@media (max-width: 560px) {
  .phones {
    grid-template-columns: repeat(3, 68vw);
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 12px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
  }

  .phones li {
    scroll-snap-align: start;
  }

  .phones li:nth-child(2),
  .phones li:nth-child(3) {
    margin-top: 0;
  }
}

/* The key that grows */

.story {
  padding-block: 0 var(--section);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
}

.story-stage {
  grid-column: 1 / span 5;
  display: grid;
  place-items: center;
}

.story-key {
  height: clamp(420px, 40vw, 560px);
}

.story-key .key {
  height: 100%;
  width: auto;
}

.story-copy {
  grid-column: 7 / span 6;
}

.parts {
  margin-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
}

.part {
  border-bottom: 1px solid var(--line);
}

.part h3 {
  font: inherit;
  letter-spacing: 0;
}

.part-head {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  column-gap: 16px;
  width: 100%;
  padding: 16px 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
}

.part-glyph {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  opacity: 0.5;
  transition: opacity 240ms ease, transform 160ms var(--ease-out);
}

.part-glyph .glyph {
  overflow: hidden;
  width: auto;
  max-width: 52px;
  height: 46px;
}

.part-name {
  font: 600 clamp(1.3rem, 1.05rem + 0.9vw, 1.75rem)/1.1 var(--font-display);
  letter-spacing: -0.02em;
  transition: color 200ms ease;
}

.part-tag {
  grid-column: 2;
  margin-top: 4px;
  font-size: 0.95rem;
}

.part.is-open .part-name {
  color: var(--ink);
}

.part.is-open .part-glyph {
  opacity: 1;
}

.part-head:active .part-glyph {
  transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
  .part-head:hover .part-name {
    color: var(--ink);
  }

  .part-head:hover .part-glyph {
    opacity: 1;
  }
}

.part-body p {
  max-width: 50ch;
  padding: 0 0 20px 68px;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

.has-parts .part-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms var(--ease-out);
}

.has-parts .part-body > div {
  overflow: hidden;
}

.has-parts .part-body p {
  opacity: 0;
  transition: opacity 240ms ease;
}

.has-parts .part.is-open .part-body {
  grid-template-rows: 1fr;
}

.has-parts .part.is-open .part-body p {
  opacity: 1;
  transition-delay: 80ms;
}

.story-key :is(.key-bow, .key-arms, .key-shaft, .key-vine, .key-leaves, .key-circuit, .key-nodes) {
  transition: opacity 360ms ease;
}

.story-key[data-part="key"] :is(.key-vine, .key-leaves, .key-circuit, .key-nodes),
.story-key[data-part="vine"] :is(.key-bow, .key-arms, .key-shaft, .key-circuit, .key-nodes),
.story-key[data-part="circuit"] :is(.key-bow, .key-arms, .key-shaft, .key-vine, .key-leaves) {
  opacity: 0.42;
}

.halo {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.85);
  transition: opacity 420ms ease, transform 560ms var(--ease-out);
}

.story-key[data-part="key"] .halo-key,
.story-key[data-part="vine"] .halo-vine,
.story-key[data-part="circuit"] .halo-circuit {
  opacity: 1;
  transform: none;
}

.halo-fill-key stop {
  stop-color: var(--moss);
}

.halo-fill-vine stop {
  stop-color: var(--sage);
}

.halo-fill-circuit stop {
  stop-color: var(--circuit);
}

@media (hover: hover) and (pointer: fine) {
  .story-key[data-part] :is(.key-bow, .key-arms, .key-shaft, .key-vine, .key-leaves, .key-circuit, .key-nodes) {
    cursor: pointer;
  }
}

.story-end {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
  margin-top: clamp(48px, 7vw, 96px);
}

.story-close {
  grid-column: 1 / span 5;
}

.story-line {
  font: 600 clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem)/1.04 var(--font-display);
  letter-spacing: -0.025em;
}

.story-close p:not(.story-line) {
  margin-top: 16px;
  color: var(--ink-2);
}

.story-film {
  grid-column: 7 / span 6;
}

@media (prefers-color-scheme: dark) {
  .halo-fill-key stop {
    stop-color: var(--paper);
  }

  .halo-fill-circuit stop {
    stop-color: var(--focus);
  }
}

.film-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-panel);
  background: var(--navy);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.film-card img {
  transition: transform 500ms var(--ease-out);
}

.film-play {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px 0 16px;
  border-radius: var(--r-control);
  background: var(--paper);
  color: var(--navy);
  font: 600 1rem/1 var(--font-text);
  transition: transform 160ms var(--ease-out);
}

.film-play .icon {
  width: 20px;
  height: 20px;
}

.film-play .btn-meta {
  color: #4b5a66;
}

@media (max-width: 560px) {
  .film-play {
    left: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }

  .film-play .film-play-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

.film-card:active .film-play {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .film-card:hover img {
    transform: scale(1.03);
  }
}

.story-film p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .story-grid,
  .story-end {
    grid-template-columns: 1fr;
  }

  .story-stage,
  .story-copy,
  .story-close,
  .story-film {
    grid-column: 1;
  }

  .story-stage {
    padding-block: 8px;
  }

  .story-key {
    height: clamp(280px, 72vw, 400px);
  }

  .story-copy {
    display: contents;
  }

  .story-copy > .section-title {
    order: 1;
  }

  .story-copy > .lede {
    order: 2;
    margin-top: 0;
  }

  .story-stage {
    order: 3;
  }

  .parts {
    order: 4;
    margin-top: 8px;
  }
}

/* Contact */

.contact {
  padding-block: clamp(72px, 8vw, 120px);
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  scroll-margin-top: calc(var(--header-h) + 28px);
}

.contact-copy {
  grid-column: 1 / span 5;
  padding-top: 8px;
}

.contact-mail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--ink-2);
}

.contact-mail a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

.contact-card {
  grid-column: 7 / span 6;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  align-content: start;
  gap: 6px;
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.field label {
  font-weight: 500;
  font-size: 0.975rem;
}

.optional {
  color: var(--ink-2);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--control);
  border-radius: var(--r-control);
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.4 var(--font-text);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field textarea {
  min-height: 96px;
  padding-block: 12px;
  resize: vertical;
}

@media (prefers-color-scheme: light) {
  .field input,
  .field select,
  .field textarea {
    background: var(--white);
  }
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--focus) 35%, transparent);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  display: flex;
  gap: 6px;
  color: var(--danger);
  font-size: 0.9rem;
  transition:
    opacity 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}

@starting-style {
  .field-error {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.field-hint {
  color: var(--ink-2);
  font-size: 0.9rem;
}

.form-summary {
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: var(--r-control);
  background: var(--danger-bg);
  color: var(--danger-ink);
}

.form-summary h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 1rem/1.3 var(--font-text);
  letter-spacing: 0;
}

.form-summary ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.form-summary a {
  color: inherit;
  text-underline-offset: 3px;
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 6px;
}

.form-privacy {
  color: var(--ink-2);
  font-size: 0.9rem;
}

.form-done {
  display: grid;
  gap: 10px;
  padding-block: 20px;
  transition:
    opacity 400ms var(--ease-out),
    transform 400ms var(--ease-out),
    filter 400ms var(--ease-out);
}

@starting-style {
  .form-done {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(4px);
  }
}

.form-done > .icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
}

.form-done h3 {
  font-size: 1.6rem;
}

.form-done p {
  color: var(--ink-2);
}

.form-fail {
  margin-top: 16px;
  color: var(--danger);
  font-size: 0.95rem;
}

.form-fail a {
  color: inherit;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-copy,
  .contact-card {
    grid-column: 1;
  }

  .contact-copy {
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .part-body p {
    padding-left: 0;
  }
}

/* Footer */

.site-footer {
  padding-block: 64px 44px;
  background: var(--navy);
  color: var(--on-navy-2);
}

@media (prefers-color-scheme: dark) {
  .site-footer {
    background: #0a1a27;
    border-top: 1px solid var(--line);
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 32px 24px;
}

.footer-brand {
  grid-column: 1 / span 5;
}

.footer-brand img {
  height: 48px;
  width: auto;
}

.footer-brand p {
  margin-top: 18px;
  color: var(--white);
  font: 600 1.3rem/1.2 var(--font-display);
  letter-spacing: -0.02em;
}

.footer-nav {
  grid-column: 7 / span 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 28px;
}

.footer-nav a {
  color: var(--on-navy);
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.875rem;
}

@media (max-width: 760px) {
  .footer-brand,
  .footer-nav {
    grid-column: 1 / -1;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

/* Film dialog */

.film {
  width: min(1200px, 92vw, calc((100dvh - 120px) * 16 / 9));
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity 160ms var(--ease-out),
    transform 160ms var(--ease-out),
    overlay 160ms allow-discrete,
    display 160ms allow-discrete;
}

.film[open] {
  opacity: 1;
  transform: none;
  transition-duration: 260ms;
}

@starting-style {
  .film[open] {
    opacity: 0;
    transform: scale(0.96);
  }
}

.film::backdrop {
  background: rgb(8 20 30 / 0);
  transition:
    background-color 160ms ease,
    overlay 160ms allow-discrete,
    display 160ms allow-discrete;
}

.film[open]::backdrop {
  background: rgb(8 20 30 / 0.84);
  transition-duration: 260ms;
}

@starting-style {
  .film[open]::backdrop {
    background: rgb(8 20 30 / 0);
  }
}

.film-frame {
  position: relative;
}

.film-frame video {
  width: 100%;
  height: auto;
  border-radius: var(--r-panel);
  background: #000;
}

.film-credit {
  margin-top: 10px;
  color: var(--on-navy-2);
  font-size: 0.8rem;
}

.film-credit a {
  color: inherit;
  text-underline-offset: 2px;
}

.film-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: var(--r-control);
  background: rgb(14 34 50 / 0.72);
  color: var(--white);
  cursor: pointer;
}

.film-close .icon {
  width: 22px;
  height: 22px;
}

/* Scroll reveals: content stays visible where scroll-driven animation is unsupported */

@supports (animation-timeline: view()) {
  .studio-cast figure,
  .story-film,
  .phones li {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }

  .studio-app .frame {
    animation: unclip linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
  }

  .phones li:nth-child(2),
  .studio-cast figure:nth-of-type(2) {
    animation-range: entry 8% entry 63%;
  }

  .phones li:nth-child(3) {
    animation-range: entry 16% entry 71%;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
}

@keyframes unclip {
  from {
    clip-path: inset(6% 6% 6% 6% round 24px);
    transform: scale(0.97);
  }
  to {
    clip-path: inset(0 0 0 0 round 16px);
  }
}

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


@media print {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .site-header,
  .film {
    display: none !important;
  }
}

.missing {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 22px;
  min-height: 100dvh;
  padding-block: 64px;
}

.missing img {
  width: 72px;
  height: auto;
}
