/* Mangata Shore Studio — Nocturnal Seascape & Editorial Gallery Stylesheet */

/* ==========================================================================
   Self-Hosted SIL OFL 1.1 Editorial Typefaces
   - Cormorant Garamond (CatharsisFonts / Google Fonts, SIL OFL 1.1)
   - LXGW WenKai / 霞鹜文楷 (lxgw/LxgwWenKai, SIL OFL 1.1, subsetted WOFF2)
   ========================================================================== */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("./assets/fonts/cormorant-garamond-300.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/cormorant-garamond-400.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/cormorant-garamond-500.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/cormorant-garamond-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "LXGW WenKai";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/lxgw-wenkai-subset.woff2") format("woff2");
}

/* ==========================================================================
   Registered Custom Properties (Interactive Spotlight & Orbital Border Beam)
   ========================================================================== */
@property --spot-inner {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 0px;
}

@property --spot-outer {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 0px;
}

@property --beam-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  interpolate-size: allow-keywords;
  color-scheme: dark;

  /* Perceptual Color Space Tokens (fallback empty for pre-2024 browsers) */
  --in-oklab: ;
  --in-oklch: ;

  /* Midnight-Sea Studio Palette */
  --sea-abyss: #03060d;
  --sea-deep: #060b16;
  --sea-mid: #0b1324;
  --sea-surface: rgba(8, 13, 25, 0.56);
  --sea-surface-solid: #0a101e;
  --sea-elevated: #121c31;

  /* Moonlight, Pearl & Lacquer Accents */
  --moon-bright: #f4f3ee;
  --moon-soft: #bcc6d6;
  --moon-muted: #7c899f;
  --lunar-gold: #d9c290;
  --lunar-gold-bright: #f2e2bc;
  --lunar-hairline: rgba(217, 194, 144, 0.17);
  --lunar-hairline-strong: rgba(242, 226, 188, 0.46);
  --lantern-crimson: #942920;
  --lantern-crimson-hi: #b5352a;
  --lantern-ink: #faf3e6;

  /* Editorial Geometry & Motion */
  --radius-sharp: 2px;
  --radius-sm: 4px;
  --max-width: 1180px;
  --header-height: 76px;

  /* Physics-based subtle spring settle (paired with cubic-bezier fallback) */
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-lunar-spring: linear(
    0, 0.011 1.2%, 0.044 2.5%, 0.171 5.4%, 0.654 15.2%,
    0.882 22.1%, 0.985 28.4%, 1.021 34.1%, 1.024 39.2%,
    1.012 48.5%, 1.001 64%, 1
  );

  --shadow-stage: 0 36px 96px rgba(1, 3, 9, 0.78), 0 8px 28px rgba(1, 3, 9, 0.48);
  --shadow-dialog: 0 38px 100px rgba(1, 3, 8, 0.92);

  /* Typography Stacks */
  --font-display: "Cormorant Garamond", "LXGW WenKai", "Songti SC", "Noto Serif SC", Georgia, serif;
  --font-poetic: "LXGW WenKai", "Cormorant Garamond", "Songti SC", "Noto Serif SC", Georgia, serif;
  --font-sans: "PingFang SC", "Microsoft YaHei UI", "Hiragino Sans GB", "Segoe UI", system-ui, -apple-system, sans-serif;
}

@supports (background: linear-gradient(in oklab, white, black)) {
  :root {
    --in-oklab: in oklab;
    --in-oklch: in oklch;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
  background-color: var(--sea-abyss);
  color: var(--moon-bright);
  font-size: 16px;
  overflow-x: clip;
}

/* When Lenis drives smooth inertia scroll, prevent double native smoothing */
html.lenis,
html.lenis body {
  height: auto;
}

html.lenis {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

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

:target {
  scroll-margin-top: calc(var(--header-height) + 22px);
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  line-height: 1.85;
  background-color: var(--sea-abyss);
  color: var(--moon-bright);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body[data-page="support"],
body[data-page="privacy"],
body[data-page="notfound"] {
  background-image:
    radial-gradient(ellipse 68% 36% at 50% 0%, rgba(160, 186, 224, 0.11), transparent 64%),
    linear-gradient(to bottom var(--in-oklab), #081021 0%, #050914 48%, #03060d 100%);
}

body[data-page="notfound"] {
  display: flex;
  flex-direction: column;
}

body[data-page="notfound"] main {
  flex: 1;
  display: flex;
  align-items: center;
}

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

a {
  color: var(--lunar-gold-bright);
  text-decoration: none;
  transition: color 0.24s ease;
}

a:hover {
  color: var(--moon-bright);
}

:focus-visible {
  outline: 1.5px solid var(--lunar-gold-bright);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lunar-gold);
  color: #080d18;
  padding: 10px 18px;
  font-weight: 600;
  z-index: 220;
}

.skip-link:focus {
  left: 16px;
  top: 14px;
}

.container {
  width: min(var(--max-width), calc(100% - 56px));
  margin-inline: auto;
}

/* ==========================================================================
   Persistent WebGL Nocturnal Seascape Stage + Cinema Film Grain + Scroll Thread
   ========================================================================== */
.shore-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse 64% 48% at 50% 34%, #0f1e38 0%, #060c19 56%, #03060d 100%);
}

#mangataCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Soft optical depth-of-field veil as user crosses from open sea into shore chapters.
   Intentionally translucent in the center so the GPU's transformed vertical moonpath breathes through. */
.shore-veil {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(ellipse 40% 72% at 50% 50%, rgba(4, 7, 15, 0.36) 0%, rgba(3, 6, 13, 0.72) 66%, rgba(3, 6, 13, 0.88) 100%),
    linear-gradient(to bottom var(--in-oklab), rgba(3, 6, 13, 0.42) 0%, rgba(3, 6, 13, 0.62) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  will-change: opacity;
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes veil-soften {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .shore-veil {
      animation: veil-soften auto linear both;
      animation-timeline: scroll(block root);
      animation-range: 120px 760px;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .shore-veil {
    opacity: 0;
  }
  .shore-content-flow {
    background: linear-gradient(to bottom var(--in-oklab), rgba(3, 6, 13, 0) 0%, rgba(3, 6, 13, 0.86) 8%, rgba(3, 6, 13, 0.94) 100%);
  }
}

/* Subtle cinema stock grain texture (inspired by MagicUI noise-texture) */
.film-grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  isolation: isolate;
  opacity: 0.036;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* Hairline moonlight reading progress filament along top viewport edge */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  z-index: 120;
  pointer-events: none;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(to right var(--in-oklab), rgba(217, 194, 144, 0.25), var(--lunar-gold-bright) 85%, #ffffff);
  box-shadow: 0 0 12px rgba(242, 226, 188, 0.45);
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes grow-progress {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }

    .scroll-progress {
      animation: grow-progress auto linear both;
      animation-timeline: scroll(block root);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    display: none;
  }
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Borderless Floating Studio Header (Seamless over Night Sky -> Soft Glass)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.45s var(--ease-editorial), border-color 0.45s var(--ease-editorial), backdrop-filter 0.45s var(--ease-editorial);
}

.site-header.is-scrolled,
body[data-page="support"] .site-header,
body[data-page="privacy"] .site-header,
body[data-page="notfound"] .site-header {
  background: rgba(5, 9, 19, 0.72);
  border-bottom-color: rgba(217, 194, 144, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body[data-page="support"] .site-header,
body[data-page="privacy"] .site-header,
body[data-page="notfound"] .site-header {
  position: sticky;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--moon-bright);
  flex-shrink: 0;
}

.brand-crest {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(242, 226, 188, 0.22));
  transition: filter 0.45s var(--ease-editorial), opacity 0.35s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .brand:hover .brand-crest {
    filter: drop-shadow(0 0 14px rgba(242, 226, 188, 0.56));
  }
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--moon-bright);
  font-size-adjust: from-font;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-inline-start: auto;
}

.site-nav a {
  position: relative;
  color: rgba(226, 232, 242, 0.78);
  font-family: var(--font-poetic);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.28s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--lunar-gold-bright);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease-editorial);
}

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

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Minimalist typographic language toggle (zero boxy oval pill) */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-inline-start: 10px;
}

.lang-sep {
  color: rgba(217, 194, 144, 0.35);
  font-family: var(--font-display);
  font-size: 0.85rem;
  user-select: none;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(188, 198, 214, 0.6);
  font-family: var(--font-poetic);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  padding: 4px 2px;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.22s ease, border-color 0.22s ease;
}

.lang-btn:hover {
  color: var(--moon-bright);
}

.lang-btn[aria-pressed="true"] {
  color: var(--lunar-gold-bright);
  border-bottom-color: rgba(242, 226, 188, 0.65);
}

/* ==========================================================================
   Opening Scene: Full-Viewport Nocturnal Seascape (Editorial Framing)
   ========================================================================== */
.shore-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  padding: calc(var(--header-height) + 16.5vh) 28px 24px;
  text-align: center;
}

.shore-hero-inner {
  width: 100%;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: start;
  padding-top: clamp(12px, 2.5vh, 28px);
}

.shore-kicker {
  margin: 0 0 12px;
  font-family: var(--font-poetic);
  font-size: 0.78rem;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  text-transform: uppercase;
  color: rgba(242, 226, 188, 0.84);
  text-shadow: 0 2px 16px rgba(3, 6, 13, 0.94);
}

.shore-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.15vw, 3.85rem);
  font-weight: 300;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  line-height: 1.12;
  white-space: nowrap;
  font-size-adjust: from-font;
  color: var(--moon-bright);
  background: linear-gradient(
    to bottom var(--in-oklab),
    #ffffff 0%,
    #f6efe0 54%,
    #d7c193 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 32px rgba(3, 6, 13, 0.96)) drop-shadow(0 0 36px rgba(242, 226, 188, 0.16));
}

.shore-ornament {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  color: rgba(242, 226, 188, 0.72);
}

.orn-rule {
  width: 44px;
  height: 1px;
  background: linear-gradient(to right var(--in-oklab), transparent, rgba(242, 226, 188, 0.52));
}

.orn-rule:last-child {
  background: linear-gradient(to left var(--in-oklab), transparent, rgba(242, 226, 188, 0.52));
}

.shore-verse {
  margin: 0;
  font-family: var(--font-poetic);
  font-size: clamp(1.06rem, 1.55vw, 1.26rem);
  line-height: 1.95;
  letter-spacing: 0.14em;
  color: rgba(244, 243, 238, 0.94);
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(3, 6, 13, 0.96), 0 0 28px rgba(3, 6, 13, 0.78);
}

.shore-verse-sub {
  display: block;
  margin-top: 3px;
  font-size: 0.9em;
  letter-spacing: 0.12em;
  color: rgba(214, 223, 236, 0.82);
}

html[lang="en"] .shore-verse {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.18rem, 1.75vw, 1.44rem);
  letter-spacing: 0.04em;
  line-height: 1.68;
}

html[lang="en"] .shore-verse-sub {
  letter-spacing: 0.03em;
}

.shore-hero-foot {
  align-self: end;
  padding-bottom: 2px;
}

.shore-enter {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(242, 226, 188, 0.82);
  font-family: var(--font-poetic);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  padding: 6px 14px;
  text-shadow: 0 2px 14px rgba(3, 6, 13, 0.98);
  transition: color 0.3s ease, opacity 0.3s ease;
}

.shore-enter:hover {
  color: #ffffff;
}

.shore-enter-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom var(--in-oklab), rgba(242, 226, 188, 0.85), transparent);
}

/* Whisper-quiet borderless motion control (WCAG 2.2.2) */
.motion-toggle {
  position: absolute;
  right: 28px;
  bottom: 24px;
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(217, 194, 144, 0.24);
  color: rgba(188, 198, 214, 0.56);
  padding: 4px 2px;
  font-family: var(--font-poetic);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.motion-toggle:hover {
  color: var(--lunar-gold-bright);
  border-bottom-color: var(--lunar-gold-bright);
}

@media (prefers-reduced-motion: no-preference) {
  .shore-hero-inner > * {
    animation: hero-blur-settle 1.15s var(--ease-editorial) both;
  }
  .shore-kicker { animation-delay: 0.08s; }
  .shore-title { animation-delay: 0.2s; }
  .shore-ornament { animation-delay: 0.34s; }
  .shore-verse { animation-delay: 0.44s; }

  @keyframes hero-blur-settle {
    from {
      opacity: 0;
      filter: blur(8px);
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      filter: blur(0);
      transform: translateY(0);
    }
  }

  .shore-enter-line {
    animation: breath-filament 3.6s ease-in-out infinite;
    transform-origin: top center;
  }

  @keyframes breath-filament {
    0%, 100% {
      opacity: 0.36;
      transform: scaleY(0.75);
    }
    50% {
      opacity: 1;
      transform: scaleY(1);
    }
  }
}

/* ==========================================================================
   Editorial Blur-Fade Entrance (Inspired by MagicUI blur-fade & Codrops)
   Always visible by default if JS fails or reduced motion is enabled.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html.has-reveal-ready .blur-reveal {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(18px);
    transition:
      opacity 0.72s var(--ease-editorial) var(--reveal-delay, 0s),
      filter 0.72s var(--ease-editorial) var(--reveal-delay, 0s),
      transform 0.78s var(--ease-editorial) var(--reveal-delay, 0s);
  }

  html.has-reveal-ready .blur-reveal.is-revealed {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* ==========================================================================
   Shared Editorial Folio Tag & Interactive Lunar Spotlight Surface
   ========================================================================== */
.folio-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-family: var(--font-poetic);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lunar-gold);
}

.folio-num {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--lunar-gold-bright);
}

.folio-dash {
  width: 28px;
  height: 1px;
  background: rgba(217, 194, 144, 0.45);
}

.folio-center {
  justify-content: center;
}

/* Pointer-Tracking Lunar Spotlight (modern-web-guidance: interactive-content-reveal)
   Purely decorative sheen; underlying content remains 100% legible without pointer. */
.spotlight-surface {
  position: relative;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.spotlight-surface:hover {
  --spot-inner: 90px;
  --spot-outer: 260px;
}

.spotlight-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border: 1px solid rgba(242, 226, 188, 0.52);
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(242, 226, 188, 0.11),
    transparent 70%
  );
  transition: --spot-inner 0.28s ease-out, --spot-outer 0.28s ease-out;
  -webkit-mask-image: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    black var(--spot-inner, 0%),
    transparent var(--spot-outer, 0%)
  );
  mask-image: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    black var(--spot-inner, 0%),
    transparent var(--spot-outer, 0%)
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  .spotlight-layer {
    transition: none !important;
  }
}

/* ==========================================================================
   Chapter I: The Studio — Asymmetric Literary Spread
   ========================================================================== */
.shore-content-flow {
  position: relative;
}

.chapter {
  padding: 132px 0;
}

.chapter-shore {
  padding-top: 168px;
  padding-bottom: 148px;
}

.editorial-spread {
  display: grid;
  grid-template-columns: minmax(0, 4.7fr) minmax(0, 7.3fr);
  gap: 56px 68px;
  align-items: start;
}

.editorial-heading {
  margin: 0 0 28px;
  font-family: var(--font-poetic);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 400;
  line-height: 1.38;
  letter-spacing: 0.1em;
  color: var(--moon-bright);
  font-size-adjust: from-font;
}

.editorial-heading span {
  display: block;
}

html[lang="en"] .editorial-heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 3.9vw, 3.35rem);
  letter-spacing: 0.03em;
  line-height: 1.18;
}

.editorial-colophon {
  margin: 0;
  max-width: 360px;
  font-family: var(--font-poetic);
  font-size: 0.94rem;
  line-height: 1.95;
  letter-spacing: 0.06em;
  color: var(--moon-muted);
}

.editorial-poem-wrap {
  padding-top: 52px;
  padding-inline-start: 42px;
  border-inline-start: 1px solid rgba(217, 194, 144, 0.24);
  position: relative;
}

.editorial-poem-wrap::before {
  content: "";
  position: absolute;
  inset-inline-start: -1px;
  top: 0;
  width: 1px;
  height: 54px;
  background: linear-gradient(to bottom var(--in-oklab), var(--lunar-gold-bright), transparent);
}

.studio-poem {
  margin: 0;
  font-family: var(--font-poetic);
  font-size: clamp(1.14rem, 1.75vw, 1.4rem);
  line-height: 2.38;
  letter-spacing: 0.09em;
  color: rgba(242, 241, 236, 0.92);
}

.studio-poem .poem-line {
  display: block;
}

html[lang="en"] .studio-poem {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.22rem, 1.8vw, 1.52rem);
  line-height: 1.92;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Chapter II: Debut Work — Architectural Gallery Showcase
   ========================================================================== */
.chapter-work {
  padding-top: 104px;
  padding-bottom: 132px;
}

.chapter-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--lunar-hairline);
}

.chapter-header-row .folio-tag {
  margin-bottom: 0;
}

.folio-status {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--lunar-gold);
}

.work-monolith {
  position: relative;
}

.work-stage-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-sharp);
  border: 1px solid rgba(217, 194, 144, 0.26);
  background: #0b0806;
  box-shadow: var(--shadow-stage);
  view-timeline: --work-stage;
}

/* Whisper-thin orbiting moonlight border beam (inspired by MagicUI border-beam) */
.border-beam {
  position: absolute;
  inset: -1px;
  z-index: 5;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0deg,
    transparent 292deg,
    rgba(217, 194, 144, 0.32) 326deg,
    rgba(255, 246, 224, 0.92) 348deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.65;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes orbit-beam {
    to { --beam-angle: 360deg; }
  }

  .border-beam {
    animation: orbit-beam 13s linear infinite;
  }
}

.work-stage-parallax {
  position: absolute;
  inset: -7% 0;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes work-art-parallax {
      from { transform: translateY(-4.5%); }
      to { transform: translateY(4.5%); }
    }

    .work-stage-parallax {
      animation: work-art-parallax linear both;
      animation-timeline: --work-stage;
      animation-range: entry 0% exit 100%;
    }
  }
}

.work-frame-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: saturate(1.03) brightness(0.9);
}

.work-frame-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 46% 64% at 50% 50%, rgba(10, 8, 6, 0.62) 0%, rgba(10, 8, 6, 0.2) 68%, rgba(4, 7, 14, 0.58) 100%),
    linear-gradient(to bottom var(--in-oklab), rgba(4, 7, 14, 0.26) 0%, rgba(10, 8, 6, 0.08) 44%, rgba(6, 7, 12, 0.84) 100%);
}

.work-frame-logo {
  position: relative;
  z-index: 3;
  width: min(460px, 74vw);
  height: auto;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.88));
  transition: transform 0.65s var(--ease-editorial);
}

@media (prefers-reduced-motion: no-preference) {
  .work-stage-wrap:hover .work-frame-logo {
    transform: scale(1.022);
  }
}

/* Open Asymmetric Plaque beneath the Stage (No boxed SaaS card) */
.work-editorial-plaque {
  display: grid;
  grid-template-columns: minmax(0, 7fr) auto;
  gap: 28px 48px;
  align-items: end;
  padding: 36px 0 38px;
  border-bottom: 1px solid var(--lunar-hairline);
}

.work-essence {
  margin: 0;
  max-width: 680px;
  font-family: var(--font-poetic);
  font-size: clamp(1.04rem, 1.48vw, 1.2rem);
  line-height: 2.08;
  letter-spacing: 0.06em;
  color: rgba(242, 236, 224, 0.92);
}

html[lang="en"] .work-essence {
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1.72vw, 1.42rem);
  line-height: 1.72;
  letter-spacing: 0.02em;
}

.work-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

/* Refined Architectural Buttons */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 28px;
  border-radius: var(--radius-sharp);
  font-family: var(--font-poetic);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color 0.28s ease,
    border-color 0.28s ease,
    color 0.28s ease,
    box-shadow 0.28s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition:
      background-color 0.28s ease,
      border-color 0.28s ease,
      color 0.28s ease,
      box-shadow 0.28s ease,
      transform 0.55s var(--ease-editorial);
    transition-timing-function: ease, ease, ease, ease, var(--ease-lunar-spring);
  }
  .btn:hover {
    transform: translateY(-2px);
  }
  .btn:active {
    transform: translateY(0);
  }
}

.btn-lacquer {
  background: linear-gradient(to bottom var(--in-oklab), rgba(164, 46, 36, 0.95) 0%, rgba(122, 30, 23, 0.98) 100%);
  border-color: rgba(242, 226, 188, 0.44);
  color: var(--lantern-ink);
  box-shadow: 0 12px 30px rgba(122, 30, 23, 0.34);
}

.btn-lacquer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 246, 225, 0.18) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-editorial);
}

@media (prefers-reduced-motion: no-preference) {
  .btn-lacquer:hover::after {
    transform: translateX(120%);
  }
}

.btn-lacquer:hover {
  background: linear-gradient(to bottom var(--in-oklab), rgba(182, 54, 43, 0.98) 0%, rgba(138, 36, 28, 0.98) 100%);
  border-color: var(--lunar-gold-bright);
  color: #ffffff;
}

.btn-hairline {
  background: rgba(7, 12, 24, 0.42);
  border-color: rgba(217, 194, 144, 0.34);
  color: var(--moon-bright);
  backdrop-filter: blur(8px);
}

.btn-hairline:hover {
  background: rgba(217, 194, 144, 0.1);
  border-color: var(--lunar-gold-bright);
  color: var(--lunar-gold-bright);
}

.btn-lunar {
  background: rgba(217, 194, 144, 0.14);
  border-color: var(--lunar-hairline-strong);
  color: var(--lunar-gold-bright);
}

.btn-lunar:hover {
  background: rgba(217, 194, 144, 0.24);
  border-color: var(--lunar-gold-bright);
  color: #ffffff;
}

/* ==========================================================================
   Curated Exhibition — Anchor-Positioned Sliding Tab Underline + Lookbook Grids
   ========================================================================== */
.exhibition {
  margin-top: 84px;
}

.exhibition-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  border-bottom: 1px solid var(--lunar-hairline);
  margin-bottom: 42px;
}

.exhibition-tablist {
  position: relative;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: inline proximity;
}

.exhibition-tablist::-webkit-scrollbar {
  display: none;
}

/* Anchor-positioned gliding tab indicator (modern-web-guidance: anchor-positioning-tab-underline)
   Uses border-block-end (NOT background/box-shadow) for Forced Colors safety. */
.exhibition-tablist::before {
  content: "";
  position: absolute;
  position-anchor: --active-tab;
  inset-block-start: calc(anchor(self-end) - 2px);
  inset-inline-start: anchor(self-start);
  inset-inline-end: anchor(self-end);
  border-block-end: 2px solid var(--lunar-gold-bright);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .exhibition-tablist::before {
    transition: inset 0.34s var(--ease-editorial);
    transition-timing-function: var(--ease-lunar-spring);
  }
}

.exhibition-tab {
  appearance: none;
  position: relative;
  flex: none;
  scroll-snap-align: start;
  border: 0;
  background: transparent;
  color: var(--moon-muted);
  font-family: var(--font-poetic);
  font-size: 1.04rem;
  letter-spacing: 0.14em;
  padding: 10px 6px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.24s ease;
}

.exhibition-tab:hover {
  color: var(--moon-bright);
}

.exhibition-tab:focus-visible {
  outline-offset: -3px;
}

.exhibition-tab[aria-selected="true"] {
  anchor-name: --active-tab;
  color: var(--lunar-gold-bright);
}

/* Mandatory fallback for browsers without CSS anchor positioning */
@supports not (position-anchor: --active-tab) {
  .exhibition-tablist::before {
    content: none;
  }

  .exhibition-tab[aria-selected="true"] {
    border-block-end: 2px solid var(--lunar-gold-bright);
  }
}

.exhibition-note {
  margin: 0 0 14px;
  font-family: var(--font-poetic);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--moon-muted);
}

.exhibition-panels {
  display: grid;
}

.exhibition-panel {
  grid-area: 1 / 1;
}

.exhibition-panel[hidden] {
  pointer-events: none;
}

/* Asymmetric 12-column Lookbook for In-Game Captures */
.lookbook-shots {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 44px 32px;
  align-items: start;
}

.plate-wide {
  grid-column: span 7;
}

.plate-narrow {
  grid-column: span 5;
}

.plate-offset {
  margin-top: 48px;
}

.plate-offset-up {
  margin-top: -16px;
}

/* Bilaterally Symmetric Curated Gongbi Silk Exhibition
   Upper Shelf: 5-column symmetric arch (Crimson · Jade · Obsidian Center · Jade · Crimson)
   Lower Shelf: 4-column mirror quartet (Cavalry · Fire Attack · Straw Boats · Archer) */
.art-curation {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.art-shelf {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.art-shelf-lower {
  padding-top: 8px;
}

.art-shelf-label {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 32px;
  font-family: var(--font-poetic);
  font-size: 0.84rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--lunar-gold);
}

.art-shelf-label::before,
.art-shelf-label::after {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(to right var(--in-oklab), transparent, rgba(217, 194, 144, 0.46));
}

.art-shelf-label::after {
  background: linear-gradient(to left var(--in-oklab), transparent, rgba(217, 194, 144, 0.46));
}

.lookbook-heroes {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 20px;
  padding-bottom: 18px;
}

.lookbook-heroes .hero-wing {
  transform: translateY(16px);
}

.lookbook-heroes .hero-inner {
  transform: translateY(7px);
}

.lookbook-heroes .hero-crown {
  transform: translateY(0);
}

.lookbook-tactics {
  width: min(980px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 22px;
  padding-bottom: 14px;
}

.lookbook-tactics .tactic-flank {
  transform: translateY(12px);
}

.lookbook-tactics .tactic-core {
  transform: translateY(0);
}

/* Architectural 3-Plate Warboard Triptych */
.lookbook-boards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

/* Frameless Gallery Plate + Museum Placard Typography Beneath */
.plate-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--moon-bright);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.plate-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-sharp);
  border: 1px solid rgba(217, 194, 144, 0.2);
  background: #070b15;
  box-shadow: 0 22px 54px rgba(1, 3, 9, 0.56);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.plate-frame-silk {
  padding: 6px;
  background: linear-gradient(to bottom var(--in-oklab), rgba(24, 21, 17, 0.92), rgba(11, 14, 22, 0.96));
}

.plate-card:hover .plate-frame {
  border-color: rgba(242, 226, 188, 0.56);
  box-shadow: 0 28px 66px rgba(1, 3, 9, 0.78);
}

.plate-media {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #080c17;
}

.plate-media-16x9 {
  aspect-ratio: 16 / 9;
}

.plate-media-4x5 {
  aspect-ratio: 4 / 5;
  background: #d8c7a3;
}

.plate-media-1x1 {
  aspect-ratio: 1 / 1;
}

.plate-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
  .plate-media img {
    transition: transform 0.75s var(--ease-editorial), filter 0.5s ease;
  }
  .plate-card:hover .plate-media img {
    transform: scale(1.04);
  }
}

.plate-placard {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 2px 4px;
}

.plate-left {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}

.plate-index {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-style: italic;
  letter-spacing: 0.08em;
  color: rgba(217, 194, 144, 0.65);
}

.plate-title {
  font-family: var(--font-poetic);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--moon-bright);
  transition: color 0.25s ease;
}

.plate-card:hover .plate-title {
  color: var(--lunar-gold-bright);
}

.plate-sub {
  font-family: var(--font-poetic);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--moon-muted);
  white-space: nowrap;
}

/* ==========================================================================
   Chapter III: Open Architectural Correspondence Horizon (No Boxed Modal Card)
   ========================================================================== */
.chapter-contact {
  padding-top: 72px;
  padding-bottom: 142px;
  text-align: center;
}

.contact-horizon {
  max-width: 820px;
  margin-inline: auto;
}

.horizon-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 64px;
  color: rgba(242, 226, 188, 0.64);
}

.horizon-rule .h-line {
  flex: 1;
  max-width: 260px;
  height: 1px;
  background: linear-gradient(to right var(--in-oklab), transparent, rgba(217, 194, 144, 0.35));
}

.horizon-rule .h-line:last-child {
  background: linear-gradient(to left var(--in-oklab), transparent, rgba(217, 194, 144, 0.35));
}

.contact-heading {
  margin: 0 0 18px;
  font-family: var(--font-poetic);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--moon-bright);
}

html[lang="en"] .contact-heading {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.04em;
}

.contact-desc {
  margin: 0 auto 38px;
  max-width: 560px;
  font-family: var(--font-poetic);
  color: var(--moon-soft);
  font-size: 0.98rem;
  letter-spacing: 0.05em;
}

.contact-mail-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 14px 20px;
}

.contact-mail {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.55rem, 3.3vw, 2.85rem);
  letter-spacing: 0.05em;
  color: var(--lunar-gold-bright);
  padding-bottom: 6px;
  font-size-adjust: from-font;
}

.contact-mail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right var(--in-oklab), transparent, var(--lunar-gold-bright), transparent);
  transform: scaleX(0.42);
  opacity: 0.6;
  transition: transform 0.55s var(--ease-editorial), opacity 0.4s ease;
}

.contact-mail:hover {
  color: #ffffff;
}

.contact-mail:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.mail-copy-ghost {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(217, 194, 144, 0.28);
  border-radius: var(--radius-sharp);
  color: var(--moon-muted);
  font-family: var(--font-poetic);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  padding: 6px 13px;
  cursor: pointer;
  transition: color 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.mail-copy-ghost:hover {
  color: var(--lunar-gold-bright);
  border-color: var(--lunar-gold-bright);
  background: rgba(217, 194, 144, 0.08);
}

.copy-feedback-center {
  margin: 12px 0 28px;
  min-height: 1.4em;
}

.contact-sublinks {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 22px;
  font-family: var(--font-poetic);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}

.sublink-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(217, 194, 144, 0.5);
}

/* ==========================================================================
   Inner Subpages (Support & Privacy — Unified Midnight-Sea Editorial Craft)
   ========================================================================== */
.page-hero {
  padding: 84px 0 48px;
  border-bottom: 1px solid var(--lunar-hairline);
}

.page-hero-inner {
  max-width: 840px;
  margin-inline: auto;
}

.page-hero h1 {
  font-family: var(--font-poetic);
  font-size: clamp(1.95rem, 3.2vw, 2.75rem);
  font-weight: 400;
  margin: 4px 0 16px;
  letter-spacing: 0.1em;
  text-wrap: balance;
}

html[lang="en"] .page-hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.03em;
}

.page-hero p {
  margin: 0;
  max-width: 680px;
  color: var(--moon-soft);
}

.doc-body {
  padding: 58px 0 98px;
}

.notfound-stage {
  width: 100%;
  padding: 96px 0 112px;
}

.notfound-inner {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.notfound-inner h1 {
  font-family: var(--font-poetic);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 400;
  margin: 14px 0 18px;
  letter-spacing: 0.1em;
  text-wrap: balance;
}

html[lang="en"] .notfound-inner h1 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.03em;
}

.notfound-inner p {
  margin: 0 auto 34px;
  max-width: 540px;
  color: var(--moon-soft);
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.doc-stack {
  display: grid;
  gap: 24px;
  max-width: 840px;
  margin-inline: auto;
}

.doc-panel {
  background: var(--sea-surface);
  border: 1px solid var(--lunar-hairline);
  border-radius: var(--radius-sharp);
  padding: 30px 34px;
  backdrop-filter: blur(10px);
}

.doc-panel h2 {
  font-family: var(--font-poetic);
  font-size: 1.24rem;
  font-weight: 400;
  margin: 0 0 12px;
  color: var(--lunar-gold-bright);
  letter-spacing: 0.08em;
}

.doc-panel p,
.doc-panel li {
  color: var(--moon-soft);
  font-size: 0.95rem;
}

.doc-panel ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.doc-panel li + li {
  margin-top: 8px;
}

.doc-section-title {
  font-family: var(--font-poetic);
  font-size: 1.38rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 8px 0 18px;
  color: var(--moon-bright);
}

.email-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.copy-feedback {
  font-family: var(--font-poetic);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--lunar-gold-bright);
  min-height: 1.2em;
}

/* Native <details> Accordion with Intrinsic-Size Smooth Disclosure */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--sea-surface);
  border: 1px solid var(--lunar-hairline);
  border-radius: var(--radius-sharp);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item[open] {
  border-color: var(--lunar-hairline-strong);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 24px;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--moon-bright);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--lunar-gold);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  background: rgba(217, 194, 144, 0.05);
}

@media (prefers-reduced-motion: no-preference) {
  .faq-item::details-content {
    block-size: 0;
    overflow: hidden;
    transition-property: block-size, content-visibility;
    transition-duration: 0.3s;
    transition-timing-function: var(--ease-editorial);
    transition-behavior: allow-discrete;
  }

  .faq-item[open]::details-content {
    block-size: auto;
  }
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--moon-soft);
  font-size: 0.94rem;
  border-top: 1px solid rgba(217, 194, 144, 0.12);
}

.faq-answer p {
  margin: 14px 0 0;
  line-height: 1.85;
}

.req-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.92rem;
}

.req-table th,
.req-table td {
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(217, 194, 144, 0.14);
}

.req-table th {
  color: var(--lunar-gold-bright);
  font-weight: 600;
  background: rgba(4, 7, 15, 0.52);
}

.req-table td {
  color: var(--moon-soft);
}

/* ==========================================================================
   Museum Darkroom Lightbox Modal (<dialog closedby="any"> + Top-Layer Motion)
   ========================================================================== */
dialog.lightbox {
  width: min(1180px, calc(100vw - 32px));
  max-width: 1180px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--lunar-hairline-strong);
  border-radius: var(--radius-sharp);
  background: #070b15;
  color: var(--moon-bright);
  box-shadow: var(--shadow-dialog);
  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.28s;
  transition-timing-function: var(--ease-editorial);
  transition-behavior: allow-discrete;
}

@media (prefers-reduced-motion: no-preference) {
  dialog.lightbox {
    transform: scale(0.965);
  }
}

dialog.lightbox[open]:where(:not([data-closing])) {
  opacity: 1;
}

@starting-style {
  dialog.lightbox[open]:where(:not([data-closing])) {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  dialog.lightbox[open]:where(:not([data-closing])) {
    transform: scale(1);
  }
  @starting-style {
    dialog.lightbox[open]:where(:not([data-closing])) {
      transform: scale(0.965);
    }
  }
}

dialog.lightbox:modal {
  overscroll-behavior: contain;
}

dialog.lightbox::backdrop {
  background-color: rgba(2, 4, 10, 0);
  backdrop-filter: blur(10px);
  overflow: hidden;
  overscroll-behavior: contain;
  transition-property: background-color, display, overlay;
  transition-duration: 0.28s;
  transition-timing-function: var(--ease-editorial);
  transition-behavior: allow-discrete;
}

dialog.lightbox[open]:where(:not([data-closing]))::backdrop {
  background-color: rgba(2, 4, 10, 0.9);
}

@starting-style {
  dialog.lightbox[open]:where(:not([data-closing]))::backdrop {
    background-color: rgba(2, 4, 10, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog.lightbox,
  dialog.lightbox::backdrop {
    transition-duration: 0.08s;
  }
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--lunar-hairline);
  background: #0a101e;
}

.lightbox-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
}

.lightbox-counter {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  color: var(--lunar-gold);
}

.lightbox-title {
  margin: 0;
  font-family: var(--font-poetic);
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--moon-bright);
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  appearance: none;
  border: 1px solid var(--lunar-hairline);
  background: rgba(6, 11, 22, 0.84);
  color: var(--moon-bright);
  min-width: 38px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sharp);
  font-family: var(--font-poetic);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  background: var(--sea-elevated);
  border-color: var(--lunar-gold-bright);
  color: var(--lunar-gold-bright);
}

.lightbox-stage {
  padding: 20px;
  display: grid;
  place-items: center;
  background: #03060d;
}

.lightbox-stage img {
  max-height: calc(100dvh - 156px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid rgba(217, 194, 144, 0.12);
  background: rgba(3, 6, 13, 0.92);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  color: var(--moon-muted);
  font-size: 0.84rem;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  color: var(--moon-soft);
}

.footer-links a:hover {
  color: var(--lunar-gold-bright);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 980px) {
  .editorial-spread {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .editorial-poem-wrap {
    padding-top: 0;
    padding-inline-start: 26px;
  }

  .work-stage-wrap {
    aspect-ratio: 16 / 9;
    min-height: 260px;
  }

  .work-editorial-plaque {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .work-actions {
    justify-content: flex-start;
  }

  .lookbook-shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 22px;
  }

  .plate-wide,
  .plate-narrow {
    grid-column: span 1;
  }

  .plate-offset,
  .plate-offset-up {
    margin-top: 0;
  }

  .lookbook-heroes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 0;
  }

  .lookbook-heroes .hero-wing,
  .lookbook-heroes .hero-inner,
  .lookbook-heroes .hero-crown,
  .lookbook-tactics .tactic-flank,
  .lookbook-tactics .tactic-core {
    transform: none;
  }

  .lookbook-tactics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 0;
  }

  .lookbook-boards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 36px);
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0 8px;
    gap: 8px 12px;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    margin-inline-start: 0;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(217, 194, 144, 0.12);
    padding-top: 8px;
  }

  .site-nav a {
    font-size: 0.84rem;
    padding: 4px 0 5px;
  }

  .shore-hero {
    padding-top: calc(114px + 14.5vh);
    padding-bottom: 24px;
  }

  .shore-hero-inner {
    padding-top: 12px;
  }

  .shore-title {
    white-space: normal;
    font-size: clamp(1.95rem, 8.6vw, 2.75rem);
    letter-spacing: 0.14em;
    text-indent: 0.14em;
  }

  .motion-toggle {
    right: 18px;
    bottom: 18px;
  }

  .chapter {
    padding: 84px 0;
  }

  .chapter-shore {
    padding-top: 96px;
  }

  .work-stage-wrap {
    aspect-ratio: 16 / 10;
    min-height: 210px;
  }

  .work-frame-logo {
    width: min(280px, 76%);
  }

  .lookbook-shots,
  .lookbook-boards {
    grid-template-columns: 1fr;
  }

  .art-curation {
    gap: 44px;
  }

  .lookbook-heroes,
  .lookbook-tactics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }

  /* Keep the 5th hero centered symmetrically on 2-column mobile */
  .lookbook-heroes .plate-silk:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 7px);
    margin-inline: auto;
  }

  .plate-placard {
    flex-direction: column;
    gap: 3px;
  }

  .contact-mail {
    font-size: clamp(1.2rem, 5.4vw, 1.75rem);
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .contact-mail-row {
    max-width: 100%;
  }

  .doc-panel {
    padding: 24px 20px;
  }

  .lightbox-bar {
    flex-wrap: wrap;
  }

  .req-table th,
  .req-table td {
    padding: 9px 8px;
    font-size: 0.85rem;
  }
}
