/* 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 */
  --max: 1120px;
}

* { 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; }

/* Phone widths */
@media (max-width: 860px) {
  .split, .game-card { grid-template-columns: 1fr; gap: 32px; }
  .values, .features { grid-template-columns: 1fr; }
  .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 a:not([aria-current]) { display: none; }
  .nav a.keep { display: inline; }
}
