/* The Cut. Kensei means sword saint, and a cut is the unit of anime. One diagonal runs through the whole
   site at one angle: the intro, every wipe between pictures, the page change, and the single oxblood
   line through every title. Black and white carry everything else. */
@property --h { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --s { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  color-scheme: light;
  --black: #0A0A0A;
  --white: #FBFBF8;
  --blood: #6E1216;      /* oxblood on white, and every filled hover */
  --blade: #A31D22;      /* the same line on black, lifted so it reads */
  --ash: #A3A39C;
  --smoke: #5A5A55;

  --text: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Helvetica Neue", Arial, sans-serif;
  --title: "Noto Serif JP", "Hiragino Mincho ProN", Georgia, "Times New Roman", serif;
  --gurmukhi: "Noto Serif Gurmukhi", "Noto Serif JP", Georgia, serif;

  --ang: 15.64deg;                       /* the blade: tan = .28 */
  --slant: calc(100vh * .28);
  --gutter: clamp(16px, 3.2vw, 3rem);
  --max: 92rem;
  --ease: cubic-bezier(.7, 0, .2, 1);
}
@supports (height: 1svh) { :root { --slant: calc(100svh * .28); } }

.on-dark { --bg: var(--black); --fg: var(--white); --dim: var(--ash); --rule: #2B2B29; --cutline: var(--blade); --slot: #151514; --slot-line: #30302D; }
.on-light { --bg: var(--white); --fg: var(--black); --dim: var(--smoke); --rule: #DAD9D2; --cutline: var(--blood); --slot: #EEEDE7; --slot-line: #CFCEC6; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--black); }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--cutline, var(--blood)); outline-offset: 3px; }
h1, h2, h3, p, ul, dl, dd, blockquote, figure { margin: 0; padding: 0; }
ul { list-style: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.on-dark, .on-light { background: var(--bg); color: var(--fg); }

.skip { position: fixed; left: -999px; top: 0; background: var(--white); color: var(--black); padding: .5rem 1rem; z-index: 120; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header: inverts itself against whatever passes beneath it, so the blade cuts the logo too. */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem max(var(--gutter), env(safe-area-inset-right, 0px)) 1.1rem max(var(--gutter), env(safe-area-inset-left, 0px));
  color: #fff; mix-blend-mode: difference; pointer-events: none;
}
.top a { pointer-events: auto; }
.brand { display: block; width: clamp(9rem, 19vw, 15.5rem); }
.brand svg { display: block; width: 100%; height: auto; fill: currentColor; }
.brand__mark { transform-box: fill-box; transform-origin: center; transform: rotate(var(--turn, 0deg)); }
.top nav { display: flex; gap: clamp(.9rem, 2.2vw, 2rem); font-size: .9375rem; }
.top nav a { text-decoration: none; padding-block: .5rem; position: relative; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .35rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); }
.top nav a:hover::after, .top nav a:focus-visible::after { transform: scaleX(1); }

/* The cut through every title. Two copies of the words, clipped either side of one line. */
.slash { position: relative; display: block; width: fit-content; max-width: 100%; margin: 0; --t: 57%; --b: 43%; --k: max(var(--s, 0), calc(var(--h) * .13)); --slip: clamp(3rem, 8vw, 8rem); transition: --h .5s var(--ease) .07s; }
.slash .ln { display: block; }
.slash__a, .slash__b { display: block; will-change: transform; }
.slash__a { clip-path: polygon(-30% -25%, var(--t) -25%, var(--b) 125%, -30% 125%); transform: translate(calc(var(--k) * var(--slip) * -.27), calc(var(--k) * var(--slip) * .96)); }
.slash__b { position: absolute; inset: 0; clip-path: polygon(var(--t) -25%, 130% -25%, 130% 125%, var(--b) 125%); transform: translate(calc(var(--k) * var(--slip) * .27), calc(var(--k) * var(--slip) * -.96)); }
.slash__line { position: absolute; top: -18%; height: 136%; left: calc((var(--t) + var(--b)) / 2); width: 2px; margin-left: -1px; background: var(--cutline); transform: rotate(var(--ang)); pointer-events: none; }
.slash:hover { --h: 1; }

/* Title sizes. Each title fills its space rather than sitting at a common size. */
.t-hero, .t-panel, .t-page, .t-next, .t-missing { font-family: var(--title); font-weight: 900; line-height: 1.02; letter-spacing: -.012em; text-transform: uppercase; }
.t-hero { text-transform: none; font-size: min(11.3vw, 18.5vh); line-height: 1.04; letter-spacing: -.02em; }
.t-hero .ln { white-space: nowrap; }
:lang(pa).slash { font-family: var(--gurmukhi); line-height: 1.26; letter-spacing: 0; }
:lang(ja).slash { font-family: var(--title); line-height: 1; letter-spacing: 0; }
.t-panel.fit-script { font-size: min(20.5vw, 34vh); }
.t-panel.fit-two { font-size: min(15vw, 24vh); line-height: .98; }
.t-panel.fit-long { font-size: min(9.1vw, 19vh); }
.t-panel.fit-tate { font-size: min(13.5vw, 25vh); writing-mode: vertical-rl; }
.t-page.fit-script { font-size: min(30vw, 44vh); }
.t-page.fit-two { font-size: min(20vw, 34vh); line-height: .98; }
.t-page.fit-long { font-size: min(12.6vw, 26vh); }
.t-page.fit-tate { font-size: min(27vw, 42vh); }
.t-next.fit-script { font-size: min(24vw, 34vh); }
.t-next.fit-two { font-size: min(15vw, 24vh); }
.t-next.fit-long { font-size: min(11vw, 20vh); }
.t-next.fit-tate { font-size: min(22vw, 30vh); }
.t-missing { font-size: min(13vw, 24vh); }

/* The reel: the hero and five originals. Without motion it is a plain stack of full screens. */
.reel { position: relative; background: var(--black); padding-bottom: max(5vw, 2.25rem); }
.reel__a { position: absolute; left: 0; top: calc(var(--i) * 100vh); }
.stage { position: relative; }

.panel {
  position: relative; isolation: isolate; min-height: min(100vh, 64rem); min-height: min(100svh, 64rem); overflow: hidden;
  display: grid; gap: 1rem clamp(1.5rem, 4vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "meta poster" "title poster" "body poster";
  padding: 5.25rem max(var(--gutter), env(safe-area-inset-right, 0px)) 3.75rem max(var(--gutter), env(safe-area-inset-left, 0px));
}
.panel.on-light { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "poster meta" "poster title" "poster body"; }
.panel:has(.slash__link:hover, .panel__poster:hover, .go:hover) .slash { --h: 1; }
.panel__meta, .panel__title, .panel__body, .panel__poster { position: relative; }
.slash__link { display: block; color: inherit; text-decoration: none; }
.panel__meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: .1rem 1.75rem; font-size: .875rem; letter-spacing: .02em; color: var(--dim); }
.panel__meta span:last-child { color: var(--fg); }
.panel__title { grid-area: title; align-self: center; transform: translateX(calc(var(--s, 0) * -2.5vw)); }
.panel__latin { font-size: clamp(.95rem, 1.4vw, 1.25rem); font-weight: 500; letter-spacing: .34em; text-transform: uppercase; margin-top: .4em; }
.panel__body { grid-area: body; display: grid; gap: .8rem; justify-items: start; max-width: 40rem; }
.panel__log { font-size: clamp(1rem, 1.28vw, 1.1875rem); line-height: 1.6; }
.panel__credit { font-size: .9375rem; line-height: 1.5; color: var(--dim); }
.panel .go { margin-top: .25rem; }
.panel__poster { grid-area: poster; align-self: center; display: block; text-decoration: none; transform: translateX(calc(var(--s, 0) * 3vw)); }
.panel__poster .slot { height: min(calc(100vh - 7.5rem), 46rem); aspect-ratio: 2 / 3; }
.on-light .panel__poster, .panel.on-light .panel__poster { transform: translateX(calc(var(--s, 0) * -3vw)); }

/* 893 sets its title down the page, as it would be written. */
.panel--tate { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "meta title poster" ". title poster" "body title poster"; }
.panel--tate .panel__title { display: flex; flex-direction: row-reverse; align-items: flex-end; gap: 1rem; align-self: center; }
.panel--tate .panel__latin { writing-mode: vertical-rl; margin: 0; letter-spacing: .24em; }

/* Hero */
.panel--hero { display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(1.25rem, 3vh, 2.25rem); padding-bottom: 1.75rem; }
.hero__film { position: absolute; inset: 0; z-index: -1; margin: 0; background: var(--black) center / cover no-repeat; }
.hero__film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 10, 10, .9), rgba(10, 10, 10, .56) 42%, rgba(10, 10, 10, .5)); }
html.at-hero .top { mix-blend-mode: normal; }
.panel--hero .t-hero { transform: translateX(calc(var(--s, 0) * -2.5vw)); }
.hero__foot { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem clamp(1.5rem, 4vw, 4rem); }
.proof { display: flex; flex-wrap: wrap; gap: .5rem clamp(1.25rem, 3vw, 2.75rem); font-size: .875rem; line-height: 1.4; }
.proof li { display: grid; }
.proof b { font-weight: 500; }
.proof span { color: var(--dim); }

/* Actions */
.go, .play {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: .8rem;
  min-height: 3.1rem; padding: .55rem 1.9rem; color: var(--bg); font-weight: 500; font-size: 1rem; line-height: 1.3; text-decoration: none;
  transition: color .18s;
}
.go::before, .play::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg); transform: skewX(calc(var(--ang) * -1)); transition: background .18s; }
.go:hover, .play:hover, .panel:has(.slash__link:hover, .panel__poster:hover) .go { color: #fff; }
.go:hover::before, .play:hover::before, .panel:has(.slash__link:hover, .panel__poster:hover) .go::before { background: var(--blood); }
.arrow { width: 1.9rem; height: .7rem; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .28s var(--ease); flex: none; }
.go:hover .arrow, .panel:has(.slash__link:hover, .panel__poster:hover) .go .arrow { transform: translateX(.4rem); }
.tri { width: 1.4rem; height: 1.4rem; fill: currentColor; flex: none; margin-left: -.3rem; }
.go--big { min-height: 4rem; padding-inline: 2.4rem; font-size: 1.1875rem; }

/* Picture positions */
.slot { position: relative; display: block; overflow: hidden; background-color: var(--slot); border: 1px solid var(--slot-line);
  background-image: linear-gradient(to bottom right, transparent calc(50% - .6px), var(--slot-line) 50%, transparent calc(50% + .6px)); }
.slot.is-filled { border: 0; background-image: none; }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot__tag { position: absolute; left: .75rem; top: .6rem; right: .75rem; font-size: .75rem; line-height: 1.45; color: var(--dim); }
.slot__tag b { display: block; font-weight: 500; color: var(--fg); }
.slot--poster { aspect-ratio: 2 / 3; }
.slot--film, .slot--key, .slot--still { aspect-ratio: 16 / 9; }
.slot--wide { aspect-ratio: 21 / 9; }
.slot--char { aspect-ratio: 3 / 4; }
.slot--head { aspect-ratio: 1 / 1; }

/* A diagonal seam where one section meets the next, with the oxblood line along it. */
.seam { display: block; position: relative; z-index: 2; height: 5vw; min-height: 2.25rem; margin-top: calc(-1 * max(5vw, 2.25rem)); background: var(--cutline); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.seam::after { content: ""; position: absolute; inset: 0; background: var(--bg); clip-path: polygon(0 calc(100% + 2px), 100% 2px, 100% 100%, 0 100%); }

.label { font-family: var(--text); font-size: .9375rem; font-weight: 500; letter-spacing: .02em; line-height: 1.4; color: var(--dim); }
.statement { font-family: var(--title); font-weight: 600; font-size: clamp(1.75rem, 4vw, 3.5rem); line-height: 1.32; letter-spacing: -.01em; max-width: 25em; text-wrap: pretty; }
.note { color: var(--cutline); font-weight: 500; font-size: .9375rem; }

/* Studio */
.studio { position: relative; }
.studio .wrap { padding-top: clamp(4rem, 9vw, 8rem); padding-bottom: clamp(5rem, 11vw, 10rem); display: grid; gap: clamp(1.5rem, 3vw, 2.75rem); }
.statement--big { font-weight: 900; font-size: clamp(2.1rem, 5.5vw, 5.25rem); line-height: 1.16; letter-spacing: -.018em; max-width: 19em; }
.studio__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem clamp(1.5rem, 4vw, 4rem); }
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem clamp(1rem, 2.5vw, 2rem); margin-top: clamp(1rem, 3vw, 2.5rem); }
.team li { display: grid; gap: .15rem; line-height: 1.4; align-content: start; }
.team .slot { margin-bottom: .6rem; }
.role { color: var(--dim); font-size: .9375rem; }
.bio { font-size: .9375rem; line-height: 1.45; margin-top: .4rem; }
.role + .bio { margin-top: .6rem; }
.studio__head { font-family: var(--title); font-weight: 900; font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.2; letter-spacing: -.01em; margin-top: clamp(1.5rem, 4vw, 3.5rem); }
.studio__lead { max-width: 44em; margin-top: -.75rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem clamp(1rem, 2.5vw, 2rem); }
.steps li { display: grid; gap: .1rem; align-content: start; border-top: 2px solid var(--cutline); padding-top: .75rem; }
.step__when { color: var(--dim); font-size: .875rem; }
.step__name { font-family: var(--title); font-weight: 900; font-size: clamp(1.15rem, 1.9vw, 1.6rem); line-height: 1.25; }
.steps p { font-size: .9375rem; line-height: 1.5; margin-top: .25rem; }
.name { font-family: var(--title); font-weight: 900; font-size: clamp(1.15rem, 1.9vw, 1.6rem); line-height: 1.25; }

/* Film and scripts */
.works { position: relative; }
.works .wrap { padding-top: clamp(4rem, 9vw, 8rem); padding-bottom: clamp(5rem, 10vw, 9rem); display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
.work { display: flex; flex-direction: column; gap: .55rem; align-items: flex-start; }
.work--lead { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: end; }
.work--lead > .slot { width: 100%; }
.work--lead:not(:has(.slot)), .ip-brief__grid:not(:has(.slot)) { grid-template-columns: minmax(0, 1fr); }
.work__text { display: grid; gap: .8rem; }
.work__tag { color: var(--dim); font-size: .875rem; line-height: 1.4; }
.work__title { font-family: var(--title); font-weight: 900; line-height: 1.12; letter-spacing: -.01em; font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.work--lead .work__title { font-size: clamp(2.2rem, 5.6vw, 5rem); line-height: 1.04; text-transform: uppercase; letter-spacing: -.012em; }
.work--lead .work__text > p:not(.work__tag) { max-width: 44em; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem clamp(1rem, 3vw, 2.5rem); border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: .5rem; }
.quotes p { font-family: var(--title); font-weight: 500; font-size: 1.0625rem; line-height: 1.45; }
.quotes footer { color: var(--dim); font-size: .875rem; margin-top: .35rem; }
.works__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.25rem, 3vw, 2.75rem); }
.works__row .slot { width: 100%; margin-bottom: .6rem; }
.work__quote p { font-family: var(--title); font-weight: 500; font-size: .9375rem; line-height: 1.55; color: var(--dim); margin-top: .35rem; }
.works__close { border-top: 1px solid var(--rule); padding-top: 1.25rem; color: var(--dim); }

/* Contact */
.contact { position: relative; }
.contact .wrap { padding-top: clamp(4rem, 9vw, 8rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); display: grid; gap: .75rem; }
.mail { display: block; position: relative; isolation: isolate; width: fit-content; max-width: 100%; font-family: var(--title); font-weight: 900; font-size: min(8.4vw, 7.5rem); line-height: 1.12; letter-spacing: -.02em; text-decoration: none; overflow-wrap: anywhere; transition: color .2s; }
.mail::before { content: ""; position: absolute; inset: -.02em -.18em; z-index: -1; background: var(--blood); transform: skewX(calc(var(--ang) * -1)) scaleX(0); transform-origin: left; transition: transform .42s var(--ease); }
.mail:hover, .mail:focus-visible { color: #fff; }
.mail:hover::before, .mail:focus-visible::before { transform: skewX(calc(var(--ang) * -1)) scaleX(1); }

/* Social links */
.socials { display: flex; gap: .35rem; margin-left: -.65rem; }
.socials a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: inherit; transition: color .18s; }
.socials svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.socials a:hover, .socials a:focus-visible { color: var(--cutline); }
.contact .socials { margin-top: .5rem; }
.foot__row .socials { margin-left: auto; color: var(--fg); }

/* Footer */
.foot__row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding-block: 1.75rem; color: var(--dim); font-size: .9375rem; line-height: 1.5; }

/* Side rail of the five originals, shown only while they are on screen. */
.index { display: none; }

/* Original pages */
.ip-hero { position: relative; min-height: min(100vh, 64rem); min-height: min(100svh, 64rem); display: grid; align-content: end; gap: 1rem; overflow: hidden;
  padding: 6rem max(var(--gutter), env(safe-area-inset-right, 0px)) clamp(4.5rem, 8vw, 7rem) max(var(--gutter), env(safe-area-inset-left, 0px)); }
.ip-hero > .slot { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border: 0; }
.ip-hero .slot__tag { left: auto; right: var(--gutter); top: 5rem; width: 16rem; text-align: right; }
.ip-hero > .slot.is-filled::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 10, 10, .92), rgba(10, 10, 10, .28) 58%, rgba(10, 10, 10, .42)); }
.ip-hero__title, .ip-hero__meta { position: relative; }
.ip-hero__title { animation: rise 900ms var(--ease) both; }
.t-page { animation: seal 1000ms var(--ease) 120ms backwards; }
.t-page .slash__line { animation: draw 620ms var(--ease) both; }
@keyframes seal { from { --s: .55; } to { --s: 0; } }
@keyframes draw { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.ip-hero__latin { font-size: clamp(1rem, 1.9vw, 1.6rem); font-weight: 500; letter-spacing: .34em; text-transform: uppercase; margin-top: .3em; }
.ip-hero__meta { display: flex; flex-wrap: wrap; gap: .1rem 2rem; font-size: .9375rem; line-height: 1.5; color: var(--dim); }
.ip-hero__meta span:first-child { color: var(--fg); }
@keyframes rise { from { transform: translateY(1.5rem); } to { transform: none; } }

.ip-log { position: relative; }
.ip-log .wrap { padding-top: clamp(4rem, 9vw, 8rem); padding-bottom: clamp(4.5rem, 9vw, 8rem); display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.ip-log__card { font-family: var(--title); font-weight: 500; color: var(--dim); font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.65; }
.ip-film { position: relative; }
.ip-film .wrap { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(5rem, 9vw, 8rem); }
.ip-film .slot { width: 100%; display: grid; place-items: center; }
.ip-film .play { position: relative; }
.ip-brief { position: relative; }
.ip-brief__grid { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(5rem, 10vw, 9rem); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.ip-brief__grid > .slot { width: 100%; }
.ip-brief__text { display: grid; gap: clamp(2rem, 4vw, 3.25rem); }
.ip-brief__story { display: grid; gap: 1rem; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); max-width: 38em; }
.facts { border-top: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: .1rem 1rem; padding-block: .8rem; border-bottom: 1px solid var(--rule); line-height: 1.5; }
.facts dt { color: var(--dim); font-size: .9375rem; }
.ip-cast { position: relative; }
.ip-cast .wrap, .ip-world .wrap { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(5rem, 10vw, 9rem); display: grid; gap: 1.25rem; }
.cast { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2.25rem) clamp(.75rem, 2vw, 1.75rem); }
.cast p { font-family: var(--title); font-weight: 600; font-size: clamp(1.05rem, 1.7vw, 1.4rem); line-height: 1.3; margin-top: .55rem; }
.ip-world { position: relative; }
.ip-world .slot { width: 100%; }
.stills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.ip-ask { position: relative; }
.ip-ask__grid { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(5.5rem, 11vw, 10rem); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.ready { display: grid; margin-top: .75rem; }
.ready li { font-family: var(--title); font-weight: 600; font-size: clamp(1.15rem, 2.2vw, 1.9rem); line-height: 1.3; padding-block: .65rem; border-top: 1px solid var(--rule); }
.ip-ask__do { display: grid; gap: .75rem; justify-items: start; }
.ip-ask__mail { color: var(--dim); user-select: all; overflow-wrap: anywhere; }
.ip-next { display: block; position: relative; text-decoration: none; overflow: hidden; }
.ip-next__in { display: grid; gap: .5rem; padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.ip-next__latin { font-weight: 500; letter-spacing: .34em; text-transform: uppercase; font-size: clamp(.95rem, 1.4vw, 1.25rem); }
.ip-next:hover .slash { --h: 1; }

.missing { min-height: 100vh; min-height: 100svh; display: grid; align-content: end; justify-items: start; gap: 1.5rem; padding: 6rem var(--gutter) 4rem; }

/* The page cut: a black blade sweeps across, the next page opens behind it. */
.cut { display: none; position: fixed; inset: 0 -60vh; z-index: 95; background: var(--black); border-left: 4px solid var(--blade); pointer-events: none; }
html.cut-in .cut { display: block; animation: cutAway 640ms var(--ease) both; }
html.cut-out .cut { display: block; animation: cutOver 460ms var(--ease) both; }
@keyframes cutOver { from { transform: skewX(calc(var(--ang) * -1)) translateX(115%); } to { transform: skewX(calc(var(--ang) * -1)) translateX(0); } }
@keyframes cutAway { from { transform: skewX(calc(var(--ang) * -1)) translateX(0); } to { transform: skewX(calc(var(--ang) * -1)) translateX(-115%); } }

/* The intro: one stroke, a beat of stillness, then the two halves part. Pure CSS, so it always ends. */
.intro { display: none; }
html.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 100; animation: introEnd 1ms linear 1500ms forwards; }
@keyframes introEnd { to { visibility: hidden; } }
.intro__pane { position: absolute; inset: 0; display: grid; place-items: center; background: var(--black); color: var(--white); }
.intro__pane--a { clip-path: polygon(-50vw -5vh, calc(50% + var(--slant) * .55 + 1px) -5vh, calc(50% - var(--slant) * .55 + 1px) 105vh, -50vw 105vh); animation: introA 1500ms both; }
.intro__pane--b { clip-path: polygon(calc(50% + var(--slant) * .55) -5vh, 150vw -5vh, 150vw 105vh, calc(50% - var(--slant) * .55) 105vh); animation: introB 1500ms both; }
.intro__logo { width: min(74vw, 36rem); height: auto; fill: currentColor; }
.intro__line { position: absolute; left: 50%; top: -5vh; height: 110vh; width: 3px; margin-left: -1.5px; background: var(--blade); transform: rotate(var(--ang)); animation: introLine 1500ms both; }
@keyframes introLine {
  0%, 16% { clip-path: inset(0 0 100% 0); opacity: 1; }
  34% { clip-path: inset(0); opacity: 1; }
  62% { clip-path: inset(0); opacity: 1; }
  78%, 100% { clip-path: inset(0); opacity: 0; }
}
@keyframes introA {
  0%, 52% { transform: none; animation-timing-function: var(--ease); }
  62% { transform: translate(-3.8px, 13.5px); animation-timing-function: cubic-bezier(.76, 0, .24, 1); }
  100% { transform: translate(-82vw, 13.5px); }
}
@keyframes introB {
  0%, 52% { transform: none; animation-timing-function: var(--ease); }
  62% { transform: translate(3.8px, -13.5px); animation-timing-function: cubic-bezier(.76, 0, .24, 1); }
  100% { transform: translate(82vw, -13.5px); }
}

/* Reel with motion: the panels stack in one screen and the blade reveals each in turn. */
html.reel-on .reel { height: calc(100vh + (var(--n) - 1) * 118vh + max(5vw, 2.25rem)); }
html.reel-on .reel__a { top: calc(var(--i) * 118vh); }
html.reel-on .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
@supports (height: 1lvh) {
  html.reel-on .reel { height: calc(100lvh + (var(--n) - 1) * 118svh + max(5vw, 2.25rem)); }
  html.reel-on .reel__a { top: calc(var(--i) * 118svh); }
  html.reel-on .stage { height: 100lvh; }
}
html.reel-on .panel { position: absolute; inset: 0; min-height: 0; }
html.reel-on .panel:not(.panel--hero) {
  --x: calc((1 - var(--p, 0)) * (100% + var(--slant)));
  clip-path: polygon(var(--x) 0, 100% 0, 100% 100%, calc(var(--x) - var(--slant)) 100%);
}
.blade { display: none; }
html.reel-on .blade {
  display: block; position: absolute; inset: 0; z-index: 8; pointer-events: none; background: var(--blade); opacity: var(--on, 0);
  --x: calc((1 - var(--bp, 0)) * (100% + var(--slant)));
  clip-path: polygon(var(--x) 0, calc(var(--x) + 4px) 0, calc(var(--x) - var(--slant) + 4px) 100%, calc(var(--x) - var(--slant)) 100%);
}
html.reel-on .index {
  display: block; position: fixed; left: max(var(--gutter), env(safe-area-inset-left, 0px)); bottom: 1.1rem; z-index: 60;
  color: #fff; mix-blend-mode: difference; opacity: 0; pointer-events: none; transition: opacity .25s;
}
html.reel-on.in-reel .index { opacity: 1; pointer-events: auto; }
.index ul { display: flex; gap: 1.5rem; font-size: .8125rem; line-height: 1.4; }
.index a { text-decoration: none; opacity: .55; transition: opacity .2s; padding-block: .3rem; display: block; }
.index a:hover, .index a[aria-current="true"] { opacity: 1; }

/* Theatre for the teaser, once it has a YouTube id */
.theatre { width: min(92vw, 80rem); padding: 0; border: 0; background: var(--black); color: var(--white); }
.theatre::backdrop { background: rgba(0, 0, 0, .92); }
.theatre iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.theatre button { position: absolute; right: .5rem; top: .5rem; min-height: 2.5rem; padding: .25rem .9rem; background: var(--black); color: var(--white); border: 0; font: inherit; cursor: pointer; }

@media (max-width: 62rem) {
  .panel, .panel.on-light, .panel--tate {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    grid-template-areas: "meta" "title" "poster" "body";
    gap: .7rem; padding-top: 4.5rem; padding-bottom: 1.5rem;
  }
  .panel__poster, .panel.on-light .panel__poster { align-self: start; transform: none; min-height: 0; }
  .panel__poster .slot { height: auto; width: min(58vw, 19rem); }
  html.reel-on .panel__poster { height: 100%; }
  html.reel-on .panel__poster .slot { height: 100%; width: auto; max-width: 100%; }
  html.reel-on .panel { padding-bottom: calc(1.5rem + 100lvh - 100svh); }
  .panel--hero { padding-bottom: 1.5rem; }
  .panel--tate .panel__title { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .panel--tate .panel__latin { writing-mode: horizontal-tb; letter-spacing: .34em; }
  .t-panel.fit-tate { writing-mode: horizontal-tb; font-size: 30vw; line-height: 1.05; }
  .t-panel.fit-script { font-size: min(30vw, 22vh); }
  .t-panel.fit-two { font-size: min(26vw, 14vh); }
  .t-panel.fit-long { font-size: 13.4vw; }
  .t-page.fit-long { font-size: 13.4vw; }
  .t-hero { font-size: min(13.6vw, 11vh); line-height: 1.06; }
  .t-hero .ln { white-space: normal; }
  .proof { font-size: .8125rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel--hero .slot__tag { display: none; }
  .team, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio__body, .work--lead, .ip-brief__grid, .ip-ask__grid { grid-template-columns: minmax(0, 1fr); }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .works__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work--lead > .slot { max-width: 21rem; }
  .ip-brief__grid > .slot { max-width: 24rem; }
  .cast { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__row .socials { width: 100%; order: 3; }
  .facts > div { grid-template-columns: minmax(0, 1fr); }
  html.reel-on .index { display: none; }
  .ip-hero .slot__tag { top: 4.5rem; width: 11rem; }
}
@media (max-width: 34rem) {
  .works__row { grid-template-columns: minmax(0, 1fr); }
  .works__row .slot { max-width: 18rem; }
  .stills { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 23.5rem) {
  .brand { width: 7.75rem; }
  .top nav { font-size: .875rem; gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ip-hero__title, .t-page, .t-page .slash__line { animation: none; }
  .slash { transition: none; }
  .arrow, .mail::before, .top nav a::after { transition: none; }
}
