/* Caratel Games — site styles. No external fonts or scripts (see privacy.html). */

:root {
  --ink: #0a0c0f;
  --ink-2: #0f1317;
  --panel: #141920;
  --panel-2: #1a2028;
  --line: rgba(201, 169, 110, 0.18);
  --line-soft: rgba(255, 255, 255, 0.07);
  --gold: #c9a96e;
  --gold-2: #e6cc94;
  --teal: #62cfc3;
  --text: #e9e5dc;
  --muted: #9ba3ab;
  --dim: #6f7881;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --radius: 6px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: #f4efe4;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: 0.04em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: 0.03em; }
h3 { font-size: 1.35rem; letter-spacing: 0.02em; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font: 600 0.74rem/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.lede { font-size: 1.18rem; color: #d7d2c8; max-width: 62ch; }
.muted { color: var(--muted); }

.rule {
  display: flex; align-items: center; gap: 14px;
  color: var(--gold); margin: 1.4rem 0;
}
.rule::before, .rule::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .55; }
.rule span { font-size: .8rem; letter-spacing: .3em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--panel); padding: 8px 14px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(10, 12, 15, 0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
  font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text); text-decoration: none; white-space: nowrap;
}
.brand b { color: var(--gold); font-weight: 400; }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: .86rem;
  letter-spacing: .14em; text-transform: uppercase;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  border-radius: var(--radius); padding: 7px 11px; font: inherit; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(10,12,15,.97); border-bottom: 1px solid var(--line-soft);
    display: none; padding: 8px 0 14px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; width: 100%; text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--radius);
  font: 600 .86rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--gold); color: var(--ink);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn:hover { color: var(--ink); filter: brightness(1.07); box-shadow: 0 8px 30px rgba(201,169,110,.25); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: rgba(233,229,220,.35); }
.btn.ghost:hover { color: #fff; border-color: var(--gold); box-shadow: none; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; align-items: end; overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,12,15,.55) 0%, rgba(10,12,15,0) 22%, rgba(10,12,15,0) 50%, rgba(10,12,15,.92) 88%, var(--ink) 100%);
}
.hero-content { padding: 0 0 9vh; }
.hero-content .lede { text-shadow: 0 2px 18px rgba(0,0,0,.8); }

/* title-art hero: the art has the title baked in, so never crop it — show it
   whole at its own 16:9 and put the copy underneath */
.hero.title-art { min-height: 0; display: block; padding: 0 0 72px; }
.hero.title-art::after { display: none; }
.hero.title-art .hero-media { position: relative; inset: auto; z-index: 0; }
.hero.title-art .hero-media img {
  width: 100%; height: auto; max-height: 100vh; aspect-ratio: 16 / 9; object-fit: cover;
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
          mask-image: linear-gradient(#000 78%, transparent);
}
.hero.title-art .hero-content { padding: 0; margin-top: -2vw; position: relative; }
.hero.title-art .scroll-cue { display: none; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { 0%,100% { opacity: .2; } 50% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }

/* ---------- sections ---------- */
section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.band { background: var(--ink-2); border-block: 1px solid var(--line-soft); }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

.frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.55);
  background: var(--panel);
}
.frame video, .frame img { width: 100%; }
.frame .caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

/* quote / pull line */
.pull {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.45; color: #ece5d6; border-left: 2px solid var(--gold); padding-left: 22px; margin: 0 0 1.4rem;
}

/* ---------- feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.feature img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.feature .body { padding: 24px 26px 28px; }
.feature .num { font-family: var(--serif); color: var(--gold); font-size: .95rem; letter-spacing: .2em; }
.feature p { color: #c9c4ba; margin: 0; }

/* ---------- suspects ---------- */
.suspects { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1000px) { .suspects { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .suspects { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.suspect {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-soft); background: var(--panel);
}
.suspect img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; filter: saturate(.9); transition: transform .5s, filter .4s; }
.suspect:hover img { transform: scale(1.04); filter: saturate(1.05); }
.suspect figcaption {
  position: absolute; inset: auto 0 0 0; padding: 48px 14px 14px;
  background: linear-gradient(transparent, rgba(5,6,8,.94) 55%);
}
.suspect .name { font-family: var(--serif); font-size: 1.12rem; color: #f4efe4; display: block; }
.suspect .role { font-size: .78rem; color: var(--muted); letter-spacing: .03em; display: block; line-height: 1.4; }
.victim {
  display: grid; grid-template-columns: 180px 1fr; gap: 26px; align-items: center;
  margin-top: 26px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(201,169,110,.06), transparent);
}
.victim img { border-radius: 4px; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(.85) contrast(1.05); }
.victim p { margin: 0; color: #cfc9be; }
@media (max-width: 620px) { .victim { grid-template-columns: 110px 1fr; gap: 16px; } .victim p { font-size: .95rem; } }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery a {
  display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft);
  position: relative; background: var(--panel);
}
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform .5s, opacity .3s; }
.gallery a:hover img { transform: scale(1.035); }
.gallery .tag {
  position: absolute; left: 10px; bottom: 10px; font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; background: rgba(0,0,0,.7); padding: 5px 9px; border-radius: 3px; color: var(--text);
}
.gallery.wide { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .gallery.wide { grid-template-columns: repeat(2, 1fr); } }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(4,5,7,.94);
  display: none; align-items: center; justify-content: center; padding: 56px 16px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; width: auto; border-radius: 4px; box-shadow: 0 20px 80px rgba(0,0,0,.7); }
.lightbox button {
  position: absolute; background: rgba(20,25,32,.85); color: var(--text); border: 1px solid var(--line);
  border-radius: 50%; width: 46px; height: 46px; font-size: 1.3rem; cursor: pointer; line-height: 1;
}
.lightbox .lb-close { top: 14px; right: 14px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-cap {
  position: absolute; bottom: 16px; left: 0; right: 0; text-align: center;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

/* ---------- info blocks ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px;
}
.card h3 { font-size: 1.2rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { padding-left: 1.1em; margin: 0 0 1em; color: #cfc9be; }
.card li { margin-bottom: .35em; }

.spec { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec th, .spec td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.spec th { color: var(--muted); font-weight: 500; width: 34%; }
.spec thead th { color: var(--gold); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; }
@media (max-width: 620px) { .spec th, .spec td { padding: 9px 8px; font-size: .9rem; } }
.table-scroll { overflow-x: auto; }

.notice {
  border: 1px solid rgba(98,207,195,.3); background: rgba(98,207,195,.06);
  border-radius: var(--radius); padding: 22px 24px; color: #d3e9e5;
}
.notice strong { color: var(--teal); }

/* CTA band */
.cta {
  text-align: center; position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(90px, 12vw, 150px) 0;
}
.cta .bg { position: absolute; inset: 0; z-index: -2; }
.cta .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(10,12,15,.55), rgba(10,12,15,.95) 75%); }
.cta .btn-row { justify-content: center; }

/* ---------- prose pages (privacy, support, press) ---------- */
.page-head { padding: 150px 0 40px; border-bottom: 1px solid var(--line-soft); background: radial-gradient(ellipse at 50% 0, rgba(201,169,110,.09), transparent 60%); }
.prose { padding: 56px 0 100px; }
.prose h2 { font-size: 1.7rem; margin-top: 2.2em; padding-top: .2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; color: var(--gold-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose table { margin: 1em 0 1.6em; }
.prose code { background: var(--panel-2); padding: 2px 6px; border-radius: 3px; font-size: .9em; word-break: break-all; }
.toc { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px 24px; margin: 0 0 2rem; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
@media (max-width: 620px) { .toc ol { columns: 1; } }
details { border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
details summary { cursor: pointer; font-family: var(--serif); font-size: 1.2rem; color: #f4efe4; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--gold); font-family: var(--sans); }
details[open] summary::after { content: "–"; }
details > div { padding-top: 12px; color: #cfc9be; }
.contact-box { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; }
.contact-box .addr { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.7rem); }

/* ---------- studio home ---------- */
.game-feature {
  display: grid; grid-template-columns: 1.3fr 1fr; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--panel);
}
.game-feature .media { position: relative; min-height: 340px; }
.game-feature .media video, .game-feature .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-feature .body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 860px) { .game-feature { grid-template-columns: 1fr; } .game-feature .media { min-height: 0; aspect-ratio: 16/9; } }
.pill {
  display: inline-block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--gold-2); padding: 6px 10px; border-radius: 99px; margin: 0 6px 6px 0;
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 48px 0 40px; background: #08090b; font-size: .9rem; color: var(--dim); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .fine { width: 100%; font-size: .8rem; color: var(--dim); margin: 6px 0 0; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }
