*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* RGB channels only — JS interpolates these on scroll */
  --bg: 91, 184, 245;
  --max-width: 860px;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  /* always reserve scrollbar width so nav stays full-width */
}

body {
  background-color: rgb(var(--bg));
  color: #fff;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  min-height: 100dvh;
}

/* ── Nav ──────────────────────────────────────────────── */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(48, 52, 62, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}

.topbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.topbar-brand-img {
  height: 54px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  transition: filter 0.2s;
}

.topbar-brand:hover .topbar-brand-img {
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5));
}

/* Tab list */

.topbar-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Each nav item is the positioning context for its dropdown */

.nav-item {
  position: relative;
}

/* Shared style for both <a> and <button> nav tabs */

.nav-tab {
  font-family: 'Bebas Neue', system-ui, sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
  display: flex;
  align-items: center;
  gap: 0.3em;
  line-height: 1;
}

.nav-tab:hover,
.nav-item.is-open .nav-tab {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Chevron on the Games button */

.has-dropdown .nav-tab::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s;
  margin-top: 1px;
}

.has-dropdown.is-open .nav-tab::after {
  transform: rotate(180deg);
}

/* ── Dropdown ─────────────────────────────────────────── */

.dropdown {
  list-style: none;
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  min-width: 200px;
  background: rgba(42, 46, 56, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.4rem 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Invisible bridge covering the gap between trigger and dropdown */
.dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 6px;
}

.nav-item.is-open .dropdown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}


.dropdown a {
  font-family: 'Bebas Neue', system-ui, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  display: block;
  padding: 0.6rem 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}

.dropdown a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ── Submenu (nested flyout) ──────────────────────────── */

/* Items inside the dropdown that have a nested submenu */

.has-submenu {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.has-submenu>a {
  flex: 1;
}

/* Permanent › indicator showing the link has a nested flyout */
.has-submenu>a::after {
  content: '›';
  display: inline-block;
  margin-left: 0.4em;
  font-size: 1.1em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.15s;
}

.has-submenu:hover>a::after,
.has-submenu.is-open>a::after {
  color: rgba(255, 255, 255, 0.9);
}

/* Arrow button — touch devices only; desktop uses the ::after indicator */

.submenu-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.6rem 0.75rem 0.6rem 0;
  line-height: 1;
  transition: color 0.15s;
}

.submenu-toggle:hover {
  color: #fff;
}

@media (hover: hover) {
  .submenu-toggle {
    display: none;
  }

  /* Desktop: open dropdown/submenu on mouse hover */
  .has-dropdown:hover > .dropdown {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .has-submenu:hover > .submenu {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

/* Flyout submenu — opens to the left (nav sits on the right side) */

.submenu {
  list-style: none;
  position: absolute;
  right: 100%;
  top: -0.4rem;
  min-width: 160px;
  background: rgba(34, 38, 48, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.4rem 0;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Invisible bridge covering the gap between parent item and submenu */
.submenu::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10px;
  bottom: 0;
  width: 10px;
}


/* Show on .is-open (touch / keyboard) */

.has-submenu.is-open>.submenu {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.submenu a {
  font-family: 'Bebas Neue', system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  display: block;
  padding: 0.55rem 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}

.submenu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ── Hero scroll zone ─────────────────────────────────── */
/* Tall container — stage inside is sticky so clouds and  */
/* logo stay pinned while you scroll through the zone.    */

.hero-scroll {
  position: relative;
  height: 280vh;
}

.hero-stage {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
}

/* Cloud layer — fixed full-page underlay, behind all content */

#cloud-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

/* Logo / wordmark wrap — centered, fades on scroll */

.hero-logo-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 2rem 2rem;
  /* clear the fixed nav */
  animation: hero-fade-in 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Logo image — fills most of the scene */

.hero-logo-img {
  display: block;
  max-width: min(68vw, 620px);
  max-height: 55vh;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 32px rgba(0, 0, 0, 0.18));
}


/* ── Content flow (glass panels) ──────────────────────── */
/* Appears after the hero scroll zone ends.               */

.content-flow {
  padding: 14rem 2rem 28rem;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.glass-panel {
  display: flex;
  justify-content: center;
}

/* Extra breathing room before the second panel */
.glass-panel:nth-child(2) {
  margin-top: 12rem;
}

.glass-box {
  width: 80%;
  max-width: var(--max-width);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 3rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-box h2 {
  font-family: 'Bebas Neue', system-ui, sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-box p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 60ch;
}

/* ── Feed carousel ────────────────────────────────────── */

/* Full-bleed carousel — breaks out of the 2rem content-flow side padding */
.feed-panel {
  width: calc(100% + 4rem);
  margin-left: -2rem;
  margin-right: -2rem;
}

.feed-carousel {
  position: relative;
}

/* Clips the track. Gradient mask fades peek cards at edges — no hard cut. */
.feed-carousel-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    black 9%,
    black 91%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    black 9%,
    black 91%,
    transparent 100%
  );
}

.feed-carousel-track {
  display: flex;
  align-items: center;
  column-gap: 2rem;
  /* spring: slight overshoot then settle */
  transition: transform 0.5s cubic-bezier(0.34, 1.3, 0.64, 1);
}

/* ── Post card ─────────────────────────────────────────── */

.feed-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.25rem 0.6rem;
}

.feed-card-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
}

.feed-card-author {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.feed-card-author:hover {
  color: #0085ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.feed-card {
  flex: 0 0 auto;
  width: fit-content;
  min-width: min(320px, 78%);
  max-width: min(640px, 78%);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28), 0 3px 10px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  opacity: 0.2;
  transition: opacity 0.5s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.feed-card.is-active {
  opacity: 1;
}

.feed-card-media {
  display: block;
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  margin: 0 auto;
}

.feed-card-body {
  padding: 0.5rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.feed-card-content {
  color: rgba(0, 0, 0, 0.82);
  font-size: 1.02rem;
  font-weight: 450;
  line-height: 1.55;
  letter-spacing: 0.01em;
  white-space: pre-wrap;
}

.feed-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* "On Bluesky" — styled as a subtle pill button */
.feed-card-source {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.35em 1em;
  border-radius: 6px;
  font-family: 'Bebas Neue', system-ui, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s;
}

.feed-card-source:hover {
  background: rgba(0, 0, 0, 0.08);
}

.feed-card-source-text {
  color: rgba(0, 0, 0, 0.85);
}

.feed-card-source-icon {
  display: flex;
  align-items: center;
  color: #0085ff;
}

.feed-card-source-icon svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.feed-card-date {
  font-size: 0.82rem;
  color: rgba(0, 0, 0, 0.42);
  white-space: nowrap;
}

/* ── Follow CTA card ───────────────────────────────────── */

.feed-card--follow {
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.feed-card-follow-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 2rem;
  text-align: center;
}

.feed-card-follow-icon svg {
  width: 44px;
  height: 44px;
  color: #0085ff;
}

.feed-card-follow-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.feed-card-follow-cta {
  font-family: 'Bebas Neue', system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.05em;
  line-height: 1;
  color: rgba(0, 0, 0, 0.85);
}

.feed-card-follow-link {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: #0085ff;
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 0.25em 0.6em;
  border-radius: 6px;
  transition: background 0.18s;
}

.feed-card-follow-link:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* ── Carousel nav buttons ──────────────────────────────── */

.feed-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.18s, opacity 0.18s;
}

.feed-carousel-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.feed-carousel-btn:disabled {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}

/* Centered in the peek zone on each side (~11% of panel width) */
.feed-carousel-prev { left: calc(5.5% - 22px); }
.feed-carousel-next { right: calc(5.5% - 22px); }

@media (max-width: 700px) {
  .feed-card {
    min-width: min(260px, 82%);
    max-width: 82%;
  }
  .feed-carousel-viewport {
    -webkit-mask-image: linear-gradient(
      to right, transparent 0, black 7%, black 93%, transparent 100%
    );
    mask-image: linear-gradient(
      to right, transparent 0, black 7%, black 93%, transparent 100%
    );
  }
  .feed-carousel-btn {
    background: none;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    width: auto;
    height: auto;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 0 0.5rem;
  }
  .feed-carousel-btn:hover {
    background: none;
  }
  .feed-carousel-prev { left: 0; }
  .feed-carousel-next { right: 0; }
}

/* ── Bottom scene (reusable pattern) ──────────────────── */
/* Any page can end with a .bottom-scene containing:       */
/*   1. a full-width SVG (.bottom-svg)                     */
/*   2. optionally a .site-footer                          */
/* The footer is pinned absolutely to the SVG's bottom     */
/* edge — no gap, no background bleed, no extra height.   */

.bottom-scene {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  /* remove inline-block gap below SVG */
}

.bottom-scene::after {
  content: '';
  display: block;
  height: env(safe-area-inset-bottom);
  background: #040910;
}

.bottom-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 160px;
}

/* PNG scene image — clips the bottom half so the page ends mid-image.
   Tune the margin-bottom: more negative = less image shown. */
.bottom-img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -20%;
}

.bottom-scene .site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  line-height: 1.75;
  /* restore body line-height inside absolute block */
}


/* ── Inner page hero (about, kithwind, etc.) ──────────── */

.page-hero {
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  padding: 100px 2rem 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-hero-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.page-eyebrow {
  font-family: 'Bebas Neue', system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.2rem;
}

.page-title {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

.page-sub {
  margin-top: 0.6rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Content sections ─────────────────────────────────── */

.section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.section p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 60ch;
}


.section p + p {
  margin-top: 1.25rem;
}

/* ── About Me layout ──────────────────────────────────── */

.about-me-layout {
  display: flex;
  gap: 3rem;
  align-items: stretch;
  margin-top: 1.5rem;
}

.about-photo-wrap {
  position: relative;
  width: 200px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.about-me-photo,
.about-me-photo-variant {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-me-photo-variant {
  opacity: 0;
  filter: blur(10px) saturate(0.4);
  transform: scale(1.06);
  transition:
    opacity   0.55s ease,
    filter    0.55s ease,
    transform 0.55s ease;
}

.about-photo-wrap.is-hovered .about-me-photo-variant {
  opacity: 1;
  filter: blur(0px) saturate(1);
  transform: scale(1);
}

.about-me-text p + p {
  margin-top: 1.25rem;
}

@media (max-width: 700px) {
  .about-me-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .about-photo-wrap {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
  }

  /* Clean opacity-only crossfade on mobile — no blur/scale */
  .about-me-photo-variant {
    filter: none;
    transform: none;
  }
}

/* ── Contact ──────────────────────────────────────────── */

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 1.75rem;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  opacity: 0.85;
  transition: opacity 0.18s;
}

.contact-email:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-email-icon {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

/* ── Game cards ───────────────────────────────────────── */

.game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.game-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.game-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.game-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.68);
}

/* ── Game capsules ────────────────────────────────────── */

.game-capsules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.game-capsule {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.game-capsule:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.game-capsule-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.game-capsule:hover .game-capsule-img {
  transform: scale(1.06);
  filter: brightness(1.12);
}

.game-capsule-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 1rem;
  background: rgba(10, 12, 20, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: 'Bebas Neue', system-ui, sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: #fff;
  transition: background 0.2s;
}

.game-capsule:hover .game-capsule-label {
  background: rgba(10, 12, 20, 0.78);
}

.game-capsule.no-screenshot {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.game-capsule.no-screenshot .game-capsule-img {
  display: none;
}

/* ── Game iframe page ─────────────────────────────────── */

body.game-page {
  background-color: #3aa3b5;
}

.game-frame-wrap {
  display: block;
  margin-top: 64px;
  height: calc(100vh - 64px);
}

.game-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Footer ───────────────────────────────────────────── */

.site-footer {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem 2rem;
  padding-bottom: calc(3rem + env(safe-area-inset-bottom));
  font-size: 0.85rem;
  color: #fff;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}

.footer-icon-link {
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-icon-link:hover {
  opacity: 1;
}

.footer-icon {
  width: 22px;
  height: 22px;
  display: block;
}

/* ── Desktop-only nav items ───────────────────────────── */

@media (max-width: 700px) {
  .nav-desktop-only {
    display: none !important;
  }
}

/* ── Nav social icons ─────────────────────────────────── */

.nav-social-icon {
  width: 22px;
  height: 22px;
  display: block;
  transition: opacity 0.2s;
}

.nav-item a:hover .nav-social-icon {
  opacity: 0.7;
}

/* ── Hamburger button ─────────────────────────────────── */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background 0.15s;
}

.nav-hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* Animate to ✕ when open */
.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile nav & content ─────────────────────────────── */

@media (max-width: 700px) {
  .nav-hamburger {
    display: flex;
  }

  /* Links collapse into a full-width drawer below the topbar */
  .topbar-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(30, 33, 42, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0 0.75rem;
    z-index: 99;
  }

  .topbar.is-menu-open .topbar-links {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-tab {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1.3rem;
    border-radius: 0;
    justify-content: space-between;
  }

  /* Dropdown: static + hidden until .is-open */
  .dropdown {
    position: static;
    min-width: unset;
    width: 100%;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.25);
    border: none;
    border-radius: 0;
    padding: 0;
    display: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .dropdown::before {
    display: none;
  }

  .nav-item.is-open>.dropdown {
    display: block;
  }

  .dropdown a {
    padding: 0.75rem 2.5rem;
  }

  /* Submenu: static + hidden until .is-open */
  .submenu {
    position: static;
    min-width: unset;
    width: 100%;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 0;
    padding: 0;
    display: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .submenu::before {
    display: none;
  }

  .has-submenu.is-open>.submenu {
    display: block;
  }

  .submenu-toggle {
    display: flex !important;
  }

  .submenu a {
    padding: 0.65rem 3.75rem;
  }

  /* Content panels */
  .glass-box {
    width: 100%;
    padding: 1.5rem 1.25rem;
  }

  .content-flow {
    padding: 5rem 1rem 14rem;
    gap: 3rem;
  }

  .feed-panel {
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .glass-panel:nth-child(2) {
    margin-top: 3rem;
  }

  .section {
    padding: 3rem 1.25rem;
  }

  .page-hero {
    padding: 90px 1.25rem 2rem;
  }
}


/* ── Showcase grid ────────────────────────────────────── */
/* All cells stay in their grid slots — transform: scale()  */
/* grows/shrinks them visually without shifting neighbours. */

.showcase-wrap {
  width: 92%;
  max-width: 1100px;
}

.showcase-heading {
  font-family: 'Bebas Neue', system-ui, sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.showcase-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  /* Padding gives scaled cells room to breathe without clipping */
  padding: 2rem 1.5rem;
  overflow: visible;
}

.showcase-cell {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transform: scale(0.88);
  opacity: 0.55;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.38s cubic-bezier(0.34, 1.2, 0.64, 1),
    opacity   0.38s ease,
    box-shadow 0.38s ease;
  cursor: pointer;
  /* Keep z-index stacking predictable */
  z-index: 1;
}

.showcase-cell.is-focused {
  transform: scale(1.1);
  opacity: 1;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 2;
  cursor: default;
}

.showcase-inner {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.4);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.showcase-cell.is-focused .showcase-inner {
  border-color: rgba(255, 255, 255, 0.28);
}

.showcase-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Home page only: on mobile pull the footer above the scene image */
@media (max-width: 700px) {
  .home-page .bottom-scene {
    display: flex;
    flex-direction: column;
  }

  .home-page .bottom-scene .site-footer {
    position: static;
    order: 0;
    line-height: 1.75;
  }

  .home-page .bottom-scene .bottom-img {
    order: 1;
  }

  .home-page .bottom-scene::after {
    order: 2;
  }
}

@media (max-width: 700px) {
  .showcase-wrap {
    width: 100%;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.75rem 0.25rem;
  }

  .showcase-cell {
    transform: scale(1);
    opacity: 0.72;
  }

  .showcase-cell.is-focused {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  }
}

/* ── Scroll animations ────────────────────────────────── */

[data-animate] {
  opacity: 0;
  transition:
    opacity 0.75s ease var(--delay, 0s),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s);
}

[data-animate="fade-up"] {
  transform: translateY(36px);
}

[data-animate="slide-left"] {
  transform: translateX(-52px);
}

[data-animate="slide-right"] {
  transform: translateX(52px);
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}
