:root {
  --bg: #050706;
  --bg-2: #090c0a;
  --panel: rgba(8, 11, 9, 0.92);
  --panel-soft: rgba(13, 16, 13, 0.88);
  --text: #e5ddd1;
  --muted: #a49b90;
  --dim: #746e65;
  --line: rgba(178, 143, 106, 0.25);
  --line-strong: rgba(178, 143, 106, 0.47);
  --gold: #b28c6a;
  --red: #9f3b38;
  --red-deep: #541a1b;
  --green: #486956;
  --green-deep: #17352b;
  --shadow: 0 18px 50px rgba(0,0,0,.38);
  --shell: 1480px;
  --radius: 4px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 5%, rgba(59, 85, 70, .10), transparent 28rem),
    linear-gradient(180deg, #050706 0%, #080a08 35%, #050706 100%);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.site-background {
  position: fixed;
  inset: 0;
  z-index: 0;

  background-image: url("assets/hero-placeholder.jpg");
  background-size: cover;
  background-position: center 48%;
  background-repeat: no-repeat;

  pointer-events: none;
}

.site-background::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(2, 4, 3, .20) 0%,
      rgba(2, 4, 3, .40) 55%,
      rgba(2, 4, 3, .70) 100%
    );
}

@font-face {
  font-family: "IWATV_title";
  src: url("fonts/ITCBenguiatStdBoldCn.OTF") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IWATV comic";
  src: url("fonts/JDK Vindil.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .12;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.024) 0, rgba(255,255,255,.024) 1px, transparent 1px, transparent 3px),
    radial-gradient(circle at center, transparent 60%, rgba(0,0,0,.22));
  mix-blend-mode: soft-light;
}

a { color: inherit; }

img {
  display: block;
  width: 100%;
}

button, input, textarea, select {
  font: inherit;
}

h1, h2, h3, .brand, .section-label, .panel-heading {
  font-family: "IWATV_title";
}

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

.shell {
  width: min(calc(100% - 44px), var(--shell));
  margin-inline: auto;
}

/* Navigation */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  border-bottom: 1px solid rgba(178,143,106,.10);
  background: linear-gradient(180deg, rgba(3,5,4,.92), rgba(3,5,4,.62));
  backdrop-filter: blur(8px);
}

.nav {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.brand {
  color: #ded5c7;
  font-size: 1.0rem;
  font-weight: 600;
  letter-spacing: .10em;
  text-decoration: none;
  text-shadow: 0 2px 16px rgba(0,0,0,.75);
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(50px, 2.25vw, 40px);
}

.nav-links a {
  position: relative;
  color: #c6beb2;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: .96rem;
  padding: 28px 0 25px;
  transition: color .18s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 16px;
  height: 1px;
  background: var(--red);
  transition: left .18s ease, right .18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #f0e6d8;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  left: 0;
  right: 0;
}

.social-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.social-links a {
  width: 20px;
  height: 20px;
  color: #9c9992;
  transition: color .16s ease, transform .16s ease;
}

.social-links a:hover {
  color: #ded5c7;
  transform: translateY(-1px);
}

.social-links svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px 0 8px 12px;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 25px;
  height: 1px;
  background: #d4ccbf;
  margin: 5px 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: 760px;
  height: min(78vw, 910px);
  max-height: 910px;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-image-wrap,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-image-wrap { z-index: -3; }

.hero-image {
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  <!--filter: saturate(.82) contrast(1.05) brightness(.72);
  transform: scale(1.012);-->
}

.hero-scrim {
  z-index: -2;
  background:
    linear-gradient(180deg,
      rgba(2,4,3,.30) 0%,
      rgba(2,4,3,.08) 24%,
      rgba(2,4,3,.14) 53%,
      rgba(2,4,3,.76) 88%,
      #050706 100%),
    radial-gradient(circle at 50% 43%, rgba(5,7,6,.03) 0%, rgba(5,7,6,.12) 40%, rgba(5,7,6,.62) 100%);
}

.hero-content {
  transform: translateY(-50px);
  padding-top: 0px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-shadow: 0 3px 24px rgba(0,0,0,.78);
}

.kicker {
  margin: 0 0 14px;
  color: #c5ae98;
  font-family: "Cormorant Garamond", Georgia, serif;
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .84rem;
  font-weight: 700;
}

.hero-logo {
  width: min(700px, 72vw);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 18px rgba(0, 0, 0, .75));
}

.hero-subtitle {
  margin: 20px 0 0;
  color: #e1d6c8;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  letter-spacing: .02em;
  text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
}

.age-mark {
  margin-top: 2px;
  color: #b63d39;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.35rem;
  line-height: 1.1;
  font-weight: 600;
}

.hero-copy {
  max-width: 630px;
  margin: 16px auto 0;
  color: #d0c8bc;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.08rem;
  text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 26px;
}

.cta-card {
  min-width: 225px;
  min-height: 64px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  text-align: left;
  border: 1px solid;
  box-shadow: 0 12px 30px rgba(0,0,0,.36);
  backdrop-filter: blur(8px);
  transition: transform .16s ease, filter .16s ease, border-color .16s ease;
}

.cta-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.09);
}

.cta-card.steam {
  background: linear-gradient(135deg, rgba(145, 42, 149, 0.95), rgba(44,17,18,.94));
  border-color: rgba(179, 155, 59, 0.685);
}

.cta-card.patreon {
  background: linear-gradient(135deg, rgba(40, 160, 193, 0.95), rgba(17,42,34,.94));
  border-color: rgba(84,114,99,.60);
}

.cta-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.cta-icon svg {
  width: 100%;
  height: 100%;
  fill: #e9e1d7;
}

.cta-card small {
  display: block;
  color: rgba(236,228,216,.70);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.cta-card strong {
  display: block;
  margin-top: -1px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.22rem;
  letter-spacing: .045em;
}

/* Main content */
.content-shell {
  position: relative;
  z-index: 4;
  margin-top: -24px;
  padding-bottom: 42px;
}

.panel {
  background:
    linear-gradient(140deg, rgba(13,17,14,.94), rgba(7,10,8,.97));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.split-row {
  display: grid;
  gap: 16px;
}

.top-row {
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.55fr);
}

.bottom-row {
  grid-template-columns: minmax(300px, .76fr) minmax(0, 1.55fr);
  margin-top: 16px;
}

.section-label,
.panel-heading {
  color: #b58069;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.section-label {
  font-size: 1rem;
  margin-bottom: 16px;
}

.panel-heading {
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(178,143,106,.13);
}

.panel-heading h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.panel-heading a {
  color: #a49a8e;
  text-decoration: none;
  font-size: .78rem;
  transition: color .16s ease;
}

.panel-heading a:hover { color: #ded6ca; }

.story-panel {
  position: relative;
  min-height: 300px;
  padding: 24px 26px 26px;
  overflow: hidden;
}

.story-panel::after {
  content: "";
  position: absolute;
  inset: auto -70px -100px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140,54,49,.13), transparent 65%);
}

.story-panel p {
  margin: 0 0 18px 74px;
  color: #c2baaf;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.03rem;
}

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

.ornament {
  position: absolute;
  top: 70px;
  left: 26px;
  width: 48px;
  height: 150px;
  color: rgba(139,55,51,.70);
  font-size: 3.4rem;
  line-height: 1;
  display: grid;
  place-items: start center;
  border-right: 1px solid rgba(139,55,51,.18);
}

/* Characters */
.characters-panel { overflow: hidden; }

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px;
}

.character-card {
  position: relative;
  display: block;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(178,143,106,.19);
  background: #090b0a;
  text-decoration: none;
}

.character-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(.72) brightness(.78) contrast(1.03);
  transition: transform .28s ease, filter .28s ease;
}

.character-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(3,5,4,.94) 100%);
  pointer-events: none;
}

.character-overlay {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 14px 13px;
  text-align: center;
}

.character-overlay h3 {
  margin: 0;
  color: #dfd1c0;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 1.35rem;
  line-height: 1;
}

.character-overlay p {
  margin: 6px 0 0;
  color: #9c958b;
  font-size: .72rem;
}

.character-card:hover img {
  transform: scale(1.035);
  filter: saturate(.92) brightness(.92) contrast(1.05);
}

/* Carousel */
.media-panel {
  margin-top: 16px;
  overflow: hidden;
}

.carousel-wrap {
  position: relative;
  padding: 10px 16px 14px;
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 31.5%);
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-inline: contain;
}

.carousel::-webkit-scrollbar { display: none; }

.screenshot-card {
  position: relative;
  margin: 0;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid rgba(178,143,106,.20);
  background: #080a08;
}

.screenshot-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(.78) brightness(.82);
  transition: transform .24s ease, filter .24s ease;
}

.screenshot-card:hover img {
  transform: scale(1.02);
  filter: saturate(.94) brightness(.94);
}

.screenshot-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 12px 10px;
  background: linear-gradient(transparent, rgba(2,4,3,.92));
  color: #ddd4c7;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: .86rem;
}

.carousel-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 42px;
  height: 58px;
  transform: translateY(-50%);
  border: 1px solid rgba(178,143,106,.28);
  background: rgba(6,8,7,.90);
  color: #d8d0c5;
  font-family: Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}

.carousel-arrow:hover {
  background: rgba(18,24,20,.96);
  border-color: rgba(178,143,106,.50);
}

.carousel-arrow.prev { left: 5px; }
.carousel-arrow.next { right: 5px; }

/* Features */
.features-panel {
  padding: 20px 24px 24px;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding: 8px 0;
  align-items: start;
}

.feature-glyph {
  color: #a23d39;
  font-family: Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.25;
  text-align: center;
}

.feature-list strong {
  display: block;
  color: #ddd4c7;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
}

.feature-list small {
  display: block;
  margin-top: 1px;
  color: #8d877e;
  font-size: .72rem;
}

/* Development */
.development-panel { overflow: hidden; }

.journal-card {
  display: grid;
  grid-template-columns: minmax(220px, .74fr) 1.3fr;
  min-height: 280px;
  text-decoration: none;
}

.journal-art {
  overflow: hidden;
  border-right: 1px solid rgba(178,143,106,.15);
}

.journal-art img {
  height: 100%;
  object-fit: cover;
  filter: saturate(.70) brightness(.70) contrast(1.05);
  transition: transform .28s ease, filter .28s ease;
}

.journal-copy {
  align-self: center;
  padding: 28px 34px;
}

.journal-copy time {
  color: #9c8977;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .72rem;
}

.journal-copy h3 {
  margin: 7px 0 8px;
  color: #e0d5c8;
  font-size: 1.75rem;
  line-height: 1.05;
}

.journal-copy p {
  max-width: 620px;
  margin: 0;
  color: #a7a096;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
}

.journal-link {
  display: inline-block;
  margin-top: 16px;
  color: #c5ae98;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: .80rem;
}

.journal-card:hover .journal-art img {
  transform: scale(1.025);
  filter: saturate(.84) brightness(.82);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(178,143,106,.12);
  color: #6f6b64;
  background: #040605;
}

.footer-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: .75rem;
}

.footer p { margin: 0; }

.footer a {
  margin-left: 24px;
  color: #777168;
  text-decoration: none;
}

.footer a:hover { color: #bdb4a8; }

/* Responsive */
@media (max-width: 1120px) {
  .nav {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .social-links { display: none; }

  .nav-links {
    position: absolute;
    left: 22px;
    right: 22px;
    top: 70px;
    padding: 15px 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(5,7,6,.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 12px 0;
  }

  .nav-links a::after { bottom: 7px; }

  .hero {
    min-height: 720px;
    height: 82vw;
  }

  .top-row,
  .bottom-row {
    grid-template-columns: 1fr;
  }

  .carousel {
    grid-auto-columns: minmax(300px, 46%);
  }
}

@media (max-width: 760px) {

.site-background {
  background-position: left center;
}

.hero-image {
  object-position: left center;
}
  .shell {
    width: min(calc(100% - 26px), var(--shell));
  }

  .site-header {
    position: fixed;
    background: rgba(4,6,5,.92);
  }

  .nav { min-height: 64px; }

  .brand { font-size: 1.65rem; }

  .nav-links {
    top: 64px;
    left: 13px;
    right: 13px;
  }

  .hero {
    height: auto;
    min-height: 720px;
  }

  .hero-content {
    padding-top: 96px;
  }

  .hero h1 {
    font-size: clamp(5.1rem, 24vw, 7.5rem);
  }

  .hero-copy {
    max-width: 510px;
    font-size: 1rem;
  }

  .hero-ctas {
    width: min(100%, 390px);
    flex-direction: column;
  }

  .cta-card {
    width: 100%;
    min-width: 0;
  }

  .content-shell {
    margin-top: -10px;
  }

  .story-panel p {
    margin-left: 0;
  }

  .ornament { display: none; }

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

  .carousel {
    grid-auto-columns: minmax(270px, 84%);
  }

  .carousel-wrap {
    padding-left: 10px;
    padding-right: 10px;
  }

  .carousel-arrow {
    display: none;
  }

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

  .journal-art {
    border-right: 0;
    border-bottom: 1px solid rgba(178,143,106,.15);
  }

  .journal-art img {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .journal-copy {
    padding: 24px;
  }

  .footer-inner {
    padding: 20px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer a {
    margin-left: 0;
    margin-right: 20px;
  }
}

@media (max-width: 460px) {
  .character-grid {
    grid-template-columns: 1fr;
  }

  .character-card {
    min-height: 0;
  }

  .character-card img {
    aspect-ratio: 4 / 5;
  }

  .story-panel,
  .features-panel {
    padding-left: 20px;
    padding-right: 20px;
  }

  .panel-heading {
    padding-inline: 14px;
  }

  .panel-heading a {
    font-size: .70rem;
  }
}

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


main,
.footer {
  position: relative;
  z-index: 1;
}

.hero-image-wrap {
  display: none;
}

.social-instagram svg {
  transform: scale(1.18) translateY(3px);
}

.video-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}