/* ============================================================
   UNWONTED STUDIOS — "Layered Light"
   Design language derived from the studio mark: translucent
   overlapping panes of cyan / pink / violet over ink, lit by a
   slow-drifting aurora. Type is Japanese-designed throughout so
   the Latin and the katakana speak with one voice.
   ============================================================ */

:root {
  /* Ink */
  --ink: #06060d;
  --ink-2: #0a0a14;
  --ink-3: #10101d;
  --ink-4: #161628;

  /* Brand light */
  --cyan: #4fd7f5;
  --cyan-deep: #1fa6c6;
  --pink: #ff4f8b;
  --pink-deep: #d92b67;
  --violet: #a97bff;
  --cream: #f6e6bd;

  /* Text */
  --text: #f3f1f8;
  --text-soft: rgba(243, 241, 248, 0.82);
  --muted: #918da8;

  /* Surfaces */
  --pane: rgba(255, 255, 255, 0.038);
  --pane-lift: rgba(255, 255, 255, 0.062);
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.055);

  /* Type */
  --font: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  --font-display: "Shippori Mincho B1", "Hiragino Mincho ProN", Georgia, serif;

  /* Legacy aliases — admin/admin.css still reads these */
  --bg: var(--ink);
  --bg-deep: var(--ink-2);
  --panel: var(--ink-3);
  --panel-lift: var(--ink-4);
  --magenta: var(--pink);
  --magenta-deep: var(--pink-deep);

  /* Metrics */
  --header-h: 4.75rem;
  --max: 78rem;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient aurora + grain, painted behind everything */
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 12% 8%, rgba(79, 215, 245, 0.16), transparent 62%),
    radial-gradient(42vmax 42vmax at 88% 22%, rgba(255, 79, 139, 0.15), transparent 64%),
    radial-gradient(46vmax 46vmax at 62% 96%, rgba(169, 123, 255, 0.14), transparent 66%);
  filter: blur(12px);
  animation: aurora 34s var(--ease-in-out) infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

@keyframes aurora {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(2vmax, -3vmax, 0) scale(1.08);
  }
  100% {
    transform: translate3d(-3vmax, 2vmax, 0) scale(1.03);
  }
}

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

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

::selection {
  background: var(--pink);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 200;
  padding: 0.7rem 1.2rem;
  background: var(--cyan);
  color: #04040a;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Shared layout ---------- */

.wrap {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(3.5rem, 7.5vw, 6.5rem);
}

.section--tight {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

/* Hairline that separates major bands */
.section--ruled::before {
  content: "";
  position: absolute;
  inset-inline: var(--gutter);
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}

/* ---------- Type primitives ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 1.9rem;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

.eyebrow--pink {
  color: var(--pink);
}

.lede {
  max-width: 46ch;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
}

a.text-link {
  color: var(--cyan);
  font-weight: 500;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color 0.25s var(--ease), background-size 0.35s var(--ease);
}

a.text-link:hover,
a.text-link:focus-visible {
  color: var(--pink);
  background-size: 0% 1px;
}

/* Vertical Japanese rail used as a section marker */
.rail {
  position: absolute;
  top: clamp(3rem, 7vw, 5.5rem);
  right: var(--gutter);
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.5em;
  color: rgba(255, 255, 255, 0.16);
  user-select: none;
  pointer-events: none;
}

/* ---------- Brand mark ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.logo__mark {
  position: relative;
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
}

.logo__mark i {
  position: absolute;
  display: block;
  border-radius: 0.18rem;
  mix-blend-mode: screen;
  transition: transform 0.5s var(--ease);
}

.logo__mark i:nth-child(1) {
  left: 0;
  bottom: 0;
  width: 1.35rem;
  height: 1.35rem;
  background: var(--cyan);
  opacity: 0.92;
}

.logo__mark i:nth-child(2) {
  right: 0.1rem;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--pink);
  opacity: 0.88;
}

.logo__mark i:nth-child(3) {
  right: 0;
  bottom: 0.15rem;
  width: 0.8rem;
  height: 0.8rem;
  background: var(--violet);
  opacity: 0.9;
}

.logo:hover .logo__mark i:nth-child(1) {
  transform: translate(-0.16rem, 0.16rem);
}

.logo:hover .logo__mark i:nth-child(2) {
  transform: translate(0.16rem, -0.16rem);
}

.logo:hover .logo__mark i:nth-child(3) {
  transform: translate(0.1rem, 0.14rem);
}

.logo__type {
  display: grid;
  gap: 0.15rem;
  line-height: 1;
}

.logo__name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo__jp {
  font-size: 0.53rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding: 0.7rem var(--gutter);
  background: rgba(6, 6, 13, 0.68);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.site-header.is-stuck {
  background: rgba(6, 6, 13, 0.93);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.1rem);
}

.nav a {
  position: relative;
  padding: 0.4rem 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 241, 248, 0.72);
  transition: color 0.3s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

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

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

.nav-toggle {
  display: none;
  position: relative;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.05rem;
  height: 1.5px;
  margin-top: -0.75px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform 0.35s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.2s linear;
}

.nav-toggle span::before {
  top: -0.36rem;
}

.nav-toggle span::after {
  top: 0.36rem;
}

.nav-toggle[aria-expanded="true"] span {
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::before {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-90deg);
}

/* ---------- Buttons ---------- */

.btn,
.btn-skew,
.btn-block {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.85rem 1.9rem;
  border: 1px solid transparent;
  color: #05050c;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(100deg, var(--cyan), #7ee6ff 55%, var(--cyan));
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn::after,
.btn-skew::after,
.btn-block::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, var(--pink), #ff86b0 55%, var(--pink));
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}

.btn:hover,
.btn:focus-visible,
.btn-skew:hover,
.btn-skew:focus-visible,
.btn-block:hover,
.btn-block:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(79, 215, 245, 0.22);
}

.btn:hover::after,
.btn:focus-visible::after,
.btn-skew:hover::after,
.btn-skew:focus-visible::after,
.btn-block:hover::after,
.btn-block:focus-visible::after {
  transform: translateY(0);
}

.btn--pink,
.btn-skew--magenta,
.btn-block {
  background: linear-gradient(100deg, var(--pink), #ff86b0 55%, var(--pink));
}

.btn--pink::after,
.btn-skew--magenta::after,
.btn-block::after {
  background: linear-gradient(100deg, var(--cyan), #7ee6ff 55%, var(--cyan));
}

.btn--pink:hover,
.btn--pink:focus-visible,
.btn-skew--magenta:hover,
.btn-skew--magenta:focus-visible,
.btn-block:hover,
.btn-block:focus-visible {
  box-shadow: 0 14px 34px rgba(255, 79, 139, 0.24);
}

/* Third storefront colour — completes the mark's cyan / pink / violet triad. */
.btn--violet {
  background: linear-gradient(100deg, var(--violet), #c8a6ff 55%, var(--violet));
}

.btn--violet::after {
  background: linear-gradient(100deg, var(--cyan), #7ee6ff 55%, var(--cyan));
}

.btn--violet:hover,
.btn--violet:focus-visible {
  box-shadow: 0 14px 34px rgba(169, 123, 255, 0.26);
}

.btn--ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

.btn--ghost::after {
  display: none;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--cyan);
  border-color: rgba(79, 215, 245, 0.55);
  background: rgba(79, 215, 245, 0.08);
  box-shadow: none;
}

/* ---------- Homepage stage (visual-novel scene) ---------- */

.stage {
  position: relative;
  min-height: min(46rem, calc(100svh - var(--header-h)));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.stage__bg {
  position: absolute;
  inset: -6% -4%;
  z-index: -3;
}

.stage__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transform: scale(1.06);
  animation: kenburns 28s var(--ease-in-out) infinite alternate;
}

@keyframes kenburns {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.16) translate3d(-1.5%, -2%, 0);
  }
}

.stage__veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(6, 6, 13, 0.7) 0%, rgba(6, 6, 13, 0.3) 32%, rgba(6, 6, 13, 0.97) 92%),
    linear-gradient(96deg, rgba(6, 6, 13, 0.94) 0%, rgba(6, 6, 13, 0.35) 55%, rgba(255, 79, 139, 0.14) 100%);
}

/* Fine vertical scan rule — reads as a screen, not a filter */
.stage__scan {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 4px);
}

.stage__inner {
  position: relative;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(6rem, 15vh, 10rem) var(--gutter) clamp(2.75rem, 6vh, 4.5rem);
  display: grid;
  gap: clamp(1.4rem, 3vh, 2.1rem);
  justify-items: start;
}

.stage__title {
  max-width: 15ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7.4vw, 6rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.stage__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.stage__title .line > span {
  display: block;
  transform: translateY(105%);
  animation: line-rise 1.05s var(--ease) forwards;
}

.stage__title .line:nth-child(1) > span {
  animation-delay: 0.15s;
}

.stage__title .line:nth-child(2) > span {
  animation-delay: 0.27s;
}

.stage__title .line:nth-child(3) > span {
  animation-delay: 0.39s;
}

.stage__title em {
  font-style: normal;
  background: linear-gradient(96deg, var(--cyan), var(--violet) 46%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes line-rise {
  to {
    transform: translateY(0);
  }
}

.stage .eyebrow,
.stage .choices,
.stage .vnbox {
  opacity: 0;
  animation: fade-up 0.9s var(--ease) forwards;
}

.stage .eyebrow {
  animation-delay: 0.05s;
}

.stage .vnbox {
  animation-delay: 0.62s;
}

.stage .choices {
  animation-delay: 0.85s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(1.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* The dialogue box — the signature element */
.vnbox {
  position: relative;
  width: min(100%, 46rem);
  padding: 1.6rem 1.75rem 1.6rem;
  background: linear-gradient(180deg, rgba(10, 10, 22, 0.76), rgba(6, 6, 13, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Corner ticks — the logo's stacked squares, abstracted */
.vnbox::before,
.vnbox::after {
  content: "";
  position: absolute;
  width: 0.85rem;
  height: 0.85rem;
  border: 1px solid var(--cyan);
}

.vnbox::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.vnbox::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
  border-color: var(--pink);
}

.vnbox__name {
  position: absolute;
  top: -0.9rem;
  left: 1.4rem;
  padding: 0.1rem 0.9rem;
  background: linear-gradient(96deg, var(--cyan), var(--violet));
  color: #05050c;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 1.75;
}

.vnbox__text {
  margin: 0;
  min-height: 5.4em;
  color: var(--text-soft);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.85;
}

.vnbox__caret {
  display: inline-block;
  width: 0.5rem;
  height: 1.05em;
  margin-left: 0.15rem;
  background: var(--cyan);
  vertical-align: text-bottom;
  animation: caret 1s steps(1) infinite;
}

.vnbox.is-done .vnbox__caret {
  display: none;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.vnbox__next {
  position: absolute;
  right: 1.35rem;
  bottom: 1rem;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.42rem 0.36rem 0 0.36rem;
  border-color: var(--pink) transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.vnbox.is-done .vnbox__next {
  opacity: 1;
  animation: nudge 1.4s var(--ease-in-out) infinite;
}

@keyframes nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(0.28rem);
  }
}

/* VN menu choices */
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1.5rem 0.8rem 1.15rem;
  background: rgba(10, 10, 22, 0.6);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  overflow: hidden;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}

.choice::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg, rgba(79, 215, 245, 0.16), rgba(255, 79, 139, 0.16));
  transform: translateX(-101%);
  transition: transform 0.45s var(--ease);
}

.choice > * {
  position: relative;
}

.choice__key {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  transition: color 0.35s var(--ease);
}

.choice:hover,
.choice:focus-visible {
  transform: translateX(4px);
  border-color: rgba(79, 215, 245, 0.5);
}

.choice:hover::before,
.choice:focus-visible::before {
  transform: translateX(0);
}

.choice:hover .choice__key {
  color: var(--pink);
}

/* Drifting petals — quiet, never busy */
.petals {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.petals i {
  position: absolute;
  top: -6vh;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 0.35rem 0.02rem 0.35rem 0.02rem;
  background: rgba(255, 79, 139, 0.55);
  opacity: 0;
  animation: petal-fall linear infinite;
}

.petals i:nth-child(1) {
  left: 8%;
  animation-duration: 17s;
  animation-delay: 0s;
  background: rgba(79, 215, 245, 0.5);
}

.petals i:nth-child(2) {
  left: 23%;
  animation-duration: 22s;
  animation-delay: 3.5s;
}

.petals i:nth-child(3) {
  left: 41%;
  animation-duration: 19s;
  animation-delay: 7s;
  background: rgba(169, 123, 255, 0.5);
}

.petals i:nth-child(4) {
  left: 58%;
  animation-duration: 25s;
  animation-delay: 1.8s;
}

.petals i:nth-child(5) {
  left: 74%;
  animation-duration: 20s;
  animation-delay: 9.5s;
  background: rgba(79, 215, 245, 0.45);
}

.petals i:nth-child(6) {
  left: 88%;
  animation-duration: 23s;
  animation-delay: 5.2s;
}

@keyframes petal-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  8% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(-7vw, 112vh, 0) rotate(420deg);
  }
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 2.2rem;
  display: none;
  align-items: center;
  gap: 0.8rem;
  writing-mode: vertical-rl;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 3.4rem;
  background: linear-gradient(180deg, var(--cyan), transparent);
  transform-origin: top;
  animation: cue 2.2s var(--ease-in-out) infinite;
}

.scroll-cue:hover {
  color: var(--text);
}

@keyframes cue {
  0%,
  100% {
    transform: scaleY(0.3);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ---------- Marquee ribbon ---------- */

.ribbon {
  position: relative;
  display: flex;
  overflow: hidden;
  padding-block: 1.05rem;
  border-block: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.018);
  user-select: none;
}

.ribbon__track {
  display: flex;
  flex-shrink: 0;
  gap: 3rem;
  padding-right: 3rem;
  animation: marquee 46s linear infinite;
}

.ribbon:hover .ribbon__track {
  animation-play-state: paused;
}

.ribbon span {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(243, 241, 248, 0.42);
  white-space: nowrap;
}

.ribbon span::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  background: var(--pink);
  transform: rotate(45deg);
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

/* ---------- Section headings ---------- */

.sec-head {
  display: grid;
  gap: 1.1rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.sec-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.sec-head__title {
  margin: 0;
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3.15rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.sec-head__title em {
  font-style: italic;
  color: var(--cyan);
}

/* ---------- Featured showcase ---------- */

.feature {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.feature__media {
  position: relative;
}

.feature__body {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

.feature__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.12;
}

.feature__jp {
  margin: -0.6rem 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  color: var(--muted);
}

.feature__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature__tags li {
  padding: 0.28rem 0.75rem;
  border: 1px solid var(--line);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.feature p {
  margin: 0;
  max-width: 48ch;
  color: var(--text-soft);
}

/* Video frame, restyled as a lit pane */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05050c;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 90px rgba(79, 215, 245, 0.12);
  transition: box-shadow 0.5s var(--ease);
}

.video-frame:hover::after {
  box-shadow: inset 0 0 90px rgba(255, 79, 139, 0.2);
}

.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
}

.video-frame:hover img {
  opacity: 0.75;
  transform: scale(1.03);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame.is-playing {
  background: #000;
}

.video-frame.is-playing::after {
  display: none;
}

.video-frame__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: inherit;
}

.video-frame__play span {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 50%;
  background: rgba(6, 6, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.video-frame__play span::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 0.3rem;
  border-style: solid;
  border-width: 0.62rem 0 0.62rem 1.05rem;
  border-color: transparent transparent transparent #fff;
}

/* Halo pulse on the play control */
.video-frame__play span::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(79, 215, 245, 0.6);
  animation: halo 2.6s var(--ease-in-out) infinite;
}

@keyframes halo {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.video-frame__play:hover span,
.video-frame__play:focus-visible span {
  background: rgba(79, 215, 245, 0.9);
  border-color: transparent;
  transform: scale(1.06);
}

.video-frame__play:hover span::before,
.video-frame__play:focus-visible span::before {
  border-left-color: #05050c;
}

/* ---------- Game grid ---------- */

.game-grid {
  display: grid;
  gap: clamp(1.1rem, 2vw, 1.6rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--pane);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
}

.game-card::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}

.game-card:hover,
.game-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--pane-lift);
}

.game-card:hover::after,
.game-card:focus-within::after {
  transform: scaleX(1);
}

.game-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: #0a0a14;
  overflow: hidden;
}

.game-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 6, 13, 0.85));
  opacity: 0.85;
  transition: opacity 0.5s var(--ease);
}

.game-card:hover .game-card__media::after {
  opacity: 0.6;
}

.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88);
  transition: transform 0.85s var(--ease), filter 0.6s var(--ease);
}

.game-card:hover .game-card__media img {
  transform: scale(1.07);
  filter: saturate(1.1);
}

.game-card__index {
  position: absolute;
  z-index: 1;
  top: 0.8rem;
  left: 0.95rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.72);
}

.game-card__body {
  position: relative;
  display: grid;
  gap: 0.7rem;
  align-content: start;
  justify-items: start;
  padding: 1.25rem 1.3rem 1.5rem;
  flex: 1;
}

.game-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.25;
}

.game-card__title a {
  transition: color 0.3s var(--ease);
}

.game-card__title a:hover,
.game-card__title a:focus-visible {
  color: var(--cyan);
}

/* Credit line for titles we published but did not develop */
.game-card__body .game-card__credit {
  margin: -0.5rem 0 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
}

.game-card__body .game-card__jp {
  margin: -0.5rem 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.game-card__body p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.72;
}

/* Arrow affordance (also emitted by the CMS blog renderer) */
.game-card__go {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  margin-top: 0.2rem;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.8rem;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.game-card__go:hover,
.game-card__go:focus-visible {
  background: var(--pink);
  border-color: var(--pink);
  color: #05050c;
  transform: translateX(3px);
}

/* ---------- Stat strip ---------- */

.stats {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.stat {
  padding: 1.75rem 1.5rem;
  background: var(--ink);
  transition: background 0.45s var(--ease);
}

.stat:hover {
  background: var(--ink-3);
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(96deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Platform cards ---------- */

.platforms {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.platform {
  position: relative;
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: 1.85rem 1.7rem;
  background: var(--pane);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}

.platform::before {
  content: "";
  position: absolute;
  right: -3rem;
  top: -3rem;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 215, 245, 0.28), transparent 68%);
  opacity: 0;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.platform:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
}

.platform:hover::before {
  opacity: 1;
  transform: scale(1.2);
}

.platform--pink::before {
  background: radial-gradient(circle, rgba(255, 79, 139, 0.28), transparent 68%);
}

.platform--violet::before {
  background: radial-gradient(circle, rgba(169, 123, 255, 0.3), transparent 68%);
}

.platform h3 {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.platform p {
  position: relative;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.platform__go {
  position: relative;
  margin-top: 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.platform--pink .platform__go {
  color: var(--pink);
}

.platform--violet .platform__go {
  color: var(--violet);
}

/* ---------- Inner page header ---------- */

.page-head {
  position: relative;
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(1.75rem, 4vw, 2.75rem);
  overflow: hidden;
}

.page-head__inner {
  position: relative;
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.page-head__jp {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--muted);
}

.page-head__lede {
  margin: 0;
  max-width: 52ch;
  color: var(--text-soft);
}

/* Ghost glyph behind inner page titles */
.page-head__ghost {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-46%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 19vw, 14rem);
  font-weight: 700;
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* ---------- Game detail pages ---------- */

.game-hero {
  position: relative;
  aspect-ratio: 21 / 9;
  background: #05050c;
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.game-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 6, 13, 0.12), rgba(6, 6, 13, 0.7));
}

.game-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}

.game-hero:hover img {
  transform: scale(1.06);
}

/* Overlay CTA on a game hero. It says where it goes - a play triangle here
   would promise a video and open a storefront instead. */
.game-hero__cta {
  position: absolute;
  z-index: 1;
  /* inset+auto margins centre without transform, so nothing that touches
     transform (hover, reveal, reduced-motion) can knock it off-centre */
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.9rem;
  background: rgba(6, 6, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    color 0.35s var(--ease), transform 0.35s var(--ease);
}

.game-hero__cta::after {
  content: "\2192";
  transition: transform 0.35s var(--ease);
}

.game-hero__cta:hover,
.game-hero__cta:focus-visible {
  background: var(--cyan);
  border-color: transparent;
  color: #05050c;
  transform: scale(1.03);
}

.game-hero__cta:hover::after,
.game-hero__cta:focus-visible::after {
  transform: translateX(0.25rem);
}

/* Section banner, rebuilt as a titled rule */
.banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: min(100%, var(--max));
  margin: clamp(3rem, 6vw, 4.5rem) auto clamp(1.5rem, 3vw, 2.25rem);
  padding-inline: var(--gutter);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.banner::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  background: var(--cyan);
  transform: rotate(45deg);
}

.banner::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.banner--magenta::before {
  background: var(--pink);
}

.story-block {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}

.story-block > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--ink-3);
  border: 1px solid var(--line-soft);
  transition: transform 0.7s var(--ease);
}

.story-block > img:hover {
  transform: translateY(-4px);
}

.story-block p {
  margin: 0 0 1.15rem;
  color: var(--text-soft);
}

.story-block p:first-child {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--text);
}

.dlc-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
}

.feature-label {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.feature-list {
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
}

.feature-list li {
  position: relative;
  margin-bottom: 0.45rem;
  padding-left: 1.35rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.38rem;
  height: 0.38rem;
  background: var(--pink);
  transform: rotate(45deg);
}

.shot-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, 1fr);
}

.shot-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--ink-3);
  border: 1px solid var(--line-soft);
  cursor: zoom-in;
  filter: saturate(0.9);
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease), border-color 0.5s var(--ease);
}

.shot-grid img:hover {
  transform: scale(1.02);
  filter: saturate(1.05);
  border-color: rgba(79, 215, 245, 0.45);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(4, 4, 9, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
  transform: scale(0.97);
  transition: transform 0.35s var(--ease);
}

.lightbox.is-open img {
  transform: scale(1);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(79, 215, 245, 0.16);
  border-color: rgba(79, 215, 245, 0.5);
}

.lightbox__close {
  top: clamp(0.9rem, 3vw, 1.75rem);
  right: clamp(0.9rem, 3vw, 1.75rem);
}

.lightbox__nav--prev {
  left: clamp(0.5rem, 2vw, 1.5rem);
  top: 50%;
  margin-top: -1.5rem;
}

.lightbox__nav--next {
  right: clamp(0.5rem, 2vw, 1.5rem);
  top: 50%;
  margin-top: -1.5rem;
}

.lightbox__count {
  position: absolute;
  bottom: clamp(0.9rem, 3vw, 1.75rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: var(--muted);
}

/* ---------- Panels, about, contact ---------- */

.panel {
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  background: var(--pane);
  border: 1px solid var(--line-soft);
}

.panel h2,
.panel h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.panel p {
  margin: 0 0 1.15rem;
  color: var(--text-soft);
}

.panel p:last-child {
  margin-bottom: 0;
}

.about-top {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.about-top img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border: 1px solid var(--line-soft);
}

.about-pair {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.about-pair img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  filter: saturate(0.9);
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.about-pair img:hover {
  transform: translateY(-4px);
  filter: saturate(1.08);
}

.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.contact-panel {
  max-width: 42rem;
}

.form {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.75rem;
}

.form h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.95rem 1.05rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: rgba(79, 215, 245, 0.6);
  background: rgba(79, 215, 245, 0.05);
}

.form textarea {
  min-height: 9rem;
  resize: vertical;
}

.contact-status {
  margin: 0;
  min-height: 1.4em;
  color: var(--cyan);
  font-size: 0.92rem;
}

.contact-status.is-error {
  color: var(--pink);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-info {
  display: grid;
  gap: 1.2rem;
  align-content: start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--pane);
  border: 1px solid var(--line-soft);
}

.contact-info dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.contact-info dd {
  margin: 0.3rem 0 0;
  color: var(--text-soft);
}

/* ---------- News / blog ---------- */

#blogFeed {
  display: grid;
  gap: clamp(1.1rem, 2vw, 1.6rem);
}

/* Feed cards show an excerpt; "Read the full post" always sits below it. */
.news-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.4rem;
  margin: 0;
}

.news-card__media {
  display: block;
}

.news-card__body h2 a {
  transition: color 0.3s var(--ease);
}

.news-card__body h2 a:hover,
.news-card__body h2 a:focus-visible {
  color: var(--cyan);
}

.news-card {
  display: grid;
  background: var(--pane);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
}

.news-card--post:hover {
  transform: none;
}

.news-card__media {
  aspect-ratio: 21 / 9;
  background: var(--ink-3);
  overflow: hidden;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.news-card:hover .news-card__media img {
  transform: scale(1.04);
}

.news-card__body {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
  padding: clamp(1.35rem, 3vw, 2.1rem);
}

.news-card__body h1,
.news-card__body h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.news-meta {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--pink);
}

.news-card__body p {
  margin: 0;
  max-width: 62ch;
  color: var(--text-soft);
}

.blog-post-body {
  display: grid;
  gap: 1.1rem;
}

.blog-post-body p {
  margin: 0;
  max-width: 66ch;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.85;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
}

.pager span,
.pager a {
  display: grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  border: 1px solid var(--line-soft);
  font-size: 0.85rem;
}

.pager .is-current {
  border-color: var(--pink);
  color: var(--pink);
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 40%);
}

.footer-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}

.footer-brand {
  display: grid;
  gap: 1rem;
  justify-items: start;
  max-width: 26rem;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-col h2 {
  margin: 0 0 1rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-col ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  color: var(--text-soft);
  font-size: 0.92rem;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--cyan);
  padding-left: 0.35rem;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.footer-base p {
  margin: 0;
}

/* ---------- Scroll reveal ---------- */

/* Gated on .js so a script failure can never leave the page blank. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (min-width: 62rem) {
  .feature {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .feature--flip .feature__media {
    order: 2;
  }

  .story-block {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .about-top {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }

  .scroll-cue {
    display: flex;
  }

  .news-card {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: stretch;
  }

  .news-card--post {
    grid-template-columns: 1fr;
  }

  .news-card--post .news-card__media {
    aspect-ratio: 21 / 8;
    min-height: 0;
  }

  .news-card__media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 15rem;
  }

  .news-card__body {
    align-content: center;
  }
}

@media (max-width: 61.99rem) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1.25rem var(--gutter) 2rem;
    background: rgba(6, 6, 13, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.5s var(--ease);
  }

  .nav.is-open {
    clip-path: inset(0 0 0 0);
  }

  .nav a {
    width: 100%;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.9rem;
    letter-spacing: 0.16em;
  }

  .nav a::after {
    display: none;
  }
}

@media (max-width: 46rem) {
  /* aspect-ratio + a min-height would force the box wider than the viewport */
  .game-hero {
    aspect-ratio: 16 / 10;
  }

  .page-head__ghost {
    display: none;
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-pair {
    grid-template-columns: 1fr;
  }

  .stage {
    min-height: auto;
  }

  .stage__inner {
    padding-top: clamp(4rem, 18vh, 7rem);
  }

  .vnbox {
    padding: 1.4rem 1.15rem 1.35rem;
  }

  .choice {
    width: 100%;
  }

  .rail {
    display: none;
  }

  /* Keep the name, drop the second line — the mark alone reads as nothing. */
  .logo__jp {
    display: none;
  }

  .logo__name {
    font-size: 0.86rem;
    letter-spacing: 0.14em;
  }

  .logo__mark {
    width: 1.8rem;
    height: 1.8rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .stage__title .line > span {
    transform: none;
  }

  .stage .eyebrow,
  .stage .vnbox,
  .stage .choices {
    opacity: 1;
  }

  .petals {
    display: none;
  }
}
