/*
  Visual direction: an archival case file interrupted by an AI analysis layer.
  Cinematic imagery carries the emotion; restrained data marks carry the system.
*/

@font-face {
  font-family: "EOM Sans";
  src: url("assets/fonts/IBMPlexSansJP-Medium.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "EOM Serif";
  src: url("assets/fonts/NotoSerifJP-Variable.ttf") format("truetype");
  font-weight: 600 900;
  font-display: swap;
}

@font-face {
  font-family: "EOM Display";
  src: url("assets/fonts/Oxanium-Variable.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --bg: #03080d;
  --bg-soft: #07121b;
  --panel: rgba(8, 20, 29, 0.82);
  --ink: #eaf1f4;
  --muted: #8b9ba5;
  --line: rgba(142, 193, 214, 0.2);
  --line-strong: rgba(142, 213, 238, 0.46);
  --cyan: #72dcff;
  --cyan-bright: #c3f2ff;
  --red: #ff5a58;
  --paper: #d9d1be;
  --header-h: 5.25rem;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --max: 90rem;
  --serif: "EOM Serif", "Yu Mincho", serif;
  --sans: "EOM Sans", "Noto Sans JP", sans-serif;
  --display: "EOM Display", "Arial Narrow", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--cyan) var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 10%, rgba(40, 96, 121, 0.1), transparent 34rem),
    var(--bg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.035em;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 2px, #fff 2px 3px),
    repeating-linear-gradient(90deg, transparent 0 3px, #fff 3px 4px);
  background-size: 4px 4px, 5px 5px;
  mix-blend-mode: soft-light;
}

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

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

::selection {
  color: #001019;
  background: var(--cyan);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  color: #001018;
  background: var(--cyan-bright);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto minmax(12rem, 1fr);
  align-items: center;
  min-height: var(--header-h);
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: min-height 300ms ease, background 300ms ease, border-color 300ms ease;
}

.site-header::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0;
  background: rgba(3, 8, 13, 0.84);
  backdrop-filter: blur(18px) saturate(130%);
  transition: opacity 300ms ease;
}

.site-header.is-scrolled {
  min-height: 4.35rem;
  border-color: var(--line);
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.brand {
  display: inline-flex;
  width: fit-content;
}

.brand img {
  width: clamp(9.5rem, 14vw, 13.75rem);
  max-height: 2.75rem;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.25rem);
}

.site-nav a {
  position: relative;
  color: rgba(234, 241, 244, 0.72);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 50%;
  bottom: -0.6rem;
  left: 50%;
  height: 1px;
  content: "";
  background: var(--cyan);
  transition: right 180ms ease, left 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: #fff;
}

.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after {
  right: 0;
  left: 0;
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.65rem;
  padding: 0.4rem 1.1rem;
  border: 1px solid rgba(114, 220, 255, 0.54);
  background: rgba(3, 8, 13, 0.35);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.header-cta span {
  color: var(--cyan);
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.header-cta:hover {
  color: #001019;
  background: var(--cyan-bright);
  box-shadow: 0 0 2rem rgba(114, 220, 255, 0.2);
}

.header-cta:hover span {
  color: #001019;
}

/* Shared */

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

.section-index,
.kicker,
.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-index {
  color: rgba(195, 242, 255, 0.4);
}

.kicker,
.eyebrow {
  color: var(--cyan);
}

.eyebrow span {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  margin-right: 0.75rem;
  color: #00121a;
  background: var(--cyan);
  font-weight: 800;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(7rem, 0.3fr) minmax(24rem, 1.15fr) minmax(18rem, 0.65fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
  margin-bottom: clamp(3.25rem, 7vw, 7rem);
}

.section-intro h2,
.echo h2,
.case-list h2,
.final-cta h2 {
  margin: 0.8rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2.65rem, 5.4vw, 6rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.04em;
}

.section-intro__copy {
  padding-top: 1.7rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 3.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--line-strong);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button img {
  width: 1.35rem;
  height: 1.35rem;
}

.button--primary {
  color: #001219;
  border-color: var(--cyan-bright);
  background: var(--cyan-bright);
  box-shadow: 0 0 2.5rem rgba(114, 220, 255, 0.12);
}

.button--primary img {
  filter: invert(1);
}

.button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.8rem 3rem rgba(114, 220, 255, 0.24);
}

.button--large {
  min-height: 4.35rem;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.play-mark {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 0.42rem solid transparent;
  border-bottom: 0.42rem solid transparent;
  border-left: 0.62rem solid currentColor;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  min-height: max(46rem, 100svh);
  overflow: hidden;
  background: #02060a;
}

.hero__visual,
.hero__veil,
.hero__scanline {
  position: absolute;
  inset: 0;
}

.hero__visual {
  z-index: -4;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: hero-drift 18s ease-out both;
}

.hero__veil {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(2, 6, 10, 0.99) 0%, rgba(2, 6, 10, 0.9) 26%, rgba(2, 6, 10, 0.37) 58%, rgba(2, 6, 10, 0.08) 82%),
    linear-gradient(0deg, rgba(2, 6, 10, 0.92) 0%, transparent 33%, rgba(2, 6, 10, 0.22) 100%);
}

.hero__scanline {
  z-index: -2;
  opacity: 0.3;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(114, 220, 255, 0.13) 50%, transparent calc(50% + 1px)),
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(142, 213, 238, 0.025) 5px 6px);
  background-size: 14vw 100%, 100% 6px;
}

.hero__frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.28fr);
  grid-template-rows: 1fr auto;
  width: min(100%, 112rem);
  min-height: max(46rem, 100svh);
  padding: calc(var(--header-h) + clamp(2rem, 5vh, 5rem)) var(--gutter) clamp(2rem, 5vh, 4rem);
  margin: 0 auto;
}

.hero__content {
  align-self: center;
  max-width: 48rem;
  padding-bottom: 5vh;
}

.hero__logo {
  width: min(43rem, 78vw);
  height: auto;
  aspect-ratio: 1400 / 522;
  object-fit: contain;
  margin: clamp(1.5rem, 3vh, 2.75rem) 0 0 -1.3rem;
  filter: drop-shadow(0 0 2rem rgba(111, 216, 255, 0.18));
}

.hero__statement {
  margin: clamp(0.6rem, 2vh, 1.5rem) 0 0;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.4vw, 3.65rem);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0.09em;
  text-shadow: 0 0.2rem 1.8rem #000;
}

.hero__statement em {
  color: var(--cyan-bright);
  font-style: normal;
}

.hero__lead {
  max-width: 44rem;
  margin: 1.25rem 0 0;
  color: rgba(234, 241, 244, 0.72);
  font-size: clamp(0.88rem, 1.15vw, 1.02rem);
  line-height: 2;
  text-shadow: 0 0.1rem 1rem #000;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
  margin-top: 2rem;
}

.hero__case-index {
  align-self: center;
  justify-self: end;
  display: grid;
  justify-items: end;
  color: rgba(234, 241, 244, 0.46);
  font-family: var(--mono);
  font-size: 0.6rem;
  line-height: 1.7;
  letter-spacing: 0.16em;
  text-align: right;
}

.hero__case-index::before {
  width: min(11rem, 15vw);
  height: 1px;
  margin-bottom: 1rem;
  content: "";
  background: linear-gradient(90deg, transparent, var(--red));
}

.hero__case-label {
  color: var(--red);
}

.hero__case-index strong {
  color: transparent;
  font-family: var(--display);
  font-size: clamp(7rem, 14vw, 15rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.08em;
  -webkit-text-stroke: 1px rgba(184, 225, 239, 0.2);
}

.hero__facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(10rem, 1fr));
  width: min(52rem, 72%);
  padding: 1.05rem 0 0;
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.hero__facts div {
  padding: 0 1.5rem;
  border-left: 1px solid var(--line);
}

.hero__facts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero__facts dt,
.hero__facts dd {
  margin: 0;
}

.hero__facts dt {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
}

.hero__facts dd {
  margin-top: 0.25rem;
  color: rgba(234, 241, 244, 0.74);
  font-size: 0.76rem;
  line-height: 1.55;
}

.hero__facts i,
.echo__metrics i,
.trailer-player__chrome i {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0.7rem var(--red);
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2rem, 5vh, 4rem);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(234, 241, 244, 0.4);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  writing-mode: vertical-rl;
}

.hero__scroll span {
  position: relative;
  width: 1px;
  height: 3.5rem;
  overflow: hidden;
  background: var(--line);
}

.hero__scroll span::after {
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  content: "";
  background: var(--cyan-bright);
  animation: scroll-line 2.2s ease-in-out infinite;
}

@keyframes hero-drift {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}

@keyframes scroll-line {
  0% { top: -100%; }
  55%, 100% { top: 100%; }
}

/* Trailer */

.trailer {
  position: relative;
}

.trailer::before {
  position: absolute;
  top: 10%;
  left: 51%;
  z-index: -1;
  width: 60vw;
  height: 60vw;
  content: "";
  background: radial-gradient(circle, rgba(44, 123, 155, 0.12), transparent 67%);
  transform: translateX(-50%);
}

.trailer-player {
  position: relative;
  border: 1px solid var(--line-strong);
  background: #010304;
  box-shadow: 0 2.5rem 8rem rgba(0, 0, 0, 0.55);
}

.trailer-player::before,
.trailer-player::after {
  position: absolute;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  pointer-events: none;
  content: "";
}

.trailer-player::before {
  top: -0.55rem;
  left: -0.55rem;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}

.trailer-player::after {
  right: -0.55rem;
  bottom: -0.55rem;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
}

.trailer-player__poster,
.trailer-player > video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.trailer-player__poster {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.trailer-player__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 600ms ease;
}

.trailer-player__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(1, 3, 4, 0.82), transparent 50%);
  transition: background 400ms ease;
}

.trailer-player__control {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.7rem;
  color: #fff;
}

.trailer-player__control .play-mark {
  margin-left: 0.35rem;
  border-top-width: 1rem;
  border-bottom-width: 1rem;
  border-left-width: 1.55rem;
  filter: drop-shadow(0 0 1.2rem rgba(114, 220, 255, 0.9));
}

.trailer-player__control b {
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.26em;
}

.trailer-player__control small {
  color: rgba(234, 241, 244, 0.58);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
}

.trailer-player__poster:hover img {
  filter: brightness(1.08) saturate(1.1);
  transform: scale(1.018);
}

.trailer-player__poster:hover .trailer-player__shade {
  background: linear-gradient(0deg, rgba(1, 3, 4, 0.68), rgba(10, 32, 43, 0.05));
}

.trailer-player__chrome {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  color: rgba(195, 242, 255, 0.42);
  border-top: 1px solid var(--line);
  background: #030a0f;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
}

/* Investigation */

.investigation {
  width: min(100%, 100rem);
}

.investigation-flow {
  position: relative;
  display: grid;
  gap: clamp(5rem, 10vw, 10rem);
}

.investigation-flow::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 1px;
  content: "";
  background: linear-gradient(transparent, var(--line-strong) 8%, var(--line-strong) 92%, transparent);
}

.investigation-step {
  display: grid;
  grid-template-columns: minmax(26rem, 1.3fr) minmax(18rem, 0.7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.investigation-step--reverse {
  grid-template-columns: minmax(18rem, 0.7fr) minmax(26rem, 1.3fr);
}

.investigation-step--reverse .investigation-step__media {
  grid-column: 2;
  grid-row: 1;
}

.investigation-step--reverse .investigation-step__copy {
  grid-column: 1;
  grid-row: 1;
}

.investigation-step__media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #010304;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.35);
}

.investigation-step__media::before,
.investigation-step__media::after {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  content: "";
}

.investigation-step__media::before {
  inset: 0;
  background: linear-gradient(130deg, rgba(114, 220, 255, 0.08), transparent 35%);
}

.investigation-step__media::after {
  right: 0.75rem;
  bottom: 0.75rem;
  width: 1.8rem;
  height: 1.8rem;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
}

.investigation-step__media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.investigation-step__media > span {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  padding: 0.3rem 0.5rem;
  color: var(--cyan-bright);
  border: 1px solid var(--line-strong);
  background: rgba(3, 8, 13, 0.72);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.15em;
}

.investigation-step__copy {
  position: relative;
}

.step-no {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 0;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(4.5rem, 8vw, 8rem);
  font-weight: 500;
  line-height: 0.9;
  -webkit-text-stroke: 1px rgba(114, 220, 255, 0.42);
}

.step-no small {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  -webkit-text-stroke: 0;
}

.investigation-step__copy h3 {
  margin: 1.2rem 0 0.8rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.7vw, 3.6rem);
  font-weight: 700;
  line-height: 1.25;
}

.investigation-step__copy > p:not(.step-no) {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.investigation-step__copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.investigation-step__copy li {
  padding: 0.3rem 0.6rem;
  color: rgba(195, 242, 255, 0.66);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.08em;
}

/* ECHO */

.echo {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(22rem, 0.85fr) minmax(26rem, 1.15fr);
  align-items: center;
  min-height: 50rem;
  padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 22% 46%, rgba(57, 173, 218, 0.16), transparent 30rem),
    linear-gradient(110deg, #050c12, #071722 48%, #03080d);
}

.echo__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.27;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(90deg, #000, transparent 75%);
}

.echo__portrait {
  align-self: end;
  justify-self: center;
  height: 48rem;
  transform: translateY(0);
  filter: drop-shadow(0 0 3rem rgba(79, 197, 239, 0.24));
}

.echo__portrait img {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom;
}

.echo__copy {
  position: relative;
  z-index: 2;
  max-width: 46rem;
  padding: 6rem 0;
}

.echo__copy .kicker {
  margin-top: 2.5rem;
}

.echo h2 {
  font-size: clamp(2.6rem, 4.7vw, 5.2rem);
}

.echo h2 em {
  color: var(--cyan-bright);
  font-style: normal;
}

.echo__copy > p:not(.kicker, .section-index) {
  max-width: 39rem;
  margin: 2rem 0 0;
  color: var(--muted);
}

.echo__metrics {
  margin: 2.5rem 0 0;
  border-top: 1px solid var(--line-strong);
}

.echo__metrics div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.echo__metrics dt,
.echo__metrics dd {
  margin: 0;
}

.echo__metrics dt {
  color: var(--muted);
  font-size: 0.66rem;
}

.echo__metrics dd {
  color: var(--cyan-bright);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.echo__metrics i {
  background: #66ffbd;
  box-shadow: 0 0 0.7rem #66ffbd;
}

.echo__signal {
  position: absolute;
  right: -2rem;
  bottom: -2.3rem;
  z-index: -1;
  margin: 0;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(5rem, 11vw, 12rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(114, 220, 255, 0.1);
}

/* Characters */

.characters {
  width: min(100%, 100rem);
}

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

.character {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-top: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(14, 32, 43, 0.45), rgba(4, 11, 16, 0.95));
}

.character::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 1.8rem;
  height: 1.8rem;
  content: "";
  border-top: 1px solid var(--cyan);
  border-right: 1px solid var(--cyan);
}

.character__code {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  margin: 0;
  color: rgba(195, 242, 255, 0.52);
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
}

.character__portrait {
  display: grid;
  place-items: end center;
  height: clamp(22rem, 34vw, 34rem);
  overflow: hidden;
  background:
    linear-gradient(0deg, #071017, transparent 42%),
    radial-gradient(circle at 50% 45%, rgba(69, 168, 205, 0.15), transparent 50%);
}

.character__portrait img {
  width: 100%;
  height: 96%;
  object-fit: contain;
  object-position: bottom center;
  filter: saturate(0.88);
  transform: scale(1.01);
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 400ms ease;
}

.character:hover .character__portrait img {
  filter: saturate(1.08);
  transform: scale(1.04) translateY(-0.4rem);
}

.character--echo {
  margin-top: -2.5rem;
  border-top-color: var(--cyan);
}

.character--echo .character__portrait {
  height: calc(clamp(22rem, 34vw, 34rem) + 2.5rem);
  background:
    linear-gradient(0deg, #071017, transparent 42%),
    radial-gradient(circle at 50% 45%, rgba(83, 206, 249, 0.28), transparent 54%);
}

.character__info {
  min-height: 21rem;
  padding: clamp(1.35rem, 2.5vw, 2.2rem);
  border-top: 1px solid var(--line);
}

.character__info > p:first-child {
  margin: 0;
  color: var(--cyan);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}

.character__info h3 {
  margin: 0.4rem 0 1.3rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  line-height: 1.3;
}

.character__info h3 small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.character__info blockquote {
  padding-left: 0.9rem;
  margin: 0 0 1.15rem;
  color: var(--paper);
  border-left: 1px solid rgba(217, 209, 190, 0.5);
  font-family: var(--serif);
  font-size: 0.88rem;
  font-weight: 700;
}

.character__info > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Gallery */

.gallery-section {
  width: min(100%, 100rem);
  overflow: hidden;
}

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(19rem, 27vw);
  grid-template-rows: repeat(2, auto);
  gap: 1.25rem;
  width: calc(100vw - max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))));
  padding: 0.5rem 6vw 1.5rem 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  cursor: grab;
  scroll-snap-type: x proximity;
}

.gallery:active {
  cursor: grabbing;
}

.gallery__item {
  width: 100%;
  margin: 0;
  scroll-snap-align: start;
}

.gallery__item--wide {
  grid-row: span 2;
}

.gallery__item button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #020507;
  cursor: pointer;
}

.gallery__item:not(.gallery__item--wide) button {
  aspect-ratio: 16 / 8.5;
}

.gallery__item--wide button {
  aspect-ratio: 10 / 10.3;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease, filter 400ms ease;
}

.gallery__item--wide img {
  object-position: center;
}

.gallery__item button::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(2, 5, 7, 0.72), transparent 45%);
  transition: background 400ms ease;
}

.gallery__item button > span {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  color: var(--cyan-bright);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.14em;
}

.gallery__item button:hover img {
  filter: brightness(1.08) saturate(1.1);
  transform: scale(1.025);
}

.gallery__item figcaption {
  padding: 0.6rem 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.gallery__hint {
  margin: 1.5rem 0 0;
  color: rgba(195, 242, 255, 0.38);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
}

/* Case list */

.case-list {
  display: grid;
  grid-template-columns: minmax(20rem, 0.75fr) minmax(28rem, 1.25fr);
  gap: clamp(4rem, 9vw, 10rem);
  width: min(100%, var(--max));
  padding: clamp(8rem, 12vw, 12rem) var(--gutter);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.case-list__heading {
  position: sticky;
  top: 8rem;
  align-self: start;
}

.case-list__heading .kicker {
  margin-top: 2.5rem;
}

.case-list h2 {
  font-size: clamp(3rem, 5vw, 5.5rem);
}

.case-list__heading > p:last-child {
  max-width: 30rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.case-files {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.case-files li {
  position: relative;
  display: grid;
  grid-template-columns: 5rem 1fr 2rem;
  gap: 1.5rem;
  align-items: center;
  min-height: 8rem;
  padding: 1.2rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.case-files li::before {
  position: absolute;
  inset: 0 100% 0 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(114, 220, 255, 0.1), transparent);
  transition: right 450ms ease;
}

.case-files li:hover::before {
  right: 0;
}

.case-files li > span {
  color: transparent;
  font-family: var(--display);
  font-size: 3.2rem;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(114, 220, 255, 0.42);
}

.case-files small {
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
}

.case-files h3 {
  margin: 0.3rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  font-weight: 700;
}

.case-files i {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.48rem;
  font-style: normal;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
}

/* Final CTA */

.final-cta {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 54rem;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.final-cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.final-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.final-cta::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 8, 13, 0.99) 0%, rgba(3, 8, 13, 0.9) 39%, rgba(3, 8, 13, 0.25) 72%),
    linear-gradient(0deg, var(--bg), transparent 36%, rgba(3, 8, 13, 0.5));
}

.final-cta__inner {
  width: min(100%, var(--max));
  padding: clamp(7rem, 12vw, 12rem) var(--gutter);
}

.final-cta h2 {
  max-width: 50rem;
  font-size: clamp(3.5rem, 7vw, 7.2rem);
  text-shadow: 0 0.3rem 2rem #000;
}

.final-cta__inner > p:not(.kicker) {
  max-width: 42rem;
  margin: 2rem 0;
  color: rgba(234, 241, 244, 0.7);
}

.final-cta__spec {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 67rem;
  margin: 4rem 0 0;
  border-top: 1px solid var(--line-strong);
}

.final-cta__spec div {
  padding: 0.8rem 1rem;
  border-right: 1px solid var(--line);
}

.final-cta__spec div:first-child {
  padding-left: 0;
}

.final-cta__spec div:last-child {
  border-right: 0;
}

.final-cta__spec dt,
.final-cta__spec dd {
  margin: 0;
}

.final-cta__spec dt {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
}

.final-cta__spec dd {
  margin-top: 0.25rem;
  color: rgba(234, 241, 244, 0.66);
  font-size: 0.68rem;
  line-height: 1.5;
}

/* Footer */

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 9rem;
  padding: 2rem var(--gutter);
  border-top: 1px solid var(--line);
  background: #020507;
}

.site-footer img {
  width: 9rem;
  max-height: 2.5rem;
  object-fit: contain;
  object-position: left;
  opacity: 0.75;
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-footer p,
.site-footer a {
  margin: 0;
  color: rgba(234, 241, 244, 0.36);
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.12em;
}

.site-footer__studio {
  justify-self: start;
  display: inline-flex;
  width: fit-content;
}

.site-footer__studio:hover img {
  opacity: 1;
  transform: translateY(-1px);
}

.site-footer__top {
  justify-self: end;
  text-decoration: none;
}

/* Lightbox */

.lightbox {
  width: min(92vw, 92rem);
  max-width: none;
  padding: 0;
  overflow: visible;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: #02080d;
  box-shadow: 0 2rem 8rem #000;
}

.lightbox::backdrop {
  background: rgba(0, 3, 6, 0.9);
  backdrop-filter: blur(12px);
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #000;
}

.lightbox p {
  padding: 0.85rem 1rem;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.lightbox__close {
  position: absolute;
  top: -2.8rem;
  right: 0;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: #03080d;
  cursor: pointer;
}

/* Reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 800ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0s),
    transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0s);
}

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

/* Responsive */

@media (max-width: 72rem) {
  .site-header {
    grid-template-columns: minmax(10rem, 1fr) auto auto;
    gap: 1.5rem;
  }

  .site-nav {
    gap: 1.4rem;
  }

  .hero__facts {
    width: 82%;
  }

  .section-intro {
    grid-template-columns: minmax(5rem, 0.2fr) minmax(22rem, 1fr);
  }

  .section-intro__copy {
    grid-column: 2;
    max-width: 40rem;
    padding-top: 0;
  }

  .final-cta__spec {
    grid-template-columns: repeat(3, 1fr);
  }

  .final-cta__spec div {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 58rem) {
  :root {
    --header-h: 4.5rem;
  }

  .site-header {
    grid-template-columns: minmax(9rem, 1fr) auto;
    padding-right: 0;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    order: 3;
    width: 100vw;
    padding: 0.7rem var(--gutter);
    margin-left: calc(var(--gutter) * -1);
    overflow-x: auto;
    border-top: 1px solid transparent;
    background: rgba(3, 8, 13, 0.86);
    backdrop-filter: blur(14px);
  }

  .site-header.is-scrolled {
    min-height: var(--header-h);
  }

  .site-header.is-scrolled .site-nav {
    border-color: var(--line);
  }

  .header-cta {
    margin-right: var(--gutter);
  }

  .hero__frame {
    grid-template-columns: 1fr;
    padding-top: calc(var(--header-h) + 6rem);
  }

  .hero__case-index {
    display: none;
  }

  .hero__facts {
    width: calc(100% - 3.5rem);
  }

  .hero__scroll {
    display: none;
  }

  .case-list {
    grid-template-columns: 1fr;
  }

  .investigation-step,
  .investigation-step--reverse {
    grid-template-columns: 1fr;
  }

  .investigation-step--reverse .investigation-step__media,
  .investigation-step--reverse .investigation-step__copy {
    grid-column: 1;
  }

  .investigation-step--reverse .investigation-step__media {
    grid-row: 1;
  }

  .investigation-step--reverse .investigation-step__copy {
    grid-row: 2;
  }

  .investigation-flow::before {
    left: 1rem;
  }

  .investigation-step__copy {
    padding-left: 3rem;
  }

  .echo {
    grid-template-columns: minmax(16rem, 0.65fr) minmax(22rem, 1.35fr);
  }

  .echo__portrait {
    height: 38rem;
    margin-left: -5rem;
  }

  .character-grid {
    grid-template-columns: 1fr 1fr;
  }

  .character--echo {
    margin-top: 0;
  }

  .character--echo .character__portrait {
    height: clamp(22rem, 42vw, 31rem);
  }

  .case-list__heading {
    position: static;
  }
}

@media (max-width: 40rem) {
  :root {
    --gutter: 1.15rem;
  }

  body {
    font-size: 0.94rem;
  }

  .site-header {
    gap: 0.7rem;
  }

  .brand img {
    width: 8.6rem;
  }

  .header-cta {
    min-height: 2.35rem;
    padding: 0.3rem 0.65rem;
    margin-right: var(--gutter);
    font-size: 0.68rem;
  }

  .header-cta span {
    display: none;
  }

  .site-nav {
    gap: 2rem;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .section {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-bottom: 3rem;
  }

  .section-intro__copy {
    grid-column: 1;
  }

  .section-intro h2,
  .echo h2,
  .case-list h2,
  .final-cta h2 {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

  .eyebrow {
    font-size: 0.55rem;
  }

  .eyebrow span {
    display: block;
    width: fit-content;
    margin: 0 0 0.55rem;
  }

  .hero {
    min-height: 50rem;
  }

  .hero__visual img {
    object-position: 65% center;
  }

  .hero__veil {
    background:
      linear-gradient(90deg, rgba(2, 6, 10, 0.96) 0%, rgba(2, 6, 10, 0.74) 58%, rgba(2, 6, 10, 0.32)),
      linear-gradient(0deg, rgba(2, 6, 10, 0.98), transparent 52%);
  }

  .hero__frame {
    min-height: 50rem;
    padding-top: 8.5rem;
  }

  .hero__content {
    align-self: start;
    padding-bottom: 2rem;
  }

  .hero__logo {
    width: min(31rem, 96vw);
    margin-left: -0.7rem;
  }

  .hero__statement {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .hero__lead br {
    display: none;
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.2rem;
  }

  .hero__facts {
    grid-template-columns: 1fr;
    width: 100%;
    padding-top: 0;
  }

  .hero__facts div,
  .hero__facts div:first-child {
    display: grid;
    grid-template-columns: 5rem 1fr;
    align-items: baseline;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .trailer-player__chrome span:nth-child(2) {
    display: none;
  }

  .investigation-flow {
    gap: 5rem;
  }

  .investigation-step__copy {
    padding-left: 1.5rem;
  }

  .step-no {
    font-size: 4rem;
  }

  .echo {
    display: flex;
    flex-direction: column-reverse;
    min-height: auto;
    padding: 0 var(--gutter);
  }

  .echo__copy {
    padding: 6rem 0 0;
  }

  .echo__portrait {
    align-self: center;
    width: 100%;
    height: 33rem;
    margin: 0;
  }

  .echo__metrics div {
    grid-template-columns: 6.5rem 1fr;
  }

  .character-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .character__portrait,
  .character--echo .character__portrait {
    height: 29rem;
  }

  .character__info {
    min-height: auto;
  }

  .gallery {
    grid-auto-columns: 82vw;
    grid-template-rows: 1fr;
    width: calc(100vw - var(--gutter));
  }

  .gallery__item--wide {
    grid-row: span 1;
  }

  .gallery__item button,
  .gallery__item:not(.gallery__item--wide) button,
  .gallery__item--wide button {
    aspect-ratio: 16 / 10;
  }

  .case-list {
    gap: 3rem;
    padding-top: 7rem;
    padding-bottom: 7rem;
  }

  .case-files li {
    grid-template-columns: 3.5rem 1fr 1rem;
    gap: 0.75rem;
    min-height: 6.5rem;
  }

  .case-files li > span {
    font-size: 2.4rem;
  }

  .final-cta {
    min-height: 48rem;
  }

  .final-cta::before {
    background:
      linear-gradient(90deg, rgba(3, 8, 13, 0.98), rgba(3, 8, 13, 0.7)),
      linear-gradient(0deg, var(--bg), transparent 38%);
  }

  .final-cta__spec {
    grid-template-columns: 1fr 1fr;
  }

  .final-cta__spec div,
  .final-cta__spec div:first-child {
    padding: 0.7rem 0.7rem 0.7rem 0;
  }

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

  .site-footer p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

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

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
