/* Foldline, Kuramae, Tokyo. Process cyan on cool white, ink type. */
@font-face { font-family: "Axiome"; src: url("/live/foldline/fonts/axiome-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Axiome"; src: url("/live/foldline/fonts/axiome-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Axiome Mono"; src: url("/live/foldline/fonts/axiome-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "BIZ UDPMincho"; src: url("/live/foldline/fonts/biz-udpmincho-sub.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #0d1217;
  --slate: #4a5560;
  --ground: #f3f6f8;
  --stage: #e8edf1;
  --paper: #ffffff;
  --cyan: #00a0e9;
  --hair: #d3dbe1;
  --sans: "Axiome", "Helvetica Neue", Arial, sans-serif;
  --mono: "Axiome Mono", "SFMono-Regular", Menlo, monospace;
  --mincho: "BIZ UDPMincho", "Hiragino Mincho ProN", serif;
  --gut: clamp(16px, 2.4vw, 32px);
  --bar: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  /* four sizes: display, heading, body, label */
  --fs-display: clamp(60px, 8.6vw, 168px);
  --fs-head: clamp(34px, 4.2vw, 68px);
  --fs-body: clamp(16px, 1.15vw, 18px);
  --fs-label: 12px;
  color-scheme: light;
}
@media (max-width: 699px) { :root { --bar: 56px; } }

html { background: var(--ground); }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
}
img { height: auto; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em, i { font-style: normal; }
[lang="ja"] { font-family: var(--mincho); letter-spacing: 0; line-break: strict; font-feature-settings: "palt"; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.label {
  font-size: var(--fs-label);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.h2 {
  font-size: var(--fs-head);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  text-wrap: balance;
}
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: 99px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- buttons and links */
.pill {
  --k-fill-ink: var(--ground);
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 99px;
  background: var(--ink); color: var(--ground);
  font: 500 15px/1 var(--sans); letter-spacing: 0; text-decoration: none; border: 0;
  transition: transform 0.2s var(--ease), background-color 0.25s var(--ease);
  white-space: nowrap;
}
.pill:hover { background: #1d2731; }
.pill:active { transform: scale(0.97); }
.pill--big { height: 52px; padding: 0 28px; font-size: 16px; }
.ulink { color: var(--ink); text-decoration: none; font-weight: 500; padding-bottom: 2px; background-size: 100% 1px !important; background-position: 0 100% !important; border: 0; font-size: inherit; font-family: inherit; cursor: pointer; }
.ulink:hover, .ulink:focus-visible { background-size: 0 1px !important; background-position: 100% 100% !important; }
.ulink::after { content: " \2192"; display: inline-block; transition: transform 0.25s var(--ease); }
.ulink:hover::after { transform: translateX(3px); }
button.ulink { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }

/* ---------------------------------------------------------------- bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--bar);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 var(--gut);
  transition: transform 0.45s var(--ease), background-color 0.3s ease;
}
.bar.is-solid { background: linear-gradient(var(--hair), var(--hair)) 0 100% / 100% 1px no-repeat, rgba(243, 246, 248, 0.97); }
.bar.is-hidden { transform: translateY(-100%); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 19px; letter-spacing: -0.02em; justify-self: start; }
.logo__mark { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.logo__mark path:last-child { stroke: var(--cyan); stroke-dasharray: 2.2 1.6; }
.bar__nav { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.bar__link { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; display: inline-flex; align-items: flex-start; gap: 3px; height: 1.25em; }
.bar__link sup { font: 400 10px/1 var(--mono); color: var(--slate); margin-top: 1px; }
.bar__end { justify-self: end; display: flex; align-items: center; gap: 18px; }
.bar__clock { font: 400 12px/1 var(--mono); color: var(--slate); display: flex; gap: 6px; }
.bar__clock span { text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--sans); font-weight: 500; font-size: 11px; }
.bar__menu { display: none; height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--ink); background: transparent; font: 500 14px/1 var(--sans); color: var(--ink); }
@media (max-width: 899px) {
  .bar { grid-template-columns: 1fr auto; }
  .bar__nav, .bar__clock { display: none; }
  .bar__end .pill { display: none; }
  .bar__menu { display: inline-flex; align-items: center; }
}
.sheet { position: fixed; inset: 0; z-index: 39; background: var(--ground); padding: calc(var(--bar) + 24px) var(--gut) 32px; display: flex; flex-direction: column; justify-content: space-between; }
.sheet[hidden] { display: none; }
.sheet ol { display: grid; gap: 4px; }
.sheet a { display: flex; align-items: baseline; gap: 16px; font-size: clamp(44px, 13vw, 72px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 500; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--hair); }
.sheet a span { font: 400 13px/1 var(--mono); letter-spacing: 0; color: var(--slate); }
.sheet__foot { color: var(--slate); font-size: 15px; }

/* ---------------------------------------------------------------- theatre (hero + four packs) */
.theatre { position: relative; height: 560vh; }
.theatre__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage { position: absolute; inset: 0; z-index: 1; clip-path: inset(50% 50% 50% 50%); outline: none; touch-action: pan-y; cursor: grab; }
.stage.is-live { clip-path: var(--clip); }
.stage.is-dragging { cursor: grabbing; }
.stage canvas { display: block; position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; }
.stage.is-live canvas { opacity: 1; }
.stage:focus-visible { outline: none; }
.stage:focus-visible::after { content: ""; position: absolute; left: var(--fx, 0); top: var(--fy, 0); width: var(--fw, 100%); height: var(--fh, 100%); border-radius: 20px; outline: 2px solid var(--ink); outline-offset: -6px; pointer-events: none; }

.hero {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut);
  grid-template-rows: 1fr auto;
  padding: calc(var(--bar) + 12px) var(--gut) 18px;
}
.hero a, .hero button { pointer-events: auto; }
.hero__copy { grid-column: 1 / span 6; grid-row: 1; align-self: end; padding-bottom: clamp(8px, 2vh, 28px); padding-right: 12px; will-change: transform, opacity; }
.hero__title { font-size: min(var(--fs-display), 15.5vh); line-height: 0.9; letter-spacing: -0.05em; font-weight: 500; text-wrap: balance; max-width: 6.2em; }
.hero__lede { max-width: 31em; color: var(--slate); margin-top: clamp(18px, 3vh, 30px); }
.hero__actions { display: flex; align-items: center; gap: 26px; margin-top: clamp(20px, 3.4vh, 34px); flex-wrap: wrap; }
.hero__frame { grid-column: 7 / span 6; grid-row: 1; position: relative; border-radius: 22px; overflow: hidden; background: var(--stage); }
.hero__cap { grid-column: 7 / span 6; grid-row: 2; display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; font-size: 13px; color: var(--slate); }
.still { position: absolute; inset: 0; display: block; }
.still img { width: 100%; height: 100%; object-fit: cover; display: block; }
.still--hero { display: none; }
.stage.is-live ~ .hero .still--poster { opacity: 0; transition: opacity 0.4s ease 0.3s; }
.stage.is-live ~ .hero .hero__frame { background: transparent; transition: background-color 0.4s ease 0.3s; }

.stage-ui { position: absolute; z-index: 3; top: calc(var(--fy, 0px) + 14px); left: calc(var(--fx, 0px) + var(--fw, 0px) - 14px); transform: translateX(-100%); display: flex; gap: 8px; opacity: 0; transition: opacity 0.4s ease; }
.is-live-root .stage-ui { opacity: 1; }
.seg { display: inline-flex; padding: 2px; border-radius: 99px; background: rgba(255, 255, 255, 0.72); border: 1px solid var(--hair); }
.seg button, .turn { height: 38px; padding: 0 15px; border-radius: 99px; border: 0; background: transparent; font: 500 13px/1 var(--sans); color: var(--ink); transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.seg button:active, .turn:active { transform: scale(0.96); }
.turn { background: rgba(255, 255, 255, 0.72); border: 1px solid var(--hair); height: 44px; padding: 0 18px; }
.seg { height: 44px; align-items: center; }
.turn:hover, .seg button:hover:not([aria-pressed="true"]) { background: #fff; }

.dims { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.dims span { position: absolute; left: 0; top: 0; font: 400 12px/1 var(--mono); color: var(--ink); background: var(--stage); padding: 4px 6px; border-radius: 4px; opacity: 0; white-space: nowrap; will-change: transform, opacity; }

.packs { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.packs__title { position: absolute; left: calc(var(--fx, 0px) + 32px); top: calc(var(--fy, 0px) + 26px); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; opacity: 0; transition: opacity 0.4s ease; }
.is-expanded .packs__title { opacity: 1; }
.steps { position: absolute; right: calc(100vw - var(--fx, 0px) - var(--fw, 0px) + 26px); bottom: calc(100svh - var(--fy, 0px) - var(--fh, 0px) + 22px); display: flex; gap: 4px; opacity: 0; transition: opacity 0.4s ease; }
.is-expanded .steps { opacity: 1; pointer-events: auto; }
.steps button { position: relative; width: 46px; height: 44px; border: 0; background: transparent; font: 400 12px/1 var(--mono); color: var(--slate); }
.steps button::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 2px; background: var(--hair); }
.steps button.is-on { color: var(--ink); }
.steps button.is-on::after { background: var(--cyan); }
.pack { position: absolute; left: calc(var(--fx, 0px) + 32px); bottom: calc(100svh - var(--fy, 0px) - var(--fh, 0px) + 32px); width: min(27vw, 390px); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.6s var(--ease), visibility 0s linear 0.45s; }
.pack.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s ease 0.08s, transform 0.7s var(--ease) 0.08s, visibility 0s; pointer-events: auto; }
.pack__no { font: 400 12px/1 var(--mono); color: var(--slate); margin-bottom: 18px; }
.pack__client { font-size: var(--fs-head); line-height: 1; letter-spacing: -0.03em; font-weight: 500; }
.pack__line { margin-top: 16px; color: var(--ink); max-width: 26em; }
.pack__spec { margin-top: 22px; display: grid; gap: 0; border-top: 1px solid rgba(13, 18, 23, 0.14); }
.pack__spec div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(13, 18, 23, 0.14); font-size: 14px; }
.pack__spec dt { color: var(--slate); }
.pack__out { margin-top: 18px; font-weight: 500; }
.pack .ulink { display: inline-block; margin-top: 18px; }
.pack__stills { display: none; }
@media (max-width: 699px) {
  .pack { left: calc(var(--fx, 0px) + 18px); right: calc(100vw - var(--fx, 0px) - var(--fw, 0px) + 18px); width: auto; bottom: calc(100svh - var(--fy, 0px) - var(--fh, 0px) + 18px); }
  .pack__spec, .pack__out { display: none; }
  .pack__no { margin-bottom: 10px; }
  .pack__client { font-size: 30px; }
  .pack__line { margin-top: 8px; font-size: 15px; }
  .pack .ulink { margin-top: 10px; font-size: 15px; }
  .packs__title { display: none; }
  .steps { display: none; }
}

/* hero on phones and tablets in portrait */
@media (max-width: 899px) {
  .hero { grid-template-rows: auto 1fr auto; padding-top: calc(var(--bar) + 10px); }
  .hero__copy { grid-column: 1 / -1; grid-row: 1; align-self: start; padding: 8px 0 18px; }
  .hero__title { font-size: clamp(50px, 15.5vw, 112px); max-width: none; }
  .hero__lede { margin-top: 14px; font-size: 15px; max-width: 34em; }
  .hero__actions { margin-top: 18px; gap: 20px; }
  .hero__frame { grid-column: 1 / -1; grid-row: 2; border-radius: 18px; min-height: 180px; }
  .hero__cap { grid-column: 1 / -1; grid-row: 3; padding-top: 10px; font-size: 12px; }
}
@media (max-width: 899px) and (max-height: 760px) { .hero__lede { display: none; } }

/* static: reduced motion, capture, no WebGL. The packs become ordinary stacked sections. */
.is-static .theatre, .no-webgl .theatre { height: auto; }
.is-static .theatre__sticky, .no-webgl .theatre__sticky { position: relative; height: auto; overflow: visible; }
.is-static .stage, .no-webgl .stage, .is-static .when-live, .no-webgl .when-live { display: none; }
.is-static .hero, .no-webgl .hero { position: relative; pointer-events: auto; height: 100vh; height: 100svh; min-height: 640px; max-height: 1000px; }
.is-static .still--hero, .no-webgl .still--hero { display: block; }
.is-static .still--poster, .no-webgl .still--poster { display: none; }
.is-static .packs, .no-webgl .packs { position: relative; inset: auto; pointer-events: auto; padding: clamp(96px, 12vw, 180px) var(--gut) 0; }
.is-static .packs__title, .no-webgl .packs__title { display: block; position: static; opacity: 1; font-size: var(--fs-head); line-height: 1; letter-spacing: -0.03em; text-transform: none; margin-bottom: clamp(40px, 6vw, 80px); }
.is-static .pack, .no-webgl .pack { position: relative; left: auto; right: auto; bottom: auto; width: auto; opacity: 1; visibility: visible; transform: none; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); padding: 36px 0 56px; border-top: 1px solid var(--hair); }
.is-static .pack__text, .no-webgl .pack__text { grid-column: 1 / span 4; }
.is-static .pack__stills, .no-webgl .pack__stills { display: grid; grid-column: 5 / span 8; grid-template-columns: 1fr 1fr; gap: 12px; }
.is-static .pack__stills img, .no-webgl .pack__stills img { width: 100%; min-width: 0; border-radius: 14px; background: var(--stage); }
.pack__text, .pack__stills { min-width: 0; }
@media (max-width: 899px) {
  .is-static .pack__text, .no-webgl .pack__text, .is-static .pack__stills, .no-webgl .pack__stills { grid-column: 1 / -1; }
  .is-static .pack__stills, .no-webgl .pack__stills { margin-top: 24px; grid-template-columns: 1fr; }
  .is-static .hero, .no-webgl .hero { min-height: 700px; }
}

/* ---------------------------------------------------------------- selected work */
.work { position: relative; z-index: 3; background: var(--ground); padding: clamp(110px, 13vw, 200px) var(--gut) clamp(90px, 11vw, 170px); }
.work__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(48px, 6vw, 90px); }
.work__note { color: var(--slate); max-width: 22em; text-align: right; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); row-gap: clamp(56px, 7vw, 110px); }
.tile a { display: block; color: inherit; text-decoration: none; }
.tile--1 { grid-column: 1 / span 5; }
.tile--2 { grid-column: 7 / span 4; margin-top: clamp(80px, 14vw, 240px); }
.tile--3 { grid-column: 2 / span 4; }
.tile--4 { grid-column: 7 / span 6; margin-top: clamp(-60px, -6vw, -20px); }
.tile__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--stage); }
.tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s ease, transform 1.1s var(--ease); }
.tile--4 .tile__media { aspect-ratio: 6 / 5; }
.tile__alt { opacity: 0; }
@media (hover: hover) {
  .tile a:hover .tile__alt, .tile a:focus-visible .tile__alt { opacity: 1; }
  .tile a:hover .tile__media img { transform: scale(1.025); }
}
.tile__cap { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding-top: 16px; }
.tile__client { font-weight: 500; }
.tile__line { color: var(--slate); grid-column: 1; }
.tile__tags { grid-column: 2; grid-row: 1 / span 2; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); text-align: right; max-width: 12em; }
@media (max-width: 899px) {
  .work__head { flex-direction: column; align-items: start; }
  .work__note { text-align: left; }
  .tile--1, .tile--2, .tile--3, .tile--4 { grid-column: 1 / -1; margin-top: 0; }
  .tile--2, .tile--4 { margin-left: 18%; }
  .tile--4 .tile__media { aspect-ratio: 4 / 5; }
  .tile__cap { grid-template-columns: 1fr; }
  .tile__tags { grid-column: 1; grid-row: auto; text-align: left; margin-top: 6px; }
}

/* ---------------------------------------------------------------- services */
.services { position: relative; z-index: 3; background: var(--ground); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); padding: clamp(60px, 8vw, 120px) var(--gut) clamp(110px, 13vw, 200px); }
.services__media { grid-column: 1 / span 6; position: sticky; top: calc(var(--bar) + 24px); height: calc(100svh - var(--bar) - 48px); max-height: 820px; border-radius: 22px; overflow: hidden; background: var(--stage); align-self: start; }
.services__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 0.7s ease, transform 1.2s var(--ease); }
.services__media img.is-on { opacity: 1; transform: none; }
.services__list { grid-column: 8 / span 5; }
.svc__item { min-height: 62vh; padding: 28px 0 40px; border-top: 1px solid var(--hair); display: flex; flex-direction: column; justify-content: flex-start; transition: opacity 0.4s ease; }
.svc__item:first-child { margin-top: clamp(48px, 7vw, 100px); }
.svc__no { font: 400 12px/1 var(--mono); color: var(--slate); }
.svc__item h3 { font-size: var(--fs-head); line-height: 1; letter-spacing: -0.03em; font-weight: 500; margin: 26px 0 18px; }
.svc__item p:last-child { color: var(--slate); max-width: 27em; }
.svc__img { display: none; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; background: var(--stage); margin-bottom: 22px; }
.svc__item { position: relative; }
.svc__item::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--cyan); transition: width 0.8s var(--ease); }
.svc__item.is-on::before { width: 100%; }
@media (max-width: 899px) {
  .services__media { display: none; }
  .services__list { grid-column: 1 / -1; }
  .svc__item { min-height: 0; }
  .svc__img { display: block; }
}
.is-static .services__media { display: none; }
.is-static .services__list { grid-column: 1 / -1; display: block; }
.is-static .svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gut); }
.is-static .svc__item { min-height: 0; margin-top: 0; }
.is-static .svc__item:first-child { margin-top: 0; }
.is-static .svc__img { display: block; }
.is-static .services__list .h2 { margin-bottom: clamp(40px, 6vw, 80px); }
@media (max-width: 899px) { .is-static .svc { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- studio */
.studio { position: relative; z-index: 3; background: var(--ground); padding: 0 var(--gut) clamp(110px, 13vw, 200px); }
.studio__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); align-items: end; border-top: 1px solid var(--hair); padding-top: clamp(80px, 10vw, 150px); margin-bottom: clamp(40px, 5vw, 70px); }
.studio__head .h2 { grid-column: 1 / span 6; }
.studio__lede { grid-column: 8 / span 5; color: var(--slate); }
.studio__media { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); row-gap: clamp(48px, 6vw, 96px); align-items: end; }
.pic { display: contents; }
.studio__photo { grid-column: 1 / span 8; margin: 0; }
.studio__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; background: var(--stage); }
.studio__photo figcaption { font-size: 13px; color: var(--slate); padding-top: 12px; max-width: 30em; }
.studio__room { grid-column: 4 / span 7; }
.studio__room video { aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: var(--stage); }
.studio__room figcaption, .studio__film figcaption { font-size: 13px; color: var(--slate); padding-top: 12px; max-width: 30em; }
.studio__film { grid-column: 9 / span 4; }
.studio__film video { aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--stage); }
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gut); margin-top: clamp(80px, 9vw, 140px); }
.people img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; background: var(--stage); }
.people__name { font-weight: 500; margin-top: 14px; }
.people__note { color: var(--slate); max-width: 34em; margin-top: 28px; }
.people__role { color: var(--slate); font-size: 15px; }
.clients { margin-top: clamp(80px, 9vw, 140px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); border-top: 1px solid var(--hair); padding-top: 26px; }
.clients .label { grid-column: 1 / span 3; color: var(--slate); }
.clients__list { grid-column: 4 / span 9; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px var(--gut); }
@media (max-width: 899px) {
  .studio__head .h2, .studio__lede, .studio__room, .studio__film, .studio__photo { grid-column: 1 / -1; }
  .studio__lede { margin-top: 18px; }
  .studio__film { margin-top: 18px; width: 72%; margin-left: auto; }
  .people { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .clients .label, .clients__list { grid-column: 1 / -1; }
  .clients__list { grid-template-columns: 1fr 1fr; margin-top: 18px; }
}

/* ---------------------------------------------------------------- contact */
.contact { position: relative; z-index: 3; background: var(--paper); padding: clamp(100px, 12vw, 180px) var(--gut) clamp(100px, 12vw, 180px); border-top: 1px solid var(--hair); }
.contact__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); align-items: end; margin-bottom: clamp(44px, 6vw, 84px); }
.contact__head .h2 { grid-column: 1 / span 6; font-size: var(--fs-display); letter-spacing: -0.05em; line-height: 0.9; }
.contact__head p { grid-column: 8 / span 5; color: var(--slate); }
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); align-items: start; }
.spec { grid-column: 1 / span 7; }
.spec__group { border: 0; margin: 0 0 36px; padding: 0; }
.spec__group > .label { color: var(--slate); padding: 0 0 16px; }
.field { display: block; margin-bottom: 24px; }
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gut); }
.field__label { display: block; font-size: 14px; color: var(--slate); margin-bottom: 10px; }
.field__label .opt { color: #6b7680; font-size: 12px; margin-left: 6px; }
.field input {
  width: 100%; height: 52px; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; background: transparent;
  font: 400 18px/1.2 var(--sans); color: var(--ink); padding: 0; outline: none; transition: border-color 0.2s ease;
  -webkit-appearance: none; appearance: none;
}
.field--pick { position: relative; }
.pick { width: 100%; height: 52px; display: flex; align-items: center; justify-content: space-between; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; background: transparent; padding: 0; text-align: left; font: 400 18px/1.2 var(--sans); color: var(--ink); cursor: pointer; transition: border-color 0.2s ease; }
.pick::after { content: ""; width: 8px; height: 8px; margin-right: 6px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-3px) rotate(45deg); transition: transform 0.25s var(--ease); }
.pick[aria-expanded="true"], .pick:hover { border-bottom-color: var(--ink); }
.pick[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
.pick:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.pick__list { position: absolute; left: 0; right: 0; top: calc(100% - 4px); z-index: 6; max-height: 288px; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 6px; list-style: none; background: #FFFFFF; border: 1px solid var(--hair); border-radius: 12px; outline: none; }
.pick__list[hidden] { display: none; }
.pick__list li { padding: 11px 12px 11px 15px; border-radius: 8px; font-size: 16px; color: var(--ink); cursor: pointer; border-left: 3px solid transparent; }
.pick__list li.is-active { background: var(--stage); }
.pick__list li[aria-selected="true"] { font-weight: 500; border-left-color: #00A0E9; }
.field input::placeholder { color: #6b7680; }
.field input:focus { border-bottom-color: var(--ink); }
.field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.field.is-bad input { border-bottom-color: #b3261e; }
.field__msg { display: block; min-height: 0; font-size: 14px; color: #a3231b; margin-top: 8px; }
.field__msg:empty { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { height: 44px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--hair); background: var(--paper); font: 400 15px/1 var(--sans); color: var(--ink); transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease; }
.chips button:hover { border-color: var(--ink); }
.chips button:active { transform: scale(0.97); }
.chips button[aria-checked="true"] { background: var(--cyan); border-color: var(--cyan); color: var(--ink); font-weight: 500; }
.spec__submit { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 8px; }
.spec__fine { color: var(--slate); font-size: 14px; }
.ticket { grid-column: 9 / span 4; position: sticky; top: calc(var(--bar) + 24px); border: 1px solid var(--hair); border-radius: 20px; padding: 24px; background: var(--ground); }
.ticket__top { display: flex; justify-content: space-between; align-items: baseline; }
.ticket__top .label { color: var(--slate); }
.ticket__no { font-size: 13px; }
.ticket__die { display: block; width: 100%; height: auto; margin: 22px 0 18px; background: var(--paper); border-radius: 12px; }
.ticket__die .cut { fill: none; stroke: var(--ink); stroke-width: 1; }
.ticket__die .crease { fill: none; stroke: var(--cyan); stroke-width: 1.2; stroke-dasharray: 4 3; }
.ticket__die path { transition: d 0.5s var(--ease); }
.ticket__rows div { display: grid; grid-template-columns: 5.5em 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.ticket__rows dt { color: var(--slate); }
.ticket__rows dd { overflow-wrap: anywhere; }
.ticket__rows dd.is-empty { color: var(--slate); }
.ticket__rows dd.flash { animation: flash 0.6s ease; }
@keyframes flash { from { background: rgba(0, 160, 233, 0.22); } to { background: transparent; } }
.ticket__eta { border-top: 1px solid var(--hair); padding-top: 14px; font-size: 14px; color: var(--slate); }
.ticket__eta strong { color: var(--ink); font-weight: 500; }
.done { max-width: 720px; padding: 40px 0 0; outline: none; }
.done[hidden] { display: none; }
.done__title { font-size: var(--fs-head); line-height: 1; letter-spacing: -0.03em; font-weight: 500; margin: 18px 0 20px; }
.done__text { color: var(--slate); max-width: 34em; margin-bottom: 28px; }
.done .label { color: var(--slate); }
@media (max-width: 899px) {
  .contact__head .h2, .contact__head p { grid-column: 1 / -1; }
  .contact__head p { margin-top: 18px; }
  .spec, .ticket { grid-column: 1 / -1; }
  .ticket { position: relative; top: auto; margin-top: 12px; order: -1; margin-bottom: 40px; }
  .field__row { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- footer */
.foot { position: relative; z-index: 3; background: var(--cyan); color: var(--ink); padding: clamp(80px, 10vw, 150px) var(--gut) 28px; }
.foot__line { font-size: var(--fs-display); line-height: 0.9; letter-spacing: -0.05em; font-weight: 500; max-width: 9.5em; text-wrap: balance; }
.foot__cols { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); margin-top: clamp(60px, 8vw, 120px); align-items: start; }
.foot__mail { grid-column: 1 / span 5; font-size: var(--fs-head); line-height: 1; letter-spacing: -0.03em; font-weight: 500; color: var(--ink); text-decoration: none; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 2px no-repeat; padding-bottom: 6px; justify-self: start; transition: background-size 0.5s var(--ease); }
.foot__mail:hover { background-size: 0 2px; background-position: 100% 100%; }
.foot__addr { grid-column: 7 / span 4; font-style: normal; font-size: 15px; }
.foot__addr a { color: var(--ink); }
.foot__links { grid-column: 11 / span 2; display: grid; gap: 4px; justify-self: end; text-align: right; }
.foot__links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; background: linear-gradient(var(--ink), var(--ink)) 100% 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.foot__links a:hover, .foot__links a:focus-visible { background-size: 100% 1px; background-position: 0 100%; }
.foot__base { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: clamp(60px, 8vw, 110px); padding-top: 18px; border-top: 1px solid rgba(13, 18, 23, 0.35); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.foot__base a { color: var(--ink); }
.foot :focus-visible { outline-color: var(--ink); }
@media (max-width: 899px) {
  .foot__mail, .foot__addr, .foot__links { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .foot__addr { margin-top: 28px; }
  .foot__links { margin-top: 24px; grid-auto-flow: column; gap: 22px; }
  .foot__mail { font-size: clamp(28px, 8.4vw, 44px); }
}

/* ---------------------------------------------------------------- case view */
.case { position: fixed; inset: 0; z-index: 60; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; transform: translateY(100%); transition: transform 0.75s var(--ease-io); visibility: hidden; }
.case.is-open { transform: none; visibility: visible; transition: transform 0.75s var(--ease-io), visibility 0s; }
.case[hidden] { display: block; }
.case__inner { position: relative; padding: 28px var(--gut) clamp(80px, 10vw, 140px); }
.case__close { position: sticky; top: 20px; z-index: 2; float: right; height: 44px; padding: 0 20px; border-radius: 99px; border: 1px solid var(--ink); background: var(--paper); font: 500 15px/1 var(--sans); color: var(--ink); transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease; }
.case__close:hover { background: var(--ink); color: var(--paper); }
.case__close:active { transform: scale(0.97); }
.cs { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); padding-top: 76px; clear: both; }
.cs[hidden] { display: none; }
.cs__facts { grid-column: 1 / span 4; position: sticky; top: 92px; align-self: start; padding-right: 12px; }
.cs__facts .label { color: var(--slate); }
.cs__client { font-size: var(--fs-head); line-height: 1; letter-spacing: -0.03em; font-weight: 500; margin: 18px 0 30px; }
.cs__facts dl div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.cs__facts dt { color: var(--slate); }
.cs__body { grid-column: 6 / span 7; }
.cs__out { font-size: var(--fs-head); line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; text-wrap: balance; max-width: 14em; }
.cs__text { display: grid; grid-template-columns: 1fr 1fr; gap: 12px var(--gut); margin: clamp(40px, 5vw, 70px) 0; }
.cs__text .label { color: var(--slate); grid-row: 1; }
.cs__text p { color: var(--slate); grid-row: 2; }
.cs__media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cs__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; background: var(--stage); aspect-ratio: 4 / 5; }
.cs__media img.cs__wide { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.cs__media img.cs__draw { grid-column: 1 / -1; aspect-ratio: 4 / 3; object-fit: contain; background: var(--stage); }
.cs__next { display: flex; flex-direction: column; gap: 10px; margin-top: clamp(60px, 7vw, 100px); padding-top: 26px; border-top: 1px solid var(--ink); color: var(--ink); text-decoration: none; }
.cs__next .label { color: var(--slate); }
.cs__next span:last-child { font-size: var(--fs-head); line-height: 1; letter-spacing: -0.03em; font-weight: 500; transition: transform 0.4s var(--ease); }
.cs__next:hover span:last-child { transform: translateX(12px); }
@media (max-width: 899px) {
  .cs { padding-top: 56px; }
  .cs__facts, .cs__body { grid-column: 1 / -1; position: relative; top: auto; }
  .cs__body { margin-top: 36px; }
  .cs__text { grid-template-columns: 1fr; }
  .cs__text .label, .cs__text p { grid-row: auto; }
  .cs__text p { margin-bottom: 12px; }
}
html.case-open, html.case-open body { overflow: hidden; }

/* still render mode (internal, for poster frames) */
.still-mode .bar, .still-mode .hero, .still-mode .packs, .still-mode .stage-ui, .still-mode .dims, .still-mode main > section:not(.theatre), .still-mode .foot { display: none !important; }
.still-mode .stage { clip-path: none !important; }

@media (prefers-reduced-motion: reduce) {
  .case, .case.is-open { transition: none; }
}

/* tablets in portrait: two columns where phones get one */
@media (min-width: 600px) and (max-width: 899px) {
  .tile--1, .tile--3 { grid-column: 1 / span 6; margin-left: 0; }
  .tile--2, .tile--4 { grid-column: 7 / span 6; margin-left: 0; margin-top: 90px; }
  .svc { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gut); }
  .svc__item:first-child { margin-top: 0; }
  .services__list .h2 { margin-bottom: 40px; }
  .people { grid-template-columns: repeat(4, 1fr); }
  .is-static .pack__stills, .no-webgl .pack__stills { grid-template-columns: 1fr 1fr; }
  .is-static .svc { grid-template-columns: 1fr 1fr; }
}
