/* OJI Entertainment, Direction A: the Join page (for talent). Loads after lang.css, a.css (tokens, chrome, buttons, brief form),
   pages.css (inner-page chrome), foot.css, tiles.css (the tiles' drop), blank.css (the empty frame) and ../casting/faq.css. */

/* ── hero: the reel starts with an empty frame, and the lamp is on it ──────────────────────────────
   Wide screens: the film runs down the right-hand side. Phones: it runs across, under the header. */
.jn-hero { --fw: clamp(190px, 15.5vw, 270px); --fh: calc(var(--fw) * 4 / 3); --reb: clamp(30px, 2.6vw, 40px); --lamp: clamp(84px, 13vh, 130px); --lead: 34px;
  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) + 40px) var(--pad) clamp(56px, 8vh, 84px); }
.jn-copy { position: relative; z-index: 2; max-width: calc(100% - var(--fw) - 2 * var(--reb) - 9vw); }
.jn-h1 { font-size: clamp(60px, min(8.4vw, 13.4vh), 164px); margin-left: -.02em; }
html.lang-ja .jn-h1 { font-size: clamp(54px, min(9vw, 15vh), 168px); line-height: 1.1; margin-left: 0; }
.jn-ln { display: block; overflow: hidden; padding-top: .05em; margin-top: -.05em; white-space: nowrap; }
.jn-ln > span { display: block; transform: translateY(108%); transition: transform 1.15s var(--ease); }
.jn-ln:nth-child(2) > span { transition-delay: .07s; }
.jn-ln:nth-child(3) > span { transition-delay: .14s; }
.ready .jn-ln > span { transform: none; }
.jn-lead { max-width: 27em; margin-top: clamp(20px, 3vh, 32px); font-size: clamp(18px, 1.4vw, 21px); }
.jn-copy .cta-row { margin-top: clamp(22px, 3.2vh, 34px); }
.jn-lead, .jn-copy .cta-row { opacity: 0; transform: translateY(16px); transition: opacity .9s .35s, transform 1s var(--ease) .35s; }
.ready .jn-lead, .ready .jn-copy .cta-row { opacity: 1; transform: none; }

.jh { position: absolute; top: var(--hdr); bottom: 0; right: calc(var(--pad) + 2vw); width: calc(var(--fw) + 2 * var(--reb) + 120px); }
.jh-film { position: absolute; left: 60px; top: var(--lamp); width: calc(var(--fw) + 2 * var(--reb)); transform: rotate(-2deg); transform-origin: 50% 0;
  background: linear-gradient(90deg, #2a2927 0, #141416 11%, #0a0a0d 50%, #141416 89%, #2a2927 100%);
  box-shadow: inset 1px 0 0 rgba(255, 217, 160, .34), inset -1px 0 0 rgba(255, 217, 160, .26), 0 0 0 1px rgba(0, 0, 0, .7), 0 40px 70px -30px #000; border-radius: 3px 3px 0 0; }
.jh-film::before, .jh-film::after { content: ''; position: absolute; top: 0; bottom: 0; width: 12px; opacity: .86; filter: drop-shadow(0 0 5px rgba(255, 217, 160, .6));   /* the sprocket holes, down both edges */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 24' preserveAspectRatio='none'%3E%3Crect x='.5' y='5' width='11' height='14' rx='2.4' fill='%23f3f0ea'/%3E%3C/svg%3E") 0 6px / 100% 30px repeat-y; }
.jh-film::before { left: calc((var(--reb) - 12px) / 2); }
.jh-film::after { right: calc((var(--reb) - 12px) / 2); }
.jh-track { display: flex; flex-direction: column; gap: 10px; padding: var(--lead) var(--reb) 0; }
.jh-fr { position: relative; flex: none; width: var(--fw); height: var(--fh); overflow: hidden; border-radius: 2px; background: #15161d; }
.jh-fr img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(.5); transition: filter .5s; -webkit-user-drag: none; }
@media (hover: hover) { .jh-fr:hover img { filter: grayscale(1) contrast(1.06) brightness(.8); } }
.jh-you { position: relative; }
.jh-you .blank-frame { position: absolute; inset: 0; opacity: .34; transition: opacity 1.2s .5s; }
.jh-pool { position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity 1.2s .55s;
  background: radial-gradient(90% 70% at 50% 42%, rgba(255, 236, 204, .42), rgba(255, 236, 204, .08) 60%, rgba(255, 236, 204, 0) 80%); }
.jh.on .jh-you .blank-frame { opacity: .78; }
.jh.on .jh-pool { opacity: 1; }
.jh-lamp { position: absolute; top: 18px; left: calc(60px + var(--reb) + var(--fw) / 2 - 6px); z-index: 3; width: 12px; height: 12px; border-radius: 50%; background: #fff1d6; opacity: 0;
  box-shadow: 0 0 0 5px rgba(255, 217, 160, .14), 0 0 28px 7px rgba(255, 217, 160, .5); }
.jh.on .jh-lamp { animation: jhLamp .7s both; }
@keyframes jhLamp { 0% { opacity: 0; } 30% { opacity: .9; } 45% { opacity: .35; } 62% { opacity: 1; } 75% { opacity: .6; } 100% { opacity: 1; } }
.jh-beam { position: absolute; top: 24px; left: calc(60px + var(--reb) + var(--fw) / 2); z-index: 2; width: calc(var(--fw) * 1.5); height: calc(var(--lamp) - 24px + var(--lead) + var(--fh) * .62);
  margin-left: calc(var(--fw) * -.75); pointer-events: none; mix-blend-mode: screen; filter: blur(12px); transform-origin: 50% 0; transform: scaleY(0); opacity: 0;
  transition: transform 1s cubic-bezier(.3, .7, .2, 1) .25s, opacity .6s .25s; }
.jh-beam::before { content: ''; position: absolute; inset: 0; clip-path: polygon(48.4% 0, 51.6% 0, 100% 100%, 0 100%);
  background: linear-gradient(to bottom, rgba(255, 217, 160, .5), rgba(255, 217, 160, .18) 60%, rgba(255, 217, 160, .05)); }
.jh.on .jh-beam { transform: none; opacity: 1; }
.jh-cap { z-index: 4; text-decoration: none; color: var(--paper); transition: opacity .5s 1.1s, background-color .2s; }
.jh-cap b { font-size: 24px; }
html.lang-ja .jh-cap b { font: 900 20px/1.2 'Noto Sans JP', sans-serif; }
.jh.on .jh-cap { opacity: 1; pointer-events: auto; }

/* ── why join: six red tiles that drop in (the numbers' motion, from tiles.css) ──────────────────── */
.jw { --t: clamp(78px, 6.8vw, 104px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(44px, 4.6vw, 72px) clamp(28px, 3.4vw, 56px); margin-top: clamp(40px, 4.6vw, 72px); }
.jw-it { min-width: 0; }
.jw-slot { display: block; width: calc(var(--t) + 26px); height: calc(var(--t) + 16px); margin: -12px 0 0 -6px; padding: 12px 20px 4px 6px; overflow: hidden; }   /* the tile drops in through the top of its slot */
.jw-tile { display: grid; place-items: center; width: var(--t); height: var(--t); background: var(--red); transform-origin: 50% 100%; }
.jw-tile svg { width: 46%; height: 46%; fill: none; stroke: var(--paper); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html.js .jw-tile { opacity: 0; transform: translateY(-150%) rotate(-16deg); }
.jw.in .jw-tile { animation: tileDrop 1.6s both; animation-delay: calc(var(--i) * 140ms); }
.jw-it h3 { margin-top: clamp(18px, 1.8vw, 26px); font-size: clamp(30px, 2.7vw, 44px); line-height: .96; text-wrap: balance; }
html.lang-ja .jw-it h3 { font-size: clamp(23px, 2vw, 32px); line-height: 1.3; }
.jw-it p { margin-top: 12px; font-size: clamp(17px, 1.3vw, 19px); color: rgba(243, 240, 234, .84); max-width: 24em; }
html.js .jw-it h3, html.js .jw-it p { opacity: 0; transform: translateY(14px); transition: opacity .7s, transform .9s var(--ease); transition-delay: calc(var(--i) * 140ms + 420ms); }
.jw.in .jw-it h3, .jw.in .jw-it p { opacity: 1; transform: none; }

/* ── how joining works: the cable, with a lamp that travels down it as the page scrolls ───────────── */
.jn-how-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.jn-how-head { position: sticky; top: calc(var(--hdr) + 40px); }
.jn-how-head .sec-lead { margin-top: 20px; }
.cable { position: relative; padding-left: clamp(56px, 5vw, 80px); }
.cb-line { position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: rgba(243, 240, 234, .14); overflow: hidden; }
.cb-fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 50% 0; transform: scaleY(var(--p, 0)); background: linear-gradient(var(--lamp), var(--red)); }
.cb-dot { position: absolute; left: 4px; top: 6px; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: #fff1d6; transform: translateY(var(--y, 0px));
  box-shadow: 0 0 0 5px rgba(255, 217, 160, .16), 0 0 26px 8px rgba(255, 217, 160, .42); }
.cb-list { display: grid; }
.cb { position: relative; padding-block: clamp(26px, 3vw, 44px); border-top: 1px solid var(--hair); opacity: .3; transition: opacity .45s; }
.cb:first-child { border-top: 0; padding-top: 0; }
.cb:last-child { padding-bottom: 0; }
.cb h3 { position: relative; }
.cb h3::before { content: ''; position: absolute; left: calc(7px - clamp(56px, 5vw, 80px)); top: calc(.4em - 5px); width: 10px; height: 10px; border: 2px solid rgba(243, 240, 234, .5); background: var(--stage); transition: background-color .35s, border-color .35s, transform .45s var(--ease); }   /* a square node on the cable */
.cb h3 { font-size: clamp(36px, 3.6vw, 60px); text-wrap: balance; }
html.lang-ja .cb h3 { font-size: clamp(26px, 2.5vw, 40px); line-height: 1.3; }
.cb p { margin-top: 12px; font-size: clamp(17px, 1.4vw, 21px); color: rgba(243, 240, 234, .86); max-width: 28em; }
.cb.lit { opacity: 1; }
.cb.lit h3::before { background: var(--red); border-color: var(--red); transform: rotate(45deg); }

/* ── apply: the join form, in the homepage's form panel ───────────────────────────────────────────── */
.jn-agree { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: clamp(22px, 2.4vw, 34px); font-size: 18px; font-weight: 500; text-decoration: none; color: var(--paper); }
.jn-agree span { background: linear-gradient(var(--red), var(--red)) 0 100% / 100% 2px no-repeat; padding-bottom: 4px; }
.jn-agree svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s var(--ease); }
.jn-agree:hover svg { transform: translate(3px, -3px); }
.jn-apply .fld > span span { display: inline; margin: 0; font-size: inherit; color: inherit; }   /* a.css sets every span in a field label as a block */
.req { font-style: normal; color: var(--red); }
.opt { font-style: normal; color: rgba(243, 240, 234, .46); }
.opt::before { content: '· '; }
.ph { display: flex; align-items: stretch; gap: 8px; height: 56px; }
.ph-pick { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 1px dashed rgba(243, 240, 234, .34); border-radius: 2px; background: var(--stage); font-size: 17px; color: var(--paper); cursor: pointer; transition: border-color .2s, background-color .2s; }
.ph-pick:hover { border-color: var(--paper); }
.ph-pick:focus-within { border-color: var(--lamp); border-style: solid; box-shadow: 0 0 0 3px rgba(255, 217, 160, .2); }
.ph-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ph-plus { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--red); stroke-width: 2.4; }
.ph-img { flex: none; width: 36px; height: 42px; object-fit: cover; border-radius: 1px; }
.ph-img[hidden], .ph.got .ph-plus { display: none; }
.ph.got .ph-pick { border-style: solid; border-color: rgba(243, 240, 234, .24); padding-left: 7px; }
.fld .ph-t { display: block; margin: 0; font-size: 17px; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fld .ph.got .ph-t { font-size: 15px; color: var(--dim); }
.ph-x { flex: none; width: 56px; border: 1px solid rgba(243, 240, 234, .24); border-radius: 2px; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.ph-x[hidden] { display: none; }
.ph-x:hover { background: var(--paper); border-color: var(--paper); }
.ph-x:hover svg { stroke: var(--stage); }
.ph-x svg { width: 16px; height: 16px; fill: none; stroke: var(--paper); stroke-width: 2; }
.ph-hint { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--dim); }
.ph-hint.bad { color: #ff6a5f; }
.consent { font-size: 15px; line-height: 1.5; color: var(--dim); }
.consent a { color: var(--paper); text-decoration: none; background: linear-gradient(var(--red), var(--red)) 0 100% / 100% 1px no-repeat; padding-bottom: 1px; }
.form-status:empty { display: none; }
.form-status { font-size: 17px; line-height: 1.5; }
.form-status.err { color: #ff6a5f; }
.form-status.ok { color: var(--paper); }
.st-thanks { font-weight: 600; font-size: 19px; }
.st-spam { margin-top: 14px; padding: 16px 18px; border: 1px solid var(--hair); border-left: 3px solid var(--red); background: var(--stage); font-size: 16px; color: rgba(243, 240, 234, .84); }
.st-spam strong { display: block; color: var(--paper); margin-bottom: 4px; }
.st-spam b { color: var(--paper); font-weight: 600; }
.st-proto { margin-top: 14px; font-size: 16px; color: var(--lamp); }
#inqSubmit:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }

/* ── FAQ: heading left, questions 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 .jn-hero .display, html.lang-ja .sec .display { word-break: auto-phrase; }   /* Japanese headings break between phrases */

/* ── tablet ─────────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .jw { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jn-how-in, .faq-in { grid-template-columns: minmax(0, 1fr); }
  .jn-how-head { position: static; }
}

/* ── phone: the film runs across under the header, starting at the left edge ─────────────────────── */
@media (max-width: 760px) {
  .jn-hero { --fw: 44vw; --reb: 28px; --lamp: 64px; --lead: 26px; padding-top: calc(var(--hdr) + var(--lamp) + var(--fh) + 2 * var(--reb) + 34px); padding-bottom: 40px; }
  .jn-copy { max-width: none; }
  .jn-h1 { font-size: 12.4vw; }
  html.lang-ja .jn-h1 { font-size: 15vw; }
  .jn-lead { font-size: 16px; margin-top: 16px; }
  .jn-copy .cta-row { margin-top: 20px; }
  .jn-copy .cta-row .btn { flex: 1; padding-inline: 10px; font-size: 14px; letter-spacing: .07em; }
  .jh { left: 0; right: 0; width: auto; bottom: auto; height: calc(var(--lamp) + var(--fh) + 2 * var(--reb) + 30px); }
  .jh-film { left: calc(var(--pad) - var(--reb) - var(--lead)); width: auto; right: -20px; transform-origin: 0 50%;
    background: linear-gradient(180deg, #2a2927 0, #141416 11%, #0a0a0d 50%, #141416 89%, #2a2927 100%);
    box-shadow: inset 0 1px 0 rgba(255, 217, 160, .34), inset 0 -1px 0 rgba(255, 217, 160, .26), 0 0 0 1px rgba(0, 0, 0, .7), 0 30px 60px -30px #000; border-radius: 3px 0 0 3px; }
  .jh-film::before, .jh-film::after { top: auto; bottom: auto; left: 0; right: 0; width: auto; height: 11px; background-image: var(--hole); background-size: 26px 100%; background-repeat: repeat-x; background-position: 6px 0; }
  .jh-film::before { top: calc((var(--reb) - 11px) / 2); }
  .jh-film::after { bottom: calc((var(--reb) - 11px) / 2); }
  .jh-track { flex-direction: row; padding: var(--reb) 0 var(--reb) calc(var(--reb) + var(--lead)); gap: 8px; }
  .jh-lamp { top: 12px; left: calc(var(--pad) + var(--fw) / 2 - 6px); }
  .jh-beam { top: 18px; left: calc(var(--pad) + var(--fw) / 2); height: calc(var(--lamp) - 18px + var(--reb) + var(--fh) * .6); }
  .jh-cap b { font-size: 18px; }
  .jw { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .jw-it { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: start; }
  .jw { --t: 64px; }
  .jw-slot { grid-row: span 2; }
  .jw-it h3 { margin-top: 0; font-size: 30px; }
  html.lang-ja .jw-it h3 { font-size: 22px; }
  .jw-it p { margin-top: 8px; font-size: 16px; }
  .cable { padding-left: 46px; }
  .cb h3::before { left: -39px; }
  .cb h3 { font-size: 9vw; }
  html.lang-ja .cb h3 { font-size: 6.4vw; }
  .cb p { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .jn-ln > span, .jn-lead, .jn-copy .cta-row { transform: none; opacity: 1; }
  html.js .jw-tile, html.js .jw-it h3, html.js .jw-it p { opacity: 1; transform: none; }
  .jw.in .jw-tile { animation: none; }
  .cb { opacity: 1; }
  .cb h3::before { background: var(--red); border-color: var(--red); transform: rotate(45deg); }
  .cb-dot { display: none; }
  .jh-lamp { opacity: 1; }
  .cb-fill { transform: none; }
}
