/* Black Harbor Studio: deep navy night, harbour lights, clean type. */
:root {
  --night: #05080f;
  --navy: #0a1424;
  --navy-2: #0f1d33;
  --line: rgba(160, 190, 230, 0.12);
  --text: #dfe7f2;
  --muted: #8d9bb0;
  --light: #f3b562;      /* harbour lamp amber */
  --light-soft: rgba(243, 181, 98, 0.18);
  --accent: #5fc7c0;     /* game page teal */
  --line-2: rgba(160, 190, 230, 0.22);
  --steam: #1b2838;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --max: 1120px;
  color-scheme: dark;
}

:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; border-radius: 4px; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--night);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

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

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.wordmark {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  font-size: 14px; text-decoration: none; display: flex; align-items: center; gap: 12px;
}
.wordmark { gap: 10px; }
.wordmark .mark { height: 38px; width: auto; flex: none; }
.wordmark .name { height: 15px; width: auto; }
.wordmark .sub { color: var(--muted); font-weight: 500; letter-spacing: 0.3em; margin-left: -2px; }

/* The full lockup: lighthouse, name, and STUDIO between two rules. */
.hero-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-center .lead { margin-inline: auto; }
.lockup { display: flex; flex-direction: column; align-items: center; }
.lockup img { width: clamp(220px, 28vw, 340px); height: auto; }
.lockup .name { font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  font-size: clamp(40px, 7vw, 76px); line-height: 1; margin-top: 6px; }
.lockup .studio { display: flex; align-items: center; gap: 18px; margin-top: 16px;
  font-family: "Inter", sans-serif; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.55em; padding-left: 0.55em; font-size: clamp(13px, 1.6vw, 17px); color: var(--muted); }
.lockup .studio::before, .lockup .studio::after { content: ""; width: clamp(32px, 6vw, 64px); height: 1px; background: rgba(223, 231, 242, 0.35); }
.nav { display: flex; gap: 28px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: center;
  background:
    radial-gradient(120% 70% at 50% 100%, #10223d 0%, var(--navy) 45%, var(--night) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-block: 120px 180px; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--light);
  margin-bottom: 20px;
}
h1, h2, h3 { font-family: "Inter Tight", "Inter", sans-serif; font-weight: 600; line-height: 1.1; }
.hero h1 { font-size: clamp(40px, 7vw, 84px); letter-spacing: -0.02em; max-width: 14ch; }
.hero p.lead { margin-top: 24px; max-width: 52ch; color: var(--muted); font-size: 19px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 36px;
  padding: 13px 22px; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; font-size: 15px; background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, background 0.2s;
}
.btn:hover { border-color: rgba(243, 181, 98, 0.5); background: rgba(243, 181, 98, 0.06); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* The harbour: a dark shoreline with lamps and their reflections. */
.harbour { position: absolute; inset: auto 0 0 0; height: 46%; z-index: 1; pointer-events: none; }
.harbour svg { width: 100%; height: 100%; display: block; }
.harbour .reflect { animation: shimmer 6s ease-in-out infinite; transform-origin: center top; }
.harbour .reflect:nth-of-type(2n) { animation-delay: -2s; }
.harbour .reflect:nth-of-type(3n) { animation-delay: -4s; }
@keyframes shimmer {
  0%, 100% { opacity: 0.55; transform: scaleY(1); }
  50% { opacity: 0.9; transform: scaleY(1.12); }
}
.beam {
  position: absolute; z-index: 1; right: 12%; bottom: 31%; width: 60vw; height: 2px;
  transform-origin: right center;
  background: linear-gradient(to left, rgba(243, 181, 98, 0.35), transparent);
  filter: blur(6px); animation: sweep 14s ease-in-out infinite;
}
@keyframes sweep {
  0%, 100% { transform: rotate(4deg); opacity: 0.2; }
  50% { transform: rotate(-3deg); opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .harbour .reflect, .beam { animation: none; }
}

/* Sections */
section { padding-block: 110px; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.01em; }
.section-lead { color: var(--muted); max-width: 60ch; margin-top: 16px; }

.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.prose p + p { margin-top: 18px; }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 500; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 56px;
  background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.values div { background: var(--navy); padding: 28px; }
.values h3 { font-size: 17px; margin-bottom: 8px; }
.values p { color: var(--muted); font-size: 15px; }

/* Game card on the studio page */
.game-card {
  margin-top: 48px; display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden;
  border: 1px solid var(--line); border-radius: 18px; text-decoration: none;
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  transition: border-color 0.25s, transform 0.25s;
}
.game-card:hover { border-color: rgba(95, 199, 192, 0.45); transform: translateY(-2px); }
.game-card .art {
  min-height: 320px; position: relative;
  background:
    radial-gradient(60% 60% at 30% 40%, rgba(95, 199, 192, 0.22), transparent 70%),
    radial-gradient(40% 50% at 80% 70%, rgba(243, 181, 98, 0.12), transparent 70%),
    #08111f;
}
.game-card .art .cross {
  position: absolute; inset: 0; margin: auto; width: 96px; height: 96px; opacity: 0.85;
}
.game-card .body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.status {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px rgba(95, 199, 192, 0.7); }
.game-card h3 { font-size: 30px; margin: 14px 0 12px; }
.game-card p { color: var(--muted); }
.game-card .more { margin-top: 24px; font-size: 15px; color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---- Game page ---- */
.game-hero {
  background:
    radial-gradient(70% 60% at 75% 30%, rgba(95, 199, 192, 0.16), transparent 70%),
    radial-gradient(120% 70% at 50% 100%, #0d2030 0%, var(--navy) 45%, var(--night) 100%);
}
.game-hero .eyebrow { color: var(--accent); }
.game-hero .monitor { position: absolute; inset: auto 0 18% 0; height: 120px; z-index: 1; opacity: 0.5; }
.game-hero .monitor path {
  stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: trace 5s linear infinite;
}
@keyframes trace { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .game-hero .monitor path { animation: none; stroke-dashoffset: 0; } }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tags span { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.feature {
  padding: 30px; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
}
.feature .num { font-size: 12px; letter-spacing: 0.2em; color: var(--accent); }
.feature h3 { font-size: 19px; margin: 10px 0 10px; }
.feature p { color: var(--muted); font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.shot {
  aspect-ratio: 16 / 9; border-radius: 12px; border: 1px dashed rgba(160, 190, 230, 0.2);
  background: #08111f; display: grid; place-items: center; color: var(--muted); font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.shot.wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 48px;
  background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.facts div { background: var(--navy); padding: 24px; }
.facts dt { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin-top: 6px; font-weight: 500; }

/* Buttons in a row, and the not-yet-a-link Steam badge */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn-row .btn { margin-top: 0; }
.hero-center .btn-row { justify-content: center; }
.btn.steam { background: var(--steam); border-color: #2a475e; cursor: default; }
.btn.steam:hover { background: var(--steam); border-color: #2a475e; }

/* Honest placeholder for art we don't have yet */
.ph {
  border: 1px dashed var(--line-2); background: #08111f; border-radius: 12px;
  display: grid; place-items: center; text-align: center; padding: 12px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}

/* Game page hero: words on the left, trailer slot on the right */
.game-hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.trailer { aspect-ratio: 16 / 9; position: relative; }
.trailer .play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(5, 8, 15, 0.6);
  display: grid; place-items: center; color: var(--text); font-size: 20px; padding-left: 4px;
}
.trailer .label { position: absolute; left: 0; right: 0; bottom: 16px; }
.feature .term { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--accent); margin-bottom: 10px; }

/* CTAS strip */
.ctas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 36px; }
.ctas div { border-radius: 10px; padding: 14px; border: 1px solid var(--line); background: var(--navy); border-top-width: 3px; }
.ctas b { display: block; font-family: var(--mono); font-size: 12px; font-weight: 500; }
.ctas span { font-size: 14px; color: var(--muted); }
.ctas .c1 { border-top-color: #3b7ddd; } .ctas .c1 b { color: #6aa9ff; }
.ctas .c2 { border-top-color: #d64545; } .ctas .c2 b { color: #ff6b6b; }
.ctas .c3 { border-top-color: #d6b13b; } .ctas .c3 b { color: #f3d35b; }
.ctas .c4 { border-top-color: #3f9e5a; } .ctas .c4 b { color: #6fd18a; }
.ctas .c5 { border-top-color: #c9d2de; } .ctas .c5 b { color: #e7edf5; }

/* Inner page heading */
.page-head {
  padding-block: calc(72px + 72px) 48px;
  background: radial-gradient(80% 100% at 50% 0%, #0d1a2e, var(--night));
}
.page-head h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.01em; }
.page-head + section { border-top: 1px solid var(--line); }

/* Press kit */
.press { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.press aside { position: sticky; top: 100px; }
.press aside ul { list-style: none; display: grid; gap: 6px; }
.press aside a { color: var(--muted); text-decoration: none; }
.press aside a:hover { color: var(--text); }
.press h2 { font-size: 24px; margin-bottom: 18px; }
.press .block { scroll-margin-top: 100px; }
.press .block + .block { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }
.press .block > p + p { margin-top: 14px; }
.press .block > p { color: var(--muted); }
.factsheet { display: grid; grid-template-columns: 160px 1fr; gap: 10px 24px; }
.factsheet dt { color: var(--muted); }
.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.logos figure { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.logos .swatch { aspect-ratio: 4 / 3; background: #0b1526; padding: 18px; display: grid; place-items: center; }
.logos img { max-height: 100%; width: auto; }
.logos figcaption { font-size: 13px; display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; color: var(--muted); }
.logos figcaption a { color: var(--text); }
.palette { display: flex; flex-wrap: wrap; gap: 14px; }
.palette div { width: 120px; }
.palette i { display: block; height: 52px; border-radius: 8px; border: 1px solid var(--line); }
.palette span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shots .ph { aspect-ratio: 16 / 9; }
.quote { border-left: 2px solid var(--light); padding-left: 16px; color: var(--text) !important; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { padding: 26px; background: var(--navy); border: 1px solid var(--line); border-radius: 14px; }
.contact-card h3 { font-size: 19px; }
.contact-card p { color: var(--muted); font-size: 15px; margin: 6px 0 18px; }
.addr { display: flex; align-items: center; gap: 8px; }
.addr code { font-family: var(--mono); font-size: 13px; user-select: all; overflow-wrap: anywhere; }
.copy {
  font: inherit; font-size: 12px; color: var(--text); cursor: pointer; flex: none;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03);
}
.copy:hover { border-color: rgba(243, 181, 98, 0.5); }
.contact-note { margin-top: 32px; color: var(--muted); }

.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Phone widths */
@media (max-width: 860px) {
  .split, .game-card { grid-template-columns: 1fr; gap: 32px; }
  .values, .features { grid-template-columns: 1fr; }
  .game-hero .wrap, .press, .contact-grid, .ctas, .factsheet { grid-template-columns: 1fr; }
  .shots, .logos { grid-template-columns: 1fr 1fr; }
  .press aside { position: static; }
  .factsheet { gap: 2px; }
  .factsheet dd { margin-bottom: 10px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .shot.wide { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; }
  .facts { grid-template-columns: 1fr 1fr; }
  .game-card .art { min-height: 200px; }
  .game-card .body { padding: 28px; }
  section { padding-block: 80px; }
  .nav { gap: 18px; }
}
@media (max-width: 480px) {
  .wordmark { letter-spacing: 0.14em; font-size: 12px; }
  .wordmark .sub { display: none; }
  .nav { gap: 14px; font-size: 13px; }
  .nav a.keep { display: none; }
  .shots, .logos { grid-template-columns: 1fr; }
}
