/* Shared finishes: pebbled leather, satin steel and the thin exposed edge. */
:root {
  --leather-surface: url("/assets/black-leather.webp");
  --leather-cover:
    linear-gradient(112deg, #e6f1fa0b 0%, transparent 32%, #0103053d 100%) center / cover no-repeat,
    var(--leather-surface) 27px 11px / 472px auto repeat #16191b;
  --leather-reading:
    linear-gradient(112deg, #03060814, #03060836 70%, #03060848) center / cover no-repeat,
    var(--leather-surface) 0 0 / 384px auto repeat #121518;
  --leather-binding:
    linear-gradient(175deg, #0b101527, #02040670) center / cover no-repeat,
    var(--leather-surface) 61px 39px / 320px auto repeat #101316;
  --metal-face: linear-gradient(109deg, #99a9b3 0%, #f0f3f4 23%, #b6c6d0 60%, #81939f 95%);
  --specular: linear-gradient(106deg, transparent 43%, #d4e7f416 46.5%, #f1faffd9 49.5%, #fffffff5 50%, #bfd8e983 52%, transparent 56%);
}
@media (forced-colors: active) {
  :root { --leather-cover: Canvas; --leather-reading: Canvas; --leather-binding: Canvas; }
}
body { background: var(--leather-reading); }
.cover-tab, .nav .nav-phone, .nav .nav-icon { display: none; }
.masthead, .inquiry-header, .frame-console, .viewer-caption {
  background: var(--leather-binding);
}
.masthead, .inquiry-header {
  border-bottom: 1px solid #0a0d0f;
  box-shadow: 0 1px #53616a86, 0 4px 14px #0007;
}
.header-inner { min-height: 4.55rem; }
.header-inner .brand, .inquiry-header .brand {
  padding: .35rem .6rem;
  background: linear-gradient(120deg, #091016, #050708 70%);
  border: 1px solid #6c7c874a;
  border-bottom-color: #000;
  box-shadow: 0 1px 1px #89a7b323, inset 0 1px 2px #adccdf13;
}
.header-inner .brand img { width: clamp(8.65rem, 12vw, 11.5rem); }
.header-inner .brief-link, .scene-cta {
  border-color: #687b88a6;
  box-shadow: inset 0 1px #cee7f51a, inset 0 -1px #0009;
}
.cinema-stage .stage-guides::before,
.cinema-stage .stage-guides::after {
  content: ""; position: absolute; top: 1rem; width: 1.7rem; height: .7rem;
  border-top: 1px solid #afc7d451;
}
.stage-guides::before { left: var(--gutter); border-left: 1px solid #afc7d451; }
.stage-guides::after { right: var(--gutter); border-right: 1px solid #afc7d451; }
.frame-console { box-shadow: inset 0 1px #c6d6df28, inset 0 -3px 5px #020304a6; }
.frame-tab img { outline: 1px solid #8fabb742; outline-offset: -1px; }
.frame-tab[aria-selected=true] img { outline-color: #c0d6e394; }
.hire-button, .brief-download {
  background-color: #c4d0d7;
  background-image: repeating-linear-gradient(1deg, #3c516308 0 1px, transparent 1px 3px), var(--metal-face);
  box-shadow: inset 0 1px #ffffffd9, inset 0 -2px #527080, inset 1px 0 #ffffff80;
}
.hire-button i { border-right: 1px solid #f6fafb72; }
.reel-play { box-shadow: inset 0 1px #a7bbc02b, 0 0 0 3px #070a0d80; }
.inquiry-page {
  background: radial-gradient(ellipse at 0 4rem, #11181b, transparent 54%), #070a0c;
}
.request-layout { column-gap: clamp(2.1rem, 3.5vw, 4.45rem); }
.request-intro {
  border-color: #5c707a99;
  box-shadow: 0 0 0 3px #030506, 0 0 0 4px #7991a331, 0 .65rem 1.5rem #0005;
}
.request-card {
  max-width: none; padding: clamp(1.35rem, 2.5vw, 3.2rem);
  background-color: #0d1013;
  background-image: linear-gradient(110deg, #0b101458, #0307098f), var(--leather-surface);
  background-size: cover, 264px 264px;
  border: 1px solid #51616d88;
  box-shadow: inset 0 1px #d1e0e521, inset 0 0 0 4px #080b0e8c, 0 .65rem 1.5rem #0005;
}
.request-card h2 { padding-bottom: .6rem; border-bottom: 1px solid #57646c85; }
.request-card :is(input, textarea) {
  background: #0a1014ed; box-shadow: inset 0 2px 4px #0006, 0 1px #cedee819;
  border-color: #5a6973;
}
.receipt { min-height: 60vh; }
.inquiry-header .return-link::before { content: "‹"; margin-right: .45em; font: 1.1em/1 system-ui, sans-serif; }

[data-light="plate"], [data-light="edge"] { position: relative; }
.expand-scene[data-light] { position: absolute; }
.operating-image[data-light] { position: sticky; }
[data-light="plate"] { overflow: hidden; }
[data-light="plate"]::after { pointer-events: none; }
.reflection-edge { position: absolute; inset-inline: 0; top: 0; height: 1px; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  /* Each pass finishes transparent, leaving the surfaces at their natural brightness. */
  [data-light="plate"].catch-light::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: var(--specular) center / 235% 100% no-repeat;
    opacity: .4;
    animation: plate-reflection 1.65s cubic-bezier(.25,.6,.35,1) both;
  }
  .brand.catch-light::after { opacity: .27; }
  [data-light="edge"].catch-light > .reflection-edge {
    position: absolute; height: 1px; top: 0; inset-inline: 0; z-index: 2;
    background: var(--specular) center / 220% 100% no-repeat;
    animation: plate-reflection 2.2s ease-in-out both;
  }
  @keyframes plate-reflection {
    from { background-position: 140% 0; }
    to { background-position: -40% 0; }
  }
  @supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .scene-title.catch-light .metal-line {
      background-image: var(--specular),
        repeating-linear-gradient(136deg, transparent 0 2px, #24314015 2px 3px, transparent 3px 5px),
        var(--title-alloy);
      background-size: 250% 100%, auto, auto;
      background-repeat: no-repeat, repeat, no-repeat;
      animation: cast-reflection 1.9s cubic-bezier(.22,.56,.37,1) both;
    }
    [data-light="lettering"].catch-light {
      background-image: var(--specular), linear-gradient(var(--letter-base), var(--letter-base));
      background-size: 250% 100%, 100% 100%;
      background-repeat: no-repeat;
      color: transparent;
      -webkit-background-clip: text;
      background-clip: text;
      animation: cast-reflection 1.95s cubic-bezier(.22,.56,.37,1) both;
    }
    @keyframes cast-reflection {
      from { background-position: 140% center, 0 0, 0 0; }
      to { background-position: -40% center, 0 0, 0 0; }
    }
  }
}
@media (max-width: 940px) and (min-width: 701px) {
  .nav { background-color: #11171c; }
}
@media (max-width: 760px) {
  .operating-image[data-light] { position: relative; }
}
@media (max-width: 700px) {
  :root { --dock-height: 3.85rem; --gutter: clamp(1.12rem, 5vw, 1.7rem); }
  html { scroll-padding-top: calc(4.1rem + env(safe-area-inset-top)); }
  body:not(.inquiry-page) { padding-bottom: calc(var(--dock-height) + env(safe-area-inset-bottom) + .4rem); }
  .masthead, .inquiry-header {
    position: sticky; top: 0; z-index: 4;
    padding-top: env(safe-area-inset-top);
  }
  .header-inner, .inquiry-header .shell {
    min-height: 3.55rem; gap: .7rem;
    padding-inline: max(.95rem, env(safe-area-inset-left)) max(.95rem, env(safe-area-inset-right));
  }
  .header-inner .brand, .inquiry-header .brand { padding: .18rem .32rem; }
  .header-inner .brand img, .inquiry-header img { width: clamp(7.1rem, 31vw, 8.6rem); }
  .header-inner .brief-link {
    min-height: 2.35rem; padding: .5rem .72rem;
    border-color: #808f986b;
    font-size: .75rem; letter-spacing: .045em;
  }
  .menu-toggle { display: none; }
  .nav, .nav.open {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed; inset: auto 0 0; z-index: 5;
    gap: 0; padding: 0 max(.24rem, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(.24rem, env(safe-area-inset-left));
    background: linear-gradient(180deg, #272e34 0, #12171b 22%, #0a0e11 100%);
    border: 0; border-top: 1px solid #a1b4bf8a;
    box-shadow: 0 -.23rem .7rem #0008, inset 0 1px #dfeef323;
  }
  .nav a {
    min-width: 0; min-height: var(--dock-height); padding: .45rem .05rem .42rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .23rem;
    font: 600 .64rem/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: .005em; text-transform: none; color: #b6c3cc;
  }
  .nav a::before {
    content: ""; position: absolute; top: 19%; bottom: 19%; left: 0;
    width: 1px; background: linear-gradient(transparent, #61707b76 28%, #53616b70 72%, transparent);
  }
  .nav a:first-child::before, .nav .nav-wide { display: none; }
  .nav .nav-icon, .nav .nav-phone { display: block; }
  .nav .nav-icon { width: 1.17rem; height: 1.17rem; stroke-width: 1.55; }
  .nav a[aria-current] {
    color: #0a1217;
    background: repeating-linear-gradient(0deg, transparent 0 2px, #69808f17 2px 3px), var(--metal-face);
    box-shadow: inset 0 1px #eaf7ffde, inset 0 -2px #638090;
  }
  .nav a[aria-current]::after { display: none; }
  .nav a:focus-visible { outline-offset: -4px; }
  .campaign {
    --cover-margin: clamp(.38rem, 1.65vw, .66rem);
    margin: var(--cover-margin) max(var(--cover-margin), env(safe-area-inset-right)) .48rem max(var(--cover-margin), env(safe-area-inset-left));
    padding: .22rem .21rem .23rem .4rem;
    scroll-margin-top: .5rem;
    background-color: #0a0e10;
    background-image: linear-gradient(90deg, #a5acaf26 0, #0708089c 2px, #242a2d32 5px, #08090b14 8px), var(--leather-surface);
    background-size: auto, 214px 214px;
    border: 1px solid #39434b; border-radius: 3px;
    box-shadow: 0 1px 2px #000, inset 0 1px #afc1c434;
  }
  .cinema-stage {
    min-height: clamp(25rem, calc(100svh - 18.4rem), 37rem);
    align-items: end; border: 1px solid #35424b; border-bottom: 0;
  }
  .cover-tab {
    position: absolute; top: .7rem; left: -1px;
    display: inline-flex; gap: .42rem; align-items: center; min-height: 1.65rem;
    padding: .35rem 1rem .35rem .62rem; color: #172129; background: var(--metal-face);
    font: 700 .65rem/1.1 var(--mono); text-transform: uppercase; letter-spacing: .07em;
    clip-path: polygon(0 0,100% 0,100% 29%,calc(100% - 7px) 100%,0 100%);
    box-shadow: inset 0 1px #eff7ffc2, inset 0 -2px #293d4a99;
  }
  .cover-tab .icon { width: .95rem; height: .85rem; stroke-width: 1.8; }
  .stage-guides::before, .stage-guides::after { display: none; }
  .scene-image { object-position: 74% 40%; }
  .scene-image:nth-child(2) { object-position: 72% 40%; }
  .scene-image:nth-child(3) { object-position: 73% 40%; }
  .stage-scrim {
    background: linear-gradient(0deg, #020405fc, #030609c9 23%, #04070a31 63%, transparent 82%), linear-gradient(90deg, #0305084a, transparent 75%);
  }
  .scene-inner { padding: 4.3rem clamp(.85rem, 3.8vw, 1.35rem) 1.08rem; }
  .scene-panel { max-width: 100%; }
  .scene-title { font-size: clamp(3.68rem, 17.4vw, 7.2rem); margin-bottom: .9rem; }
  .scene-description { max-width: 33ch; font-size: clamp(.925rem, 3.7vw, 1.05rem); line-height: 1.37; }
  .expand-scene { top: .45rem; right: .46rem; bottom: auto; width: 2.75rem; height: 2.75rem; }
  .scene-actions { display: grid; grid-template-columns: max-content max-content; gap: .35rem 1rem; align-items: center; justify-content: start; margin-top: 1rem; }
  .scene-actions .hire-button { grid-column: 1 / -1; justify-self: start; min-height: 2.8rem; padding-inline: .85rem 1rem; font-size: 1.05rem; gap: .65rem; }
  .scene-actions .scene-cta, .scene-actions .scene-link {
    justify-content: start; min-height: 2.75rem; padding: 0; border: 0; box-shadow: none; background: transparent;
    font: 600 .73rem/1.25 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; letter-spacing: 0; text-transform: none;
    text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #7e909a;
  }
  .scene-actions .scene-cta, .scene-actions .scene-link { display: inline-flex; align-items: center; gap: .42rem; }
  .scene-actions .scene-link::after, .scene-actions .scene-cta::before {
    content: ""; display: inline-block; width: .29rem; height: .29rem; order: 2;
    border-right: 1px solid currentColor; border-top: 1px solid currentColor; transform: rotate(45deg);
  }
  .frame-console { border: 1px solid #49565e; }
  .console-inner { padding: .44rem .4rem; gap: .25rem; }
  .frame-tabs { gap: .24rem; }
  .frame-tab {
    position: relative; flex-direction: column; padding: 1.7rem .28rem .27rem; justify-content: end; align-items: stretch; gap: 0;
    min-height: 3.45rem; isolation: isolate; overflow: hidden;
  }
  .frame-tab, .frame-tab:first-child, .frame-tab:last-child {
    border: 1px solid #64737a6b;
  }
  .frame-tab:first-child { padding-left: .28rem; }
  .frame-tab img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
  .frame-tab::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(0deg,#010507f5, #02070ba1 32%, transparent 76%);
  }
  .frame-tab[aria-selected=true] { border-color: #b9ceda; box-shadow: inset 0 0 0 1px #bccdd64d; }
  .frame-text { display: block; }
  .frame-number { position: absolute; top: .2rem; left: .28rem; font: 600 .55rem/1 var(--mono); color: #e1ebee; text-shadow: 0 1px 3px #000; }
  .frame-name { display: block; font-size: clamp(.72rem, 3vw, .98rem); line-height: 1.03; letter-spacing: .025em; }
  .frame-track { bottom: 0; height: 1px; }
  .reel-play { min-width: 2.75rem; min-height: 2.75rem; }
  .coverage { padding-top: 1.15rem; }
  footer { padding-bottom: .4rem; }
  .request-layout { grid-template-columns: minmax(0,1fr); gap: .8rem; padding: .86rem max(.8rem, env(safe-area-inset-right)) calc(1.25rem + env(safe-area-inset-bottom)) max(.8rem, env(safe-area-inset-left)); }
  .request-intro { min-height: 14rem; padding: 1.22rem 1rem; background-position: center, 74% 30%; box-shadow: inset 0 0 0 3px #090d1160; }
  .request-intro h1 { font-size: clamp(3.15rem, 13.4vw, 5.5rem); }
  .request-intro > p { font-size: .94rem; margin-block: .75rem; }
  .request-card { padding: 1.23rem 1rem 1.4rem; }
  .request-card form { gap: .95rem; }
  .request-card :is(input,textarea) { font-size: 1rem; }
  .request-card h2 { margin: 0; }
  .receipt { padding-block: 17svh; }
}
@media(max-width: 360px) {
  .scene-actions { gap: .12rem .72rem; }
  .scene-title { font-size: clamp(3.35rem, 17.35vw, 3.9rem); }
  .scene-inner { padding-inline: .78rem; }
  .frame-name { letter-spacing: 0; }
}
@media(forced-colors: active) {
  .nav a[aria-current], .frame-tab[aria-selected=true] { outline: 2px solid Highlight; outline-offset: -3px; }
  .cover-tab { border: 1px solid CanvasText; clip-path: none; }
}
