﻿@font-face {
  font-family: "SB Aggro Bold";
  src:
    url("./assets/fonts/SB_AggroOTF_B.otf") format("opentype"),
    url("./assets/fonts/SB_Aggro_B.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --frame: 14px;
  --radius: clamp(22px, 4vw, 42px);
  --muted: rgba(255, 255, 255, 0.72);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-ui: "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  /* Display/titles only (not body). Google Fonts Outfit (OFL) */
  --font-brand: "Outfit", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-brand-weight: 600;
  /* HOME work titles + WORKS list titles only */
  --font-work-title: "SB Aggro Bold", "Outfit", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }
html {
  /* Keep Safari UI light; do not auto-flip to dark chrome */
  color-scheme: only light;
  background-color: #ebe4d6;
}

html, body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  /* Outer matte — warm paper ivory (not yellow, not flat #fff). Always — incl. mobile idle */
  background-color: #ebe4d6;
  color: #fff;
  font-family: var(--font-ui);
  overflow: hidden; /* wheel drives works, not page scroll */
}

/*
 * Film-grain on outermost viewport frame — clearly visible on the ivory matte.
 * Real PNG noise + multiply (SVG soft-light was invisible).
 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Lighter than 0.55 — ivory stays clear, grain still reads */
  opacity: 0.24;
  mix-blend-mode: multiply;
  background-image: url("./assets/frame-grain.png");
  background-size: 128px 128px;
  background-repeat: repeat;
}

body.is-ready { overflow: hidden; }

.shell {
  position: fixed;
  inset: var(--frame);
  z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  /* No opaque white/paper spill — the --frame ring is body + grain ::before */
  box-shadow: none;
  isolation: isolate;
}

.stage {
  position: absolute;
  inset: 0;
  /*
   * Thin letterbox depth — subconscious only.
   * Soft cool/dark gradients in the 90–100% band; no bright white “bulb”.
   */
  background-color: #010103;
  background-image:
    /* corner pools — muted slate, barely there */
    radial-gradient(
      ellipse 26% 22% at 8% 7%,
      rgba(55, 72, 92, 0.11) 0%,
      transparent 75%
    ),
    radial-gradient(
      ellipse 26% 22% at 92% 7%,
      rgba(55, 72, 92, 0.1) 0%,
      transparent 75%
    ),
    radial-gradient(
      ellipse 26% 22% at 8% 93%,
      rgba(45, 60, 78, 0.09) 0%,
      transparent 75%
    ),
    radial-gradient(
      ellipse 26% 22% at 92% 93%,
      rgba(45, 60, 78, 0.08) 0%,
      transparent 75%
    ),
    /* soft cool rim — dark steel, never white/cyan */
    radial-gradient(
      ellipse 50% 50% at 50% 50%,
      transparent 0%,
      transparent 89%,
      rgba(48, 62, 78, 0.07) 91%,
      rgba(70, 88, 108, 0.11) 94%,
      rgba(28, 36, 48, 0.08) 97%,
      transparent 100%
    ),
    /* outer crush */
    radial-gradient(
      ellipse 50% 50% at 50% 50%,
      transparent 0%,
      transparent 93%,
      rgba(0, 0, 0, 0.45) 98%,
      rgba(0, 0, 0, 0.82) 100%
    ),
    /* projector asset fully veiled — texture under near-black only */
    linear-gradient(rgba(1, 2, 5, 0.985), rgba(1, 2, 5, 0.99)),
    url("./assets/projector-bg.png");
  background-position: center, center, center, center, center, center, center, center;
  background-size: cover, cover, cover, cover, cover, cover, cover, cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Subtle cool deepen during film — no bright rim flash */
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    transparent 0%,
    transparent 90%,
    rgba(60, 78, 98, 0.1) 94%,
    rgba(20, 28, 40, 0.06) 97%,
    transparent 100%
  );
  opacity: 0;
}

.stage.is-filming {
  /* Let soft white edge glow sit in the scale-0.9 gutter */
  overflow: visible;
}
.stage.is-filming::before {
  animation: film-bleed 1.4s var(--ease) forwards;
}

@keyframes film-bleed {
  0% { opacity: 0; }
  18% { opacity: 0.45; }
  40% { opacity: 0.28; }
  100% { opacity: 0; }
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1) translateY(0);
  /* Brand work switch is keyframed — keep motion even if OS reduce-motion is on */
  transition: none !important;
  background: #111 center / cover no-repeat;
  will-change: transform, border-radius;
  z-index: 1;
  pointer-events: none;
  /* Match shell radius whenever the still is a “card” mid-film */
  overflow: hidden;
}

.slide.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
  border-radius: 0;
  z-index: 2;
}

/*
 * Film advance (no fade):
 * leave: slight zoom-out → swipe up (or down if is-dir-prev)
 * enter: from opposite edge, zoomed out → settle zoom-in
 * Both frames keep the same rounded corners while scaled.
 */
.slide.is-beneath {
  opacity: 1;
  z-index: 2;
  border-radius: var(--radius);
  /* Soft diffused glow only — no hard rim / inset line */
  overflow: visible;
  box-shadow:
    0 0 28px rgba(255, 255, 255, 0.16),
    0 0 56px rgba(255, 255, 255, 0.1),
    0 14px 48px rgba(255, 255, 255, 0.07);
  animation: mille-enter-next 1.4s var(--ease) forwards !important;
  transition: none !important;
}

.slide.is-beneath.is-dir-prev {
  /* Full shorthand (not animation-name only) — opposite enter from ABOVE */
  animation: mille-enter-prev 1.4s var(--ease) forwards !important;
}

.slide.is-leaving {
  opacity: 1;
  z-index: 4;
  border-radius: var(--radius);
  overflow: visible;
  box-shadow:
    0 0 30px rgba(255, 255, 255, 0.18),
    0 0 60px rgba(255, 255, 255, 0.11),
    0 16px 52px rgba(255, 255, 255, 0.08);
  animation: mille-leave-next 1.4s var(--ease) forwards !important;
  transition: none !important;
}

.slide.is-leaving.is-dir-prev {
  /* Full shorthand — leave goes DOWN on scroll-up */
  animation: mille-leave-prev 1.4s var(--ease) forwards !important;
}

@keyframes mille-leave-next {
  0% { transform: scale(1) translateY(0); border-radius: var(--radius); }
  22% { transform: scale(0.9) translateY(0); border-radius: var(--radius); }
  100% { transform: scale(0.9) translateY(-112%); border-radius: var(--radius); }
}

@keyframes mille-enter-next {
  0%, 22% { transform: scale(0.9) translateY(112%); border-radius: var(--radius); }
  78% { transform: scale(0.9) translateY(0); border-radius: var(--radius); }
  100% { transform: scale(1) translateY(0); border-radius: 0; }
}

@keyframes mille-leave-prev {
  0% { transform: scale(1) translateY(0); border-radius: var(--radius); }
  22% { transform: scale(0.9) translateY(0); border-radius: var(--radius); }
  100% { transform: scale(0.9) translateY(112%); border-radius: var(--radius); }
}

@keyframes mille-enter-prev {
  0%, 22% { transform: scale(0.9) translateY(-112%); border-radius: var(--radius); }
  78% { transform: scale(0.9) translateY(0); border-radius: var(--radius); }
  100% { transform: scale(1) translateY(0); border-radius: 0; }
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.42) 0%, transparent 30%, transparent 64%, rgba(0,0,0,.5) 100%);
}

.ui {
  position: absolute;
  inset: 0;
  /* Above works-view so brand + vertical nav stay visible on WORKS */
  z-index: 10;
  pointer-events: none;
}

.ui a, .ui button {
  pointer-events: auto;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

/* HOME: current work index (01, 02…) — chrome, not part of title gather */
.work-index {
  position: absolute;
  top: clamp(1rem, 2.4vw, 1.55rem);
  left: clamp(1rem, 2.5vw, 1.6rem);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.75;
  pointer-events: none;
  z-index: 6;
  font-variant-numeric: tabular-nums;
}

/* Top-center logo — black asset forced white (pre invert/blend/white experiments) */
.brand {
  position: absolute;
  top: clamp(1rem, 2.4vw, 1.6rem);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 12;
}

.brand-logo {
  display: block;
  height: 36px; /* half of prior 72px */
  width: auto;
  /* Soft white mark on dark stills */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* Menu: top-right vertical stack (nav only) */
.top-right {
  position: absolute;
  top: clamp(1rem, 2.4vw, 1.55rem);
  right: clamp(1rem, 2.5vw, 1.6rem);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 12;
}

.top-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
  font-size: 20px; /* ~2× prior 10px */
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.top-nav a {
  position: relative;
  opacity: 0.7;
  transition: opacity 0.25s ease;
  padding-left: 0.85em; /* room for active sky-blue dot on the LEFT */
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 0.85em;
  right: 0;
  bottom: -0.15em;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.28s var(--ease);
  pointer-events: none;
}

/* Active: pastel sky-blue dot to the LEFT of the label */
.top-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a8d4f0;
  transform: translateY(-50%) scale(0);
  opacity: 0;
  transition: transform 0.22s var(--ease), opacity 0.22s ease;
  pointer-events: none;
}

.top-nav a:hover,
.top-nav a.is-active {
  opacity: 1;
}

.top-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.top-nav a.is-active::before {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

/* Language toggle — shrunk, bottom-right (not in nav stack) */
/* Beat `.ui button { font: inherit }` so size sticks */
.ui button.lang {
  position: absolute;
  right: clamp(1rem, 2.5vw, 1.6rem);
  bottom: clamp(0.85rem, 2vw, 1.25rem);
  z-index: 12;
  font-family: var(--font-ui);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.2rem 0;
  min-width: 1.6em; /* KO/EN stable */
  text-align: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.ui button.lang:hover { opacity: 1; }

/* KO/EN text crossfade — geometry stable */
[data-i18n],
[data-i18n-placeholder],
.ui button.lang {
  transition: opacity 0.18s ease;
}
body.is-lang-fading [data-i18n],
body.is-lang-fading [data-i18n-placeholder],
body.is-lang-fading .ui button.lang {
  opacity: 0;
}

/* —— Minimal custom cursor (fine pointer only) —— */
.cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 10000;
  pointer-events: none;
  /* normal — keep pastel sky-blue dot readable (difference washed it out) */
  mix-blend-mode: normal;
}
body.has-custom-cursor {
  cursor: none;
}
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor .works-card,
body.has-custom-cursor .uncut-thumb {
  cursor: none;
}
body.has-custom-cursor .cursor {
  display: block;
}
.cursor-dot,
.cursor-ring {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: block;
}
.cursor-dot {
  width: 12px; /* ×2 prior 6px */
  height: 12px;
  background: #a8d4f0; /* pastel sky blue */
}
.cursor-ring {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  opacity: 0.9;
}
body.cursor-hover .cursor-ring {
  width: 40px;
  height: 40px;
  opacity: 1;
}

/* —— Entrance: compact work roll → zoom to first —— */
.entrance {
  position: absolute;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  background: #0a0a0a;
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.33, 0, 0.2, 1);
}
.entrance-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.entrance-track {
  position: absolute;
  left: 50%;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.55rem, 1.4vh, 1rem);
  will-change: transform;
  /* X centers the column; Y is driven by entrance travel */
  transform: translate3d(-50%, 0, 0);
}
.entrance-card {
  position: relative;
  /* Mild overview: start closer to final HOME size (less zoomed-out) */
  width: min(96vw, 72rem);
  height: min(78vh, 46rem);
  flex: 0 0 auto;
  border-radius: clamp(16px, 2vw, 24px);
  overflow: hidden;
  background: #1c1c1c;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transform-origin: center center;
  will-change: transform, border-radius;
}
.entrance-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Visible as soon as bytes arrive — not gated on full decode */
  background: #2a2a2a;
}
/* Shared settle timing — quality fade + title fade-in lockstep */
.shell.is-entrance .stage,
.shell.is-entrance .meta,
.shell.is-entrance .meta-side,
.shell.is-entrance .work-index,
.shell.is-entrance .progress {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.55s cubic-bezier(0.33, 0, 0.2, 1),
    visibility 0.55s cubic-bezier(0.33, 0, 0.2, 1);
}

/*
 * Handoff: keep entrance fully opaque during zoom (no stage peek).
 * Settle: entrance opacity 1→0 and titles 0→1 share the same 0.55s curve.
 */
.shell.is-entrance.is-entrance-handoff .stage {
  opacity: 0;
  visibility: hidden;
}
.shell.is-entrance.is-entrance-fading .stage {
  opacity: 1;
  visibility: visible;
}
.shell.is-entrance.is-entrance-handoff .meta,
.shell.is-entrance.is-entrance-handoff .meta-side,
.shell.is-entrance.is-entrance-handoff .work-index,
.shell.is-entrance.is-entrance-handoff .progress {
  opacity: 0;
  visibility: hidden;
}
.shell.is-entrance.is-entrance-fading .meta,
.shell.is-entrance.is-entrance-fading .meta-side,
.shell.is-entrance.is-entrance-fading .work-index,
.shell.is-entrance.is-entrance-fading .progress {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}
.entrance.is-fading {
  opacity: 0;
  background: transparent; /* don’t flash black matte over HOME still */
}
.slide:not(.is-decoded) {
  background-color: #141414;
  background-image: none !important;
}
.slide.is-decoded {
  /* background-image set inline once decoded */
}

.meta {
  position: absolute;
  left: clamp(1.25rem, 3vw, 2rem);
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  max-width: min(22rem, 48vw);
  opacity: 1;
  z-index: 6;
  will-change: transform;
  pointer-events: none;
}

.meta.is-leaving-clone {
  z-index: 7;
}

/* Title rides with the film strip — no fade */
.meta.is-leaving {
  animation: meta-leave-next 1.4s var(--ease) forwards !important;
}

.meta.is-leaving.is-dir-prev {
  animation: meta-leave-prev 1.4s var(--ease) forwards !important;
}

.meta.is-entering {
  animation: meta-enter-next 1.4s var(--ease) forwards !important;
}

.meta.is-entering.is-dir-prev {
  animation: meta-enter-prev 1.4s var(--ease) forwards !important;
}

@keyframes meta-leave-next {
  0% { opacity: 1; transform: translate(0, -50%) scale(1); }
  22% { opacity: 1; transform: translate(0, -50%) scale(0.96); }
  100% { opacity: 1; transform: translate(0, calc(-50% - 110vh)) scale(0.96); }
}

@keyframes meta-enter-next {
  0%, 22% { opacity: 1; transform: translate(0, calc(-50% + 110vh)) scale(0.96); }
  78% { opacity: 1; transform: translate(0, -50%) scale(0.96); }
  100% { opacity: 1; transform: translate(0, -50%) scale(1); }
}

@keyframes meta-leave-prev {
  0% { opacity: 1; transform: translate(0, -50%) scale(1); }
  22% { opacity: 1; transform: translate(0, -50%) scale(0.96); }
  100% { opacity: 1; transform: translate(0, calc(-50% + 110vh)) scale(0.96); }
}

@keyframes meta-enter-prev {
  0%, 22% { opacity: 1; transform: translate(0, calc(-50% - 110vh)) scale(0.96); }
  78% { opacity: 1; transform: translate(0, -50%) scale(0.96); }
  100% { opacity: 1; transform: translate(0, -50%) scale(1); }
}

.meta .kicker,
#workTitle {
  /* Match .side-year (HOME year on the right) */
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  line-height: 1.15;
}

.meta .kicker {
  font-family: var(--font-brand);
  font-weight: var(--font-brand-weight);
}

#workTitle {
  font-family: var(--font-work-title);
  font-weight: 700;
}

/* Right-center: year + format; leave/enter mirrored with title + still */
.meta-side {
  position: absolute;
  right: clamp(1.25rem, 3vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
  opacity: 1;
  z-index: 6;
  will-change: transform;
  pointer-events: none;
}

.meta-side.is-leaving-clone {
  z-index: 7;
}

.meta-side.is-leaving {
  animation: side-leave-next 1.4s var(--ease) forwards !important;
}

.meta-side.is-leaving.is-dir-prev {
  animation: side-leave-prev 1.4s var(--ease) forwards !important;
}

.meta-side.is-entering {
  animation: side-enter-next 1.4s var(--ease) forwards !important;
}

.meta-side.is-entering.is-dir-prev {
  animation: side-enter-prev 1.4s var(--ease) forwards !important;
}

@keyframes side-leave-next {
  0% { opacity: 1; transform: translate(0, -50%) scale(1); }
  22% { opacity: 1; transform: translate(0, -50%) scale(0.96); }
  100% { opacity: 1; transform: translate(0, calc(-50% - 110vh)) scale(0.96); }
}

@keyframes side-enter-next {
  0%, 22% { opacity: 1; transform: translate(0, calc(-50% + 110vh)) scale(0.96); }
  78% { opacity: 1; transform: translate(0, -50%) scale(0.96); }
  100% { opacity: 1; transform: translate(0, -50%) scale(1); }
}

@keyframes side-leave-prev {
  0% { opacity: 1; transform: translate(0, -50%) scale(1); }
  22% { opacity: 1; transform: translate(0, -50%) scale(0.96); }
  100% { opacity: 1; transform: translate(0, calc(-50% + 110vh)) scale(0.96); }
}

@keyframes side-enter-prev {
  0%, 22% { opacity: 1; transform: translate(0, calc(-50% - 110vh)) scale(0.96); }
  78% { opacity: 1; transform: translate(0, -50%) scale(0.96); }
  100% { opacity: 1; transform: translate(0, -50%) scale(1); }
}

.side-year {
  font-family: var(--font-brand);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: var(--font-brand-weight);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
}

.side-format {
  margin-top: 0.45rem;
  font-family: var(--font-brand);
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: var(--font-brand-weight);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
  white-space: pre-line;
}

.progress {
  /* Hidden: HOME no longer uses a timed autoplay countdown bar */
  display: none;
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0.65rem;
  height: 1px;
  background: rgba(255,255,255,0.18);
  overflow: hidden;
  z-index: 6;
}

.progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: #fff;
  transition: width 0.35s linear;
}

/* —— Shared page chrome: HOME ↔ WORKS / UNCUT crossfade —— */
.work-index,
.meta,
.meta-side,
.progress,
.stage {
  transition: opacity 0.55s var(--ease), visibility 0.55s;
}

.shell.mode-page .work-index,
.shell.mode-page .meta,
.shell.mode-page .meta-side,
.shell.mode-page .progress,
.shell.mode-page .stage {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.shell.mode-page .stage::after {
  opacity: 0;
  transition: opacity 0.55s var(--ease);
}

.works-view,
.uncut-view,
.studio-view,
.work-view {
  position: absolute;
  inset: 0;
  z-index: 7;
  color: #fff;
  background: #0c0c0c; /* fallback under photo bg */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.22) transparent;
  /* Keep page fade even if a future reduce-motion rule appears */
  transition: opacity 0.55s var(--ease), visibility 0.55s !important;
}

.works-view.is-open,
.uncut-view.is-open,
.studio-view.is-open,
.work-view.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Shared dark textured page background (WORKS + UNCUT) */
.atmos-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.atmos-bg-photo {
  position: absolute;
  inset: -64px;
  background:
    url("./stills/08-underwater.jpg") center / cover no-repeat;
  filter: blur(40px) saturate(0.25) brightness(0.28) contrast(1.05);
  transform: scale(1.16);
  transform-origin: center;
}

.atmos-bg-dim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.58) 45%, rgba(0,0,0,0.78) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.28) 50%, rgba(0,0,0,0.5) 100%),
    rgba(0, 0, 0, 0.45);
}

.atmos-bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

.works-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 2.8vw, 2.2rem) clamp(1.25rem, 2.4vw, 2rem);
  /* Desktop: ~2× prior thumb size (was min(58%, 52rem)) */
  width: min(92%, 104rem);
  margin: 0 auto;
  padding:
    clamp(4.75rem, 9vh, 5.75rem)
    clamp(1.25rem, 3vw, 2.5rem)
    3rem;
  box-sizing: border-box;
}

/* WORKS bottom — 참여작 / Also credited (centered, 14px, sky • bullets) */
.works-credits {
  position: relative;
  z-index: 1;
  width: min(92%, 104rem);
  margin: 0 auto;
  padding:
    0.75rem
    clamp(1.25rem, 3vw, 2.5rem)
    clamp(3.5rem, 9vh, 5rem);
  box-sizing: border-box;
  text-align: center;
}
.works-credits-title {
  margin: 0 0 1.15rem;
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.65;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.35rem;
  text-align: center;
}
.works-credits-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: min(48rem, 100%);
  display: inline-block;
  text-align: left;
}
.works-view .works-credits-list li {
  display: grid;
  grid-template-columns: 1.1em minmax(0, 1fr);
  column-gap: 0.65em;
  align-items: start;
  margin: 0 0 0.72em;
  padding: 0;
  font-size: 14px; /* half of prior 28px */
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.78);
}
.works-credits-list li::before {
  content: "•";
  grid-column: 1;
  line-height: 1.35;
  color: #a8d4f0; /* same sky blue as custom cursor */
  opacity: 1;
  text-align: center;
}

/* —— INFO + CONTACT: one studio page, two anchored sections —— */
.studio-view {
  overflow: hidden;
}

.studio-scroll {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow: auto;
  scroll-behavior: smooth;
  padding:
    clamp(4.75rem, 9vh, 5.75rem)
    clamp(1.5rem, 4vw, 3rem)
    /* Extra bottom so CONTACT can scroll up under the logo */
    min(52vh, 28rem)
    clamp(1.5rem, 4vw, 3rem);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.studio-section {
  max-width: min(36rem, 100%);
  margin: 0 auto clamp(4.5rem, 12vh, 7rem);
  scroll-margin-top: clamp(4.5rem, 9vh, 5.5rem);
  text-align: center;
}

/* CONTACT — match TEAM intro/body type; roomier stack */
.studio-section-contact,
#studio-contact {
  margin-bottom: 2rem;
  max-width: min(78rem, 100%);
}

#studio-contact .studio-body {
  margin: 0 auto 2.25rem;
  font-size: clamp(15px, 1.5vw, 19.5px); /* ×1.5 of prior 10–13 */
  max-width: 66ch;
  line-height: 1.7;
}

.studio-kicker {
  margin: 0 0 0.65rem;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
}

.studio-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-brand);
  font-weight: var(--font-brand-weight);
  font-size: clamp(27px, 3.6vw, 39px); /* ~1.5× original section title */
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.studio-tag {
  margin: 0 auto 1rem;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 42ch;
}

.studio-body {
  margin: 0 auto 1.25rem;
  font-size: clamp(12px, 1.25vw, 14px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  max-width: 42ch;
  white-space: pre-line;
}

.studio-what {
  margin: 0 auto 1.5rem;
  padding: 0.9rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: clamp(11px, 1.15vw, 13px);
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
  max-width: 48ch;
}

/* TEAM — tagline + one-liner, then photo-left / bio-right rows (no cards) */
.studio-section-team {
  max-width: min(78rem, 100%); /* 52rem × 1.5 */
  text-align: center;
}

.studio-section-team .studio-tag {
  margin-bottom: 0.85rem;
  font-size: clamp(8px, 0.85vw, 9px); /* half of prior studio-tag */
  max-width: 63ch; /* 42ch × 1.5 */
}

.studio-section-team .studio-body-lead {
  margin-bottom: clamp(2rem, 5vh, 2.75rem);
  max-width: 69ch; /* 46ch × 1.5 */
  font-size: clamp(15px, 1.5vw, 19.5px); /* ×1.5 of prior 10–13 */
}

.studio-team-list {
  display: grid;
  gap: clamp(1.75rem, 4vh, 2.75rem);
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.studio-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 1.75rem);
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  text-align: left;
}

.studio-person-photo {
  display: block;
  width: min(8.5rem, 28vw);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}

.studio-person-copy {
  min-width: 0;
}

.studio-person-name {
  margin: 0 0 0.25rem;
  font-family: var(--font-brand);
  font-weight: var(--font-brand-weight);
  font-size: clamp(16px, 1.7vw, 22px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.studio-person-role {
  margin: 0 0 0.75rem;
  font-size: clamp(10px, 1.05vw, 12px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.studio-person-bio {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: clamp(11px, 1.15vw, 13px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.studio-person-bio li {
  display: grid;
  grid-template-columns: 0.85em minmax(0, 1fr);
  column-gap: 0.45em;
  margin: 0 0 0.4em;
  padding: 0;
}

.studio-person-bio li::before {
  content: "•";
  grid-column: 1;
  color: #a8d4f0;
  text-align: center;
  line-height: 1.55;
}

.studio-person-bio li.is-sub {
  padding-left: 0.35em;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95em;
}

.studio-person-bio li.is-sub::before {
  content: "-";
  color: rgba(255, 255, 255, 0.55);
}

/* Cinenode mark at bottom of INFO content → /cinenode on same host */
.studio-cinenode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin: clamp(2rem, 5vh, 3rem) auto 0;
  padding-top: clamp(1.25rem, 3vh, 1.75rem);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: inherit;
  max-width: min(18rem, 100%);
  opacity: 0.88;
  transition: opacity 0.2s ease;
}

.studio-cinenode:hover {
  opacity: 1;
}

.studio-cinenode-logo {
  display: block;
  width: min(16rem, 72vw);
  height: auto;
  /* Logo is ivory-on-black — lift letters on dark studio bg */
  mix-blend-mode: screen;
  filter: contrast(1.05);
}

.studio-cinenode-note {
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.5);
  max-width: 36ch;
}

.studio-contact-grid {
  display: grid;
  gap: 1.45rem;
  margin: 0 auto 2.75rem;
  justify-items: center;
}

.studio-mail {
  font-size: clamp(14px, 1.6vw, 17px);
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  width: fit-content;
}

.studio-mail:hover {
  border-bottom-color: #fff;
}

.studio-sns {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem 1.5rem;
}

.studio-sns a {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.studio-sns a:hover {
  color: #fff;
}

.studio-address {
  margin: 0;
  font-size: 10px; /* match .studio-sns a */
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.studio-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.35rem;
  max-width: 28rem;
  margin: 0.5rem auto 0;
  text-align: left; /* form labels stay left within centered block */
}

.studio-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.studio-field-full {
  grid-column: 1 / -1;
}

.studio-field input,
.studio-field textarea {
  font: inherit;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  resize: vertical;
}

.studio-field input:focus,
.studio-field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
}

.studio-submit {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0.25rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.studio-submit:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.studio-form-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

/* —— UNCUT GEMS: center player + straddling actor thumbs —— */
.uncut-view {
  overflow: hidden;
}

.uncut-stage {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  /* Vertically center player between logo and straddling thumbs */
  place-items: center;
  padding:
    clamp(4.5rem, 9vh, 5.75rem)
    clamp(5.5rem, 11vw, 8rem)
    /* Room for straddling thumbs inside shell (avoid bottom clip) */
    clamp(5.25rem, 11vh, 7.25rem)
    clamp(1rem, 2.5vw, 2rem);
  box-sizing: border-box;
  overflow: hidden;
}

.uncut-player {
  position: relative;
  /* Fit 16:9 + light thumb overhang fully inside stage */
  width: min(86vw, calc((100vh - 15.5rem) * 16 / 9), 1520px);
  max-width: 100%;
  padding-bottom: clamp(4rem, 8vh, 5.5rem);
}

.uncut-main {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: clamp(22px, 3.2vw, 40px);
  background: #111;
  /* Same soft white edge glow as HOME swipe stills (.slide.is-beneath) */
  box-shadow:
    0 0 28px rgba(255, 255, 255, 0.16),
    0 0 56px rgba(255, 255, 255, 0.1),
    0 14px 48px rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

/* Unified horizontal swipe: outgoing ← left, incoming from right (same for every thumb) */
.uncut-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.uncut-slide {
  position: absolute;
  inset: 0;
  background: #111 center / cover no-repeat;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  /* Motion driven by Web Animations in app.js (same for every thumb) */
}

.uncut-slide.is-current {
  z-index: 1;
}

.uncut-slide.is-in {
  z-index: 2;
}

.uncut-slide.is-out {
  z-index: 1;
}

/* Actor / clip name overlays the bottom edge of the main player */
.uncut-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  margin: 0;
  padding:
    clamp(2.75rem, 8%, 4.5rem)
    clamp(1rem, 3vw, 1.75rem)
    clamp(0.85rem, 2.2vw, 1.35rem);
  text-align: center;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.28) 55%,
    transparent 100%
  );
}

.uncut-name {
  font-family: var(--font-brand);
  font-size: clamp(20px, 2.2vw, 24px); /* ~1.5× original overlay title */
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.uncut-role {
  margin-top: 0.25rem;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* 4 vertical thumbs straddling bottom edge of main player — above still */
.uncut-thumbs {
  position: absolute;
  left: 50%;
  bottom: 0;
  /* Light hang — keep full strip inside shell/viewport */
  transform: translate(-50%, 14%);
  display: flex;
  gap: clamp(0.55rem, 1.2vw, 0.9rem);
  z-index: 6;
}

.uncut-thumb {
  width: clamp(56px, 6.5vw, 78px);
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: clamp(10px, 1.2vw, 14px);
  background: #1a1a1a center / cover no-repeat;
  cursor: pointer;
  opacity: 1;
  transition: transform 0.25s var(--ease), border-color 0.25s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.uncut-thumb:hover,
.uncut-thumb:focus-visible {
  transform: translateY(-3px);
}

.uncut-thumb.is-active {
  border-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-4px);
}

.uncut-thumb.is-placeholder {
  filter: grayscale(0.35);
}

.works-card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  animation: works-card-in 0.55s var(--ease) forwards;
}

.works-card .thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: clamp(14px, 1.6vw, 22px);
  background: #111 center / cover no-repeat;
  overflow: hidden;
  transition: transform 0.45s var(--ease), filter 0.35s ease;
}

.works-card:hover .thumb,
.works-card:focus-visible .thumb {
  transform: scale(1.015);
  filter: brightness(1.06);
}

.works-card .cap {
  display: grid;
  /* idx | title/year | format at thumb bottom-right (outside image) */
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.35rem 0.75rem;
  align-items: start;
  margin-top: 0.55rem;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.works-card .idx {
  font-size: 10px;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.works-card .who {
  min-width: 0;
}

.works-card .title {
  display: block;
  font-family: var(--font-work-title);
  font-size: clamp(17px, 1.75vw, 20px); /* ~1.5× original WORKS card title */
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.works-card .year {
  display: block;
  margin-top: 0.15rem;
  font-size: 10px;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  opacity: 0.65;
}

/* Format label: outside thumb, bottom-right corner (not over the image) */
.works-card .format {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: start;
  justify-self: end;
  margin: 0;
  max-width: 11rem;
  font-size: 7px; /* 10px × 0.7 */
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.62;
  text-align: right;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.35;
  pointer-events: none;
}

@keyframes works-card-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* HOME still → /works/:id */
.shell:not(.mode-page):not(.is-entrance) .stage {
  cursor: pointer;
}

/* Work page (real route /works/:id) — Millé chrome stays via .ui */
.work-page {
  position: relative;
  z-index: 1;
  width: min(92%, 68rem);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vh, 6rem) 0 clamp(2.5rem, 6vh, 4rem);
  color: #fff;
}
.work-back {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.72;
  cursor: pointer;
}
.work-back:hover,
.work-back:focus-visible {
  opacity: 1;
}
.work-hero {
  margin: 0 0 1.5rem;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #111 center / cover no-repeat;
}
.work-head {
  margin: 0 0 0.85rem;
}
.work-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-brand);
  font-weight: var(--font-brand-weight);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.12;
}
.work-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.45rem;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}
.work-dot {
  opacity: 0.5;
}
.work-logline {
  margin: 0 0 1.35rem;
  /* Match main still / hero width — no mid-column early wraps */
  max-width: none;
  width: 100%;
  font-size: clamp(0.98rem, 1.55vw, 1.12rem);
  line-height: 1.55;
  color: var(--muted);
}
.work-awards {
  margin: 0 0 1.5rem;
}
.work-awards-title {
  margin: 0 0 0.45rem;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.65;
  font-weight: 500;
}
.work-awards-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.work-awards-list li {
  margin: 0.2rem 0;
}
.work-stills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.work-still {
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  background: #111 center / cover no-repeat;
}
@media (max-width: 820px) {
  .work-page {
    width: min(94%, 40rem);
    padding: clamp(4.1rem, 8vh, 5rem) 0 2rem;
  }
  .work-stills {
    gap: 0.4rem;
  }
}

.panel {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(10px);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.panel h2 {
  font-family: var(--font-brand);
  font-weight: var(--font-brand-weight);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 6vw, 3.9rem); /* ~1.5× original panel title */
  margin: 0 0 0.75rem;
}

.panel p {
  margin: 0;
  color: var(--muted);
  max-width: 36ch;
  line-height: 1.5;
}

.panel .close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  letter-spacing: 0.18em;
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.7;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  /* Same ivory matte as outer viewport frame */
  background-color: #ebe4d6;
  color: #1a1a1a;
  display: grid;
  place-items: center;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  overflow: hidden;
}

/* Match outer-frame film grain */
.loader::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.24;
  mix-blend-mode: multiply;
  background-image: url("./assets/frame-grain.png");
  background-size: 128px 128px;
  background-repeat: repeat;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.loader-logo {
  display: block;
  /* Horizontal — half prior size */
  width: min(36vw, 18rem);
  height: auto;
  margin: 0 auto 1.15rem;
  transform: none;
}

.loader-bar {
  width: 78px;
  height: 1px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.14);
  position: relative;
  overflow: hidden;
}

.loader-bar > i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 35%;
  background: rgba(0, 0, 0, 0.55);
  animation: load 0.85s ease-in-out infinite alternate;
}

@keyframes load {
  from { transform: translateX(0); }
  to { transform: translateX(180%); }
}

/* Desktop: ~2× INFO / CONTACT type, spacing, form */
@media (min-width: 821px) {
  .studio-section {
    max-width: min(56rem, 100%);
    margin: 0 auto clamp(6rem, 14vh, 10rem);
  }

  .studio-kicker {
    margin: 0 0 1.1rem;
    font-size: 18px;
  }

  .studio-title {
    margin: 0 0 1.35rem;
    font-size: clamp(48px, 5.5vw, 72px);
  }

  .studio-tag {
    margin: 0 auto 1.75rem;
    font-size: clamp(26px, 2.8vw, 34px);
    max-width: 36ch;
  }

  .studio-body {
    margin: 0 auto 2rem;
    font-size: clamp(20px, 2vw, 26px);
    max-width: 40ch;
  }

  .studio-what {
    margin: 0 auto 2.2rem;
    padding: 1.5rem 0 0;
    max-width: 44ch;
    font-size: clamp(14px, 3.6vw, 18px);
  }

  .studio-section-team {
    max-width: min(84rem, 100%); /* 56rem × 1.5 */
  }

  .studio-section-team .studio-tag {
    font-size: clamp(13px, 1.4vw, 17px); /* half of desktop studio-tag ~26–34 */
  }

  .studio-section-team .studio-body-lead {
    font-size: clamp(15px, 1.5vw, 19.5px); /* ×1.5 of prior 10–13 */
    max-width: 66ch; /* 44ch × 1.5 */
    margin-bottom: clamp(2.75rem, 6vh, 3.75rem);
  }

  .studio-team-list {
    gap: clamp(2.25rem, 4.5vh, 3.25rem);
  }

  .studio-person {
    gap: clamp(1.4rem, 2.8vw, 2.2rem);
  }

  .studio-person-photo {
    width: min(11rem, 18vw);
  }

  .studio-person-name {
    font-size: clamp(22px, 2.2vw, 28px);
  }

  .studio-person-role {
    font-size: clamp(12px, 1.2vw, 14px);
    margin-bottom: 1rem;
  }

  .studio-person-bio {
    font-size: clamp(14px, 1.35vw, 17px);
  }

  .studio-cinenode {
    gap: 0.9rem;
    margin: clamp(3rem, 6vh, 4.5rem) auto 0;
    padding-top: clamp(2rem, 4vh, 2.75rem);
    max-width: min(28rem, 100%);
  }

  .studio-cinenode-logo {
    width: min(26rem, 48vw);
  }

  .studio-cinenode-note {
    font-size: 16px;
  }

  .studio-section-contact,
  #studio-contact {
    max-width: min(84rem, 100%);
  }

  #studio-contact .studio-body {
    margin: 0 auto 3rem;
    font-size: clamp(15px, 1.5vw, 19.5px); /* ×1.5 match TEAM lead */
    max-width: 66ch;
  }

  .studio-contact-grid {
    gap: 2rem;
    margin: 0 auto 3.5rem;
  }

  .studio-mail {
    font-size: clamp(18px, 1.8vw, 24px);
  }

  .studio-sns {
    gap: 1.6rem 2.1rem;
  }

  .studio-sns a {
    font-size: 16px;
  }

  .studio-address {
    font-size: 16px; /* match .studio-sns a */
    line-height: 1.55;
    max-width: none;
    white-space: nowrap;
  }

  .studio-form {
    gap: 1.85rem 1.9rem;
    max-width: 48rem;
    margin-top: 0.75rem;
  }

  .studio-field {
    gap: 0.55rem;
    font-size: 16px;
  }

  .studio-field input,
  .studio-field textarea {
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    font-size: 18px;
  }

  .studio-submit {
    margin-top: 0.45rem;
    padding: 1.15rem 2rem;
    font-size: 16px;
  }

  .studio-form-note {
    font-size: 16px;
  }
}

@media (max-width: 820px) {
  /* Idle mobile: full-bleed shell (no visible frame). Body/html stay ivory so Safari chrome never flips black. */
  :root { --frame: 0px; --radius: 22px; }

  html, body {
    background-color: #ebe4d6;
  }

  body::before {
    opacity: 0;
    visibility: hidden;
  }

  .shell {
    inset: 0;
    border-radius: 0;
  }

  /*
   * HOME film matte: ease WITH zoom timeline (1.4s, same 22%/78% beats as slides).
   * Body stays ivory always (Safari theme-color); only grain + shell inset animate.
   */
  body:has(.stage.is-filming)::before {
    visibility: visible;
    animation: mobile-film-matte-grain 1.4s var(--ease) forwards;
  }

  .shell:has(.stage.is-filming) {
    animation: mobile-film-matte-shell 1.4s var(--ease) forwards;
  }

  @keyframes mobile-film-matte-grain {
    0% { opacity: 0; }
    22% { opacity: 0.24; }
    78% { opacity: 0.24; }
    100% { opacity: 0; }
  }

  @keyframes mobile-film-matte-shell {
    0% { inset: 0; border-radius: 0; }
    22% { inset: 8px; border-radius: 18px; }
    78% { inset: 8px; border-radius: 18px; }
    100% { inset: 0; border-radius: 0; }
  }

  .work-index {
    /* Mobile: bottom-left (was under top-left brand) */
    top: auto;
    bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
    left: 0.85rem;
    font-size: 9px;
  }

  .top-right {
    top: 0.85rem;
    right: 0.85rem;
  }

  .top-nav {
    gap: 0.55rem;
    font-size: 18px; /* ~2× prior mobile 9px */
  }

  .ui button.lang {
    right: 0.85rem;
    bottom: 0.75rem;
    font-size: 7.5px;
  }

  /* Mobile: Hiker logo top-left */
  .brand {
    top: 0.85rem;
    bottom: auto;
    left: 0.85rem;
    right: auto;
    transform: none;
    text-align: left;
  }

  .meta {
    left: 1rem;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    max-width: min(14rem, 48vw);
  }

  .meta-side {
    right: 1rem;
  }

  .side-year,
  .meta .kicker,
  #workTitle {
    font-size: clamp(14px, 4vw, 18px);
  }

  .side-format {
    font-size: 9px;
  }

  .brand-logo { height: 15px; /* half of prior 30px */ }

  /* TEAM: stack photo above copy on small screens */
  .studio-person {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .studio-person-photo {
    width: min(9rem, 46vw);
    margin: 0 auto;
  }

  .studio-person-copy {
    width: 100%;
    max-width: 36ch;
  }

  .studio-person-bio {
    text-align: left;
  }

  .works-grid {
    width: calc(100% - 2rem);
    margin: 0 auto;
    grid-template-columns: 1fr;
    padding: 4.25rem 1rem 2.5rem;
  }

  .works-credits {
    width: calc(100% - 2rem);
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .works-view .works-credits-list li {
    font-size: 14px;
    margin-bottom: 0.65em;
  }

  /* Mobile UNCUT: dominant tall player; thumbs pinned near viewport bottom */
  .uncut-view {
    overflow: hidden;
  }

  .uncut-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 3.75rem 0.75rem 0.85rem;
    height: 100%;
    min-height: 100%;
    box-sizing: border-box;
  }

  .uncut-player {
    width: min(94vw, 28rem);
    padding-bottom: 0;
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    /* Center in the space above the bottom thumb row */
    margin-top: auto;
    margin-bottom: auto;
  }

  .uncut-main {
    width: 100%;
    /* Leave room for meta + thumb strip inside viewport */
    height: min(52dvh, calc(100dvh - 15.5rem));
    max-height: calc(100% - 7rem);
    aspect-ratio: auto;
    border-radius: 22px;
  }

  .uncut-meta {
    padding: 2.75rem 0.85rem 0.75rem;
  }

  .uncut-thumbs {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin-top: 0.25rem;
    margin-bottom: 0;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
    justify-content: center;
    flex-wrap: nowrap;
    flex: 0 0 auto;
  }

  .uncut-thumb {
    width: clamp(48px, 13vw, 64px);
  }

  .studio-scroll {
    padding: 4.25rem 1.1rem min(48vh, 22rem);
  }

  .studio-form {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  /*
   * Brand / content navigation motion must stay on even when OS reduce-motion is on:
   * HOME film strip (zoom→swipe), WORKS↔UNCUT page fades, gem swipe (WAAPI),
   * works-card enter, panel open. Only hush non-essential chrome noise below.
   */
  .loader-bar > i { animation: none !important; }
  .top-nav a,
  .lang {
    transition: none !important;
  }
}
