@font-face {
  font-family: Studio Sans;
  src: url('../assets/fonts/IBMPlexSans-Variable.woff2') format('woff2');
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --ink: #191b19;
  --muted: #666b65;
  --accent: #375bc0;
  --gutter: clamp(1.25rem, 4vw, 6rem);
  --header: clamp(3.25rem, 7.5dvh, 6.5rem);
  --content-width: 120rem;
  --section-space: clamp(.75rem, 2.4dvh, 2rem);
  --cue-space: clamp(3.5rem, 7.5dvh, 5.5rem);
  --footer-paper: #eeede7;
  --cinema: 0;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Studio Sans, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }
h1, h2 { font-weight: 400; letter-spacing: -.065em; line-height: 1.03; }
[hidden] { display: none !important; }
:where(a, button, video):focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
main:focus, section:focus { outline: none; }
::selection { background: var(--accent); color: white; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 1rem; left: 1rem; z-index: 30;
  padding: 1rem; color: var(--paper); background: var(--ink);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.site-header {
  position: fixed; inset: 0 auto auto 50%; z-index: 10;
  width: min(calc(100% - 2 * var(--gutter)), var(--content-width));
  transform: translateX(-50%);
  height: calc(var(--header) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; transition: color .5s;
}
.wordmark { display: inline-flex; align-items: center; min-height: 44px; font-size: clamp(.8rem, calc(.5vw + .5rem), 1.35rem); font-weight: 600; letter-spacing: .16em; white-space: nowrap; }
.nav-contact { min-height: 44px; display: inline-flex; align-items: center; gap: 1rem; font-size: clamp(.9rem, calc(.45vw + .5rem), 1.3rem); }
.nav-contact > [aria-hidden] { font-size: 1.05rem; }
.site-header a:hover { color: var(--accent); }
body[data-screen=capabilities] .site-header { color: #acb0ac; }
body[data-screen=capabilities] .site-header a:hover { color: white; }
.screen {
  height: 100svh; height: 100dvh; min-height: 20rem;
  padding: calc(var(--header) + env(safe-area-inset-top) + var(--section-space)) var(--gutter) calc(var(--cue-space) + env(safe-area-inset-bottom));
  position: relative;
}
.screen-inner { width: min(100%, var(--content-width)); height: 100%; min-height: 0; margin-inline: auto; }
.screen-cues { position: absolute; bottom: calc(.8rem + env(safe-area-inset-bottom)); left: 50%; width: min(calc(100% - 2 * var(--gutter)), var(--content-width)); transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; }
.step-cue { min-height: 44px; display: inline-flex; align-items: center; gap: 1.1rem; color: var(--muted); font-size: clamp(.78rem, .62vw, .96rem); }
.step-cue > [aria-hidden] { font-size: 1.15rem; }
.step-cue:hover { color: var(--ink); }
.cue-next { margin-left: auto; }
.cinema-dimmer { display: none; }
.section-navigation, .section-navigation body { height: 100%; overflow: hidden; overscroll-behavior-y: none; }
/* Clip creates no inner scroll container for browser focus to move during a screen transition. */
.section-navigation main { position: fixed; inset: 0; height: 100dvh; overflow: clip; touch-action: pan-x pinch-zoom; }
.section-navigation .screen { position: absolute; inset: 0; height: 100%; min-height: 0; z-index: 0; transform: translate3d(0, calc((var(--index) - var(--position, 0)) * 100%), 0); will-change: transform; }
.section-navigation .cinema-dimmer { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: #171918; opacity: var(--cinema); }
.section-navigation .cinema { z-index: 2; background: transparent; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 6rem); align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.8rem, min(4.8vw, 9.5dvh), 8rem); letter-spacing: -.055em; line-height: 1.08; }
.film-link { display: inline-flex; min-height: clamp(44px, 6.5dvh, 62px); align-items: center; gap: .8rem; margin-top: clamp(1.5rem, 4.5dvh, 3.75rem); padding: clamp(.55rem, 1.3dvh, .9rem) clamp(1.1rem, 1.5vw, 1.8rem); border-radius: 3rem; background: var(--ink); color: var(--paper); font-size: clamp(.9rem, calc(.4vw + .65rem), 1.3rem); font-weight: 500; transition: background .2s, transform .2s; }
.hero-play { font-size: .8em; line-height: 1; }
.film-link:hover { background: var(--accent); transform: translateY(-2px); }
.hero-art { position: relative; height: 100%; max-height: clamp(18rem, 70dvh, 58rem); width: 100%; min-height: 0; container-type: size; }
.hero-viewport { --hero-scale: 1.25; position: absolute; top: 50%; left: 50%; width: min(100cqw, 80cqh); aspect-ratio: 4/5; transform: translate(-50%, -50%) scale(var(--hero-scale)); mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent), linear-gradient(to bottom, transparent, #000 11%, #000 89%, transparent); mask-composite: intersect; -webkit-mask-composite: source-in; }
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero-video { opacity: 0; transition: opacity .15s; }
.hero-art[data-playing=true] .hero-video { opacity: 1; }
.hero-art[data-playing=true] .hero-poster { opacity: 0; }
.cinema { background: #171918; color: #c4c9c4; }
.cinema-inner { display: grid; place-items: center; width: 100%; }
.cinema .step-cue { color: #a3aaa3; }
.cinema .step-cue:hover { color: white; }
.film { position: relative; width: min(100%, calc((100dvh - var(--header) - var(--section-space) - var(--cue-space) - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 16 / 9), 110rem); aspect-ratio: 16/9; background: #faf9f7; overflow: hidden; }
.film > video, .film > noscript, .film > noscript > video { width: 100%; height: 100%; object-fit: contain; }
.film:not([data-enhanced]) > video { display: none; }
.film-cover { position: absolute; inset: 0; width: 100%; display: grid; place-items: center; padding: 0; border: 0; color: white; background: transparent; }
.film-cover:focus-visible { outline-offset: -4px; }
.play-symbol { width: clamp(3.8rem, 5.5vw, 5.3rem); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; padding-left: .15em; background: #191b19; border: 1px solid #fbfaf7; font-size: 1rem; box-shadow: 0 3px 20px #0002; transition: transform .2s; }
.film-cover:hover .play-symbol { transform: scale(1.06); }
.film-duration { position: absolute; right: 1rem; bottom: .75rem; color: var(--ink); background: #fbfaf7e6; padding: .2rem .4rem; font-size: .72rem; }
.film-status:empty { display: none; }
.film-status { position: absolute; left: 1rem; bottom: 1rem; max-width: calc(100% - 2rem); padding: .5rem .8rem; color: var(--ink); background: var(--paper); font-size: .8rem; }
/* Contact reserves real space for its footer instead of leaving a loose bottom gap. */
.contact { padding-bottom: 0; }
.contact-inner { display: flex; flex-direction: column; }
.contact .screen-cues { position: static; width: 100%; transform: none; flex: 0 0 auto; margin-bottom: clamp(.5rem, 1.5dvh, 1.25rem); }
.contact-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 6vw, 8rem); padding-block: clamp(.75rem, 3dvh, 3rem); }
/* Plex Sans metrics: (ascent 1.025 - descent .275 - cap height .698) / 2 = .026em.
   Center the capitals on the divider, excluding line-box space and descenders. */
.contact h2 { font-size: clamp(2.25rem, min(6.2vw, 11dvh), 9rem); transform: translateY(-.026em); }
/* Equal rows put the email divider on the same center axis as the heading. */
.contact-actions { width: 100%; max-width: 43rem; justify-self: end; container-type: inline-size; display: grid; grid-template-rows: 1fr 1fr; }
.email-link { display: flex; align-items: center; justify-content: space-between; gap: clamp(.5rem, 2cqi, 1rem); min-height: 50px; border-bottom: 1px solid #bfc3ba; font-size: clamp(.875rem, 5cqi, 2rem); letter-spacing: -.025em; }
.email-link:hover { border-color: var(--ink); }
.contact-options { display: flex; align-items: center; gap: clamp(1rem, 5cqi, 2rem); margin-top: clamp(.1rem, .8dvh, .5rem); }
.contact-options a, .copy-button { display: inline-flex; align-items: center; min-height: 44px; gap: .6rem; font-size: clamp(.875rem, 3cqi, 1.1rem); color: var(--muted); }
.contact-options a:hover, .copy-button:hover { color: var(--ink); }
.copy-button { padding: 0; border: 0; background: transparent; }
.copy-status { height: 1.5em; margin-top: .15rem; font-size: .75rem; line-height: 1.5; color: var(--muted); opacity: 0; transition: opacity .3s; }
.copy-status[data-visible=true] { opacity: 1; }
.site-footer { position: relative; isolation: isolate; display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: clamp(1rem, 4vw, 4rem); min-height: clamp(5rem, 10dvh, 8rem); padding: clamp(.9rem, 2dvh, 2rem) 0; padding-bottom: calc(clamp(.9rem, 2dvh, 2rem) + env(safe-area-inset-bottom)); }
.site-footer::before { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--footer-paper); }
.site-footer small { color: var(--muted); font-size: clamp(.65rem, calc(.25vw + .5rem), .95rem); letter-spacing: .055em; }
.footer-logo { display: block; width: clamp(5.5rem, 8vw, 8rem); flex-shrink: 0; min-height: 44px; align-content: center; }
.footer-logo img { width: 100%; height: auto; }

/* Portrait is a deliberate vertical composition, including tablet and tall app panels. */
@media (max-aspect-ratio: 1/1) {
  :root { --content-width: 44rem; }
  .hero-inner { display: flex; flex-direction: column; justify-content: space-evenly; align-items: stretch; gap: clamp(.5rem, 1.5dvh, 1.5rem); }
  .hero-copy { flex: 0 0 auto; }
  .hero h1 { font-size: clamp(1.9rem, min(7vw, 7dvh), 4.75rem); }
  .hero-art { flex: 0 1 auto; height: clamp(9rem, 43dvh, 40rem); max-height: 56%; width: 100%; }
  .contact-main { display: flex; flex-direction: column; justify-content: space-evenly; align-items: stretch; gap: clamp(1rem, 3dvh, 3rem); }
  .contact h2 { font-size: clamp(2rem, min(9vw, 7dvh), 4.5rem); transform: none; }
  .contact-actions { max-width: none; display: block; }
}
/* Give portrait phones a larger model while retaining room for the CTA and cue. */
@media (max-width: 599px) and (max-aspect-ratio: 1/1) {
  .hero-art { height: clamp(9rem, 48dvh, 40rem); max-height: 62%; }
}
@media (max-aspect-ratio: 1/1) and (min-width: 600px) {
  .hero-copy { text-align: center; }
}

/* Compact landscapes spend their limited height on content, not oversized chrome. */
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  :root { --header: 3rem; --section-space: .5rem; --cue-space: 3rem; }
  .hero-inner { gap: clamp(1rem, 3vw, 2rem); }
  .hero h1 { font-size: clamp(1.5rem, min(4.8vw, 9dvh), 3.4rem); }
  .film-link { min-height: 44px; margin-top: .8rem; padding: .5rem 1rem; }
  .contact-main { padding-block: .5rem; gap: clamp(1rem, 4vw, 3rem); }
  .contact h2 { font-size: clamp(2rem, 8dvh, 3.5rem); }
  .contact .screen-cues { margin-bottom: .25rem; }
  .email-link { min-height: 40px; }
  .copy-status { margin-top: 0; }
  .site-footer { min-height: 4rem; padding-block: .7rem; padding-bottom: calc(.7rem + env(safe-area-inset-bottom)); }
  .footer-logo { width: 5.5rem; }
}
/* Very short narrow windows need a compact stack, not overlapping touch targets. */
@media (max-width: 520px) and (max-height: 420px) {
  :root { --header: 3rem; --section-space: .5rem; --cue-space: 3rem; }
  .contact-main { display: flex; flex-direction: column; justify-content: space-evenly; align-items: stretch; gap: .5rem; padding-block: .25rem; }
  .contact h2 { font-size: 1.8rem; transform: none; }
  .contact-actions { display: block; }
  .email-link { min-height: 44px; font-size: clamp(.875rem, min(5cqi, 4.5dvh), 1.5rem); }
  .contact-options { margin-top: 0; }
  .contact .screen-cues { margin-top: .5rem; margin-bottom: .25rem; }
  .copy-status { margin: 0; height: 1em; line-height: 1; }
  .site-footer { min-height: 4.2rem; padding-block: .7rem; padding-bottom: calc(.7rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 480px) {
  .wordmark { letter-spacing: .09em; }
  .nav-contact { gap: .5rem; }
  .step-cue { font-size: .72rem; gap: .65rem; }
  .film-duration { right: .5rem; bottom: .35rem; font-size: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Locale controls share the existing header; film art and screen choreography stay fixed. */
[data-localizing] [data-i18n] { visibility: hidden; }
.hero h1 { white-space: pre-line; }
.site-header nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 2.5rem); }
.nav-contact { white-space: nowrap; }
.language-switch { display: flex; align-items: center; gap: .1rem; }
.language-switch button { min-width: 40px; min-height: 44px; border: 0; padding: .3rem; color: inherit; background: transparent; font-size: clamp(.78rem, .75vw, 1.05rem); opacity: .58; }
.language-switch button[aria-pressed=true] { opacity: 1; text-decoration: underline; text-underline-offset: .4em; text-decoration-thickness: 1px; }
.language-switch button:hover { opacity: 1; }
@media (max-width: 540px) {
  .site-header { gap: .5rem; }
  .site-header nav { gap: .5rem; }
  .nav-contact { gap: .35rem; font-size: .8rem; }
  .language-switch { gap: 0; }
  .language-switch button { min-width: 36px; font-size: .75rem; }
  .wordmark { font-size: .75rem; letter-spacing: .07em; }
}
@media (max-width: 359px) {
  .wordmark { max-width: 5.25rem; white-space: normal; }
}

/* Enlarge the artwork within its existing composition; scale the soft mask with it. */
@media (max-aspect-ratio: 1/1) {
  .hero-viewport { --hero-scale: 1.2; }
}
@media (max-aspect-ratio: 1/1) and (min-height: 740px) {
  .hero-viewport { --hero-scale: 1.3; }
}
@media (max-aspect-ratio: 1/1) and (min-width: 600px) {
  .hero-viewport { --hero-scale: 1.35; }
}
@media (min-aspect-ratio: 1/1) and (min-height: 1000px) {
  .hero-viewport { --hero-scale: 1.3; }
}
@media (min-width: 2200px) and (min-height: 1200px) {
  .hero-viewport { --hero-scale: 1.35; }
}
@media (min-width: 3000px) and (min-height: 1800px) {
  .hero-viewport { --hero-scale: 1.45; }
}
@media (min-aspect-ratio: 1/1) and (max-height: 560px) {
  .hero-viewport { --hero-scale: 1.12; }
}
@media (min-aspect-ratio: 1/1) and (min-height: 380px) and (max-height: 560px) {
  .hero-viewport { --hero-scale: 1.15; }
}
@media (max-width: 520px) and (max-height: 420px) {
  .hero-viewport { --hero-scale: 1; }
}
