:root {
  color-scheme: dark;
  --ink: #10171d;
  --paper: #f3f0e8;
  --muted: #b2bec7;
  --accent: #e8b66e;
  --surface: #1a252d;
  --header-height: 64px;
  --frame: #71879980;
  --soft-shadow: 0 24px 80px #0003, 0 6px 32px #0002;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 18px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body.intro-open,
body.region-open {
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2,
h3 {
  line-height: 1.3;
}
button {
  border: 0;
}
::selection {
  background: #e8b66e;
  color: #10171d;
}
.section-shell {
  width: min(1400px, calc(100% - 112px));
  margin-inline: auto;
}
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 26px;
}
.brand {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1.5px;
}
.brand span {
  color: var(--accent);
}
.title-screen[hidden] {
  display: none;
}
.title-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  isolation: isolate;
  background: #121c26;
  opacity: 1;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}
.title-screen.is-leaving {
  opacity: 0;
  pointer-events: none;
}
.title-backdrop,
.landing-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.title-backdrop {
  animation: breathe 22s ease-in-out infinite alternate;
  filter: blur(var(--intro-blur, 0px)) brightness(var(--intro-brightness, 1));
}
.title-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(7, 13, 19, 0.28),
      transparent 28%,
      rgba(7, 13, 19, 0.12) 62%,
      rgba(7, 13, 19, 0.6)
    ),
    radial-gradient(
      ellipse at center,
      rgba(5, 9, 14, 0.08) 15%,
      rgba(5, 9, 14, 0.35) 100%
    );
}
.intro-brand {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  padding-inline: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 0 3px 24px #0009;
  background: #10171d55;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #c4d3dc20;
  z-index: 2;
}
.intro-site-label {
  font-size: 12px;
  letter-spacing: 2.8px;
  opacity: 0.8;
}
.work-brand {
  position: relative;
  padding-left: 17px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.6px;
  white-space: nowrap;
}
.work-brand::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 26px;
  background: var(--accent);
  transform: translateY(-50%);
  box-shadow: 0 0 24px #e8b66e28;
}
.work-brand > span {
  display: inline-block;
}
.work-brand > span:last-child {
  color: var(--accent);
}
.title-content {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  background: transparent;
  padding: 100px 24px clamp(110px, 18svh, 180px);
  transition: transform 600ms var(--ease-out);
}
.title-screen.is-leaving .title-content {
  transform: translateY(-18px) scale(1.025);
}
.title-enter {
  background: #10171d70;
  padding: 18px 26px;
  border: 2px solid #bd9d738c;
  backdrop-filter: blur(14px);
  box-shadow:
    var(--soft-shadow),
    0 0 80px #e8b66e10;
  transition:
    color 250ms ease,
    background 350ms ease,
    border-color 350ms ease,
    transform 350ms var(--ease-out);
}
.title-enter:active {
  transform: scale(0.96);
}
@media (hover: hover) and (pointer: fine) {
  .title-enter:hover {
    color: #ffe0b4;
    background: #10171d9c;
    border-color: #f1c98eb3;
    transform: translateY(-3px);
  }
  .title-enter:hover .enter-label > span {
    transform: translateY(4px);
  }
  .title-enter:hover .enter-label {
    animation-play-state: paused;
  }
}
.title-kicker {
  font-size: clamp(16px, 1.35vw, 22px);
  letter-spacing: 2px;
  text-shadow:
    0 5px 30px #000,
    0 0 50px #0008;
}
.enter-label {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 0;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 1px;
  text-shadow: 0 6px 30px #000;
  animation: invite 2.6s ease-in-out infinite;
}
.enter-label > span {
  font-size: 24px;
  transition: transform 350ms var(--ease-out);
}
.intro-credit {
  position: absolute;
  bottom: 34px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 2.4px;
  opacity: 0.7;
  pointer-events: none;
  text-shadow: 0 5px 24px #000;
}
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 56px;
  background: rgba(16, 23, 29, 0.52);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #c4d3dc20;
  gap: 20px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 600;
}
.site-header nav a {
  color: #d5dee4;
  position: relative;
  padding-block: 8px;
  transition: color 250ms ease;
}
.site-header nav a::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease-out);
}
.site-header nav a:is(:hover, :focus-visible)::after {
  transform: scaleX(1);
}
.site-header nav a:hover {
  color: var(--accent);
}
.site-header nav button {
  padding: 10px 0;
  background: none;
  color: var(--accent);
}
.site-header nav button span {
  display: inline-block;
  margin-left: 8px;
  transition: transform 300ms var(--ease-out);
}
.site-header nav button:is(:hover, :focus-visible) span {
  transform: translate(2px, -2px);
}
.site-header nav button:active {
  transform: scale(0.96);
}
.hero {
  position: relative;
  min-height: 740px;
  height: calc(100svh - var(--header-height));
  max-height: 1040px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}
#landing {
  position: relative;
  isolation: isolate;
}
.landing-backdrop {
  position: fixed;
  z-index: -2;
  pointer-events: none;
}
.landing-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #07101bc2, #07101b70 52%, #07101b3d),
    linear-gradient(180deg, #07101b20, #07101b90);
}
.hero-copy {
  position: relative;
  width: min(1400px, calc(100% - 112px));
  text-align: left;
  padding: 80px 0 130px;
}
.hero-copy .eyebrow {
  text-shadow: 0 4px 24px #000;
  font-size: 13px;
}
#hero-title {
  font-size: clamp(58px, 6.8vw, 112px);
  font-weight: 900;
  line-height: 1.13;
  letter-spacing: -0.06em;
  text-shadow:
    0 12px 70px #0009,
    0 0 100px #0005;
}
#hero-title > span {
  display: block;
}
#hero-title > span:last-child {
  color: var(--accent);
  margin-top: 12px;
}
.hero-subtitle {
  font-size: clamp(20px, 2vw, 29px);
  font-weight: 500;
  margin: 28px 0 36px;
  text-shadow: 0 4px 28px #000;
  letter-spacing: -0.4px;
}
.mobile-break {
  display: none;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 60px;
  padding: 15px 32px;
  background: var(--accent);
  color: #162129;
  font-size: 18px;
  font-weight: 700;
  border: 2px solid #f1c98e99;
  transition:
    background 0.25s,
    transform 0.35s var(--ease-out),
    box-shadow 0.35s ease;
  box-shadow:
    var(--soft-shadow),
    0 0 70px #e8b66e12;
}
.primary-button:hover {
  background: #f2c686;
  transform: translateY(-3px);
  box-shadow:
    0 18px 48px #0004,
    0 0 30px #e8b66e20;
}
.primary-button:active {
  transform: translateY(0) scale(0.97);
}
.primary-button span {
  transition: transform 300ms var(--ease-out);
}
.primary-button:is(:hover, :focus-visible) span {
  transform: translateX(5px);
}
.primary-button span {
  font-size: 24px;
}
.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #c6cfd5;
  font-size: 11px;
  letter-spacing: 3px;
}
.scroll-cue > span:last-child {
  font-size: 24px;
}
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 100px;
  padding-block: 120px 85px;
}
.story-art {
  position: relative;
  border: 2px solid var(--frame);
  overflow: hidden;
  box-shadow: var(--soft-shadow);
}
.story-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.story-art::after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, #10171dcc);
  pointer-events: none;
}
.art-caption {
  position: absolute;
  left: 30px;
  bottom: 24px;
  z-index: 1;
  font-size: 13px;
  letter-spacing: 2px;
  color: #d3dfe6;
}
.story-copy h2 {
  font-size: clamp(38px, 3.6vw, 60px);
  letter-spacing: -2px;
  margin-bottom: 34px;
  line-height: 1.35;
}
.story-copy {
  padding: 40px;
  background: #12212eb3;
  backdrop-filter: blur(16px);
  border: 2px solid var(--frame);
  box-shadow: var(--soft-shadow);
}
.story-copy h2 span {
  color: var(--accent);
}
.story-copy > p:not(.eyebrow) {
  font-size: 19px;
  color: #b9c5cd;
  line-height: 1.95;
  margin-bottom: 22px;
}
.story-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.story-facts div {
  display: flex;
  flex-direction: column;
}
.story-facts strong {
  font-size: 36px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -1.5px;
}
.story-facts span {
  font-size: 14px;
  color: var(--muted);
  margin-top: 7px;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 140px;
}
.features article {
  padding: 36px 34px 40px;
  border: 2px solid var(--frame);
  background: #172b3a99;
  backdrop-filter: blur(16px);
  box-shadow: var(--soft-shadow);
}
.feature-number {
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
}
.features h3 {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.8px;
  margin: 24px 0 17px;
}
.features p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}
.characters {
  padding-block: 20px 130px;
}
.operation-map {
  padding-block: 0 130px;
}
.map-art {
  margin: 0;
  border: 2px solid var(--frame);
  background: #14263699;
  backdrop-filter: blur(16px);
  box-shadow: var(--soft-shadow);
}
.map-stage {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
}
.map-art img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
.map-art figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  font-size: 14px;
  color: var(--muted);
}
.map-city-title,
.map-label {
  position: absolute;
  background: #e9e5db;
  color: #24313b;
  border: 1px solid #647482;
  box-shadow: 0 6px 24px #10171d38;
  text-align: center;
  line-height: 1.3;
}
.map-city-title {
  left: 1.6%;
  top: 2%;
  width: 16%;
  height: 11%;
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 90px;
  min-height: 36px;
}
.map-city-title strong {
  font-size: clamp(18px, 3.1cqw, 44px);
  letter-spacing: 0.1em;
}
.map-city-title span {
  font-size: clamp(10px, 1.3cqw, 18px);
  letter-spacing: 0.2em;
}
.map-label {
  --label-min-width: 96px;
  left: var(--map-x);
  top: var(--map-y);
  width: var(--label-width);
  min-width: max-content;
  min-height: var(--label-height);
  min-height: max(44px, var(--label-height));
  padding: 8px 10px;
  font-weight: 700;
  white-space: nowrap;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition:
    background 200ms,
    box-shadow 200ms;
}
.map-label strong {
  display: block;
  font-size: clamp(14px, 1.4cqw, 20px);
}
.map-label span {
  display: block;
  font-size: clamp(12px, 1cqw, 14px);
  margin-top: 2px;
}
.map-label:is(:hover, :focus-visible) {
  background: #ffe1a5;
  box-shadow: 0 4px 24px #e8b66e80;
  z-index: 2;
}
.map-compass {
  position: absolute;
  top: 1.5%;
  right: 1%;
  width: 3.1%;
  height: 7%;
  min-width: 22px;
  min-height: 34px;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1;
  background: #d5dde2;
  color: #26323b;
  font-size: clamp(11px, 1.3cqw, 18px);
}
.map-compass span {
  font-size: clamp(14px, 2.8cqw, 38px);
}
.map-river {
  position: absolute;
  left: 84.3%;
  top: 54.7%;
  width: 3%;
  height: 15.2%;
  min-width: 22px;
  min-height: 72px;
  display: grid;
  place-items: center;
  writing-mode: vertical-rl;
  background: #7f98aa;
  color: #eef3f6;
  font-size: clamp(12px, 1.6cqw, 23px);
  letter-spacing: 0.3em;
}
.map-label-mask {
  position: absolute;
  left: var(--map-x);
  top: var(--map-y);
  width: var(--label-width);
  height: var(--label-height);
  min-width: 20px;
  min-height: 16px;
  display: grid;
  place-items: center;
  color: #77582e;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #a39376;
  background: #e9e5db;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
/* Keep labels readable rather than shrinking them with the map bitmap.
   Original printed placards stay masked even when compact labels move. */
@container (max-width: 600px) {
  .map-city-title {
    gap: 0;
  }
  .map-label {
    left: clamp(
      calc(var(--label-min-width) / 2 + 8px),
      var(--compact-x, var(--map-x)),
      calc(100% - var(--label-min-width) / 2 - 8px)
    );
    top: var(--compact-y, var(--map-y));
    min-width: var(--label-min-width);
    min-height: 36px;
    padding: 6px 8px;
  }
  .map-label span {
    display: none;
  }
  .map-label::before {
    content: attr(data-map-index);
    position: absolute;
    top: -7px;
    left: -6px;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    font-size: 11px;
    line-height: 1;
    color: #fff5e3;
    background: #77582e;
  }
  .map-label[data-map-region="northwest-housing"] {
    --compact-x: 23%;
    --compact-y: 32%;
    --label-min-width: 134px;
  }
  .map-label[data-map-region="north-cathedral"] {
    --compact-y: 10%;
  }
  .map-label[data-map-region="clock-square"] {
    --compact-x: 64%;
    --compact-y: 43%;
  }
  .map-label[data-map-region="west-station"] {
    --compact-y: 54%;
  }
  .map-label[data-map-region="east-harbor"] {
    --compact-y: 64%;
  }
  .map-label[data-map-region="south-rolling-mill"] {
    --compact-x: 41%;
    --compact-y: 81%;
    --label-min-width: 120px;
  }
}
@container (max-width: 320px) {
  .map-label[data-map-region="north-cathedral"] {
    --compact-y: 15%;
  }
  .map-label[data-map-region="northwest-housing"] {
    --compact-y: 37%;
  }
  .map-label[data-map-region="west-station"] {
    --compact-y: 61%;
  }
  .map-label[data-map-region="clock-square"] {
    --compact-x: 78%;
  }
  .map-label[data-map-region="south-rolling-mill"] {
    --compact-x: 36%;
    --compact-y: 86%;
  }
}
.map-location-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.map-location-list button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  min-height: 48px;
  font-size: 16px;
  background: #142636c9;
  border: 1px solid var(--frame);
  backdrop-filter: blur(16px);
  text-align: left;
}
.map-location-list button:hover {
  background: #294152d9;
}
.map-location-list span {
  color: var(--accent);
}
.map-location-list .map-location-name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
}
.map-location-name small {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 1px;
}
@media (max-width: 380px) {
  .map-location-list button {
    padding-inline: 10px;
    gap: 6px;
  }
  .map-location-list .map-location-name {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
.region-dialog {
  --region-progress: 0;
  --region-offset: 36px;
  width: min(640px, calc(100% - 48px));
  max-height: 85svh;
  margin: auto;
  padding: 0;
  overflow: auto;
  color: var(--paper);
  background: #162735f2;
  border: 1px solid #8a9eae;
  box-shadow: 0 24px 100px #0008;
  backdrop-filter: blur(20px);
  opacity: var(--region-progress);
  transform: translateY(
      calc((1 - var(--region-progress)) * var(--region-offset))
    )
    scale(calc(0.98 + 0.02 * var(--region-progress)));
  will-change: transform, opacity;
}
.region-dialog::backdrop {
  background: rgb(4 11 18 / calc(var(--region-progress) * 0.66));
  backdrop-filter: blur(calc(var(--region-progress) * 6px));
}
.region-dialog-content {
  position: relative;
  padding: 44px 38px 32px;
}
.region-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 44px;
  height: 44px;
  background: #ffffff0f;
  font-size: 28px;
  line-height: 1;
}
.region-close:hover {
  background: #ffffff20;
}
.region-dialog .eyebrow {
  font-size: 11px;
  margin-bottom: 20px;
  padding-right: 40px;
}
.region-dialog h2 {
  font-size: clamp(27px, 4vw, 36px);
}
.region-subtitle {
  color: var(--accent);
  font-size: 15px;
  margin: 12px 0 26px;
}
.region-description p {
  font-size: 17px;
  line-height: 1.95;
  color: #d0dae2;
  margin-top: 18px;
}
.region-context {
  border-top: 1px solid var(--frame);
  padding-top: 20px;
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted);
}
.sheet-handle {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .region-dialog {
    /* Keep the requested gentle fade, without spatial movement or scaling. */
    transform: none !important;
  }
}
@media (max-width: 700px) {
  .map-label span {
    display: none;
  }
  .map-location-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .map-location-list button {
    font-size: 15px;
    padding: 12px;
  }
  .region-dialog {
    --region-offset: 100%;
    transform: translateY(
      calc((1 - var(--region-progress)) * var(--region-offset))
    );
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 82svh;
    margin: 0;
    border-inline: 0;
    border-bottom: 0;
  }
  .region-dialog-content {
    padding: 36px 24px calc(28px + env(safe-area-inset-bottom));
  }
  .sheet-handle {
    display: block;
    position: absolute;
    top: 12px;
    left: calc(50% - 20px);
    width: 40px;
    height: 3px;
    background: #8a9eae;
  }
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 72px;
}
.section-heading h2 {
  font-size: clamp(40px, 4vw, 60px);
  letter-spacing: -2px;
}
.section-heading > p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.85;
}
.character-group + .character-group {
  margin-top: 95px;
}
.group-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}
.group-number {
  font-size: 38px;
  font-weight: 300;
  color: #506573;
  line-height: 1;
}
.group-heading h3 {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -1px;
}
.group-heading p {
  font-size: 16px;
  color: var(--muted);
  margin-top: 8px;
}
.group-count {
  margin-left: auto;
  color: var(--accent);
  font-size: 16px;
  white-space: nowrap;
}
.roster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
}
.character-card {
  text-align: left;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--frame);
  background: #142636a3;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--soft-shadow);
  transition:
    transform 0.4s var(--ease-out),
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.4s ease;
}
.character-card:hover {
  transform: translateY(-5px);
  background: #223b4bb3;
  border-color: #92a8b999;
  box-shadow:
    0 26px 70px #0005,
    0 6px 30px #e8b66e0a;
}
.char-photo {
  position: relative;
  aspect-ratio: 4/4.7;
  background: radial-gradient(ellipse, #354955, #18232c);
  overflow: hidden;
}
.char-photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  transition: transform 0.7s;
}
.character-card:hover .char-photo img {
  transform: scale(1.035);
}
.char-photo::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, #14202a44 38%, #142636cc 100%);
  pointer-events: none;
}
.char-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-size: 64px;
  color: #9dafb8;
  font-weight: 300;
}
.image-failed .char-placeholder {
  display: grid;
}
.image-failed img {
  visibility: hidden;
}
.char-role {
  position: absolute;
  top: 20px;
  left: 20px;
  max-width: calc(100% - 40px);
  padding: 8px 14px;
  border: 1px solid #92a8b980;
  box-shadow: 0 12px 44px #0002;
  font-size: 14px;
  background: #10171d8c;
  color: #efece5;
  z-index: 2;
  backdrop-filter: blur(12px);
}
.char-caption {
  position: absolute;
  left: 28px;
  bottom: 24px;
  right: 24px;
  z-index: 2;
  text-shadow: 0 4px 22px #0006;
}
.char-caption .char-rank {
  font-size: 14px;
  color: var(--accent);
  display: block;
  margin-bottom: 7px;
}
.char-caption h4 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.3;
  margin: 0;
}
.char-body {
  padding: 6px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.char-weapon {
  color: #b1bec7;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.8;
}
.char-body blockquote {
  margin: 0 0 22px;
  padding: 19px 20px;
  background: #29415280;
  backdrop-filter: blur(8px);
  border: 1px solid #71879966;
  box-shadow: 0 14px 50px #0001;
  font-size: 17px;
  color: #e5e7e2;
  line-height: 1.85;
}
.char-summary {
  font-size: 16px;
  color: #b4c1ca;
  line-height: 1.9;
}
.enemy-group .group-count,
.enemy-group .char-rank {
  color: #eeaa9c;
}
.enemy-group .character-card,
.enemy-group .char-role,
.enemy-group .char-body blockquote {
  border-color: #b8898066;
}
.enemy-group .character-card:hover {
  border-color: #d09b9099;
}
.closing {
  position: relative;
  background: #10213170;
  backdrop-filter: blur(16px);
}
.closing-copy {
  padding-block: 110px 120px;
}
.closing h2 {
  font-size: clamp(36px, 4vw, 58px);
  letter-spacing: -1.8px;
  line-height: 1.4;
}
.closing-copy > p:not(.eyebrow) {
  color: #bac6ce;
  font-size: 19px;
  margin: 25px 0 38px;
}
.site-footer {
  padding-block: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  font-size: 14px;
  color: #acbac4;
}
.site-footer p {
  text-align: center;
  font-size: 14px;
}
.site-footer p span {
  color: #738692;
  font-size: 12px;
}
.site-footer > a:last-child {
  font-size: 14px;
  color: #d0d6d9;
}
.noscript-note {
  padding: 32px;
}
.character-page {
  padding-block: 40px 60px;
  min-height: calc(100svh - var(--header-height));
}
.character-profile,
.character-pagination,
.character-not-found {
  opacity: var(--profile-opacity, 1);
  transform: translateY(var(--profile-offset, 0px));
}
.detail-back {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 16px;
}
.detail-back:hover,
.character-pagination :is(a, button):hover {
  color: var(--accent);
}
.character-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  border: 2px solid var(--frame);
  background: #142636a3;
  backdrop-filter: blur(16px);
  box-shadow: var(--soft-shadow);
}
.profile-portrait {
  position: relative;
  margin: 0;
  align-self: stretch;
  min-height: 520px;
  overflow: hidden;
  background: #18232c;
}
.profile-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.profile-portrait figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 28px 22px;
  background: linear-gradient(transparent, #10171de6);
  color: var(--paper);
  font-size: 16px;
  text-shadow: 0 4px 20px #0009;
}
.profile-copy {
  padding: clamp(28px, 4vw, 60px);
}
.profile-copy .eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 18px;
}
#character-title {
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.25;
  letter-spacing: -2px;
}
.profile-role {
  color: var(--accent);
  margin: 12px 0 30px;
  font-size: 20px;
}
.profile-copy blockquote {
  margin: 0 0 36px;
  padding-left: 22px;
  border-left: 2px solid var(--accent);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.8;
}
.profile-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 16px;
  margin: 0 0 36px;
  padding-block: 24px;
  border-block: 1px solid var(--frame);
}
.profile-facts dt {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}
.profile-facts dd {
  margin: 0;
  font-size: 17px;
}
.profile-equipment {
  grid-column: 1 / -1;
}
.profile-introduction h2 {
  font-size: 18px;
  margin-bottom: 16px;
}
.profile-introduction p {
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
}
.enemy-profile {
  border-color: #b8898066;
}
.character-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 32px;
}
.character-pagination :is(a, button) {
  padding-block: 12px;
  background: transparent;
  text-align: left;
  transition: color 180ms;
}
.character-pagination span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.character-pagination strong {
  font-size: 17px;
}
.character-pagination :is(a, button):last-child {
  text-align: right;
}
.detail-roster-link {
  font-size: 14px;
}
.character-not-found {
  padding-block: 80px;
}
.character-not-found p:not(.eyebrow) {
  margin: 24px 0 36px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .character-profile {
    grid-template-columns: 1fr;
  }
  .profile-portrait {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 5;
    max-height: 620px;
  }
}
@media (max-width: 700px) {
  .character-page {
    padding-block: 24px 36px;
  }
  .detail-back {
    margin-bottom: 20px;
    font-size: 14px;
  }
  .profile-copy {
    padding: 28px 22px;
  }
  .profile-portrait figcaption {
    font-size: 13px;
    padding-inline: 22px;
  }
  .profile-role {
    font-size: 17px;
  }
  .profile-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .character-pagination {
    gap: 16px;
    grid-template-columns: 1fr 1fr;
  }
  .character-pagination strong {
    font-size: 14px;
  }
  .detail-roster-link {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: center;
  }
}
.title-enter:focus-visible {
  outline: none;
}
.title-enter:focus-visible .enter-label {
  text-decoration: underline;
  text-underline-offset: 8px;
}
.reveal-pending {
  opacity: 0;
  transform: translateY(28px);
}
.is-revealed {
  animation: reveal 750ms var(--ease-out) var(--reveal-delay, 0ms) backwards;
}
#landing.is-entered .hero-copy > * {
  animation: reveal 900ms var(--ease-out) backwards;
}
#landing.is-entered .hero-copy > :nth-child(2) {
  animation-delay: 80ms;
}
#landing.is-entered .hero-copy > :nth-child(3) {
  animation-delay: 160ms;
}
#landing.is-entered .hero-copy > :nth-child(4) {
  animation-delay: 240ms;
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes breathe {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.035);
  }
}
@keyframes invite {
  0%,
  100% {
    opacity: 0.7;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(4px);
  }
}
@media (min-width: 1800px) {
  #hero-title {
    font-size: 120px;
  }
}
@media (max-width: 1100px) {
  :root {
    --header-height: 56px;
  }
  .section-shell {
    width: calc(100% - 72px);
  }
  .hero-copy {
    width: calc(100% - 72px);
  }
  .story-copy {
    padding: 28px;
  }
  .site-header,
  .intro-brand {
    padding-inline: 36px;
  }
  .story {
    gap: 48px;
    padding-block: 100px 60px;
  }
  .story-copy h2 {
    font-size: 44px;
  }
  .story-copy > p:not(.eyebrow) {
    font-size: 17px;
  }
  .features {
    padding-bottom: 100px;
  }
  .features article {
    padding: 30px 26px;
  }
  .features h3 {
    font-size: 23px;
  }
  .roster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .hero {
    min-height: 660px;
  }
}
@media (max-width: 700px) {
  :root {
    --header-height: 56px;
  }
  body {
    font-size: 17px;
  }
  .section-shell {
    width: calc(100% - 40px);
  }
  .intro-brand {
    padding-inline: 20px;
  }
  .intro-brand .work-brand {
    font-size: 15px;
  }
  .intro-site-label {
    display: none;
  }
  .title-content {
    padding: 90px 20px 140px;
    gap: 22px;
  }
  .title-kicker {
    letter-spacing: 0.4px;
    font-size: 14px;
  }
  .title-backdrop {
    object-position: 49% center;
  }
  .title-vignette {
    background: linear-gradient(#0b131b33, #0b131b33 65%, #0b131b88);
  }
  .enter-label {
    font-size: 17px;
    margin-top: 0;
  }
  .intro-credit {
    font-size: 9px;
    letter-spacing: 1.8px;
    bottom: 28px;
  }
  .site-header {
    padding-inline: 20px;
    gap: 12px;
  }
  .site-header .work-brand {
    font-size: 13px;
    white-space: normal;
    max-width: 130px;
  }
  .site-header nav {
    gap: 12px;
    font-size: 12px;
    flex-shrink: 0;
  }
  .site-header .map-nav {
    display: none;
  }
  .site-header nav button {
    font-size: 0;
  }
  .site-header nav button span {
    font-size: 21px;
    margin-left: 0;
  }
  .hero {
    min-height: 610px;
    max-height: 850px;
  }
  .landing-backdrop {
    object-position: 52% center;
  }
  .hero-copy {
    padding: 80px 0 110px;
    width: calc(100% - 40px);
  }
  .hero-copy .eyebrow {
    font-size: 9px;
    letter-spacing: 1.8px;
    margin-bottom: 25px;
  }
  #hero-title {
    font-size: clamp(34px, 9.8vw, 64px);
  }
  .hero-subtitle {
    font-size: 22px;
    line-height: 1.65;
    margin: 22px 0 30px;
  }
  .mobile-break {
    display: block;
  }
  .primary-button {
    font-size: 17px;
    min-height: 58px;
    padding: 14px 27px;
    gap: 26px;
  }
  .scroll-cue {
    bottom: 24px;
  }
  .story {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 0;
    margin-block: 52px 40px;
    border: 2px solid var(--frame);
    background: #12212eb3;
    backdrop-filter: blur(16px);
    box-shadow: var(--soft-shadow);
    overflow: hidden;
  }
  .story-art {
    border: 0;
    box-shadow: none;
  }
  .story-art img {
    aspect-ratio: 16 / 9;
    height: clamp(140px, 42vw, 210px);
    object-position: center 45%;
  }
  .art-caption {
    left: 20px;
    bottom: 16px;
    font-size: 11px;
  }
  .story-copy h2 {
    font-size: clamp(28px, 7.5vw, 36px);
    margin-bottom: 20px;
  }
  .story-copy {
    padding: 24px 22px;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }
  .story-copy .eyebrow {
    margin-bottom: 14px;
  }
  .story-copy > p:not(.eyebrow) {
    font-size: 16px;
  }
  .eyebrow {
    font-size: 12px;
    letter-spacing: 2.5px;
    margin-bottom: 22px;
  }
  .story-facts {
    margin-top: 32px;
    gap: 20px;
  }
  .story-facts strong {
    font-size: 34px;
  }
  .story-facts span {
    font-size: 13px;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 85px;
  }
  .features article {
    padding: 30px;
  }
  .features h3 {
    font-size: 26px;
    margin: 17px 0 14px;
  }
  .features p {
    font-size: 17px;
  }
  .characters {
    padding-block: 10px 85px;
  }
  .section-heading {
    display: block;
    margin-bottom: 45px;
  }
  .section-heading h2 {
    font-size: 44px;
  }
  .section-heading > p {
    margin-top: 20px;
    font-size: 17px;
  }
  .group-heading {
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 26px;
  }
  .group-number {
    font-size: 29px;
    margin-top: 5px;
  }
  .group-heading h3 {
    font-size: 27px;
  }
  .group-heading p {
    font-size: 14px;
    line-height: 1.7;
  }
  .group-count {
    font-size: 14px;
    margin-top: 6px;
  }
  .roster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .character-group + .character-group {
    margin-top: 65px;
  }
  .char-photo {
    aspect-ratio: 3/4;
  }
  .char-role {
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    padding: 5px 7px;
    font-size: 10px;
  }
  .char-caption {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .char-caption .char-rank {
    font-size: 10px;
    margin-bottom: 4px;
  }
  .char-caption h4 {
    font-size: 18px;
    letter-spacing: -0.5px;
  }
  .char-body {
    padding: 4px 12px 18px;
  }
  .char-weapon {
    font-size: 11px;
    margin-bottom: 10px;
  }
  .char-body blockquote {
    padding: 12px 10px;
    font-size: 12px;
    margin-bottom: 12px;
    line-height: 1.7;
  }
  .char-summary {
    font-size: 12px;
    line-height: 1.85;
  }
  .operation-map {
    padding-bottom: 85px;
  }
  .map-art figcaption {
    padding: 14px;
    font-size: 12px;
  }
  .closing-copy {
    padding-block: 75px 85px;
  }
  .closing h2 {
    font-size: 38px;
  }
  .closing-copy > p:not(.eyebrow) {
    font-size: 17px;
    margin: 22px 0 30px;
  }
  .site-footer {
    padding-block: 36px;
    flex-wrap: wrap;
    gap: 25px;
  }
  .site-footer p {
    order: 3;
    width: 100%;
    text-align: left;
    font-size: 13px;
  }
}
@media (max-height: 530px) and (min-width: 701px) {
  .title-content {
    padding: 55px 24px 60px;
    gap: 12px;
  }
  .title-kicker {
    font-size: 14px;
  }
  .enter-label {
    font-size: 15px;
    margin: 0;
  }
  .intro-credit {
    bottom: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-pending {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
