/* Base colors and spacing. Change these first when adapting the design. */
:root {
  color-scheme: dark;
  --ink: #0b0907;
  --ivory: #fff0d8;
  --gold: #ddba7f;
  --muted: #b0a28e;
  --line: rgba(225, 190, 131, .24);
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  --display: Impact, "Arial Narrow", "Franklin Gothic Condensed", sans-serif;
  --gutter: clamp(24px, 5vw, 78px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: #080706; color: var(--ivory); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; background: url("assets/page-satin-background.webp") center bottom / cover no-repeat; opacity: .38; pointer-events: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
::selection { background: var(--gold); color: var(--ink); }
.skip-link { position: fixed; z-index: 30; top: -70px; left: 20px; padding: 12px; background: var(--ivory); color: var(--ink); }
.skip-link:focus { top: 15px; }
.page-shell { position: relative; max-width: 1680px; margin: 12px auto; border: 1px solid var(--line); background: rgba(6, 5, 4, .35); isolation: isolate; overflow: clip; }
.site-header { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100px; padding: 0 var(--gutter); }
.brand { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 35px); white-space: nowrap; }
.brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 36px; letter-spacing: -.06em; line-height: 1; }
.brand-divider { width: 52px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); opacity: .65; }
.brand-tag { color: var(--gold); font: 10px var(--sans); letter-spacing: .36em; }
.main-nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); font-size: 14px; letter-spacing: .09em; }
.main-nav > a:not(.login-button) { padding: 12px 0; transition: color .2s; }
.main-nav > a:hover { color: var(--gold); }
.nav-divider { height: 22px; width: 1px; background: var(--line); }
.login-button { display: flex; align-items: center; gap: 22px; background: transparent; border: 1px solid #b49360; border-radius: 30px; padding: 10px 21px; font-size: 12px; letter-spacing: .14em; transition: background .2s, border-color .2s; }
.login-button:hover { background: #ddba7f16; border-color: var(--ivory); }
.menu-toggle { display: none; }
.hero { position: relative; min-height: 748px; padding: 28px var(--gutter) 100px; }
.hero-background { position: absolute; z-index: -3; inset: -100px 0 -90px; background: url("assets/hero-desktop-v4.webp") center center / cover no-repeat; opacity: .82; }
.hero-shade { position: absolute; z-index: -2; inset: -100px 0 -100px; background: linear-gradient(90deg, rgba(5,4,3,.67), transparent 72%), linear-gradient(0deg, #080706 0%, transparent 30%, transparent 75%, #08070655); }
.hero-orbit { position: absolute; top: -210px; left: 13%; width: 610px; height: 280px; border: 1px solid #d9b97b66; border-radius: 50%; transform: rotate(-17deg); z-index: -1; pointer-events: none; }
.hero-copy { position: relative; z-index: 3; max-width: 610px; }
.eyebrow { font-family: var(--sans); font-size: 10px; letter-spacing: .3em; line-height: 1.8; font-weight: 400; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; color: var(--gold); font-size: 9px; letter-spacing: .26em; }
.hero-eyebrow span { display: inline-block; height: 1px; width: 22px; background: var(--gold); }
h1 { display: flex; flex-direction: column; align-items: flex-start; margin: 0; font: 400 clamp(108px, 11.9vw, 182px)/.79 var(--display); letter-spacing: -.025em; }
h1 > span { display: block; }
h1 .night { font-style: italic; transform: translateX(-7px) skewX(-3deg); margin-top: 4px; letter-spacing: -.04em; }
.full-stop { color: var(--gold); }
.hero-lead { margin: 30px 0 16px; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.4; letter-spacing: .12em; white-space: nowrap; }
.hero-description { color: #d4c5b0; font-size: 12px; letter-spacing: .09em; line-height: 2.05; margin: 0 0 26px; }
.entry-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 54px; position: relative; min-width: 342px; padding: 17px 27px; color: #271a0a; background: linear-gradient(110deg, #ad7c34 0%, #e7c48b 23%, #fae3b4 53%, #d1a45f 85%, #8d5e25); border: 1px solid #f6dca9; border-radius: 100px; box-shadow: 0 0 22px #dbac6333, inset 0 0 10px #fff0c655; font-size: 19px; font-weight: 600; letter-spacing: .14em; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.entry-button::before { content: ""; position: absolute; top: -70%; left: -40%; height: 240%; width: 45%; transform: rotate(25deg); background: linear-gradient(90deg, transparent, #fff8e859, transparent); transition: left .65s; }
.entry-button:hover { transform: translateY(-3px); box-shadow: 0 5px 32px #dbac6355; }
.entry-button:hover::before { left: 120%; }
.entry-button svg { width: 43px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1; }
.hero-note { display: block; color: #ac9677; font-family: var(--sans); font-size: 8px; letter-spacing: .27em; margin: 15px 0 0 26px; }
.cat-parallax { position: absolute; z-index: 1; right: -20px; top: -30px; width: min(61vw, 880px); transform: translate3d(var(--cat-x, 0px), var(--cat-y, 0px), 0); transition: transform 1.2s cubic-bezier(.2,.7,.3,1); pointer-events: none; }
.hero-cat { display: block; width: 100%; height: auto; filter: drop-shadow(-25px 16px 35px #0009); animation: cat-breathe 9s ease-in-out infinite; }
.hero-caption { position: absolute; right: 54px; bottom: 80px; display: flex; flex-direction: column; align-items: flex-end; z-index: 2; opacity: .72; }
.hero-caption > span { font: italic 28px Georgia, serif; color: var(--gold); }
.hero-caption small { font: 7px var(--sans); letter-spacing: .24em; margin-top: 9px; }
.scroll-cue { position: absolute; left: var(--gutter); bottom: 36px; display: flex; align-items: center; gap: 15px; font: 8px var(--sans); letter-spacing: .22em; color: #b7a187; z-index: 3; }
.scroll-cue i { display: block; width: 70px; height: 1px; background: linear-gradient(90deg, #d6b27d, transparent); }
.ambient-particles { position: absolute; inset: 0; overflow: hidden; z-index: 2; pointer-events: none; }
.ambient-particles i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #e6b86f; box-shadow: 0 0 10px 2px #d69f4544; opacity: .5; animation: drift 12s ease-in-out infinite alternate; }
.ambient-particles i:nth-child(1) { left: 49%; top: 21%; }
.ambient-particles i:nth-child(2) { left: 79%; top: 47%; animation-delay: -3s; }
.ambient-particles i:nth-child(3) { left: 55%; top: 65%; animation-delay: -8s; }
.ambient-particles i:nth-child(4) { left: 90%; top: 18%; animation-delay: -5s; }
.ambient-particles i:nth-child(5) { left: 38%; top: 79%; animation-delay: -2s; }
.ambient-particles i:nth-child(6) { left: 68%; top: 10%; animation-delay: -9s; }
.opportunities { position: relative; padding: 14px var(--gutter) 0; scroll-margin-top: 40px; }
.long-ribbon { position: absolute; z-index: 0; pointer-events: none; width: 122%; height: auto; max-width: none; right: -12%; top: -240px; transform: rotate(-4deg); animation: ribbon-float 12s ease-in-out infinite alternate; }
.role-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.role-card { position: relative; border: 0; text-align: left; display: flex; flex-direction: column; padding: 22px 28px 25px; min-height: 208px; background-size: cover; background-position: center; transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s; }
.cast-card { background-color: #f0dfc5; background-image: url("assets/cast-card-background.webp"); color: #17120c; transform: rotate(1.5deg); clip-path: polygon(1% 0, 100% 6%, 98% 100%, 0 94%); }
.staff-card { background-color: #14100b; background-image: linear-gradient(90deg, #08070699, #08070600), url("assets/staff-card-background.webp"); border: 1px solid #b6955c; transform: rotate(-1.5deg); clip-path: polygon(1% 0, 100% 4%, 99% 100%, 0 96%); }
.role-card:hover { transform: rotate(0) translateY(-7px); box-shadow: 0 10px 38px #0008; }
.role-card:focus-visible { clip-path: none; }
.role-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 9px var(--sans); letter-spacing: .14em; opacity: .65; }
.role-topline > span { font-size: 8px; letter-spacing: .18em; }
.role-main { display: flex; align-items: center; gap: 22px; margin-top: 18px; }
.role-title { font: italic 400 clamp(56px, 5.7vw, 85px)/1 var(--display); letter-spacing: -.03em; }
.role-name { border-left: 1px solid currentColor; padding-left: 20px; font-size: 17px; line-height: 1.6; letter-spacing: .06em; }
.role-arrow { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border: 1px solid currentColor; border-radius: 50%; font-family: var(--sans); font-size: 20px; font-weight: 300; margin-left: auto; transition: transform .25s; }
.role-card:hover .role-arrow { transform: rotate(45deg); }
.role-description { display: block; margin-top: 15px; font-size: 11px; letter-spacing: .04em; opacity: .77; }
.journey { position: relative; display: flex; align-items: center; gap: 55px; padding: 60px var(--gutter) 45px; }
.journey-heading { display: flex; align-items: center; gap: 22px; flex: 0 0 220px; }
.journey-heading .eyebrow { color: #c7ad88; font-size: 9px; line-height: 1.9; margin: 0; }
.journey-heading > span { height: 1px; width: 62px; background: linear-gradient(90deg, #d7b57799, transparent); }
.journey-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); flex: 1; gap: 30px; }
.journey-steps li { position: relative; display: flex; flex-direction: column; gap: 8px; }
.journey-steps li:not(:last-child)::after { content: "›"; position: absolute; right: 5%; top: 15px; font-family: Georgia, serif; font-size: 25px; color: #bea788; }
.step-number { font: italic 38px Georgia, serif; font-weight: 400; }
.step-name { font-size: 13px; letter-spacing: .08em; }
.site-footer { display: flex; align-items: center; gap: 25px; padding: 23px var(--gutter); border-top: 1px solid var(--line); color: #aa9374; }
.site-footer > span { font: 17px Georgia, serif; }
.site-footer small { font: 7px var(--sans); letter-spacing: .18em; }
.site-footer > a { display: grid; place-items: center; margin-left: auto; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; font-size: 16px; }
.entry-dialog { max-width: 470px; width: calc(100% - 40px); padding: 45px 35px 32px; color: var(--ivory); border: 1px solid #b6955c; background: #100d09; box-shadow: 0 25px 100px #000b; }
.entry-dialog::backdrop { background: #000b; backdrop-filter: blur(8px); }
.entry-dialog .eyebrow { color: var(--gold); }
.entry-dialog h2 { font-size: 25px; font-weight: 400; letter-spacing: .06em; margin-bottom: 20px; }
.entry-dialog > p:not(.eyebrow) { color: #bba98f; line-height: 1.9; font-size: 14px; }
.dialog-close { position: absolute; right: 12px; top: 10px; border: 0; background: none; width: 32px; height: 32px; font: 28px Georgia, serif; }
.dialog-dismiss { margin-top: 20px; display: flex; justify-content: space-between; width: 100%; padding: 14px 20px; background: #e7c48b; border: 1px solid var(--gold); color: #20160a; }
@keyframes cat-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes ribbon-float { from { transform: rotate(-4deg) translateY(0); } to { transform: rotate(-3deg) translateY(-9px); } }
@keyframes drift { from { transform: translate(0, 0); opacity: .15; } to { transform: translate(16px, -28px); opacity: .65; } }
@media (min-width: 1704px) { .page-shell { margin: 16px auto; } }
@media (max-width: 1100px) {
  .brand-divider { width: 25px; }
  .brand-tag { font-size: 8px; }
  .main-nav { gap: 23px; font-size: 12px; }
  .hero { min-height: 700px; }
  .cat-parallax { right: -80px; top: 12px; width: 72vw; }
  .hero-caption { display: none; }
  .role-card { padding: 25px 21px; min-height: 195px; }
  .role-main { gap: 12px; }
  .role-name { padding-left: 13px; font-size: 14px; }
  .role-arrow { flex-basis: 29px; height: 29px; }
  .journey { gap: 30px; }
  .journey-heading { flex-basis: 165px; }
  .journey-heading > span { width: 30px; }
}
@media (max-width: 760px) {
  :root { --gutter: 25px; }
  .page-shell { margin: 7px; }
  .site-header { height: 84px; }
  .brand { gap: 0; align-items: flex-start; flex-direction: column; }
  .brand-name { font-size: 30px; }
  .brand-tag { margin-top: 10px; font-size: 7px; letter-spacing: .32em; }
  .brand-divider { display: none; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; background: none; border: 0; width: 44px; height: 44px; padding: 10px; margin-right: -10px; }
  .menu-toggle span { height: 1px; width: 24px; background: var(--ivory); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .main-nav { display: none; position: absolute; top: 74px; right: 15px; left: 15px; background: #100d09f5; border: 1px solid var(--line); padding: 20px; flex-direction: column; align-items: stretch; gap: 13px; box-shadow: 0 15px 30px #0007; }
  .main-nav.is-open { display: flex; }
  .main-nav > a:not(.login-button) { padding: 10px; }
  .nav-divider { display: none; }
  .login-button { justify-content: space-between; }
  .hero { padding-top: 29px; min-height: 705px; padding-bottom: 75px; }
  .hero-background { inset: -84px 0 -80px; background-position: 62% center; opacity: .6; }
  .hero-shade { inset: -84px 0 -80px; background: linear-gradient(90deg, #06050477 0%, #06050422 60%, transparent), linear-gradient(0deg, #080706 4%, transparent 70%); }
  .hero-orbit { left: 20%; top: -145px; width: 400px; height: 150px; opacity: .5; }
  .hero-copy { max-width: none; }
  .hero-eyebrow { margin-bottom: 23px; font-size: 6px; letter-spacing: .23em; gap: 7px; }
  .hero-eyebrow span { width: 13px; }
  h1 { font-size: clamp(110px, 27.5vw, 180px); line-height: .8; position: relative; z-index: 2; }
  h1 .night { margin-top: 7px; transform: translateX(-4px) skewX(-3deg); }
  .hero-lead { margin-top: 27px; font-size: clamp(20px, 5.4vw, 29px); letter-spacing: .08em; }
  .hero-description { font-size: 10px; line-height: 2; letter-spacing: .06em; max-width: 300px; margin-bottom: 23px; }
  .entry-button { width: 100%; min-width: 0; padding: 17px 24px; gap: 18px; font-size: 17px; letter-spacing: .12em; }
  .hero-note { text-align: center; margin: 12px 0 0; font-size: 6px; letter-spacing: .25em; }
  .cat-parallax { top: 2px; right: -139px; width: 117%; max-width: 610px; opacity: .92; }
  .hero-cat { filter: drop-shadow(-8px 6px 15px #0008); }
  .scroll-cue { bottom: 22px; font-size: 6px; }
  .scroll-cue i { width: 45px; }
  .opportunities { padding-top: 0; }
  .long-ribbon { width: 190%; top: -105px; right: -55%; }
  .role-grid { grid-template-columns: 1fr; gap: 17px; }
  .role-card { min-height: 155px; padding: 20px 21px 21px; }
  .cast-card { transform: rotate(-1deg); }
  .staff-card { transform: rotate(1deg); }
  .role-topline { font-size: 7px; }
  .role-topline > span { font-size: 6px; }
  .role-main { margin-top: 11px; gap: 15px; }
  .role-title { font-size: 58px; }
  .role-name { font-size: 14px; padding-left: 15px; }
  .role-arrow { flex-basis: 28px; height: 28px; font-size: 18px; }
  .role-description { margin-top: 9px; font-size: 9px; }
  .journey { flex-direction: column; align-items: stretch; gap: 22px; padding-top: 38px; padding-bottom: 32px; }
  .journey-heading { flex-basis: auto; gap: 17px; }
  .journey-heading .eyebrow { font-size: 7px; line-height: 1.5; }
  .journey-heading br { display: none; }
  .journey-heading > span { flex: 1; background: linear-gradient(90deg, #d7b57777, transparent); }
  .journey-steps { gap: 12px; }
  .step-number { font-size: 30px; }
  .step-name { font-size: 10px; letter-spacing: .04em; white-space: nowrap; }
  .journey-steps li:not(:last-child)::after { top: 9px; right: -2px; font-size: 21px; }
  .site-footer { gap: 10px; padding-top: 18px; padding-bottom: 18px; }
  .site-footer > span { font-size: 14px; }
  .site-footer small { max-width: 140px; font-size: 5px; line-height: 1.8; }
}
@media (max-width: 370px) {
  :root { --gutter: 19px; }
  .role-main { gap: 10px; }
  .role-title { font-size: 50px; }
  .role-name { padding-left: 10px; font-size: 12px; }
  .role-description { font-size: 8px; }
  .cat-parallax { right: -125px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cat-parallax { transform: none; }
}

/* --- Added when connecting the first screen to the recruitment site --- */
.nav-register { padding: 12px 0; color: var(--gold); }
.nav-register:hover { color: var(--ivory); }
.role-card.is-closed { cursor: default; filter: saturate(.4) brightness(.8); }
.role-card.is-closed:hover { transform: none; box-shadow: none; }
.role-status { margin-top: 10px; font: 12px var(--sans); letter-spacing: .08em; color: inherit; opacity: .85; }
.role-status::before { content: "● "; }
.role-card.is-closed .role-status::before { content: "○ "; }
.role-note { position: relative; z-index: 2; margin: 18px var(--gutter) 0; color: var(--muted); font: 13px/1.8 var(--sans); }
.misaki-contact { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; padding: 10px var(--gutter) 70px; }
.contact-card { border: 1px solid var(--line); background: #0d0a07cc; padding: 22px 26px; }
.contact-card .eyebrow { color: var(--gold); margin: 0 0 10px; }
.contact-card p { margin: 0 0 10px; font: 14px/1.8 var(--sans); color: #d9c9b0; }
.contact-card strong { font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--ivory); letter-spacing: .04em; }
.contact-link { display: inline-flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--gold); padding-bottom: 2px; color: var(--gold); font: 13px var(--sans); letter-spacing: .08em; }
.contact-link:hover { color: var(--ivory); border-color: var(--ivory); }
