/* OJI Entertainment, Direction A: the Casting page. Loads after a.css (tokens, chrome, buttons, film strip, flow, brief form),
   pages.css (inner-page chrome), lang.css, blank.css and faq.css. */

/* ── hero: a line-up in the dark, the followspot picks one face at a time ───────────────────────────── */
.cs-hero { --fh: clamp(220px, min(38vh, 25vw), 380px); --fw: calc(var(--fh) * .75); --gap: clamp(12px, 1.3vw, 20px); --lamp: clamp(64px, 12.5vh, 124px);
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; overflow: clip;
  padding: calc(var(--hdr) + var(--lamp) + var(--fh) + clamp(28px, 4vh, 56px)) var(--pad) clamp(56px, 8vh, 84px); }
.lu { position: absolute; left: 0; right: 0; top: var(--hdr); height: calc(var(--lamp) + var(--fh) + 30px); }
.lu-row { position: absolute; left: 50%; top: var(--lamp); display: flex; gap: var(--gap); transform: translateX(-50%); touch-action: pan-y; will-change: transform; }
.lu-fr { --lit: 0; position: relative; flex: none; width: var(--fw); height: var(--fh); overflow: hidden; background: var(--navy); border-radius: 2px; -webkit-tap-highlight-color: transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 52%, rgba(0, 0, 0, .55) 78%, transparent 100%); mask-image: linear-gradient(to bottom, #000 52%, rgba(0, 0, 0, .55) 78%, transparent 100%); }   /* they stand in the dark: the feet fade out */
.lu-fr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.lu-fr .g { filter: grayscale(1) contrast(1.05) brightness(.36); opacity: calc(1 - var(--lit)); }   /* the face in the dark, over its lit colour copy; --lit is set by the script */
.lu-fr::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: var(--lit); mix-blend-mode: soft-light;   /* the pool of light on the face */
  background: radial-gradient(120% 80% at 50% 26%, rgba(255, 230, 190, .5), rgba(255, 230, 190, 0) 68%); }
.lu-fr:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; }
.lu-lamp { position: absolute; left: 50%; top: 16px; z-index: 2; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff1d6; box-shadow: 0 0 0 5px rgba(255, 217, 160, .14), 0 0 28px 7px rgba(255, 217, 160, .5); }
.lu-beam { position: absolute; left: 50%; top: 22px; z-index: 1; width: calc(var(--fw) * 1.4); height: 100px; margin-left: calc(var(--fw) * -.7); transform-origin: 50% 0; pointer-events: none;
  mix-blend-mode: screen; filter: blur(12px); opacity: 0; will-change: transform; }   /* the script turns it (here, so the blur stays round) … */
.lu-beam i { position: absolute; inset: 0; transform-origin: 50% 0; will-change: transform; clip-path: polygon(48.6% 0, 51.4% 0, 100% 100%, 0 100%);   /* … and stretches it to the face (here) */
  background: linear-gradient(to bottom, rgba(255, 217, 160, .55), rgba(255, 217, 160, .2) 55%, rgba(255, 217, 160, .05)); }
.lu.on .lu-beam { opacity: 1; transition: opacity 1s .2s; }
.lu-lamp { opacity: 0; }
.lu.on .lu-lamp { animation: luLamp .7s both; }
@keyframes luLamp { 0% { opacity: 0; } 30% { opacity: .9; } 45% { opacity: .35; } 62% { opacity: 1; } 75% { opacity: .6; } 100% { opacity: 1; } }
.lu-cap { z-index: 3; text-decoration: none; color: var(--paper); }
.lu-cap b { font-size: 24px; }

/* the headline: bottom left, the line and the buttons beside it (the homepage hero's arrangement) */
.cs-copy { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px 48px; }
.cs-h1 { font-size: clamp(64px, min(8.6vw, 14vh), 168px); margin-left: -.02em; }
html.lang-ja .cs-h1 { font-size: clamp(46px, min(7vw, 11.5vh), 128px); line-height: 1.12; margin-left: 0; }
.cs-ln { display: block; overflow: hidden; padding-top: .05em; margin-top: -.05em; white-space: nowrap; }
.cs-ln > span { display: block; transform: translateY(108%); transition: transform 1.15s var(--ease); }
.cs-ln:nth-child(2) > span { transition-delay: .09s; }
.ready .cs-ln > span { transform: none; }
.cs-side { flex: none; width: min(390px, 30vw); padding-bottom: .4vw; opacity: 0; transform: translateY(16px); transition: opacity .9s .35s, transform 1s var(--ease) .35s; }
.ready .cs-side { opacity: 1; transform: none; }
.cs-side .cta-row .btn { padding-inline: 18px; }

/* ── section heads: the heading, and its one line beside it ───────────────────────────────────────── */
.cs-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px clamp(28px, 5vw, 96px); align-items: end; margin-bottom: clamp(36px, 4.4vw, 68px); }
.cs-head h2 { text-wrap: balance; }
.cs-head .sec-lead { padding-bottom: .5em; }
.cs-head.stack { grid-template-columns: minmax(0, 1fr); }
.cs-head.stack .sec-lead { padding-bottom: 0; max-width: 44em; }
.nb { white-space: nowrap; }

/* ── who we cast: every category, large, with its count; then one film strip ─────────────────────── */
.cs-who { overflow: hidden; overflow: clip; }
.cs-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(18px, 2.4vw, 40px); }
.cs-cats li { border-top: 1px solid var(--hair); }
.cs-cat { display: flex; align-items: flex-start; gap: 10px; padding: clamp(18px, 1.8vw, 26px) 0 clamp(20px, 2vw, 30px); text-decoration: none; color: var(--paper); -webkit-tap-highlight-color: transparent; }
.cs-cn { min-width: 0; }
.cs-cat .display { font-size: clamp(30px, 3vw, 50px); line-height: 1.04; background: linear-gradient(var(--red), var(--red)) 0 100% / 0 3px no-repeat; padding-bottom: 4px; transition: background-size .45s var(--ease); }
html.lang-ja .cs-cat .display { font-size: clamp(21px, 1.9vw, 30px); line-height: 1.3; }
.cs-cat b { display: inline-block; vertical-align: top; margin: .1em 0 0 .3em; font: 400 clamp(18px, 1.5vw, 24px)/1 'Anton', Impact, sans-serif; color: var(--red); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.cs-cat svg { flex: none; width: 20px; height: 20px; margin: .45em 0 0 auto; fill: none; stroke: var(--dim); stroke-width: 2; transition: transform .35s var(--ease), stroke .2s; }
.cs-cat:hover .display, .cs-cat:focus-visible .display { background-size: 100% 3px; }
.cs-cat:hover svg, .cs-cat:focus-visible svg { stroke: var(--paper); transform: translate(3px, -3px); }
.cs-cat:active .display { transform: translateY(1px); }
.cs-sheet { margin-top: clamp(56px, 6vw, 96px); }
.cs-all { display: flex; justify-content: center; margin-top: clamp(40px, 4vw, 64px); }
.cs-all .btn { min-width: min(100%, 340px); }

/* ── how it works: the homepage's projector strip, as a row you can step, drag or swipe ──────────── */
.cs-flow .reel-track { padding-inline: 0; }
.cs-flow .flow-prog { display: flex; }
.cf-blank { flex: none; width: var(--rw); border-radius: 3px; }   /* film leader: empty frames before the first step and after the last */

/* ── pricing: the six factors as bold cards ──────────────────────────────────────────────────────── */
.pr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 18px); }
.pr-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 34px; min-height: clamp(230px, 18.5vw, 290px); padding: clamp(26px, 2.6vw, 40px);
  background: var(--navy); border: 1px solid var(--hair); box-shadow: inset 3px 0 0 var(--red); overflow: hidden; }
.pr-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .45s;   /* a pool of light that follows the pointer */
  background: radial-gradient(clamp(220px, 22vw, 360px) circle at var(--px, 50%) var(--py, 30%), rgba(255, 217, 160, .13), rgba(255, 217, 160, 0) 70%); }
.pr-card:hover::before { opacity: 1; }
.pr-card h3 { position: relative; font-size: clamp(32px, 3vw, 50px); text-wrap: balance; }
html.lang-ja .pr-card h3 { font-size: clamp(24px, 2.1vw, 34px); line-height: 1.3; }
.pr-card p { position: relative; font-size: clamp(17px, 1.3vw, 19px); color: rgba(243, 240, 234, .84); max-width: 26em; }
html.js .pr-card { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .9s var(--ease); }
html.js .pr-grid.in .pr-card { opacity: 1; transform: none; }
.pr-note { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; margin-top: clamp(40px, 4.4vw, 72px); padding-top: clamp(32px, 3.4vw, 52px); border-top: 1px solid var(--hair); }
.pr-note p { font-size: clamp(22px, 2.1vw, 32px); line-height: 1.3; max-width: 26em; }
html.lang-ja .pr-note p { font-size: clamp(19px, 1.65vw, 25px); line-height: 1.7; }

/* ── FAQ: the heading to the left, the questions to the right ───────────────────────────────────── */
.faq-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
html.lang-ja .faq-in h2 { font-size: clamp(30px, 3.4vw, 56px); }
html.lang-ja .cs-hero .display, html.lang-ja .sec .display { word-break: auto-phrase; }   /* Japanese headings break between phrases */

/* ── tablet ──────────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .cs-copy { flex-direction: column; align-items: flex-start; }
  .cs-side { width: auto; max-width: 520px; }
  .cs-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-in { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 761px) and (max-width: 1180px) and (max-height: 820px) {
  .cs-side .lead { display: none; }
}

/* ── phone ───────────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .cs-hero { --fh: min(72vw, 46vh); --gap: 10px; --lamp: clamp(56px, 8.5vh, 76px); padding-bottom: 40px; padding-top: calc(var(--hdr) + var(--lamp) + var(--fh) + 30px); }
  .lu-lamp { top: 10px; }
  .lu-beam { top: 16px; }
  .lu-cap b { font-size: 19px; }
  .cs-h1 { font-size: 12.4vw; }
  html.lang-ja .cs-h1 { font-size: 12.6vw; }
  .cs-copy { gap: 18px; }
  .cs-side .lead { font-size: 16px; }
  .cs-side .cta-row { margin-top: 18px; }
  .cs-side .cta-row .btn { flex: 1; padding-inline: 10px; font-size: 14px; letter-spacing: .07em; }
  .cs-head { grid-template-columns: minmax(0, 1fr); }
  .cs-head .sec-lead { padding-bottom: 0; }
  .cs-cats { column-gap: 16px; }
  .cs-cat { padding: 16px 0 18px; gap: 6px; }
  .cs-cat .display { font-size: 7.2vw; }
  html.lang-ja .cs-cat .display { font-size: 5vw; }
  .cs-cat b { font-size: 16px; }
  .cs-cat svg { display: none; }
  .cs-all .btn { width: 100%; }
  .pr-grid { grid-template-columns: minmax(0, 1fr); }
  .pr-card { min-height: 0; gap: 18px; padding: 24px 22px 26px; }
  .pr-card h3 { font-size: 9vw; }
  html.lang-ja .pr-card h3 { font-size: 6.6vw; }
  .pr-note { flex-direction: column; align-items: stretch; }
  .pr-note p { font-size: 21px; }
  html.lang-ja .pr-note p { font-size: 18px; }
  .pr-note .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-ln > span, .cs-side { transform: none; opacity: 1; }
  html.js .pr-card { opacity: 1; transform: none; }
  .lu-lamp { opacity: 1; }
}
