/* Reel My Property — website layout. Tokens: /assets/tokens.css · shared components: /assets/base.css
   Rule for this file: every "hidden until revealed" state is written under html[data-motion="on"],
   so the page is complete when motion is off, paused, or the scripts never arrive. */

/* ---------- Page ---------- */
html { scroll-behavior: smooth; }
html.lenis, html[data-motion="off"] { scroll-behavior: auto; }

/* A whisper of paper grain between the page color and the content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .06 0 0 0 0 .06 0 0 0 0 .07 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.section-head {
  display: grid;
  gap: var(--s-5);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head > :last-child { max-width: 30rem; }
@media (min-width: 56rem) {
  .section-head {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
    gap: var(--s-8);
  }
  .section-head > :last-child { justify-self: end; }
}

/* Labels that sit on photographs */
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0 0.7rem;
  border-radius: var(--r-pill);
  background: rgb(15 15 18 / 0.58);
  color: #fff;
  font: 500 var(--t-micro) / 1 var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.round-button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgb(15 15 18 / 0.55);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: background-color var(--d-1) ease;
}
.round-button:hover { background: rgb(15 15 18 / 0.75); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  color: var(--ink);
  transition: transform var(--d-3) var(--ease-out), background-color var(--d-2) ease, color var(--d-2) ease, box-shadow var(--d-2) ease;
}
.site-header__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-5);
  height: var(--header-h);
}
.site-nav {
  display: flex;
  justify-self: center;
  gap: clamp(1.1rem, 2.4vw, 2.5rem);
  font-size: var(--t-small);
  font-weight: 500;
}
.site-nav a {
  position: relative;
  padding: 0.6rem 0;
  color: inherit;
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0.35rem 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--d-2) var(--ease-out);
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.site-header__actions { display: flex; align-items: center; gap: var(--s-3); }
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden:not(:focus-within) { transform: translateY(-105%); }
.site-header[data-on="ink"] { color: var(--paper); --line-2: rgb(250 248 242 / 0.32); }
.site-header[data-on="ink"] .site-header__watch { color: var(--paper); }
.site-header[data-on="ink"].is-scrolled {
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  box-shadow: 0 1px 0 rgb(250 248 242 / 0.12);
}
.site-header[data-on="cornflower"].is-scrolled { background: color-mix(in srgb, var(--cf-500) 84%, transparent); }
.menu-button {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  border-radius: 50%;
  color: inherit;
}
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: var(--s-5) var(--gutter) var(--s-7);
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
}
.mobile-nav > a:not(.btn), .mobile-nav > button {
  padding: 0.35rem 0;
  font: 400 clamp(2rem, 9vw, 2.75rem) / 1.15 var(--font-display);
  letter-spacing: -0.01em;
  text-decoration: none;
  color: inherit;
}
.mobile-nav .btn { margin-top: var(--s-5); }
.site-header.menu-open { background: var(--paper); color: var(--ink); }
@media (max-width: 62rem) {
  .site-nav, .site-header__watch { display: none; }
  .menu-button { display: grid; }
  /* Without scripts the menu can't open, so don't show a button that does nothing (the footer has the links) */
  html:not([data-motion]) .menu-button { display: none; }
  .site-header__bar { grid-template-columns: auto 1fr; }
  .site-header__actions { justify-self: end; }
}
@media (max-width: 26rem) {
  .site-header .brand { font-size: 1.3rem; }
  .site-header .btn--primary { padding-inline: 0.85rem; }
}
/* The narrowest phones: the same button sits in the hero just below and in the menu */
@media (max-width: 23.5rem) {
  .site-header .btn--primary { display: none; }
}

/* ---------- 1 · Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2rem, 6.5vh, 5.5rem));
  overflow: clip;
}
.hero__copy { position: relative; z-index: 3; }
.hero__title { margin-top: var(--s-5); max-width: 12em; }
.hero__row {
  display: grid;
  gap: var(--s-5);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (min-width: 56rem) {
  .hero__row {
    grid-template-columns: minmax(0, 33rem) auto;
    justify-content: space-between;
    align-items: end;
  }
}
.hero__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--fg-2);
}
.hero__specs li { display: inline-flex; align-items: center; gap: 0.6rem; }
.hero__specs li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* The stage: a full-width film frame seen through a window that opens as you scroll.
   --open runs 0 → 1 (set by the motion script); with motion off it stays 0. */
.hero__stage {
  --open: 0;
  --inset-0: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  --inset: calc(var(--inset-0) * (1 - var(--open)));
  position: relative;
  margin-top: clamp(3rem, 7vw, 6rem);
}
.hero__frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: min(56.25vw, 88svh);
  min-height: 15rem;
  background: var(--paper-3);
  clip-path: inset(0 var(--inset) round calc(var(--r-print) * (1 - var(--open))));
}
.hero__still, .hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__video { opacity: 0; transition: opacity 0.9s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__meta {
  position: absolute;
  inset: auto var(--inset) 0 var(--inset);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(2rem, 6vw, 4rem) clamp(0.9rem, 2.2vw, 1.6rem) clamp(0.8rem, 1.8vw, 1.25rem);
  background: linear-gradient(to top, rgb(15 15 18 / 0.6), transparent);
  color: #fff;
  font: 500 var(--t-micro) / 1 var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero__state { display: inline-flex; align-items: center; gap: 0.6em; }
.rec {
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.55);
  transition: background-color var(--d-3) ease;
}
.is-film .rec { background: var(--cf-400); animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 50% { opacity: 0.35; } }
.hero__timecode { letter-spacing: 0.08em; }
.hero__pause {
  position: absolute;
  z-index: 2;
  top: clamp(0.75rem, 1.8vw, 1.25rem);
  right: calc(var(--inset) + clamp(0.75rem, 1.8vw, 1.25rem));
}
.hero__marks {
  position: absolute;
  z-index: 2;
  inset: 0 var(--inset);
  pointer-events: none;
  opacity: calc(1 - var(--open) * 3);
}
/* Listing photos lying around the frame: "your photos" */
.hero__prints { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.print {
  position: absolute;
  width: clamp(6.5rem, 13vw, 13rem);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: clamp(4px, 0.5vw, 7px) solid #fff;
  border-radius: 3px;
  box-shadow: var(--shadow-1);
}
.print--a { left: calc(var(--inset-0) - clamp(0.5rem, 3.5vw, 4rem)); bottom: 20%; rotate: -7deg; }
.print--b { left: calc(var(--inset-0) + clamp(2.5rem, 6vw, 6.5rem)); bottom: -6%; rotate: 5deg; }
.print--c { right: calc(var(--inset-0) + clamp(7rem, 20vw, 21rem)); top: -9%; rotate: 4deg; }
@media (max-width: 44rem) {
  .print--a, .print--c { display: none; }
  .print--b { left: auto; right: calc(var(--gutter) + 0.5rem); bottom: -9%; }
  .marks { --mark-gap: 6px; --mark-len: 9px; }
}

/* ---------- 2 · Who it's for ---------- */
.audience { padding-block: clamp(4.5rem, 10vw, 9rem) clamp(1rem, 3vw, 3rem); overflow: clip; }
.marquee {
  --gap: clamp(1.5rem, 3.2vw, 3.25rem);
  display: flex;
  gap: var(--gap);
  margin-top: var(--s-5);
  user-select: none;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--gap);
  min-width: 100%;
  margin: 0;
  animation: marquee 46s linear infinite;
}
.marquee__track li {
  display: inline-flex;
  align-items: center;
  gap: var(--gap);
  font: italic 400 clamp(2rem, 1.1rem + 3.6vw, 4.5rem) / 1.15 var(--font-display);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee__track li::after {
  content: "";
  width: 0.26em;
  height: 0.26em;
  border-radius: 50%;
  background: var(--accent);
}
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }
/* Motion off: a plain wrapped list instead of a moving strip */
html[data-motion="off"] .marquee { mask-image: none; padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
html[data-motion="off"] .marquee__track { flex-wrap: wrap; flex: 1; min-width: 0; row-gap: 0.25rem; }
html[data-motion="off"] .marquee__track[aria-hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
  .marquee__track { flex-wrap: wrap; flex: 1; min-width: 0; row-gap: 0.25rem; }
  .marquee__track[aria-hidden] { display: none; }
}

/* ---------- 3 · See the difference ---------- */
/* The wash blends in and out of the paper: no edge */
.difference {
  background: linear-gradient(to bottom, transparent, var(--cf-100) 16%, var(--cf-100) 84%, transparent);
}
.compare { --mark-color: var(--cf-900); }
.compare__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-print);
  overflow: hidden;
  isolation: isolate;
  background: var(--cf-200);
}
.compare__before, .compare__after video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__tag { position: absolute; top: clamp(0.6rem, 1.6vw, 1.1rem); }
.compare__tag--before { left: clamp(0.6rem, 1.6vw, 1.1rem); }
.compare__tag--after { right: clamp(0.6rem, 1.6vw, 1.1rem); }
.compare__divider {
  position: absolute;
  inset-block: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  pointer-events: none;
}
.compare__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(2.75rem, 5vw, 3.5rem);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--cf-500);
  color: var(--ink);
  box-shadow: 0 0 0 3px #fff, 0 8px 24px rgb(15 15 18 / 0.3);
}
.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
  appearance: none;
  background: transparent;
}
.compare__range::-webkit-slider-thumb { appearance: none; width: 1px; height: 100vh; }
.compare__range::-moz-range-thumb { width: 1px; height: 100vh; border: 0; background: transparent; }
.compare__media:has(.compare__range:focus-visible) .compare__handle { outline: 2px solid var(--ink); outline-offset: 5px; }
.compare__hint { margin-top: calc(var(--mark-len, 14px) + var(--mark-gap, 10px) + 0.75rem); text-align: center; }

/* ---------- 4 · One film, five shots ---------- */
.shots__sticky { padding-block: var(--section); }
.shots__grid { display: grid; gap: var(--s-6); }
.shots__intro h2 { margin-top: var(--s-4); }
.shots__intro .lead { margin-top: var(--s-4); }
.shots__list { display: grid; margin: var(--s-6) 0 0; }
.shot {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.5rem;
  width: 100%;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
  text-align: left;
  color: var(--fg-3);
  transition: color var(--d-2) ease;
}
.shot__n {
  padding-top: 0.5rem;
  font: 500 var(--t-micro) / 1 var(--font-sans);
  letter-spacing: 0.1em;
}
.shot__body { display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows var(--d-3) var(--ease-out); }
.shot__body strong {
  font: 400 clamp(1.5rem, 1.2rem + 1vw, 1.875rem) / 1.15 var(--font-display);
  letter-spacing: -0.01em;
}
.shot__body > span { min-height: 0; overflow: hidden; font-size: var(--t-small); line-height: 1.55; color: var(--fg-2); }
.shot__body > span::before { content: ""; display: block; height: 0.5rem; }
.shot:hover { color: var(--fg-2); }
.shot[aria-pressed="true"] { color: var(--fg); }
.shot[aria-pressed="true"] .shot__n { color: var(--link); }
.shot[aria-pressed="true"] .shot__body { grid-template-rows: auto 1fr; }

.shots__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-print);
  background: var(--paper-3);
}
.shots__poster, .shots__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.shots__poster { opacity: 0; transition: opacity 0.6s ease; }
.shots__poster.is-active { opacity: 1; }
.shots__video { opacity: 0; transition: opacity 0.5s ease; }
.shots__video.is-playing { opacity: 1; }
.shots__label { position: absolute; top: clamp(0.6rem, 1.4vw, 1rem); left: clamp(0.6rem, 1.4vw, 1rem); }

/* The editing timeline under the frame */
.timeline { margin-top: calc(var(--mark-len, 14px) + var(--mark-gap, 10px) + 1rem); }
.timeline__track {
  position: relative;
  display: flex;
  gap: 4px;
  height: clamp(2.5rem, 4.6vw, 3.75rem);
}
.timeline__clip {
  flex: var(--len) 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 4px;
  opacity: 0.4;
  filter: saturate(0.5);
  transition: opacity var(--d-3) ease, filter var(--d-3) ease;
}
.timeline__clip img { width: 100%; height: 100%; object-fit: cover; }
.timeline__clip.is-active { opacity: 1; filter: none; }
.timeline__playhead {
  --p: 0;
  position: absolute;
  top: -9px;
  bottom: -9px;
  left: calc(var(--p) * 100%);
  width: 2px;
  margin-left: -1px;
  background: var(--cf-700);
}
.timeline__playhead::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 11px;
  height: 11px;
  translate: -50%;
  border-radius: 50%;
  background: var(--cf-700);
}
.timeline__ruler {
  display: flex;
  justify-content: space-between;
  margin-top: 0.85rem;
  font: 500 var(--t-micro) / 1 var(--font-sans);
  letter-spacing: 0.08em;
  color: var(--fg-3);
}

@media (min-width: 64rem) {
  .shots__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 5vw, 5.5rem);
    align-items: center;
  }
  /* Scroll scene: the section is tall and its content stays put while the shots change */
  html[data-scenes="on"] .shots { height: 440vh; }
  html[data-scenes="on"] .shots__sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    display: grid;
    align-items: center;
    padding-block: var(--header-h) var(--s-5);
  }
}
@media (min-width: 64rem) and (max-height: 46rem) {
  html[data-scenes="on"] .shots__list { margin-top: var(--s-4); }
  html[data-scenes="on"] .shot { padding: 0.7rem 0; }
}
/* Narrow screens: the frame comes first, the shots become cards you swipe */
@media (max-width: 63.99rem) {
  .shots__intro { display: contents; }
  .shots__intro .eyebrow { order: 1; justify-self: start; }
  .shots__intro h2 { order: 2; margin-top: calc(var(--s-3) * -1); }
  .shots__intro .lead { order: 3; margin-top: calc(var(--s-3) * -1); }
  .shots__viewer { order: 4; margin-top: var(--s-4); }
  .shots__list {
    order: 5;
    display: flex;
    gap: var(--s-3);
    margin: 0 calc(var(--gutter) * -1);
    padding: 0.25rem var(--gutter) 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .shots__list::-webkit-scrollbar { display: none; }
  .shots__list li { flex: 0 0 min(80%, 21rem); scroll-snap-align: center; }
  .shot {
    height: 100%;
    padding: 1.1rem 1.1rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--white);
    align-content: start;
  }
  .shot[aria-pressed="true"] { border-color: var(--cf-700); box-shadow: inset 0 0 0 1px var(--cf-700); }
  .shot__body { grid-template-rows: auto 1fr; }
}

/* ---------- 5 · How it works ---------- */
.steps__grid { display: grid; gap: clamp(2.5rem, 4vw, 3rem); margin: 0; }
@media (min-width: 52rem) { .steps__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step__art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin-bottom: var(--s-5);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--white);
}
.step__n {
  margin-bottom: 0.6rem;
  font: 500 var(--t-micro) / 1 var(--font-sans);
  letter-spacing: 0.14em;
  color: var(--link);
}
.step h3 { margin-bottom: 0.6rem; }
.v-chip {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.875rem;
  padding: 0 0.75rem;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--paper);
  font: 500 var(--t-micro) / 1 var(--font-sans);
  letter-spacing: 0.02em;
}
.v-chip .icon { width: 1em; height: 1em; color: var(--cf-300); }
/* 01 · photos dropping into a tray */
.v-tray {
  position: relative;
  width: 64%;
  aspect-ratio: 4 / 3;
  border: 1.5px dashed var(--line-2);
  border-radius: 12px;
}
.v-photo {
  position: absolute;
  width: 47%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 3px;
  box-shadow: 0 6px 18px -6px rgb(15 15 18 / 0.35);
}
.v-photo--1 { left: 5%; top: 7%; rotate: -6deg; }
.v-photo--2 { left: 47%; top: 3%; rotate: 5deg; }
.v-photo--3 { left: 10%; top: 47%; rotate: 3deg; }
.v-photo--4 { left: 49%; top: 44%; rotate: -4deg; }
/* 02 · a cut being assembled */
.v-edit { position: relative; display: grid; gap: 8px; width: 78%; }
.v-row--clips { display: flex; gap: 4px; height: clamp(2.75rem, 5vw, 3.75rem); }
.v-clip { flex: var(--len) 1 0; min-width: 0; overflow: hidden; border-radius: 5px; }
.v-clip img { width: 100%; height: 100%; object-fit: cover; }
.v-row--wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 2.25rem;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--cf-100);
}
.v-row--wave i { flex: 1; height: 30%; border-radius: 2px; background: var(--cf-600); transform-origin: center; }
.v-row--wave i:nth-child(3n) { height: 62%; }
.v-row--wave i:nth-child(4n + 1) { height: 44%; }
.v-row--wave i:nth-child(5n + 2) { height: 82%; }
.v-row--wave i:nth-child(7n) { height: 22%; }
.v-playhead {
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: 42%;
  width: 2px;
  background: var(--ink);
}
.v-playhead::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 10px;
  height: 10px;
  translate: -50%;
  border-radius: 50%;
  background: var(--ink);
}
/* 03 · the film on a wide screen and a phone */
.v-screens { position: relative; width: 80%; aspect-ratio: 16 / 10.5; }
.v-wide {
  position: absolute;
  left: 0;
  top: 6%;
  width: 84%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 9px;
  background: var(--ink);
}
.v-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 25%;
  aspect-ratio: 9 / 17;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 13px;
  background: var(--ink);
  box-shadow: 0 10px 24px -8px rgb(15 15 18 / 0.45);
}
.v-wide img, .v-phone img { width: 100%; height: 100%; object-fit: cover; }
.v-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--cf-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.6 7.4v9.2l7.6-4.6z' fill='%230f0f12'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ---------- 6 · Films: the screening room ---------- */
.films {
  position: relative;
  margin-inline: clamp(0.5rem, 1.5vw, 1.5rem);
  border-radius: clamp(1.5rem, 3vw, 2.5rem);
}
.films .section-head { display: block; }
.film-feature {
  margin-bottom: var(--s-7);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--line);
}
.film-feature__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4) var(--s-6);
  margin-top: var(--s-5);
}
.film-feature__caption h3 { font-size: var(--t-h2); margin-bottom: var(--s-2); }
.film-feature__time {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--r-print);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--t-small);
}
.films__grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem) var(--s-5); }
.films__grid--portrait { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--s-7); }
.films__grid--portrait .film__media { aspect-ratio: 9 / 16; }
@media (min-width: 48rem) {
  .films__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .films__grid--portrait { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.film { display: grid; align-content: start; text-align: left; text-decoration: none; color: var(--fg); }
.film__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-print);
  background: var(--surface);
}
@media (min-width: 48rem) { .film--feature .film__media { aspect-ratio: 2.1 / 1; } }
.film__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.film:hover .film__media img, .film:focus-visible .film__media img { transform: scale(1.04); }
.film__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(3.25rem, 5vw, 4.5rem);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--cf-500);
  color: var(--ink);
  transition: scale var(--d-3) var(--ease-out), background-color var(--d-1) ease;
}
.film--feature .film__play { width: clamp(4rem, 8vw, 7rem); }
.film__play .icon { width: 34%; height: 34%; margin-left: 6%; }
.film:hover .film__play, .film:focus-visible .film__play { scale: 1.08; background: var(--cf-400); }
.film__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-top: 0.75rem; }
.film__meta strong {
  font: 400 clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem) / 1.2 var(--font-display);
  letter-spacing: -0.01em;
}
.film__meta span { font-size: var(--t-small); color: var(--fg-3); }
.films__archive { margin-top: var(--s-6); }
.films__archive summary {
  display: flex;
  gap: var(--s-2);
  align-items: center;
  width: fit-content;
  min-height: 44px;
  cursor: pointer;
  color: var(--link);
  font-weight: 500;
  list-style: none;
}
.films__archive summary::-webkit-details-marker { display: none; }
.films__archive[open] summary { margin-bottom: var(--s-5); }
.films__archive[open] summary .icon { rotate: 180deg; }
.films__collapse, .films__archive[open] .films__expand { display: none; }
.films__archive[open] .films__collapse { display: inline; }
.films__studio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
}
.films__studio p { color: var(--fg-2); }

/* ---------- 7 · Pricing ---------- */
.plan {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-sheet);
  background: var(--white);
}
.plan + .plan { margin-top: var(--s-5); }
.plan__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-4) var(--s-6);
  margin-bottom: var(--s-6);
}
.plan__head h3 { margin-bottom: 0.5rem; }
.plan__head p { max-width: 34rem; }
.bundles { display: grid; gap: var(--s-3); margin: 0; }
@media (min-width: 44rem) { .bundles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bundle {
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--paper);
}
.bundle__price {
  margin-block: 0.75rem 0.15rem;
  font: 400 clamp(2.75rem, 2rem + 3vw, 4rem) / 1 var(--font-display);
  letter-spacing: -0.02em;
}
.bundle__credits { font-weight: 500; }
.bundle__note { margin-top: 0.35rem; }
.calc {
  margin-top: var(--s-3);
  padding: var(--s-5);
  border-radius: var(--r-card);
  background: var(--cf-100);
}
.calc__controls { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); margin-block: var(--s-4); }
.calc__group { display: grid; gap: 0.5rem; }
.calc .segmented { background: var(--cf-200); border-color: transparent; }
.calc__result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.75rem; color: var(--ink); }
.calc__result strong { font: 400 clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem) / 1 var(--font-display); letter-spacing: -0.01em; }

.packages { display: grid; gap: var(--s-3); }
@media (min-width: 52rem) { .packages { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.package {
  display: flex;
  flex-direction: column;
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--paper);
}
.package h4 { font: 400 1.625rem / 1.15 var(--font-display); letter-spacing: -0.01em; margin-bottom: 0.35rem; }
.package__price {
  margin-block: var(--s-5) var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font: 400 clamp(2rem, 1.6rem + 1.4vw, 2.5rem) / 1 var(--font-display);
  letter-spacing: -0.015em;
}
.package--featured { border-color: transparent; background: var(--bg); }
.package--featured .ticks li::before { background: var(--cf-400); }
.ticks { display: grid; gap: 0.65rem; margin: 0 0 var(--s-5); font-size: var(--t-small); line-height: 1.45; }
.ticks li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: 0.6rem; }
.ticks li::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  background: var(--link);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.package .btn { margin-top: auto; }
.monthly {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--paper);
}
.monthly h4 { font: 400 1.625rem / 1.15 var(--font-display); letter-spacing: -0.01em; margin-bottom: 0.35rem; }
.monthly__label { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-weight: 500; }
.monthly__value { font: 400 2.5rem / 1 var(--font-display); }
.monthly__ends { display: flex; justify-content: space-between; margin-top: 0.5rem; }
@media (min-width: 56rem) {
  .monthly { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: center; gap: var(--s-6); }
}
.range {
  --fill: 8%;
  appearance: none;
  width: 100%;
  height: 1.75rem;
  margin: 0.35rem 0 0;
  background: transparent;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--cf-500) var(--fill), var(--paper-3) var(--fill));
}
.range::-moz-range-track { height: 6px; border-radius: 99px; background: var(--paper-3); }
.range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--cf-500); }
.range::-webkit-slider-thumb {
  appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: calc(-0.75rem + 3px);
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 2px 8px rgb(15 15 18 / 0.3);
}
.range::-moz-range-thumb {
  width: 1.125rem;
  height: 1.125rem;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 2px 8px rgb(15 15 18 / 0.3);
}
.team {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4) var(--s-6);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.team h4 { margin-bottom: 0.2rem; }

/* ---------- 8 · Questions and answers ---------- */
.faq__grid { display: grid; gap: var(--s-6); }
@media (min-width: 56rem) {
  .faq__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: var(--s-8); }
  .faq__grid > h2 { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  font: 500 1.0625rem / 1.4 var(--font-sans);
  letter-spacing: -0.006em;
  cursor: pointer;
  list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary .icon { color: var(--link); transition: rotate var(--d-2) var(--ease-out); }
.faq__list details[open] summary .icon { rotate: 45deg; }
.faq__answer { max-width: 44em; padding: 0 2.5rem 1.5rem 0; color: var(--fg-2); }
@supports (interpolate-size: allow-keywords) {
  .faq__list details { interpolate-size: allow-keywords; }
  .faq__list details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size var(--d-3) var(--ease-out), content-visibility var(--d-3) allow-discrete;
  }
  .faq__list details[open]::details-content { block-size: auto; }
}

/* ---------- 9 · From the studio ---------- */
.notes__grid { display: grid; gap: clamp(2rem, 3vw, 2.75rem); }
@media (min-width: 52rem) { .notes__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.note-card { display: grid; gap: 0.6rem; align-content: start; text-align: left; }
.note-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 0.6rem;
  overflow: hidden;
  border-radius: var(--r-print);
  background: var(--paper-3);
}
.note-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.note-card:hover img, .note-card:focus-visible img { transform: scale(1.04); }
.note-card strong {
  font: 400 clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem) / 1.15 var(--font-display);
  letter-spacing: -0.01em;
}
.note-card > .soft { font-size: var(--t-small); line-height: 1.55; }
.note-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font: 500 var(--t-small) / 1 var(--font-sans);
  color: var(--link);
}
.note-card__more .icon { width: 1.1em; height: 1.1em; transition: transform var(--d-2) var(--ease-out); }
.note-card:hover .icon--nudge { transform: translateX(3px); }
.reader img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: var(--s-5);
  border-radius: var(--r-print);
}
.reader h2 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }
.reader p { margin-top: var(--s-4); max-width: 38em; }
.reader .lead { color: var(--fg); }

/* ---------- 10 · Closing ---------- */
.closing { padding: var(--section) clamp(0.5rem, 1.5vw, 1.5rem) 0; }
.closing__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(4.5rem, 12vw, 10.5rem) var(--gutter);
  border-radius: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}
/* Slow light moving across the blue: CSS only */
.closing__glow {
  position: absolute;
  inset: -45%;
  z-index: -1;
  background:
    radial-gradient(38% 38% at 28% 42%, var(--cf-300), transparent 72%),
    radial-gradient(34% 34% at 72% 60%, var(--cf-200), transparent 72%),
    radial-gradient(30% 30% at 56% 24%, var(--cf-600), transparent 72%);
  animation: drift 26s var(--ease-in-out) infinite alternate;
}
@keyframes drift { to { transform: translate3d(7%, -5%, 0) rotate(14deg) scale(1.12); } }
.closing__body { display: grid; justify-items: center; gap: var(--s-5); }
.closing .lead { color: var(--fg); }
.closing__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-3); }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--s-7) var(--s-6); }
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4) var(--s-6);
}
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; font-size: var(--t-small); font-weight: 500; }
.site-footer__nav a { padding: 0.4rem 0; color: inherit; text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.site-footer__row--base { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.motion-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: var(--fg-2);
  font-weight: 500;
}
.motion-switch:hover { color: var(--fg); }
.motion-switch .icon { width: 1.1em; height: 1.1em; }

/* ---------- Film player ---------- */
.dialog--film {
  width: min(74rem, calc(100vw - 1.5rem));
  padding: 0;
  overflow: hidden;
  border-radius: clamp(0.75rem, 1.5vw, 1.25rem);
}
.player { aspect-ratio: 16 / 9; max-height: calc(100dvh - 7rem); background: #000; }
.player video { width: 100%; height: 100%; }
.dialog--portrait { width: min(calc(100vw - 1.5rem), calc((100dvh - 8rem) * 9 / 16), 28rem); }
.dialog--portrait .player { aspect-ratio: 9 / 16; }
.player__title {
  padding: 0.9rem 1.25rem 1.1rem;
  font: 400 1.5rem / 1.2 var(--font-display);
}
.player__credit { margin: -0.7rem 1.25rem 1rem; font-size: var(--t-small); color: var(--fg-2); }
.dialog--film .dialog__close {
  background: rgb(15 15 18 / 0.6);
  color: #fff;
  backdrop-filter: blur(8px);
}
@media (prefers-reduced-motion: no-preference) {
  /* The frame opens like letterbox bars pulling apart */
  html:not([data-motion="off"]) .dialog--film[open] .player { animation: letterbox 0.9s var(--ease-out); }
}
@keyframes letterbox { from { clip-path: inset(44% 0); } to { clip-path: inset(0 0); } }

/* ---------- Inquiry ---------- */
.inquiry__lead { margin-top: 0.6rem; }
.inquiry__form { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
.inquiry__pair { display: grid; gap: var(--s-4); }
@media (min-width: 34rem) { .inquiry__pair { grid-template-columns: 1fr 1fr; } }
.inquiry__submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-2); }
.inquiry__result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.inquiry__result p { flex-basis: 100%; min-height: 1.4em; color: var(--fg-2); }

/* ---------- The film nudge ---------- */
.nudge {
  position: fixed;
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  z-index: var(--z-float);
  width: min(25rem, calc(100vw - 1.5rem));
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: var(--shadow-1);
}
.nudge__open {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.7rem 2.5rem 0.7rem 0.7rem;
  text-align: left;
  border-radius: inherit;
}
.nudge__thumb { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; }
.nudge__thumb img { width: 100%; height: 100%; object-fit: cover; }
.nudge__thumb .film__play { width: 2.25rem; }
.nudge__text strong { display: block; font: 500 var(--t-small) / 1.35 var(--font-sans); }
.nudge__text span { display: block; margin-top: 0.2rem; font-size: 0.8125rem; line-height: 1.4; color: var(--fg-2); }
.nudge__close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: var(--fg-2);
}
.nudge__close:hover { background: var(--paper-2); color: var(--fg); }
.nudge__close .icon { width: 1rem; height: 1rem; }
@media (prefers-reduced-motion: no-preference) { .nudge { animation: rise-in var(--d-3) var(--ease-out); } }

/* The wordmark carries across when moving between the website and the studio */
@media (prefers-reduced-motion: no-preference) {
  .site-header .brand { view-transition-name: brand; }
}

/* ---------- Hidden until revealed (motion on only) ---------- */
html[data-motion="on"] [data-rise],
html[data-motion="on"] [data-reveal] { opacity: 0; }
html[data-motion="on"] [data-split] { visibility: hidden; }
html[data-motion="on"] .site-header { opacity: 0; }
html[data-motion="on"] .hero__prints .print,
html[data-motion="on"] .hero__frame { opacity: 0; }
html[data-motion="on"] .hero__marks { visibility: hidden; }

/* Headline lines are split and masked by the motion layer; leave room for descenders and italics */
.line-mask { padding: 0.06em 0.08em 0.16em; margin: -0.06em -0.08em -0.16em; }
