:root {
  color-scheme: dark;
  scrollbar-gutter: stable;
  --ink: #f3efe7;
  --muted: #a9a8a5;
  --line: #ffffff25;
  --canvas: #111214;
  --warm: #e19765;
  --accent: #e19765;
  --edge: clamp(22px, 4.3vw, 78px);
  --portfolio-gap: clamp(8px, 1.6svh, 16px);
  --portfolio-inset: clamp(16px, 2.35vw, 34px);
  --portfolio-padding: clamp(12px, 2svh, 24px);
  --portfolio-height: min(calc(100svh - 68px - 2 * var(--portfolio-gap)), calc(50vw + 100px), 870px);
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --ease: cubic-bezier(.2,.68,.24,1);
  background: var(--canvas);
  color: var(--ink);
  font: 14px/1.55 var(--sans);
}

* { box-sizing: border-box; }
body { position: relative; isolation: isolate; margin: 0; min-width: 300px; min-height: 100svh; }
body::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 22% 9%, #222225, transparent 61%), linear-gradient(145deg, #151619, #0e0f11 74%);
}
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: url("media/archive-grain.webp");
  opacity: .22;
}
body[data-theme="one-punch"] { --accent: #f3c550; --theme-red: #da3b32; }
body[data-theme="ferrari"] { --accent: #f35a55; --theme-red: #ec2a36; }
[hidden] { display: none !important; }
button { color: inherit; font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }
.shell { width: min(100%, 1580px); margin-inline: auto; padding-inline: var(--edge); }

.site-header { position: relative; z-index: 3; }
.header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: min(calc(100% - 2 * var(--edge)), calc(1580px - 2 * var(--edge)));
  transform: translateX(-50%);
  border-bottom: 1px solid var(--line);
  pointer-events: none;
}
.wordmark { padding: 0; border: 0; background: none; white-space: nowrap; font: italic 33px/1 var(--display); letter-spacing: -.04em; }
.wordmark span { color: var(--warm); }
.header-tools { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.motion-toggle, .back-link, .header-archive, .player-actions button, .cinema-head button {
  min-height: 42px;
  padding: 7px 0;
  border: 0;
  background: none;
  color: #d7d2c9;
  font-size: 12px;
  white-space: nowrap;
  transition: color 180ms ease;
}
.motion-toggle:hover, .back-link:hover, .header-archive:hover, .player-actions button:hover, .cinema-head button:hover { color: var(--accent); }
.motion-toggle { display: inline-flex; gap: 8px; align-items: center; }
.header-archive { display: inline-flex; align-items: center; }
#motion-toggle::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 8px #e1976570; }
body[data-motion="off"] #motion-toggle::before { background: #777; box-shadow: none; }
#motion-replay:disabled { opacity: .48; }

.overview { padding-block: var(--portfolio-gap); }
.overview-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: var(--portfolio-padding) var(--portfolio-inset);
  background: linear-gradient(142deg, #1d1c20bb, #121315dd 78%);
  box-shadow: inset 0 0 0 1px var(--line);
}
@media (min-width: 861px) {
  .overview-stage, .detail-stage { min-height: var(--portfolio-height); }
}
.overview-heading .eyebrow { margin: 0 0 4px; }
.overview-heading { position: relative; }
.eyebrow { margin-bottom: 10px; color: var(--muted); font: 11px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.overview h1 {
  font: normal 400 clamp(38px, 4.45vw, 70px)/1.02 Georgia, "Times New Roman", serif;
  letter-spacing: -.041em;
}
.overview h1 span, .overview h1 em { color: var(--warm); }
.overview-note { margin-top: 16px; color: var(--muted); font-size: 13px; }
.poster-viewport { position: relative; margin-top: clamp(9px, 1.35svh, 16px); }
.poster-viewport::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2% 0 0;
  pointer-events: none;
  background: linear-gradient(166deg, transparent 56%, #b9bfc424 56.1%, transparent 56.35%);
}
.poster-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1.15vw, 18px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.poster {
  position: relative;
  min-width: 0;
  height: clamp(176px, calc((var(--portfolio-height) - 280px) * .65), 340px);
}
.poster-art {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  clip-path: var(--shape);
  background: #191a1e;
  overflow: clip;
  transform-origin: 50% 100%;
  transition: transform 230ms var(--ease);
}
.poster-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--cover-focus, center);
}

.poster-art[data-crop="one-punch"] img { height: 110%; transform: translateY(-8%); }
  background: linear-gradient(155deg, #202730, #121417 63%);
}

.poster-art[data-crop="ferrari"] img {
  position: absolute;
  inset: 17% 0 auto;
  height: auto;
  aspect-ratio: 4 / 3;
  mask-image: linear-gradient(transparent, #000 15% 88%, transparent);
}

.poster-art[data-crop="vampire"] img {
  mask-image: linear-gradient(#000 68%, transparent 83%);
}

.poster-art::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to bottom, transparent, #090a0a 76%);
}

.poster-name {
  position: absolute;
  z-index: 1;
  left: 14%;
  right: 17%;
  bottom: 9%;
  display: grid;
  gap: 3px;
  color: var(--ink);
}

.poster-name strong {
  font: 600 clamp(12px, 1.24vw, 19px)/1.08 var(--sans);
  letter-spacing: .018em;
  color: var(--poster-accent);
}

.poster:first-child .poster-name strong { font-size: clamp(10px, 1.08vw, 16px); }
.poster-name small { font-size: clamp(10px, .87vw, 13px); }
.poster-link { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; clip-path: var(--shape); }
.poster-link[data-open]::before, .poster-link[data-open]::after { content: ""; position: absolute; top: 17%; left: 75%; transform: translate(-50%, -50%); pointer-events: none; }
.poster-link[data-open]::before { width: clamp(23px, 2.65vw, 36px); aspect-ratio: 1; border: 1px solid #fffa; border-radius: 50%; background: #111b; }
.poster-link[data-open]::after { width: clamp(6px, .75vw, 10px); aspect-ratio: 1; margin-left: 1px; background: #fff8ed; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.poster-link[data-poster="one-punch"]::before, .poster-link[data-poster="one-punch"]::after { top: 14%; left: 84%; }
.poster.is-selected { z-index: 2; }
.poster.is-selected::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 6%;
  width: 72%;
  height: 2px;
  pointer-events: none;
  background: var(--poster-accent, var(--accent));
}
.overview-foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 16px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
}

.overview-selection { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 13px; font-weight: 600; }
.overview-selection span + span { color: var(--muted); font: 11px var(--mono); }

.overview-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.43fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 2.1vw, 32px);
  margin-top: clamp(7px, 1.18svh, 14px);
  padding-top: clamp(9px, 1.35svh, 17px);
  border-top: 1px solid var(--line);
}
.home-experience {
  min-width: 0;
  padding-inline-start: clamp(14px, 1.8vw, 28px);
  border-inline-start: 1px solid var(--line);
}
.home-experience .credits-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-bottom: 8px;
}
.home-experience .credits-heading h2 { order: -1; }
.home-experience .credits-heading .eyebrow { margin: 0; font-size: 10px; }
.home-experience .credits-copy { max-width: none; }
.home-experience .credits-copy h3 { margin-bottom: 6px; font-size: clamp(13px, 1.1vw, 17px); }
.home-experience .credits-copy p { font-size: clamp(12px, .97vw, 14px); line-height: 1.58; }
.home-experience .credits-copy p + p { margin-top: 6px; }
.home-experience .credits-copy .credits-tags { font-size: 10px; margin-top: 9px; }

.credits-heading .eyebrow { margin-bottom: 7px; }
.credits-heading h2 { font-size: clamp(19px, 1.75vw, 26px); font-weight: 600; }
.credits-copy { max-width: 68ch; }
.credits-copy h3 { margin: 0 0 11px; font-size: clamp(15px, 1.5vw, 20px); font-weight: 600; }
.credits-copy p { color: #d4d1ca; font-size: clamp(13px, 1.14vw, 16px); line-height: 1.8; }
.credits-copy p + p { margin-top: 9px; }
.credits-copy .credits-tags { color: var(--accent); font-size: 12px; margin-top: 16px; }
.credits-tags[lang="en"] { font-family: var(--mono); letter-spacing: .065em; }

@property --overview-accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #f4cc68;
}
.overview { position: relative; isolation: isolate; --overview-accent: #f4cc68; transition: --overview-accent 380ms ease; }
.overview[data-selection="ferrari"] { --overview-accent: #ed756b; }
.overview[data-selection="vampire-perks"] { --overview-accent: #cda575; }
.overview[data-selection="whitepaper-47"] { --overview-accent: #a1d9ed; }
.overview[data-selection="halloween-spy"] { --overview-accent: #e1a16a; }
.overview-atmosphere { position: absolute; z-index: -1; inset: 0 0 18%; overflow: hidden; pointer-events: none; }
.overview-atmosphere::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(ellipse at 71% 35%, color-mix(in srgb, var(--overview-accent) 18%, transparent), transparent 61%);
  opacity: .42;
}
.overview-atmosphere i {
  position: absolute;
  inset: 19% -17% auto 8%;
  height: 1px;
  transform: rotate(-14deg);
  transform-origin: right;
  background: linear-gradient(90deg, transparent 4%, color-mix(in srgb, var(--overview-accent) 31%, transparent), transparent 87%);
  opacity: .42;
}
.overview-atmosphere i + i { inset: 25% -7% auto 17%; transform: rotate(-18deg); opacity: .25; }
.poster-viewport { padding-block: 2px 5px; }
.poster-link, .poster-frame { transform-origin: 50% 100%; transition: transform 230ms var(--ease); }
.poster-frame { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.poster-frame path { stroke-linejoin: round; stroke-linecap: square; }
.frame-base { stroke: #dedad0; stroke-width: 1; opacity: .27; }
.frame-guide { stroke: #dedad0; stroke-width: 1; opacity: .30; }
.frame-inset { stroke: var(--frame-color); stroke-width: 1; opacity: .42; }
.frame-accent { stroke: var(--frame-color); stroke-width: 1.15; opacity: .54; }
.frame-trace { stroke: var(--frame-color); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.is-selected .frame-base { opacity: .44; }
.is-selected .frame-guide { opacity: .72; }
.is-selected .frame-inset, .is-selected .frame-accent { opacity: .94; }
.is-selected .frame-trace { opacity: .82; stroke-dashoffset: 0; animation: trace-poster 560ms var(--ease) both; }
.is-selected .poster-frame { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--frame-color) 27%, transparent)); }
.overview.is-arriving .poster { animation: poster-arrive 390ms calc(var(--poster-order, 0) * 49ms) var(--ease) both; }
.poster:nth-child(2) { --poster-order: 1; }
.poster:nth-child(3) { --poster-order: 2; }
.poster:nth-child(4) { --poster-order: 3; }
.poster:nth-child(5) { --poster-order: 4; }
.overview.is-arriving .overview-atmosphere i { animation: atmosphere-enter 760ms var(--ease) both; }
.overview-foot::before { content: ""; position: absolute; top: -1px; left: 0; width: min(180px, 32%); height: 1px; background: linear-gradient(90deg, var(--overview-accent), transparent); }
.overview-action { min-height: 32px; display: flex; align-items: center; gap: clamp(9px, 1.45vw, 21px); }
.overview-action button { border: 0; padding: 7px 0; background: none; font-size: 13px; }
.overview-action button span { color: var(--overview-accent); padding-left: 12px; }
#selection-series span { padding-left: 0; margin-right: 6px; font-size: .78em; }
.overview-action button:hover { color: var(--overview-accent); }
@keyframes trace-poster { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes poster-arrive { from { opacity: .1; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes atmosphere-enter { from { opacity: 0; translate: 11% 7px; } }

.cinema { width: min(1140px, calc(100% - 30px), calc((100dvh - 125px) * 16 / 9)); max-width: none; max-height: calc(100dvh - 20px); padding: 0; border: 1px solid var(--line); background: #101113; color: var(--ink); overflow: auto; }
.cinema::backdrop { background: #08090aed; }
.cinema[open] { animation: cinema-in 240ms var(--ease) both; }
.cinema-head { min-height: 49px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-inline: 14px; }
.cinema-head h2 { font-size: 14px; font-weight: 600; }
.cinema-slot { padding: 0 10px 10px; }
.cinema .film-frame { margin: 0; }
.cinema[data-film-format="portrait"] { width: min(calc(100% - 16px), calc((100dvh - 88px) * 9 / 16)); }
.cinema[data-film-format="portrait"] .film-frame { aspect-ratio: 9/16; }

.route-screen {
  position: fixed;
  z-index: 6;
  inset: var(--route-top, 0px) 0 0;
  overflow: hidden;
  --route-color: #f3c550;
}
.route-screen[data-theme="ferrari"] { --route-color: #f35a55; }
.route-panel {
  position: absolute;
  inset: -12% calc(-1 * var(--route-overhang, 18vw));
  border-inline: 2px solid var(--route-color);
  background: url("media/archive-grain.webp"), linear-gradient(110deg, #101113 15%, #242426 50%, #101113 85%);
  box-shadow: inset 12px 0 32px -19px var(--route-color), inset -12px 0 32px -19px var(--route-color);
}
.route-panel::after {
  position: absolute;
  inset: 0 6px;
  content: "";
  border-inline: 1px solid color-mix(in srgb, var(--route-color) 42%, transparent);
}
@keyframes cinema-in { from { opacity: .35; scale: .96; } to { opacity: 1; scale: 1; } }

@media (max-width: 720px) {
  .header-inner { min-height: 55px; gap: 10px; }
  .wordmark { font-size: 27px; }
  .header-tools { justify-content: flex-end; gap: 0 clamp(6px, 2.6vw, 13px); flex-wrap: wrap; }
  .overview h1 { font-size: clamp(34px, 9.3vw, 60px); }
  .cinema { width: min(calc(100% - 16px), calc((100dvh - 92px) * 16 / 9)); }
  .cinema-slot { padding: 0 5px 5px; }
}

@media (max-width: 860px) {
  .overview-stage { padding: 12px clamp(9px, 2.4vw, 16px); }
  .overview-lower { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .home-experience { padding: 10px 0 0; border-inline-start: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .overview { padding-block: 8px; }
  .overview-stage { padding-block: 8px; }
  .overview-lower { gap: 9px; }
  .poster-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
  .poster { grid-column: span 2; height: clamp(98px, 29.5vw, 155px); }
  .poster:nth-child(4) { grid-column: 2 / span 2; }
  .poster:nth-child(5) { grid-column: 4 / span 2; }
  .poster-name { gap: 2px; left: 12%; right: 15%; }
  .poster-name strong { font-size: 10px; }
  .poster-name small { font-size: 9px; }
}

@media (max-width: 410px) {
  .shell { --edge: 16px; }
  .motion-toggle, .back-link { font-size: 11px; }
}

body[data-motion="off"] *, body[data-motion="off"] *::before, body[data-motion="off"] *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

