/* ==========================================================================
   AKU film page (page-aku.php). Palette and type taken from the poster:
   fog teal on blue-black, a heavy wide title, a condensed billing block.
   Electric-cyan glow = the "battery charge" accent (AKU means battery).
   ========================================================================== */

.ri-aku-page { background: #06090b; }

.aku {
	--aku-bg: #06090b;
	--aku-bg-2: #0b1316;
	--aku-ink: #dfe8ea;
	--aku-soft: #a9bcc0;
	--aku-muted: #6f858b;
	--aku-glow: #2cc8ff;
	--aku-glow-soft: rgba(44, 200, 255, 0.35);
	--aku-title: 'Montserrat', 'Arial Black', sans-serif;
	--aku-cond: var(--ri-font-display);
	position: relative;
	background: var(--aku-bg);
	color: var(--aku-ink);
	overflow: hidden;
}

/* ---------- Charge bar (fills as you scroll) ---------- */
.aku-charge {
	position: fixed; top: 0; right: 0; bottom: 0; width: 3px; z-index: 60;
	background: rgba(44, 200, 255, 0.08);
}
.aku-charge__fill {
	position: absolute; inset: 0;
	background: var(--aku-glow);
	box-shadow: 0 0 10px var(--aku-glow), 0 0 22px var(--aku-glow-soft);
	transform-origin: top; transform: scaleY(var(--aku-charge, 0));
}

/* ---------- Opening still ---------- */
.aku-hero { position: relative; min-height: max(640px, 100vh); display: flex; justify-content: center; overflow: hidden; }
.aku-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.aku-hero__shade {
	position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(6, 9, 11, 0.75) 0%, rgba(6, 9, 11, 0.15) 35%, rgba(6, 9, 11, 0.2) 65%, var(--aku-bg) 100%),
		linear-gradient(0deg, rgba(20, 60, 70, 0.18), rgba(20, 60, 70, 0.18));
}
.aku-hero__content {
	position: relative; z-index: 2;
	display: flex; flex-direction: column; align-items: center; text-align: center;
	padding: clamp(120px, 16vh, 190px) 24px 0;
}
.aku-hero__eyebrow {
	margin: 0 0 4px;
	font-family: var(--aku-cond); font-weight: 600; font-size: clamp(16px, 1.6vw, 22px);
	letter-spacing: 0.14em; text-transform: uppercase; color: var(--aku-ink);
}
.aku-hero__title {
	margin: 0; line-height: 0.9;
	font-family: var(--aku-title); font-weight: 800; font-size: clamp(110px, 17vw, 250px);
	letter-spacing: 0.01em; color: #fff;
	text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45);
}
.aku-hero__alt {
	margin: 18px 0 0;
	font-family: var(--aku-cond); font-weight: 600; font-size: clamp(15px, 1.4vw, 20px);
	letter-spacing: 0.28em; text-transform: uppercase; color: var(--aku-soft);
}

/* the line that "charges" in under the title */
.aku-line {
	display: block; width: clamp(160px, 22vw, 320px); height: 2px; margin-top: 22px;
	background: var(--aku-glow);
	box-shadow: 0 0 8px var(--aku-glow), 0 0 24px var(--aku-glow-soft);
}
.aku-line--draw { transform-origin: left; animation: aku-draw 1.6s cubic-bezier(.65, 0, .35, 1) .5s both; }
@keyframes aku-draw { from { transform: scaleX(0); opacity: .3; } to { transform: scaleX(1); opacity: 1; } }

/* standby status line */
.aku-status {
	display: inline-flex; align-items: center; gap: 12px; margin: 26px 0 0;
	font-family: var(--aku-cond); font-weight: 600; font-size: 15px;
	letter-spacing: 0.2em; text-transform: uppercase; color: var(--aku-ink);
}
.aku-status__dot {
	width: 8px; height: 8px; border-radius: 50%; background: var(--aku-glow);
	box-shadow: 0 0 8px var(--aku-glow), 0 0 18px var(--aku-glow-soft);
	animation: aku-pulse 2.6s ease-in-out infinite;
}
@keyframes aku-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Sections ---------- */
.aku-section { position: relative; max-width: 1100px; margin: 0 auto; padding: 110px 24px; }
.aku-label {
	margin: 0;
	font-family: var(--aku-cond); font-weight: 600; font-size: 14px; line-height: 1.6;
	letter-spacing: 0.24em; text-transform: uppercase; color: var(--aku-glow);
	text-shadow: 0 0 12px var(--aku-glow-soft);
}
.aku-label--center { text-align: center; }

/* glowing hairline between sections */
.aku-rule {
	display: block; height: 1px; width: min(1052px, calc(100% - 48px)); margin: 0 auto;
	background: linear-gradient(90deg, transparent, var(--aku-glow) 20%, var(--aku-glow) 80%, transparent);
	box-shadow: 0 0 10px var(--aku-glow-soft);
	opacity: .55;
}

.aku-logline { padding-top: 40px; text-align: center; }
.aku-logline p {
	margin: 0 auto; max-width: 900px;
	font-size: clamp(24px, 2.8vw, 38px); line-height: 1.4; color: var(--aku-ink);
}

.aku-text { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 60px; }
.aku-text + .aku-text { padding-top: 0; }
.aku-text__body { max-width: 680px; font-size: 18px; line-height: 1.8; color: var(--aku-soft); }
.aku-text__body p { margin: 0; }
.aku-text__body p + p { margin-top: 1.1em; }
.aku-text__body--quote { padding-left: 24px; border-left: 2px solid var(--aku-glow); box-shadow: -10px 0 18px -14px var(--aku-glow); color: var(--aku-ink); font-size: 20px; }

/* ---------- Key art ---------- */
.aku-keyart { display: flex; flex-direction: column; align-items: center; gap: 48px; text-align: center; }
.aku-keyart__poster { width: min(624px, 100%); }
.aku-keyart__poster img { display: block; width: 100%; height: auto; }
.aku-keyart__side { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.aku-keyart__note { margin: 0; max-width: 460px; font-size: 17px; line-height: 1.7; color: var(--aku-soft); }
.aku-button {
	display: inline-block; margin-top: 8px; padding: 14px 26px;
	font-family: var(--aku-cond); font-weight: 600; font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--aku-glow); border: 1px solid var(--aku-glow); border-radius: 2px;
	box-shadow: 0 0 0 rgba(44, 200, 255, 0); transition: box-shadow .3s, background .3s, color .3s;
}
.aku-button:hover, .aku-button:focus-visible { color: var(--aku-bg); background: var(--aku-glow); box-shadow: 0 0 22px var(--aku-glow-soft); }

/* HUD corner brackets around images */
.aku-frame { position: relative; margin: 0; }
.aku-frame img { display: block; width: 100%; height: auto; }
.aku-frame::after {
	content: ''; position: absolute; inset: -9px; pointer-events: none;
	--c: var(--aku-glow); --l: 20px; --w: 1.5px;
	background:
		linear-gradient(var(--c) 0 0) top left / var(--l) var(--w) no-repeat,
		linear-gradient(var(--c) 0 0) top left / var(--w) var(--l) no-repeat,
		linear-gradient(var(--c) 0 0) top right / var(--l) var(--w) no-repeat,
		linear-gradient(var(--c) 0 0) top right / var(--w) var(--l) no-repeat,
		linear-gradient(var(--c) 0 0) bottom left / var(--l) var(--w) no-repeat,
		linear-gradient(var(--c) 0 0) bottom left / var(--w) var(--l) no-repeat,
		linear-gradient(var(--c) 0 0) bottom right / var(--l) var(--w) no-repeat,
		linear-gradient(var(--c) 0 0) bottom right / var(--w) var(--l) no-repeat;
	filter: drop-shadow(0 0 4px var(--aku-glow));
	opacity: .85;
}

/* ---------- Billing block (as on the poster) ---------- */
.aku-billing { text-align: center; }
.aku-billing__cast {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 64px; margin: 34px 0 0;
	font-family: var(--aku-cond); font-weight: 600; font-size: clamp(34px, 4.6vw, 60px);
	letter-spacing: 0.04em; text-transform: uppercase; color: #fff;
}
.aku-billing__cast--small { margin-top: 10px; font-size: clamp(22px, 2.6vw, 34px); color: var(--aku-ink); }
.aku-billing__crew {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; margin: 30px auto 0; max-width: 1000px;
	font-family: var(--aku-cond); font-weight: 600; font-size: clamp(20px, 2vw, 26px);
	letter-spacing: 0.04em; text-transform: uppercase; color: var(--aku-ink);
}
.aku-billing__credit small { font-size: 0.5em; letter-spacing: 0.12em; color: var(--aku-muted); }

/* ---------- Stills ---------- */
.aku-stills { display: flex; flex-direction: column; gap: 56px; }
.aku-stills__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 34px; }
/* one portrait shape per cell so landscape frames line up with the portraits; framing leans left to keep the shoreline */
.aku-stills__grid img { aspect-ratio: 5 / 6; object-fit: cover; object-position: 35% center; }

/* ---------- Behind the scenes (no HUD brackets: those mark frames from the film) ---------- */
.aku-bts { display: flex; flex-direction: column; gap: 40px; }
.aku-bts__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.aku-bts__item { margin: 0; overflow: hidden; border-radius: 2px; }
.aku-bts__item--lead { grid-column: 1 / -1; }
.aku-bts__item img { display: block; width: 100%; height: auto; filter: saturate(.85); transition: filter .4s; }
/* grid cells share one 3:2 shape so mixed 16:9 / 3:2 photos line up; full-width ones keep their own shape */
.aku-bts__item:not(.aku-bts__item--lead) img { aspect-ratio: 3 / 2; object-fit: cover; }
.aku-bts__item:hover img { filter: none; }
.aku-bts__credit { margin: -16px 0 0; font-family: var(--aku-cond); font-weight: 600; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--aku-muted); text-align: right; }

/* ---------- Contact ---------- */
.aku-contact { text-align: center; }
.aku-contact__line {
	display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 10px 22px; margin: 26px 0 0;
	font-family: var(--aku-cond); font-weight: 600; font-size: clamp(26px, 3.2vw, 40px); letter-spacing: 0.04em;
}
.aku-contact__sep { color: var(--aku-muted); }
.aku-link { color: var(--aku-ink); border-bottom: 1px solid var(--aku-glow); transition: color .3s, box-shadow .3s; }
.aku-link:hover, .aku-link:focus-visible { color: var(--aku-glow); box-shadow: 0 6px 14px -10px var(--aku-glow); }
.aku-contact__by { margin: 46px 0 0; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; }
.aku-contact__by a { color: var(--aku-muted); }
.aku-contact__by a:hover { color: var(--aku-ink); }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.aku--js .aku-reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s ease; }
.aku--js .aku-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.aku-line--draw, .aku-status__dot { animation: none; }
	.aku--js .aku-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Sound switch (bottom left; the charge bar owns the right edge) ---------- */
.aku-sound {
	position: fixed; left: 24px; bottom: 24px; z-index: 50;
	display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px;
	border: 1px solid rgba(44, 200, 255, 0.35); border-radius: 2px; background: rgba(6, 9, 11, 0.7);
	font-family: var(--aku-cond); font-weight: 600; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--aku-muted); cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	transition: color .3s, border-color .3s, box-shadow .3s;
}
.aku-sound[hidden] { display: none; }
.aku-sound:hover, .aku-sound:focus-visible { color: var(--aku-ink); border-color: var(--aku-glow); }
.aku-sound:focus-visible { outline: 1px solid var(--aku-glow); outline-offset: 3px; }
.aku-sound[aria-pressed="true"] { color: var(--aku-glow); border-color: var(--aku-glow); box-shadow: 0 0 14px var(--aku-glow-soft); }
.aku-sound[aria-pressed="true"] .aku-sound__slash { display: none; }

/* ---------- Clickable images + lightbox ---------- */
.aku-zoom { display: block; cursor: zoom-in; }
.aku-zoom:focus-visible { outline: 2px solid var(--aku-glow); outline-offset: 4px; }
.aku-frame .aku-zoom img { transition: filter .4s; }
.aku-frame .aku-zoom:hover img { filter: brightness(1.08); }

html:has(.aku-lb[open]) { overflow: hidden; }
.aku-lb {
	width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
	margin: 0; padding: 0; border: 0; background: transparent; color: var(--aku-ink); overflow: hidden;
}
.aku-lb[open] { display: flex; align-items: center; justify-content: center; }
.aku-lb::backdrop { background: rgba(6, 9, 11, 0.95); }
.aku-lb__img {
	display: block; width: auto; height: auto;
	max-width: calc(100vw - 180px); max-height: calc(100dvh - 120px); object-fit: contain;
	box-shadow: 0 0 0 1px rgba(44, 200, 255, 0.25), 0 0 48px rgba(44, 200, 255, 0.12);
}
.aku-lb__btn {
	position: absolute; display: flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; padding: 0; border: 0; background: transparent; cursor: pointer;
	font-family: var(--aku-cond); font-size: 48px; line-height: 1; color: var(--aku-glow);
	text-shadow: 0 0 12px var(--aku-glow-soft); transition: color .2s, text-shadow .2s;
}
.aku-lb__btn:hover, .aku-lb__btn:focus-visible { color: #fff; text-shadow: 0 0 16px var(--aku-glow); }
.aku-lb__btn:focus-visible { outline: 1px solid var(--aku-glow); }
.aku-lb__btn--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.aku-lb__btn--next { right: 24px; top: 50%; transform: translateY(-50%); }
.aku-lb__btn--close { top: 16px; right: 24px; font-size: 40px; }
.aku-lb--single .aku-lb__btn--prev, .aku-lb--single .aku-lb__btn--next { display: none; }
.aku-lb__count {
	position: absolute; bottom: 20px; left: 0; right: 0; margin: 0; text-align: center;
	font-family: var(--aku-cond); font-weight: 600; font-size: 13px; letter-spacing: 0.24em; color: var(--aku-muted);
}

/* ---------- Mobile ---------- */
@media (max-width: 780px) {
	.aku-section { padding: 72px 24px; }
	.aku-logline { padding-top: 24px; }
	.aku-text { grid-template-columns: 1fr; gap: 20px; }
	.aku-keyart { gap: 36px; }
	.aku-text__body { font-size: 16px; }
	.aku-text__body--quote { font-size: 17px; }
	.aku-stills__grid { gap: 24px; }
	.aku-bts__grid { grid-template-columns: 1fr; gap: 12px; }
	.aku-charge { width: 2px; }
	.aku-sound { left: 12px; bottom: 12px; padding: 9px 12px; }
	.aku-lb__img { max-width: calc(100vw - 24px); max-height: calc(100dvh - 140px); }
	.aku-lb__btn--prev, .aku-lb__btn--next { top: auto; bottom: 8px; transform: none; }
	.aku-lb__btn--prev { left: 12px; }
	.aku-lb__btn--next { right: 12px; }
	.aku-lb__btn--close { top: 8px; right: 8px; }
}
