:root {
  --bg: #02030a;
  --ink: #f8fbff;
  --muted: #9ba9c4;
  --blue: #15a7ff;
  --cyan: #42f3ff;
  --purple: #b15cff;
  --pink: #ff43d0;
  --line: rgba(255, 255, 255, .16);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 72% 14%, rgba(66, 117, 255, .34), transparent 28rem),
    radial-gradient(circle at 18% 62%, rgba(177, 92, 255, .2), transparent 24rem),
    linear-gradient(180deg, #03040b 0%, #070817 42%, #02030a 100%);
  font-family: Inter, "Noto Sans JP", system-ui, sans-serif;
  overflow-x: hidden;
}

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

.noise,
.cursor-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 20;
}

.noise {
  opacity: .18;
  mix-blend-mode: screen;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 46px 46px, 46px 46px;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.cursor-glow {
  width: 26rem;
  height: 26rem;
  inset: auto;
  left: var(--mx, 50%);
  top: var(--my, 50%);
  z-index: 2;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(39, 163, 255, .22), rgba(164, 64, 255, .12) 42%, transparent 70%);
  filter: blur(12px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 2.2vw, 1.7rem) clamp(1rem, 4vw, 3rem);
  color: white;
  background: linear-gradient(180deg, rgba(2, 3, 10, .72), transparent);
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.brand img {
  width: 2.6rem;
  height: 2.6rem;
  filter: drop-shadow(0 0 18px rgba(69, 169, 255, .7));
}

.brand span,
.nav a,
.kicker,
.section-label,
.scroll-mark,
.finale-copy span,
.turn-page span {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.brand span {
  text-transform: none;
}

.nav a {
  color: rgba(255, 255, 255, .76);
  transition: color .2s ease;
}

.nav a:hover {
  color: white;
}

.panel {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.hero {
  display: grid;
  align-items: center;
  padding: 8rem clamp(1.25rem, 6vw, 6rem) 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: .62;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.2) contrast(1.12) brightness(.62);
  transform: scale(1.08);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2,3,10,.92) 0%, rgba(2,3,10,.46) 52%, rgba(2,3,10,.72) 100%),
    linear-gradient(180deg, rgba(2,3,10,.16), #02030a 98%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, transparent 0 42%, rgba(51, 167, 255, .25) 43%, transparent 44% 100%),
    repeating-linear-gradient(90deg, transparent 0 7rem, rgba(255,255,255,.08) 7.05rem 7.09rem);
  opacity: .55;
}

.hero-content {
  max-width: 72rem;
}

.kicker,
.section-label {
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(66, 243, 255, .55);
}

h1,
.stack h2,
.capability-rail h2,
.finale-copy h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: .86;
}

h1 {
  margin-top: 1rem;
  font-size: clamp(4.4rem, 14vw, 14.5rem);
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 0 34px rgba(21, 167, 255, .24);
}

h1 span {
  display: block;
}

h1 .studio-case {
  text-transform: none;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-left: .35rem;
  padding-left: .75rem;
  border-left: 1px solid rgba(255,255,255,.18);
}

.lang-switch a {
  color: rgba(255,255,255,.55);
}

.lang-switch a[aria-current="page"] {
  color: var(--cyan);
}

.hero-line {
  width: fit-content;
  margin: 1.2rem 0 0;
  font-size: clamp(1.35rem, 4.2vw, 5rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy {
  margin: 1.5rem 0 0;
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
}

.hero-orbit {
  position: absolute;
  right: clamp(1rem, 6vw, 8rem);
  bottom: 14vh;
  width: clamp(10rem, 21vw, 22rem);
  aspect-ratio: 1;
  opacity: .72;
}

.hero-orbit span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(92, 206, 255, .4);
  border-radius: 50%;
  transform: rotateX(64deg) rotateZ(var(--r));
  box-shadow: 0 0 26px rgba(21, 167, 255, .25);
}

.hero-orbit span:nth-child(1) { --r: 20deg; }
.hero-orbit span:nth-child(2) { --r: 74deg; scale: .72; border-color: rgba(177, 92, 255, .5); }
.hero-orbit span:nth-child(3) { --r: 132deg; scale: .44; border-color: rgba(255, 67, 208, .44); }

.scroll-mark {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: 2rem;
  color: rgba(255, 255, 255, .58);
  writing-mode: vertical-rl;
}

.capabilities {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem clamp(1.25rem, 5vw, 5rem);
  overflow: hidden;
}

.capability-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(16rem, 1fr));
  gap: 1px;
  width: max-content;
  min-width: 100%;
  margin-top: 2.4rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.capability-rail article {
  width: min(72vw, 26rem);
  min-height: 26rem;
  padding: 2rem;
  background:
    linear-gradient(150deg, rgba(255,255,255,.08), rgba(255,255,255,.015)),
    rgba(4, 7, 19, .78);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.capability-rail span {
  color: var(--purple);
  font-weight: 900;
}

.capability-rail h2 {
  margin-top: auto;
  font-size: clamp(2.8rem, 5vw, 5.3rem);
  color: white;
}

.capability-rail p {
  min-height: 5.2rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.page-turn {
  display: grid;
  place-items: center;
  perspective: 1400px;
  overflow: hidden;
}

.turn-stage {
  position: relative;
  width: min(96vw, 112rem);
  aspect-ratio: 1983 / 793;
  transform-style: preserve-3d;
}

.turn-page {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  background: #070916;
  box-shadow: 0 2rem 7rem rgba(0,0,0,.5);
  transform-origin: 100% 100%;
  backface-visibility: hidden;
}

.turn-page.front {
  background:
    linear-gradient(135deg, rgba(12, 184, 255, .18), transparent 42%),
    url("images/page-turn-system-visual.png") center / cover no-repeat,
    linear-gradient(135deg, #030813, #0b0d1d 60%, #050610);
}

.turn-page.front::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 32%;
  aspect-ratio: 1;
  background: linear-gradient(315deg, rgba(255,255,255,.75), rgba(66,243,255,.18) 38%, transparent 70%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: .85;
}

.turn-page.front p,
.turn-page.back h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5.8vw, 6.4rem);
  font-weight: 900;
  line-height: 1.05;
}

.turn-page.front p {
  position: absolute;
  left: clamp(1rem, 2vw, 2rem);
  bottom: clamp(1rem, 2vw, 2rem);
  z-index: 2;
  padding: .65rem .85rem;
  border-left: 2px solid var(--cyan);
  color: rgba(255,255,255,.9);
  background: rgba(2, 3, 10, .58);
  font-size: clamp(1rem, 1.8vw, 2rem);
  line-height: 1;
  backdrop-filter: blur(10px);
}

.turn-page.back {
  display: grid;
  place-items: end start;
  padding: clamp(1.4rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 74% 35%, rgba(177, 92, 255, .34), transparent 16rem),
    linear-gradient(135deg, #071328, #02030a 74%);
  transform: rotateX(0deg);
}

.turn-page.back p {
  margin: 1rem 0 0;
  color: var(--cyan);
  font-size: clamp(1rem, 2vw, 1.6rem);
  font-weight: 800;
}

.poem {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, .95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 8rem clamp(1.25rem, 6vw, 6rem);
}

.poem-media {
  position: relative;
  min-height: clamp(30rem, 68vh, 46rem);
  overflow: hidden;
  border-left: 2px solid var(--cyan);
  clip-path: polygon(0 0, 100% 8%, 86% 100%, 0 92%);
}

.poem-media img {
  width: 100%;
  height: 100%;
  min-height: clamp(30rem, 68vh, 46rem);
  object-fit: cover;
  filter: saturate(1.35) contrast(1.15);
}

.poem-copy p {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 7rem);
  font-weight: 900;
  line-height: 1.08;
}

.poem-copy p + p {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.8);
}

.stack {
  display: grid;
  align-content: center;
  padding: 8rem clamp(1.25rem, 6vw, 6rem);
}

.stack h2 {
  max-width: 62rem;
  margin-top: 1rem;
  font-size: clamp(3.4rem, 10vw, 11rem);
  text-transform: uppercase;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  max-width: 62rem;
  margin-top: 2.8rem;
}

.stack-list span {
  padding: .75rem 1rem;
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.045);
  font-weight: 800;
}

.logo-finale {
  display: grid;
  grid-template-columns: minmax(18rem, .88fr) minmax(20rem, 1.12fr);
  align-items: center;
  gap: 2rem;
  padding: 7rem clamp(1.25rem, 6vw, 6rem) 5rem;
  overflow: hidden;
}

.finale-copy h2 {
  margin-top: 1rem;
  font-size: clamp(3rem, 7vw, 8.4rem);
}

.logo-stage {
  position: relative;
  width: min(42vw, 30rem);
  aspect-ratio: 1;
  margin-inline: auto;
  filter: drop-shadow(0 0 34px rgba(21, 167, 255, .46));
}

.logo-part,
.logo-complete {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-complete {
  opacity: 0;
}

.slash {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  height: .24rem;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-20deg) scaleX(.08);
  background: linear-gradient(90deg, transparent, white 45%, var(--cyan), transparent);
  box-shadow: 0 0 26px var(--cyan), 0 0 48px var(--purple);
}

.finale-brand {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 1.5rem;
}

.finale-brand strong {
  font-size: clamp(2rem, 5vw, 6rem);
  line-height: .9;
}

.finale-brand span {
  color: var(--muted);
  font-weight: 800;
}

.contact-button {
  flex: 0 0 auto;
  min-width: 9rem;
  padding: 1rem 1.25rem;
  color: white;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(90deg, #046bff, #9b2cff);
  box-shadow: 0 0 26px rgba(21, 167, 255, .34);
}

.finale-actions {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.demo-button {
  flex: 0 0 auto;
  min-width: 9rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255,255,255,.22);
  color: white;
  font-weight: 900;
  text-align: center;
  background: rgba(255,255,255,.055);
}

.footer {
  display: grid;
  gap: 1.2rem;
  padding: 2.5rem clamp(1rem, 6vw, 6rem);
  color: rgba(255,255,255,.6);
  background: #02030a;
}

.footer-languages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.16);
}

.footer-languages a {
  min-height: 7rem;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: rgba(255,255,255,.72);
  background:
    linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.015)),
    #050711;
  transition: color .2s ease, background .2s ease;
}

.footer-languages a:hover,
.footer-languages a[aria-current="page"] {
  color: white;
  background:
    linear-gradient(135deg, rgba(21, 167, 255, .22), rgba(177, 92, 255, .2)),
    #070a16;
}

.footer-languages span {
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.footer-languages strong {
  font-size: clamp(1.4rem, 3vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
  padding: 1.4rem 0 2.4rem;
}

.footer-links a {
  color: rgba(255,255,255,.58);
  font-size: .9rem;
  font-weight: 800;
}

.footer-links span {
  display: block;
  margin: 1rem 0 2rem;
  color: rgba(255,255,255,.42);
}

.cookie-consent {
  position: fixed;
  left: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  max-width: 58rem;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.18);
  color: white;
  background:
    linear-gradient(135deg, rgba(21, 167, 255, .14), rgba(177, 92, 255, .18)),
    rgba(4, 6, 17, .9);
  box-shadow: 0 1.2rem 4rem rgba(0,0,0,.42), 0 0 40px rgba(21, 167, 255, .18);
  backdrop-filter: blur(18px);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent span {
  display: block;
  color: var(--cyan);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cookie-consent p {
  margin: .35rem 0 0;
  color: rgba(255,255,255,.78);
  font-size: .9rem;
  line-height: 1.7;
}

.cookie-actions {
  display: flex;
  gap: .65rem;
}

.cookie-actions button {
  min-width: 6.4rem;
  padding: .8rem 1rem;
  border: 0;
  color: white;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.cookie-primary {
  background: linear-gradient(90deg, #046bff, #9b2cff);
}

.cookie-secondary {
  background: rgba(255,255,255,.1);
}

.subpage {
  min-height: 100vh;
}

.simple-page {
  display: grid;
  align-content: center;
  min-height: 100vh;
  max-width: 58rem;
  padding: clamp(2rem, 6vw, 6rem);
}

.simple-logo {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  width: fit-content;
  margin-bottom: 3rem;
  color: rgba(255,255,255,.82);
  font-weight: 900;
  letter-spacing: .08em;
}

.simple-logo img {
  width: 3rem;
  height: 3rem;
  filter: drop-shadow(0 0 18px rgba(69, 169, 255, .7));
}

.simple-page h1 {
  margin: 0;
  font-size: clamp(3.4rem, 12vw, 9rem);
  font-weight: 900;
  line-height: .9;
}

.simple-page p {
  max-width: 42rem;
  color: rgba(255,255,255,.72);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.9;
}

.simple-page .contact-button {
  margin-top: 1.4rem;
  width: fit-content;
}

.not-found h1 {
  max-width: 58rem;
}

.not-found-actions,
.not-found-languages {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1rem;
}

.not-found-actions .contact-button,
.not-found-actions .demo-button {
  margin-top: 0;
}

.not-found-languages {
  margin-top: 2.4rem;
}

.not-found-languages a {
  padding: .75rem 1rem;
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.72);
  font-weight: 900;
  background: rgba(255,255,255,.045);
}

.not-found-languages a:hover {
  color: white;
  border-color: rgba(66,243,255,.45);
}

@media (max-width: 820px) {
  .nav {
    display: none;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-orbit {
    opacity: .28;
  }

  .capabilities {
    min-height: auto;
  }

  .capability-rail {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .capability-rail article {
    scroll-snap-align: start;
    flex: 0 0 82vw;
  }

  .turn-stage {
    width: 90vw;
    aspect-ratio: 16 / 9;
  }

  .poem,
  .logo-finale {
    grid-template-columns: 1fr;
  }

  .logo-stage {
    width: min(78vw, 24rem);
  }

  .poem-media,
  .poem-media img {
    min-height: 20rem;
  }

  .finale-brand {
    align-items: start;
    flex-direction: column;
  }

  .finale-actions {
    flex-wrap: wrap;
  }

  .cookie-consent {
    grid-template-columns: 1fr;
  }

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

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
