/* =========================================================
   NIGHT SHIFT STUDIO — stylesheet
   A dark, quiet studio site that lights up like a lantern
   whenever it shows off Gatana.

   Structure:
   1. Tokens
   2. Reset / base
   3. Type utilities
   4. Layout helpers
   5. Nav
   6. Hero
   7. Section headers / dividers
   8. Gatana showcase (the "lit window")
   9. Feature list
   10. Gallery (filmstrip)
   11. Studio / about
   12. Footer
   13. Reveal / motion
   14. Responsive
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* studio (night) palette — bg matches the source logo file exactly
     so the cropped logo art sits invisibly on the page */
  --bg: #050a14;
  --bg-raised: #0d1220;
  --bg-raised-2: #121a2c;
  --line: #1c2436;
  --line-soft: rgba(237, 239, 243, 0.08);

  --text: #edeff3;
  --text-dim: #8891a3;
  --text-faint: #4d5566;

  /* gatana (lantern) palette — used only inside the game showcase */
  --gold: #e8a93a;
  --gold-soft: #f0c473;
  --red: #c23b33;
  --red-soft: #d95f52;
  --cream: #f3ead8;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-brush: 'Yuji Syuku', serif;

  --container: 1160px;
  --gutter: clamp(24px, 6vw, 64px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. Reset / base ---------- */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-color: var(--line) var(--bg);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

::selection { background: var(--gold); color: #1a1204; }

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

/* ---------- 3. Type utilities ---------- */
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
  flex: none;
}
.eyebrow.is-gold { color: var(--gold-soft); }
.eyebrow.is-gold::before { background: var(--gold); box-shadow: 0 0 10px 1px rgba(232, 169, 58, 0.7); }

.section-lede {
  max-width: 58ch;
  color: var(--text-dim);
  font-size: clamp(16px, 1.4vw, 17px);
}

/* ---------- 4. Layout helpers ---------- */
.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
  border: none;
  margin: 0;
}

/* ---------- 5. Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 10, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-block: 14px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand img { height: 22px; width: auto; }
.nav-brand span {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}
.nav-links a:not(.btn) {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #1a1204;
  box-shadow: 0 8px 24px -8px rgba(232, 169, 58, 0.55);
}
.btn-gold:hover { box-shadow: 0 12px 28px -8px rgba(232, 169, 58, 0.75); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--text-faint); background: var(--bg-raised); }
.btn-sm { padding: 9px 16px; font-size: 12px; }

/* ---------- 6. Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px var(--gutter) 80px;
  position: relative;
  overflow: hidden;
}

#starfield {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232, 169, 58, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-mark {
  width: clamp(64px, 9vw, 96px);
  height: auto;
  margin-bottom: 28px;
  animation: mark-in 1.1s var(--ease) both;
}

.hero-title {
  font-size: clamp(40px, 8vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero-title-sub {
  display: block;
  margin-top: 10px;
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 500;
  letter-spacing: 0.5em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-left: 0.5em; /* optically balance the tracking */
}

.hero-tagline {
  margin-top: 30px;
  max-width: 46ch;
  color: var(--text-dim);
  font-size: clamp(16px, 1.6vw, 18px);
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  z-index: 1;
}
.scroll-cue svg { animation: cue-bob 2.2s ease-in-out infinite; }

@keyframes cue-bob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}
@keyframes mark-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- 7. Section headers ---------- */
.section {
  padding: clamp(70px, 11vw, 130px) 0;
  scroll-margin-top: 84px;
}
.footer { scroll-margin-top: 84px; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head h2 {
  font-size: clamp(30px, 4.2vw, 48px);
}

/* ---------- 8. Gatana showcase ---------- */
.showcase {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(175deg, #120a0a 0%, #0c0f16 55%, #0a0d14 100%);
  border: 1px solid rgba(232, 169, 58, 0.18);
  overflow: hidden;
  isolation: isolate;
}
.showcase::before {
  /* lantern glow bleeding from behind the panel */
  content: '';
  position: absolute;
  z-index: -1;
  inset: -30%;
  background:
    radial-gradient(circle at 15% 15%, rgba(194, 59, 51, 0.35), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(232, 169, 58, 0.28), transparent 45%);
  filter: blur(40px);
  animation: lantern-pulse 7s ease-in-out infinite;
}
@keyframes lantern-pulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 0;
}

.showcase-copy {
  padding: clamp(36px, 5vw, 64px);
}

.showcase-logotype {
  font-family: var(--font-brush);
  font-size: clamp(52px, 7vw, 92px);
  line-height: 0.9;
  margin: 14px 0 6px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 60%, var(--red-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 18px rgba(232, 169, 58, 0.25));
}
.showcase-subtitle {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.6vw, 16px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.75;
  margin-bottom: 22px;
}

.showcase-desc {
  color: #c7c3ba;
  max-width: 46ch;
  font-size: 15.5px;
}

.showcase-art {
  position: relative;
  height: 100%;
  min-height: 320px;
}
.showcase-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.showcase-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #120a0a 0%, transparent 18%);
}
@media (max-width: 860px) {
  .showcase-art::after { background: linear-gradient(0deg, #0a0d14 0%, transparent 22%); }
}

.showcase-foot {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.platforms {
  display: flex;
  align-items: center;
  gap: 16px;
}
.platforms svg { width: 20px; height: 20px; color: #c7c3ba; opacity: 0.8; }

/* ---------- 9. Feature list ---------- */
.features {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.feature-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(232, 169, 58, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.feature-icon svg { width: 16px; height: 16px; }
.feature h3 {
  font-family: var(--font-display);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 4px;
}
.feature p { margin: 0; font-size: 13.5px; color: #9b968d; }

/* ---------- 10. Gallery ---------- */
.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.gallery-nav {
  display: flex;
  gap: 10px;
}
.gallery-nav button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.gallery-nav button:hover { color: var(--text); border-color: var(--text-faint); transform: translateY(-1px); }
.gallery-nav svg { width: 16px; height: 16px; }

.filmstrip {
  margin-top: 28px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 18px;
  padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  cursor: grab;
  scrollbar-width: thin;
}
.filmstrip.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.filmstrip::-webkit-scrollbar { height: 6px; }
.filmstrip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.frame {
  flex: none;
  scroll-snap-align: start;
  width: 220px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
  transition: border-color 0.3s, transform 0.3s;
}
.frame:hover { border-color: rgba(232, 169, 58, 0.4); transform: translateY(-4px); }
.frame img { width: 100%; aspect-ratio: 437 / 842; object-fit: cover; }


/*----------- Embed-----------------*/

.embedgame {
  text-align:center;
}
/* ---------- 11. Studio / about ---------- */
.studio-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.studio-copy p { color: var(--text-dim); max-width: 50ch; }
.studio-copy p + p { margin-top: 16px; }

.values {
  border-top: 1px solid var(--line);
}
.value-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 20px;
}
.value-row h3 {
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--text);
}
.value-row p { margin: 0; color: var(--text-dim); font-size: 14px; max-width: 42ch; }

/* ---------- 12. Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand img { height: 20px; }
.footer-brand span {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-soft); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------- 13. Reveal / motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-stagger > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.34s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.42s; }

/* ---------- 14. Responsive ---------- */
@media (max-width: 860px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-art { min-height: 260px; order: -1; }
  .features { grid-template-columns: 1fr; }
  .studio-grid { grid-template-columns: 1fr; }
  .value-row { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 700px) {
  .nav-links { 
    position: fixed;
    inset: 0 0 auto auto;
    height: 100svh;
    width: min(76vw, 320px);
    background: var(--bg-raised);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    z-index: 101;
    cursor: pointer;
  }
  .nav-toggle svg { width: 18px; height: 18px; }
  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 99;
  }
  .nav-scrim.is-open { opacity: 1; pointer-events: auto; }
}

@media (max-width: 520px) {
  .hero-title-sub { letter-spacing: 0.3em; }
  .frame { width: 170px; }
}
