/* ==========================================================================
   Gecko Cove Studio / ALL HANDS LOST!
   Two themes share one structure:
     .theme-studio  - the logo's palette: cream, coral sun, seafoam wave, ink
     .theme-game    - the game's HUD: deep space, player cyan, raider red, HUD amber
   ========================================================================== */

:root {
  --ink: #12100e; /* matches the logo PNG's background exactly */
  --ink-2: #1a1816;
  --cream: #f3e6d0;
  --cream-2: #e7d6b9;
  --coral: #e8795a;
  --seafoam: #b8f3f0;

  --space: #05060a;
  --space-2: #0b0e16;
  --panel: rgba(12, 22, 30, 0.72);
  --cyan: #5ff2e0;
  --red: #ff4d5e;
  --amber: #f2b33d;
  --hud-line: rgba(95, 242, 224, 0.35);

  --radius: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.65 "Work Sans", system-ui, sans-serif; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--coral); color: var(--ink); border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Themes ---------- */
.theme-studio { background: var(--ink); color: var(--cream); }
.theme-studio h1, .theme-studio h2, .theme-studio h3 { font-family: "Fraunces", Georgia, serif; font-weight: 900; letter-spacing: -.01em; }
.theme-game { background: var(--space); color: #d9e6ea; font-family: "Tomorrow", system-ui, sans-serif; }
.theme-game h1, .theme-game h2, .theme-game h3 { font-family: "Chakra Petch", system-ui, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.theme-game :focus-visible { outline-color: var(--cyan); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.theme-studio .nav { background: rgba(14, 13, 12, .82); border-bottom: 1px solid rgba(243, 230, 208, .08); }
.theme-game .nav { background: rgba(5, 6, 10, .72); border-bottom: 1px solid var(--hud-line); }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 1.15rem "Fraunces", serif; color: var(--cream); }
.nav__brand img { border-radius: 50%; }
.nav__links { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); }
.nav__links a:not(.btn) { text-decoration: none; font-weight: 500; opacity: .85; font-size: .95rem; }
.nav__links a:not(.btn):hover { opacity: 1; }
.theme-game .nav__links a:not(.btn) { font-family: "Chakra Petch", sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px 8px; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; background: currentColor; margin: 6px 0; transition: transform .25s var(--ease); color: inherit; }
.theme-studio .nav__toggle, .theme-game .nav__toggle { color: inherit; }

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links { position: fixed; inset: 61px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px;
    background: inherit; transform: translateY(-120%); transition: transform .3s var(--ease); }
  .theme-studio .nav__links { background: var(--ink); border-bottom: 1px solid rgba(243,230,208,.1); }
  .theme-game .nav__links { background: var(--space); border-bottom: 1px solid var(--hud-line); }
  .nav__links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav__links .btn { margin-top: 14px; text-align: center; }
  .nav.is-open .nav__links { transform: none; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s; font-size: 1rem; }
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 8px 16px; font-size: .9rem; }
.theme-studio .btn--primary { background: var(--coral); color: var(--ink); }
.theme-studio .btn--ghost { border-color: rgba(243,230,208,.4); color: var(--cream); }
.theme-game .btn { border-radius: 4px; font-family: "Chakra Petch", sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: .95rem; }
.theme-game .btn--primary { background: var(--cyan); color: var(--space); box-shadow: 0 0 0 0 rgba(95,242,224,.5); }
.theme-game .btn--primary:hover { box-shadow: 0 0 28px rgba(95,242,224,.45); }
.theme-game .btn--ghost { border-color: var(--hud-line); color: var(--cyan); background: rgba(95,242,224,.06); }
.btn--steam { background: #1b2838 !important; color: #fff !important; border-color: #66c0f4 !important; border-radius: 4px; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Studio home ---------- */
.studio-hero { position: relative; display: grid; place-items: center; text-align: center; padding: clamp(48px, 9vw, 120px) 0 clamp(56px, 8vw, 100px); overflow: hidden; }
.studio-hero__sun { position: absolute; width: min(70vw, 620px); aspect-ratio: 1; border-radius: 50%; top: -18%; right: -12%;
  background: radial-gradient(circle, rgba(232,121,90,.28), transparent 62%); pointer-events: none; }
.studio-hero__logo { position: relative; width: min(86vw, 640px); margin: 0 auto 20px; mix-blend-mode: lighten; }
.studio-hero p.lede { font-size: clamp(1.1rem, 2.2vw, 1.4rem); max-width: 34ch; margin: 0 auto 28px; color: var(--cream-2); }
.wave { display: block; width: 100%; height: 48px; color: var(--seafoam); opacity: .5; }

.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--cream { background: var(--cream); color: var(--ink); }
.eyebrow { display: inline-block; font: 600 .78rem/1 "IBM Plex Mono", monospace; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.theme-studio .eyebrow { color: var(--coral); }
.section--cream .eyebrow { color: #b24f33; }
.theme-game .eyebrow { color: var(--amber); }
.section h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }

.feature-game { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.feature-game__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: #000;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(184,243,240,.15); }
.feature-game__media video, .feature-game__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-game__title { font: 700 clamp(2rem, 4vw, 3rem)/1 "Chakra Petch", sans-serif !important; color: var(--red); text-transform: uppercase; letter-spacing: .04em; }
.feature-game__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.feature-game__meta li { font: 500 .78rem "IBM Plex Mono", monospace; padding: 6px 10px; border: 1px solid rgba(243,230,208,.2); border-radius: 999px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.studio-about { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.studio-about h2 { color: var(--ink); }
.values { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.values li { padding: 18px 20px; border-radius: var(--radius); background: rgba(14,13,12,.05); border-left: 4px solid var(--coral); }
.values strong { display: block; font-family: "Fraunces", serif; font-size: 1.15rem; }

.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.contact a.card { display: block; padding: 24px; border-radius: var(--radius); text-decoration: none; background: var(--ink-2);
  border: 1px solid rgba(243,230,208,.1); transition: border-color .2s, transform .2s var(--ease); }
.contact a.card:hover { border-color: var(--seafoam); transform: translateY(-3px); }
.contact .card span { display: block; font: 500 .78rem "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--seafoam); margin-bottom: 8px; }
.contact .card strong { font-size: 1.1rem; word-break: break-word; }

/* ---------- Game page ---------- */
.game-hero { position: relative; min-height: min(92vh, 900px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.game-hero__bg { position: absolute; inset: 0; z-index: -2; }
.game-hero__bg video, .game-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.game-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5,6,10,.35) 0%, rgba(5,6,10,.1) 35%, rgba(5,6,10,.85) 78%, var(--space) 100%),
              radial-gradient(ellipse at 20% 100%, rgba(5,6,10,.9), transparent 60%); }
.game-hero__content { padding-bottom: clamp(40px, 8vw, 96px); }
.game-title { font: 700 clamp(3rem, 11vw, 8.5rem)/.9 "Chakra Petch", sans-serif !important; color: var(--red); margin: 0 0 18px !important;
  text-shadow: 0 0 40px rgba(255,77,94,.45); letter-spacing: .02em !important; }
.game-tagline { font: 500 clamp(1.05rem, 2.3vw, 1.45rem)/1.45 "Tomorrow", sans-serif; max-width: 40ch; color: #eef6f7; margin-bottom: 28px; }
.hud-chip { display: inline-flex; gap: 10px; align-items: center; font: 500 .78rem "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber); padding: 8px 12px; border: 1px solid rgba(242,179,61,.45); background: rgba(242,179,61,.07); margin-bottom: 18px; }
.hud-chip::before { content: ""; width: 8px; height: 8px; background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.hud-panel { position: relative; background: var(--panel); border: 1px solid var(--hud-line); padding: clamp(20px, 3vw, 32px); }
.hud-panel::before, .hud-panel::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--cyan); }
.hud-panel::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.hud-panel::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.hud-panel h3 { color: var(--cyan); font-size: 1.05rem; }
.hud-panel p { margin: 0; color: #b9c9ce; }

.pitch { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.pitch h2 { color: #fff; }
.pitch p { color: #c3d2d6; font-size: 1.08rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

.trailer { position: relative; aspect-ratio: 16/9; border: 1px solid var(--hud-line); background: #000; overflow: hidden; }
.trailer iframe, .trailer video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer__facade { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; border: 0; padding: 0; background: #000; color: #fff; }
.trailer__facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .3s; }
.trailer__facade:hover img { opacity: .95; }
.trailer__play { position: relative; width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--cyan); background: rgba(5,6,10,.6); display: grid; place-items: center;
  box-shadow: 0 0 30px rgba(95,242,224,.45); }
.trailer__play::after { content: ""; border-left: 22px solid var(--cyan); border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
.trailer__soon { position: relative; font: 600 .9rem "Chakra Petch", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-top: 110px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.gallery button { padding: 0; border: 1px solid var(--hud-line); background: #000; cursor: zoom-in; aspect-ratio: 16/9; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(2,3,6,.92); }
.lightbox img { max-height: 86vh; width: auto; margin: auto; border: 1px solid var(--hud-line); }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hud-line); background: var(--space); color: var(--cyan); font-size: 1.4rem; cursor: pointer; }

.factions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.faction { padding: 22px; border: 1px solid rgba(255,255,255,.08); background: var(--space-2); }
.faction strong { font: 700 1rem "Chakra Petch", sans-serif; text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 6px; }
.faction small { font: 500 .72rem "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.faction--pirate strong { color: var(--red); }
.faction--corpo strong { color: var(--amber); }
.faction--crystal strong { color: #c58cff; }
.faction--deep strong { color: #6fa8ff; }
.faction p { margin: 10px 0 0; color: #aebcc1; font-size: .96rem; }

.cta-band { text-align: center; padding: clamp(56px, 9vw, 110px) 0; background:
  radial-gradient(ellipse at 50% 0%, rgba(95,242,224,.14), transparent 60%), var(--space-2); border-block: 1px solid var(--hud-line); }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-band .btn-row { justify-content: center; margin-top: 24px; }

.signup { display: flex; gap: 10px; max-width: 480px; margin: 22px auto 0; flex-wrap: wrap; }
.signup input { flex: 1 1 220px; padding: 14px 16px; border: 1px solid var(--hud-line); background: rgba(5,6,10,.7); color: #fff; font: inherit; border-radius: 4px; }
.signup input::placeholder { color: #7f9298; }

.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.platforms li { font: 500 .8rem "IBM Plex Mono", monospace; padding: 7px 12px; border: 1px solid var(--hud-line); color: var(--cyan); }

.discord-embed { width: 100%; max-width: 380px; height: 420px; border: 1px solid var(--hud-line); }

/* ---------- Press kit ---------- */
.press { display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.factsheet { position: sticky; top: 90px; padding: 22px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid rgba(243,230,208,.1); }
.factsheet dl { margin: 0; display: grid; gap: 14px; }
.factsheet dt { font: 500 .72rem "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--seafoam); }
.factsheet dd { margin: 2px 0 0; }
.press h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.6em; }
.press h2:first-child { margin-top: 0; }
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.press-grid a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid rgba(243,230,208,.12); background: #000; }
.press-grid img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.press-grid .logo-tile img { object-fit: contain; background: var(--ink); padding: 12px; }

.prose { max-width: 68ch; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 28px; border-top: 1px solid rgba(255,255,255,.08); }
.theme-studio .footer { background: #090807; }
.theme-game .footer { background: #030407; border-top-color: var(--hud-line); }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__brand img { border-radius: 50%; }
.footer__brand p { margin: 0; opacity: .7; font-size: .95rem; }
.footer__mail { margin: 12px 0 0; font-size: .92rem; opacity: .8; text-align: right; }
.footer__legal { font-size: .8rem; opacity: .55; margin-top: 28px; }
.social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; justify-content: flex-end; flex-wrap: wrap; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); transition: background .2s, border-color .2s; }
.social a:hover { border-color: var(--seafoam); background: rgba(184,243,240,.08); }
.theme-game .social a:hover { border-color: var(--cyan); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- "Coming soon" placeholders for links that aren't live yet ---------- */
.is-pending { opacity: .45; cursor: default; filter: saturate(.6); }
.btn.is-pending:hover, .card.is-pending:hover { transform: none; box-shadow: none; }
.contact .card.is-pending { padding: 24px; border-radius: var(--radius); background: var(--ink-2); border: 1px dashed rgba(243,230,208,.25); }
.contact .card.is-pending:hover { border-color: rgba(243,230,208,.25); }
.is-pending small { font: 600 .62rem "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase;
  padding: 2px 6px; margin-left: 6px; border: 1px solid currentColor; border-radius: 999px; vertical-align: middle; }
.social .is-pending { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.25); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .feature-game, .studio-about, .pitch, .press { grid-template-columns: 1fr; }
  .factsheet { position: static; }
  .footer__mail, .social { text-align: left; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
