:root {
  --bg: #060508;
  --bg-soft: #120810;
  --card: #141018;
  --line: rgba(255, 255, 255, 0.12);
  --text: #ececec;
  --muted: #a8a8a8;
  --primary: #f87171;
  --accent: #22d3ee;
  --netflix-red: #e50914;
  --netflix-red-deep: #b20710;
  --glow-red: rgba(229, 9, 20, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html.stage-scroll,
html.stage-scroll body {
  height: 100%;
  overflow: hidden;
}
body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--text);
  background-color: var(--bg);
}

/* Cinematic animated backdrop (Netflix Jobs–style depth + warmth) */
.bg-ambient {
  position: fixed;
  inset: -12%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 55% at 50% 42%, rgba(110, 25, 35, 0.55) 0%, transparent 58%),
    radial-gradient(ellipse 55% 45% at 78% 18%, rgba(90, 40, 95, 0.28) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 12% 75%, rgba(40, 25, 70, 0.22) 0%, transparent 55%),
    linear-gradient(180deg, #080306 0%, #030203 55%, #010101 100%);
  animation: ambient-drift 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes ambient-drift {
  0% {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
    filter: saturate(1) hue-rotate(-4deg);
  }
  100% {
    transform: translate3d(1.5%, 1.2%, 0) scale(1.06);
    filter: saturate(1.12) hue-rotate(6deg);
  }
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  animation: noise-flicker 8s steps(4) infinite;
}

@keyframes noise-flicker {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.17; }
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.14;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mix-blend-mode: soft-light;
}

.container { width: min(1120px, 92vw); margin: 0 auto; }
.section { padding: 88px 0; position: relative; z-index: 1; }

/* ---- Netflix-style full-viewport panels + wheel navigation ---- */
.scroll-stage {
  position: fixed;
  inset: 0;
  z-index: 2;
  perspective: 1600px;
}

.panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 96px;
  padding-bottom: max(48px, env(safe-area-inset-bottom));
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.88) translateZ(-80px);
  transform-origin: 50% 48%;
  filter: saturate(0.65) brightness(0.55) blur(6px);
  transition:
    opacity 0.75s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.95s cubic-bezier(0.16, 1, 0.25, 1),
    filter 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.75s;
}

.panel#home {
  justify-content: center;
}

/* Inner panels: vertically centered block; tall pages scroll with safe center */
.panel:not(#home) {
  justify-content: safe center;
  align-items: stretch;
  text-align: center;
}

@supports not (justify-content: safe center) {
  .panel:not(#home) {
    justify-content: center;
  }
}

.panel-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.section-lead {
  margin-top: 22px;
  max-width: 54ch;
  text-align: center;
  line-height: 1.65;
}

.section-lead--tight {
  margin-top: 16px;
  margin-bottom: 4px;
}

/* Same “Agentic / Systems” display treatment on inner pages (slightly scaled) */
.display-title {
  margin: 0;
  padding: 0;
  text-align: center;
}

.display-title__eyebrow {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(11px, 1.5vw, 13px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(236, 236, 236, 0.55);
  margin: 0 0 12px;
}

.display-title__massive {
  display: block;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.display-title__line {
  display: block;
  font-size: clamp(2.75rem, 10vw, 5.85rem);
  color: #f5f5f5;
  text-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
}

.display-title__line--accent {
  background: linear-gradient(92deg, #fff 10%, #ffb4b8 45%, var(--netflix-red) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 32px var(--glow-red));
}

.panel:not(#home) .featured-grid,
.panel:not(#home) .mini-grid,
.panel:not(#home) .mobile-apps-grid,
.panel:not(#home) .project-card,
.panel:not(#home) .project-body,
.panel:not(#home) .mobile-app-card {
  text-align: left;
}

.panel:not(#home) .chips {
  justify-content: center;
  margin-top: 28px;
  width: 50%
}

.panel:not(#home) .subhead {
  width: 100%;
  text-align: center;
}

.panel.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1) translateZ(0);
  filter: saturate(1) brightness(1) blur(0);
  transition:
    opacity 0.65s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.95s cubic-bezier(0.16, 1, 0.28, 1),
    filter 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.scroll-progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  z-index: 30;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.scroll-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--netflix-red-deep), var(--netflix-red));
  box-shadow: 0 0 24px var(--glow-red);
  transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: max(22px, calc(8px + env(safe-area-inset-bottom)));
  transform: translateX(-50%);
  z-index: 28;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(241, 245, 249, 0.55);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scroll-hint.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
}

.scroll-hint__mouse {
  width: 22px;
  height: 32px;
  border: 2px solid rgba(148, 163, 184, 0.45);
  border-radius: 12px;
  position: relative;
  flex-shrink: 0;
}

.scroll-hint__mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: scroll-hint-wheel 1.6s ease-in-out infinite;
}

@keyframes scroll-hint-wheel {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  45% { opacity: 1; transform: translateY(8px); }
}

body.panel-interacted .scroll-hint {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
}

@media (prefers-reduced-motion: reduce) {
  .panel {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .scroll-hint__mouse::after {
    animation: none;
  }
  .bg-ambient {
    animation: none !important;
  }
  .bg-noise {
    animation: none !important;
  }
  .scroll-progress__fill {
    transition-duration: 0.01ms !important;
  }
}

.site-footer--in-panel {
  background: transparent;
}
.kicker {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(248, 113, 113, 0.95);
  margin: 0 0 14px;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
h1:not(.hero-title) { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2:not(.display-title) {
  font-size: clamp(2.1rem, 5vw, 3.65rem);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.subtitle { color: var(--primary); font-size: clamp(1.1rem, 2.5vw, 1.6rem); margin: 10px 0 16px; }
.lead, .copy { color: var(--muted); font-size: 1.06rem; max-width: 68ch; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(5, 4, 8, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.02em; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--netflix-red), #ff6b6b); box-shadow: 0 0 12px var(--glow-red); }
.nav {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.nav a {
  color: rgba(236, 236, 236, 0.72);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav a.is-active { color: var(--text); background: rgba(229, 9, 20, 0.22); }
.menu-btn { display: none; }

/* ---- Hero: oversized type + floating stills ---- */
.hero--cinematic {
  position: relative;
  text-align: center;
  justify-content: center !important;
}

.hero-visuals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-float {
  position: absolute;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-float img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  vertical-align: middle;
  opacity: 0.94;
  filter: saturate(0.95) contrast(1.05);
}

.hero-float img.img-top {
  object-position: top center;
}

.hero-float--1 {
  width: min(300px, 32vw);
  left: 3%;
  top: 14%;
}

.hero-float--2 {
  width: min(280px, 30vw);
  right: 4%;
  bottom: 18%;
}

.hero-float--3 {
  width: min(220px, 26vw);
  left: 50%;
  bottom: 8%;
  transform: translate3d(-50%, 0, 0);
  height: 120px;
  background: linear-gradient(145deg, rgba(229, 9, 20, 0.35), rgba(80, 20, 40, 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-float__label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding: 0 16px;
  text-align: center;
}

.hero-center {
  position: relative;
  z-index: 1;
  max-width: min(920px, 94vw);
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(11px, 1.5vw, 13px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(236, 236, 236, 0.55);
  margin: 0 0 16px;
}

.hero-title {
  margin: 0;
  padding: 0;
}

.hero-title__small {
  display: block;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(236, 236, 236, 0.78);
  margin-bottom: 6px;
}

.hero-title__massive {
  display: block;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.hero-title__line {
  display: block;
  font-size: clamp(3.8rem, 14vw, 8.5rem);
  color: #f5f5f5;
  text-shadow: 0 4px 80px rgba(0, 0, 0, 0.55);
}

.hero-title__line--red {
  color: #fefefe;
  background: linear-gradient(92deg, #fff 10%, #ffb4b8 45%, var(--netflix-red) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 40px var(--glow-red));
}

.hero-name {
  margin: 18px 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(236, 236, 236, 0.88);
}

.hero-role.subtitle {
  margin-top: 10px;
  margin-bottom: 18px;
  color: rgba(248, 113, 113, 0.95);
}

.hero-lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 52ch;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: rgba(200, 200, 200, 0.92);
}

.hero-highlights {
  list-style: none;
  margin: 28px auto 0;
  padding: 0;
  max-width: 42ch;
  color: rgba(180, 180, 180, 0.95);
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  line-height: 1.75;
}

.hero-highlights li {
  position: relative;
  padding-left: 1.1em;
}

.hero-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--netflix-red);
  box-shadow: 0 0 10px var(--glow-red);
}

.hero-metrics--row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-metrics--row div {
  min-width: 120px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 6, 12, 0.55);
  text-align: center;
}

.hero-metrics--row strong {
  display: block;
  font-size: 1.45rem;
  color: var(--netflix-red);
  font-weight: 700;
}

.hero-metrics--row span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(180, 180, 180, 0.9);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
.btn-netflix {
  background: var(--netflix-red);
  color: #fff;
  box-shadow: 0 8px 32px rgba(229, 9, 20, 0.45);
}
.btn-primary:hover,
.btn-netflix:hover {
  filter: brightness(1.08);
  box-shadow: 0 12px 40px rgba(229, 9, 20, 0.55);
}

.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost--light {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
}

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

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.chips span, .tags span {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.85);
  color: #dbeafe;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.8rem;
}

.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.project-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
}
.project-image-link { display: block; cursor: zoom-in; }
.project-card img { width: 100%; height: 240px; object-fit: cover; display: block; }
.project-card img.top-focus { object-position: top center; }
.project-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(145deg, rgba(229, 9, 20, 0.45), rgba(40, 15, 30, 0.85));
  border-bottom: 1px solid var(--line);
}
.project-thumb--live::after {
  content: " · Production";
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  margin-left: 8px;
  opacity: 0.75;
}
.project-body { padding: 18px; }
.project-body h3 { margin-bottom: 10px; }
.project-body p { margin: 0 0 12px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags--compact { margin-top: 10px; }
.tags--compact span {
  font-size: 0.72rem;
  padding: 4px 8px;
}
.card-action { margin-top: 14px; }
.btn-sm {
  padding: 10px 16px;
  font-size: 0.68rem;
}
.card-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--netflix-red);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.card-link:hover { color: #ffb4b8; }

.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 8px;
}
.filter-btn {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.6);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter-btn:hover {
  border-color: rgba(229, 9, 20, 0.45);
  color: var(--text);
}
.filter-btn.is-active {
  background: var(--netflix-red);
  border-color: var(--netflix-red);
  color: #fff;
  box-shadow: 0 6px 24px rgba(229, 9, 20, 0.35);
}

.project-group.is-filtered-out,
.mini-grid article.is-filtered-out,
.project-card.is-filtered-out {
  display: none !important;
}

.subhead { margin: 30px 0 14px; font-size: 1.3rem; }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mini-grid--games { grid-template-columns: repeat(3, 1fr); }
.mini-grid article { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 14px; }
.mini-grid h4 { margin-bottom: 8px; }
.mini-grid p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.mobile-apps-section[hidden] {
  display: none !important;
}

.mobile-apps-intro {
  margin-top: -6px;
  margin-bottom: 16px;
  text-align: center;
  font-size: 0.95rem;
}

.mobile-apps-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
  width: min(1400px, 98vw);
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}

.mobile-app-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 16, 24, 0.98), rgba(10, 8, 14, 0.92));
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.mobile-app-card__titlebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(229, 9, 20, 0.14), transparent 85%);
  text-align: center;
}

.mobile-app-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-app-card__titlebar h3 {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.mobile-app-card__tagline {
  display: none;
}

.mobile-app-card__screen {
  padding: 10px 12px 8px;
  display: flex;
  justify-content: center;
  flex: 0 0 auto;
  background:
    radial-gradient(ellipse 90% 70% at 50% 20%, rgba(229, 9, 20, 0.1), transparent 72%),
    rgba(0, 0, 0, 0.18);
}

.mobile-app-card__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: #050508;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.mobile-app-card__frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 5px;
  border-radius: 0 0 7px 7px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 2;
  pointer-events: none;
}

.mobile-app-card__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.mobile-app-card__stores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px;
  margin-top: auto;
}

.store-block--soon {
  opacity: 0.55;
  pointer-events: none;
}

.store-qr--placeholder {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  border: 1px dashed rgba(255, 255, 255, 0.14);
}

.store-badge--muted {
  filter: grayscale(1) brightness(0.65);
  opacity: 0.85;
}

.store-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.store-soon-note {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}

.store-qr {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-badge-link:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.store-badge {
  display: block;
  width: auto;
  max-width: 100%;
}

.store-badge--apple {
  height: 34px;
}

.store-badge--google {
  height: 40px;
}

.contact-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(17,27,49,0.95), rgba(17,27,49,0.65));
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 720px;
  margin-top: 20px;
}

.contact-lines {
  flex: 1 1 240px;
  text-align: left;
}

.panel-stack--contact .site-footer--in-panel {
  margin-top: 40px;
  padding-top: 24px;
  width: 100%;
  max-width: min(1120px, 92vw);
  border-top: 1px solid var(--line);
}

.panel-stack--contact .footer-wrap {
  justify-content: center;
  gap: 24px;
}
a { color: var(--accent); }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0; }
.footer-wrap { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.9rem; }

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 18, 0.9);
  z-index: 40;
  padding: 4vw;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .mobile-apps-grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-app-card {
    flex: 0 0 min(260px, 82vw);
    scroll-snap-align: start;
  }
}

@media (max-width: 960px) {
  .featured-grid { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
  .mini-grid--games { grid-template-columns: 1fr 1fr; }
  .contact-wrap { flex-direction: column; align-items: stretch; }
  .hero-float--2 {
    width: min(220px, 38vw);
    opacity: 0.95;
  }
}

@media (max-width: 720px) {
  .hero-float--3 {
    display: none;
  }
  .hero-float--1 {
    width: min(180px, 42vw);
    top: 11%;
    left: 2%;
  }
  .hero-float--2 {
    width: min(170px, 40vw);
    bottom: 22%;
    right: 2%;
  }
}

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); }
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 8, 14, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 12px 4vw;
    flex-direction: column;
    align-items: stretch;
    border-radius: 0;
    gap: 4px;
  }
  .nav.open { display: flex; }
  .footer-wrap { flex-direction: column; gap: 8px; }
}
