:root {
  color-scheme: dark;
  --bg: #08090b;
  --panel: #101216;
  --panel-2: #17191f;
  --text: #f6f1e8;
  --muted: #b9b0a4;
  --soft: #79736c;
  --line: rgba(246, 241, 232, 0.14);
  --gold: #b88a4a;
  --gold-light: #e7c68f;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.has-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 820ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.has-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(184, 138, 74, 0.12), transparent 26rem),
    linear-gradient(180deg, #07080a 0%, #0c0d10 48%, #08090b 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.86), rgba(5, 6, 8, 0.28));
  backdrop-filter: blur(18px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.6vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1;
  margin: 0;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand a {
  color: inherit;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.9rem, 2vw, 2rem);
}

.nav a,
.site-footer a {
  position: relative;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav a:hover,
.nav a[aria-current="page"],
.site-footer a:hover {
  color: var(--text);
}

.nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -0.55rem;
  left: 0;
  height: 1px;
  background: var(--gold-light);
  content: "";
}

.home-hero,
.page-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.page-hero {
  min-height: 58svh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-bg::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 5, 7, 0.92), rgba(4, 5, 7, 0.58) 48%, rgba(4, 5, 7, 0.28)),
    linear-gradient(180deg, rgba(4, 5, 7, 0.1), rgba(4, 5, 7, 0.96));
  content: "";
}

.home-hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 21rem);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  width: min(100% - 2rem, var(--max));
  min-height: 100svh;
  margin: 0 auto;
  padding: 7rem 0 4rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.page-hero h1 {
  max-width: 11ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 11vw, 9.5rem);
  font-weight: 400;
  line-height: 0.86;
  text-transform: uppercase;
}

.roles {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 3.2vw, 2.85rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-rule {
  width: 150px;
  height: 1px;
  margin-top: 2rem;
  background: var(--gold-light);
  opacity: 0.72;
}

.portrait-frame {
  position: relative;
  margin: 0;
  box-shadow: var(--shadow);
}

.portrait-frame::before {
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  z-index: -1;
  border: 1px solid rgba(231, 198, 143, 0.42);
  content: "";
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
}

.page-hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100% - 2rem, var(--max));
  min-height: 58svh;
  margin: 0 auto;
  padding-top: 6rem;
}

.section {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-heading h2,
.language-block h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 5vw, 4.35rem);
  font-weight: 400;
  line-height: 1;
}

.section-heading p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
}

.cue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cue-category,
.embed-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(23, 25, 31, 0.9), rgba(12, 13, 16, 0.9));
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.24);
}

.cue-category {
  padding: 1.1rem;
}

.cue-category--wide {
  grid-column: span 2;
}

.cue-category h3 {
  margin: 0 0 1rem;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.cue-list {
  display: grid;
  gap: 0.85rem;
}

.cue {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.cue span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cue audio {
  width: 100%;
  height: 38px;
  filter: sepia(0.2) saturate(0.8);
}

.prose-section {
  display: grid;
  gap: clamp(3rem, 7vw, 5rem);
  max-width: 900px;
}

.language-block {
  padding-bottom: clamp(3rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.language-block:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.language-block p:not(.section-kicker) {
  color: #ddd5ca;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.85;
}

.language-block--jp p:not(.section-kicker) {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  line-height: 2;
}

.credits-figure {
  margin: 0 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.credits-figure img {
  width: 100%;
  object-fit: cover;
}

.embed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.embed-card {
  overflow: hidden;
}

.embed-card iframe {
  display: block;
  border: 0;
}

.embed-card p {
  margin: 0;
  padding: 0.8rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.embed-card a {
  color: var(--gold-light);
  text-decoration: none;
}

.video-heading,
.gallery-heading {
  margin-top: clamp(4rem, 8vw, 6rem);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.video-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.studio-grid figure {
  position: relative;
  min-height: 18rem;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.studio-grid .studio-feature {
  grid-column: span 2;
  grid-row: span 2;
}

.studio-grid img,
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 420ms ease, filter 420ms ease;
}

.studio-grid figure:hover img,
.gallery-grid img:hover {
  filter: brightness(1.08);
  transform: scale(1.025);
}

.studio-grid figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1.6rem 1rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(3, 4, 6, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__frame {
  position: relative;
  max-width: min(100%, 1100px);
  max-height: 84svh;
}

.lightbox img {
  max-width: min(100%, 1100px);
  max-height: 84svh;
  border: 1px solid rgba(231, 198, 143, 0.24);
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: contain;
}

.lightbox__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: min(90%, 34rem);
  margin: 0;
  padding: 1.4rem 1rem 0.9rem 2rem;
  background: linear-gradient(135deg, transparent, rgba(0, 0, 0, 0.82) 38%);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-align: right;
  text-transform: uppercase;
}

.lightbox__button {
  position: fixed;
  z-index: 101;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(231, 198, 143, 0.34);
  border-radius: 50%;
  background: rgba(8, 9, 11, 0.64);
  color: var(--gold-light);
  cursor: pointer;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
}

.lightbox__button:hover,
.lightbox__button:focus-visible {
  background: rgba(184, 138, 74, 0.18);
  outline: 0;
}

.lightbox__button--close {
  top: 1.25rem;
  right: 1.25rem;
}

.lightbox__button--prev,
.lightbox__button--next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__button--prev {
  left: 1.25rem;
}

.lightbox__button--next {
  right: 1.25rem;
}

.lightbox-open {
  overflow: hidden;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--soft);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

@media (max-width: 920px) {
  .site-header,
  .site-footer,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .home-hero__content {
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: 8rem;
  }

  .portrait-frame {
    width: min(24rem, 82vw);
  }

  .cue-grid,
  .embed-grid,
  .video-grid,
  .studio-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cue-category--wide,
  .studio-grid .studio-feature {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 0.9rem 1rem;
  }

  .brand {
    font-size: 0.9rem;
  }

  .nav {
    gap: 0.7rem;
  }

  .nav a {
    font-size: 0.67rem;
    letter-spacing: 0.1em;
  }

  .page-hero h1 {
    font-size: clamp(3.2rem, 18vw, 5.8rem);
  }

  .roles {
    font-size: clamp(1.2rem, 7vw, 2.4rem);
  }

  .lightbox {
    padding: 4.5rem 1rem 5.5rem;
  }

  .lightbox__button {
    width: 2.65rem;
    height: 2.65rem;
  }

  .lightbox__button--prev,
  .lightbox__button--next {
    top: auto;
    bottom: 1.25rem;
    transform: none;
  }

  .lightbox__caption {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .cue-grid,
  .embed-grid,
  .video-grid,
  .studio-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .cue-category--wide,
  .studio-grid .studio-feature {
    grid-column: auto;
  }

  .studio-grid figure {
    min-height: 16rem;
  }

  .page-hero,
  .page-hero__inner {
    min-height: 48svh;
  }
}
