@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --bg: #09111f;
  --bg-soft: #0f1c31;
  --panel: rgba(15, 28, 49, 0.82);
  --panel-strong: #122440;
  --line: rgba(205, 224, 255, 0.14);
  --text: #eef4ff;
  --muted: #9fb0d3;
  --accent: #d2a35d;
  --accent-strong: #f3ca86;
  --success: #7ce0bc;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(210, 163, 93, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(72, 141, 255, 0.12), transparent 24%),
    linear-gradient(135deg, #07101b 0%, #0c1528 48%, #0d1d36 100%);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  font-weight: 700;
}

.page-content {
  position: relative;
}

.page-content section {
  position: relative;
  padding: 5rem 0;
}

.section-shell,
.hero-shell,
.feature-shell,
.info-shell,
.contact-shell,
.policy-shell,
.thanks-shell {
  width: min(1400px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.letter-space-sm {
  letter-spacing: 0.14em;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
}

.header-topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 13, 24, 0.88);
}

.header-nav {
  background: rgba(9, 17, 31, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
}

.brand-mark strong,
.brand-mark small {
  display: block;
}

.brand-mark strong {
  font-size: 1.08rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-mark small {
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.brand-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(210, 163, 93, 0.25), rgba(255, 255, 255, 0.04));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(238, 244, 255, 0.84);
  padding: 0.9rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: var(--accent-strong);
}

.btn-accent,
.btn-outline-accent,
.btn-ghost-light {
  border-radius: 999px;
  padding: 0.95rem 1.45rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: 0.3s ease;
}

.btn-accent {
  color: #08111e;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  border: none;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(210, 163, 93, 0.3);
}

.btn-outline-accent {
  color: var(--text);
  border: 1px solid rgba(210, 163, 93, 0.6);
  background: transparent;
}

.btn-outline-accent:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.btn-ghost-light {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.page-hero {
  padding-top: 2rem;
}

.hero-shell {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-main-card,
.hero-side-stack,
.grid-card,
.panel-card,
.outline-card,
.info-card,
.contact-card,
.policy-card,
.thanks-card,
.footer-shell {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-main-card {
  min-height: 760px;
  padding: 2rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.hero-heading {
  font-size: clamp(2rem, 9vw, 4rem);
  line-height: 0.92;
  margin: 1.5rem 0 1rem;
}

.hero-heading .hero-subline {
  display: block;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 1.25rem;
}

.hero-intro {
  max-width: 700px;
  font-size: 1.05rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stat,
.info-chip,
.game-trigger,
.timeline-node,
.package-tier,
.team-member,
.work-card,
.contact-detail,
.policy-link,
.cookie-banner,
.notification-toast {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero-stat {
  padding: 1.2rem;
}

.hero-stat strong {
  display: block;
  font-size: 2rem;
  color: var(--accent-strong);
}

.hero-side-stack {
  display: grid;
  gap: 1.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.info-card,
.outline-card,
.panel-card,
.contact-card,
.policy-card,
.thanks-card {
  padding: 1.5rem;
}

.info-card h3,
.outline-card h3,
.panel-card h3,
.contact-card h3,
.policy-card h3,
.thanks-card h3 {
  margin-bottom: 1rem;
}

.overlay-card {
  min-height: 320px;
  background-size: cover;
  background-position: center;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.editorial-grid > div {
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 210px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.sticky-split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.5rem;
}

.sticky-copy {
  position: sticky;
  top: 120px;
  align-self: start;
}

.story-stack,
.timeline-grid,
.footer-links,
.footer-badge-stack,
.spec-grid,
.bento-grid,
.process-grid,
.gallery-grid,
.contact-grid,
.thanks-grid,
.package-grid,
.team-grid,
.work-grid {
  display: grid;
  gap: 1rem;
}

.bento-grid {
  grid-template-columns: repeat(4, 1fr);
}

.bento-grid .grid-card:nth-child(1) {
  grid-column: span 2;
  min-height: 320px;
}

.bento-grid .grid-card:nth-child(4) {
  grid-row: span 2;
}

.grid-card {
  padding: 1.5rem;
  min-height: 220px;
}

.kinetic-band {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kinetic-band span {
  display: inline-block;
  padding-left: 100%;
  font-size: clamp(3rem, 12vw, 9rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.08);
  animation: marquee 26s linear infinite;
}

.blueprint-cross {
  min-height: 560px;
  padding: 2rem;
}

.blueprint-cross::before,
.blueprint-cross::after {
  content: '';
  position: absolute;
  background: var(--line);
}

.blueprint-cross::before {
  width: 1px;
  top: 0;
  bottom: 0;
  left: 42%;
}

.blueprint-cross::after {
  height: 1px;
  left: 0;
  right: 0;
  top: 58%;
}

.anchor-panel {
  position: absolute;
  max-width: 280px;
}

.anchor-panel.one { top: 10%; left: 8%; }
.anchor-panel.two { top: 20%; right: 12%; }
.anchor-panel.three { bottom: 8%; left: 34%; }
.anchor-panel.four { bottom: 16%; right: 10%; }

.process-grid {
  grid-template-columns: repeat(4, 1fr);
}

.process-step {
  padding: 1.5rem;
  transform: translateY(var(--shift));
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.timeline-grid {
  grid-template-columns: 1px 1fr 1fr;
  align-items: stretch;
}

.timeline-line {
  background: var(--line);
}

.gallery-grid {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-grid > div {
  min-height: 240px;
}

.frame-section {
  padding: 7rem 0;
}

.frame-box {
  padding: min(10vw, 8rem);
  border: 1px solid var(--line);
}

.sidebar-layout {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
}

.sidebar-anchor {
  position: sticky;
  top: 120px;
  height: fit-content;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-strong);
}

.spec-grid {
  grid-template-columns: repeat(3, 1fr);
}

.spec-cell {
  padding: 1.2rem;
  border: 1px solid var(--line);
  font-family: 'Inter', sans-serif;
}

.big-counter {
  position: absolute;
  right: 2rem;
  top: 1rem;
  font-size: clamp(6rem, 18vw, 15rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.package-grid,
.work-grid,
.team-grid,
.contact-grid,
.thanks-grid {
  grid-template-columns: repeat(3, 1fr);
}

.package-tier,
.team-member,
.work-card,
.contact-detail,
.policy-link {
  padding: 1.5rem;
}

.game-explorer {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.5rem;
}

.game-trigger {
  width: 100%;
  text-align: left;
  padding: 1rem 1.1rem;
  color: var(--text);
}

.game-trigger.active {
  background: rgba(210, 163, 93, 0.16);
  border-color: rgba(210, 163, 93, 0.45);
}

.game-panel {
  display: none;
}

.game-panel.active {
  display: block;
}

.game-panel img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 1rem;
  border: 1px solid var(--line);
}

.site-footer {
  padding: 0 0 2rem;
}

.footer-shell {
  padding: 2rem;
  border-radius: 32px;
}

.footer-heading,
.footer-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-strong);
  font-size: 0.72rem;
  margin-bottom: 0.9rem;
}

.footer-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-links a:hover {
  color: var(--accent-strong);
}

.footer-note {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  padding: 1rem 1.2rem;
  display: none;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  backdrop-filter: blur(18px);
  background: rgba(9, 17, 31, 0.92);
}

.cookie-banner.show {
  display: grid;
}

.notification-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  min-width: 280px;
  padding: 1rem 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s ease;
}

.notification-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.notification-toast.success {
  border-color: rgba(124, 224, 188, 0.5);
}

.notification-toast.error {
  border-color: rgba(255, 120, 120, 0.45);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (max-width: 1199px) {
  .hero-shell,
  .sticky-split,
  .game-explorer,
  .sidebar-layout,
  .package-grid,
  .team-grid,
  .work-grid,
  .contact-grid,
  .thanks-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid,
  .process-grid,
  .gallery-grid,
  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-main-card {
    min-height: auto;
  }

  .sticky-copy,
  .sidebar-anchor {
    position: static;
    writing-mode: initial;
    transform: none;
  }
}

@media (max-width: 767px) {
  .page-content section {
    padding: 3.5rem 0;
  }

  .hero-grid,
  .editorial-grid,
  .bento-grid,
  .process-grid,
  .timeline-grid,
  .gallery-grid,
  .spec-grid,
  .package-grid,
  .team-grid,
  .work-grid,
  .contact-grid,
  .thanks-grid,
  .footer-meta-grid {
    grid-template-columns: 1fr;
  }

  .hero-main-card,
  .grid-card,
  .info-card,
  .outline-card,
  .panel-card,
  .contact-card,
  .policy-card,
  .thanks-card,
  .footer-shell {
    padding: 1.2rem;
  }

  .hero-heading {
    font-size: 3rem;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }
}