/* ==========================================================================
   OODLES AI (خَربشة AI) — Artistic Intelligence & Playful 3D Doodle Studio
   Pitch Black #000000 · Pastel-Neon Rainbow (#ff8ad4, #b18cff, #7ec6ff, #7dffb2, #ffe86a)
   Interactive 3D Draggable 48-Tile Sphere + Scroll-Pinned Cinematic Chapters
   ========================================================================== */

:root {
  --bg: #000000;
  --ink: #ffffff;
  --ink-dim: rgba(255, 255, 255, 0.72);
  --ink-muted: rgba(255, 255, 255, 0.45);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.08);
  --pink: #ff8ad4;
  --hot: #f79ad9;
  --yellow: #ffe86a;
  --mint: #7dffb2;
  --sky: #7ec6ff;
  --lilac: #b18cff;
  --peach: #ffb27a;
  --rainbow: linear-gradient(90deg, #ff8ad4, #b18cff, #7ec6ff, #7dffb2, #ffe86a, #ffb27a, #ff8ad4);
  --font-sans: 'IBM Plex Sans Arabic', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-play: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: auto;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Global Chrome: Rainbow Vertical Scroll Rail + Custom Cursor + Fixed HUD
   -------------------------------------------------------------------------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  width: 3px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.07);
  z-index: 90;
  pointer-events: none;
}

.rail-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #ff8ad4, #b18cff, #7ec6ff, #7dffb2, #ffe86a, #ffb27a);
  transform-origin: top center;
  transform: scaleY(0);
  will-change: transform;
}

/* Custom Cursor Ring (Desktop fine pointer only) */
.cur-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #000000;
  pointer-events: none;
  z-index: 200;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.22s ease, border-color 0.22s ease, opacity 0.2s ease;
}

.cur-ring.is-visible {
  opacity: 1;
}

.cur-ring.is-active {
  width: 74px;
  height: 74px;
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.35);
}

@media (hover: none), (pointer: coarse), (max-width: 960px) {
  .cur-ring {
    display: none !important;
  }
}

/* Fixed 72px Transparent Header (.hud) */
.hud {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 72px;
  padding-inline: clamp(16px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 70;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 100%);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-play);
  font-weight: 900;
  font-size: 1.55rem;
  letter-spacing: 0;
  color: #ffffff;
}

.mark-ai {
  display: inline-grid;
  place-items: center;
  width: 1.24em;
  height: 1.18em;
  border-radius: 0.28em;
  background: #ffffff;
  color: #000000;
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 900;
  font-size: 0.62em;
  line-height: 1;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
  direction: ltr;
}

.hud-nav {
  display: inline-flex;
  align-items: center;
  gap: 28px;
}

.hud-nav a {
  position: relative;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  padding: 4px 0;
  transition: color 0.22s ease;
}

.hud-nav a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}

.hud-nav a:hover {
  color: #ffffff;
}

.hud-nav a:hover::after {
  transform: scaleX(1);
}

.hud-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.pill:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.14);
}

.pill--white {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.pill--white:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #000000;
}

.pill--lg {
  height: 46px;
  padding: 0 26px;
  font-size: 0.92rem;
}

.glass-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 18px 50px rgba(0, 0, 0, 0.38);
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 2.5rem);
  letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   HERO (#home — Interactive 3D Draggable 48-Tile Sphere)
   -------------------------------------------------------------------------- */
.home {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 86px clamp(18px, 4vw, 52px) 44px;
  overflow: hidden;
  isolation: isolate;
}

.home-glow {
  position: absolute;
  width: 68vw;
  height: 68vw;
  max-width: 820px;
  max-height: 820px;
  top: 50%;
  left: 28%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(177, 140, 255, 0.24) 0%, rgba(126, 198, 255, 0.14) 38%, rgba(0, 0, 0, 0) 70%);
  filter: blur(42px);
  pointer-events: none;
  z-index: -1;
}

.home-grid {
  width: 100%;
  max-width: 1260px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 28px;
  align-items: center;
}

.home-copy {
  position: relative;
  z-index: 4;
}

.eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
}

.rainbow-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--rainbow);
  background-size: 300% 300%;
  animation: odRainbow 5s linear infinite;
  box-shadow: 0 0 12px var(--sky);
}

@keyframes odRainbow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.home-title {
  margin: 0 0 18px;
  font-family: var(--font-play);
  font-weight: 800;
  font-size: clamp(3rem, 6.2vw, 5.8rem);
  line-height: 1.06;
  background: var(--rainbow);
  background-size: 280% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: odRainbow 8s linear infinite;
}

.home-lead {
  margin: 0 0 28px;
  max-width: 40ch;
  font-size: 1.06rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.84);
}

.home-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.home-stat {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.home-stat strong {
  color: #ffffff;
}

.scroll-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.scroll-hint i {
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, #ffffff, transparent);
  animation: odScrollPulse 2s ease-in-out infinite;
}

@keyframes odScrollPulse {
  0%, 100% { transform: scaleY(0.5); opacity: 0.35; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Interactive 3D Fibonacci Tile Sphere */
.sphere-scene {
  position: relative;
  height: min(600px, 72vh);
  display: grid;
  place-items: center;
  perspective: 1400px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.sphere-scene:active {
  cursor: grabbing;
}

.sphere-globe {
  position: relative;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.sphere-card {
  position: absolute;
  top: -48px;
  left: -48px;
  width: 96px;
  height: 96px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: var(--tile-c, #b18cff);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  backface-visibility: visible;
  transform-style: preserve-3d;
  cursor: pointer;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
  padding: 0;
}

.sphere-card:hover {
  border-color: #ffffff;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.42);
}

.sphere-card svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* --------------------------------------------------------------------------
   PINNED SCROLL-SCRUBBED CINEMATIC CHAPTERS (.sec > .stage)
   -------------------------------------------------------------------------- */
.sec-track {
  position: relative;
}

.stage {
  position: sticky;
  top: 0;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* Chapter 1: #reimagine (Phone Zoom + 5-Color Wash + Toon Plate + Mint Squiggle) */
.sec-reimagine {
  height: 250svh;
}

.re-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, var(--yellow) 0%, var(--hot) 62%, #1d0c1c 100%);
  opacity: 0;
  transition: opacity 0.1s linear;
}

.re-wash {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 22% 30%, rgba(255, 138, 212, 0.72), transparent 45%),
    radial-gradient(circle at 78% 28%, rgba(126, 198, 255, 0.72), transparent 45%),
    radial-gradient(circle at 52% 72%, rgba(125, 255, 178, 0.75), transparent 48%),
    radial-gradient(circle at 35% 65%, rgba(255, 232, 106, 0.7), transparent 46%),
    radial-gradient(circle at 70% 65%, rgba(177, 140, 255, 0.7), transparent 46%);
  filter: blur(36px);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

.re-phone {
  position: relative;
  z-index: 3;
  width: min(270px, 64vw);
  height: min(510px, 66vh);
  border-radius: 42px;
  padding: 11px;
  background: #101012;
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.65);
  will-change: transform, border-radius;
}

.re-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #141418;
}

.re-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 18px;
  border-radius: 999px;
  background: #000000;
  z-index: 6;
}

.re-layer-photo,
.re-layer-toon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.re-layer-toon {
  opacity: 0;
  filter: url(#od-toon);
}

.re-pill-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 7;
  pointer-events: none;
}

.re-squiggle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  pointer-events: none;
}

.re-squiggle path {
  fill: none;
  stroke: var(--mint);
  stroke-width: 10;
  stroke-linecap: round;
  filter: drop-shadow(0 0 18px rgba(125, 255, 178, 0.85));
}

.re-climax {
  position: absolute;
  bottom: 8vh;
  inset-inline: 16px;
  text-align: center;
  z-index: 8;
  opacity: 0;
  pointer-events: none;
}

.re-climax span {
  font-family: var(--font-play);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 4.1rem);
  background: var(--rainbow);
  background-size: 260% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: odRainbow 6s linear infinite;
}

/* Chapter 2: #demo (Frosted Glass Morph Frame: PHOTO — DOODLE) */
.sec-demo {
  height: 190svh;
}

.demo-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 35%, rgba(255, 138, 212, 0.28), transparent 50%),
    radial-gradient(circle at 75% 65%, rgba(126, 198, 255, 0.28), transparent 50%),
    #060609;
  filter: blur(10px);
}

.demo-frame {
  position: relative;
  z-index: 3;
  width: min(500px, 84vw);
  aspect-ratio: 1;
  border-radius: 42px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  cursor: pointer;
}

.demo-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
}

.demo-art-base,
.demo-art-doodle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.demo-art-doodle {
  clip-path: inset(0 0 0 50%);
  filter: url(#od-toon);
}

.demo-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.9);
  pointer-events: none;
  z-index: 5;
}

.demo-caption {
  position: absolute;
  bottom: 6vh;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 6;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.75);
}

.demo-caption i {
  width: 56px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

/* Chapter 3: #wall (Dual Bento Style Grids: instant. -> effortless.) */
.sec-wall {
  height: 210svh;
}

.wall-grid {
  position: absolute;
  inset: 5vh 3vw;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: minmax(120px, 1fr);
  gap: 14px;
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}

.wall-tile {
  border-radius: 20px;
  overflow: hidden;
  background: var(--tile-c, #ff8ad4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  padding: 0;
  transition: transform 0.28s var(--ease), box-shadow 0.28s ease;
}

.wall-tile.is-tall {
  grid-row: span 2;
}

.wall-tile:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

.wall-tile svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wall-pill {
  position: relative;
  z-index: 6;
  pointer-events: none;
}

/* Chapter 4: #wheel (Vertical Pastel-Neon Role Slot Machine) */
.sec-wheel {
  height: 190svh;
}

.wheel-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 32px);
  font-family: var(--font-play);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.8vw, 5.2rem);
  line-height: 1.15;
}

.wheel-static {
  color: #ffffff;
  text-shadow: 0 0 36px rgba(255, 255, 255, 0.32);
}

.wheel-window {
  height: 1.25em;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.wheel-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.wheel-track span {
  height: 1.25em;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.c-pink { color: var(--pink); text-shadow: 0 0 28px rgba(255, 138, 212, 0.5); }
.c-yellow { color: var(--yellow); text-shadow: 0 0 28px rgba(255, 232, 106, 0.5); }
.c-mint { color: var(--mint); text-shadow: 0 0 28px rgba(125, 255, 178, 0.5); }
.c-sky { color: var(--sky); text-shadow: 0 0 28px rgba(126, 198, 255, 0.5); }
.c-lilac { color: var(--lilac); text-shadow: 0 0 28px rgba(177, 140, 255, 0.5); }
.c-peach { color: var(--peach); text-shadow: 0 0 28px rgba(255, 178, 122, 0.5); }
.c-white { color: #ffffff; text-shadow: 0 0 36px rgba(255, 255, 255, 0.65); }

/* Chapter 5: #universe (4 Worlds Cross-Fade + Typewriter Pill) */
.sec-universe {
  height: 200svh;
}

.world-plate {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s linear;
}

.world-plate svg {
  width: 100%;
  height: 100%;
  display: block;
}

.uni-caret {
  display: inline-block;
  width: 2.5px;
  height: 1em;
  background: var(--yellow);
  margin-inline-start: 4px;
  vertical-align: -0.12em;
  animation: odBlink 0.9s steps(2, start) infinite;
}

@keyframes odBlink {
  to { opacity: 0; }
}

/* Chapter 6: #create (Giant Neon Squiggle Ribbon + Staggered Heading) */
.sec-create {
  height: 160svh;
}

.create-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.create-path {
  fill: none;
  stroke: url(#od-neon-grad);
  stroke-width: 42;
  stroke-linecap: round;
  filter: drop-shadow(0 0 26px rgba(126, 198, 255, 0.7));
}

.create-heading {
  position: relative;
  z-index: 4;
  margin: 0;
  font-family: var(--font-play);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 7rem);
  color: #ffffff;
  text-shadow: 0 0 42px rgba(255, 255, 255, 0.35);
  text-align: center;
}

.create-heading span {
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s var(--ease);
}

/* Chapter 7: #finale (XL Lockup + Glowing 3D Orb + 10 Floating Creative Toys) */
.sec-finale {
  height: 155svh;
}

.finale-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.mark-xl {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-play);
  font-weight: 900;
  font-size: clamp(3.2rem, 8.6vw, 7.6rem);
  line-height: 1;
}

.orb-3d {
  width: 0.72em;
  height: 0.72em;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff7b2 0%, #ffe86a 32%, #7ec6ff 74%, #6a4bff 100%);
  box-shadow: 0 0 48px rgba(255, 232, 106, 0.55), inset -8px -10px 22px rgba(20, 12, 60, 0.45);
  display: inline-block;
  animation: odBob 4.5s ease-in-out infinite;
}

.toys-ring {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.toy {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  animation: odBob 5.5s ease-in-out infinite;
}

@keyframes odBob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-14px) rotate(5deg); }
}

/* --------------------------------------------------------------------------
   LIGHTBOX MODAL (.lb — Click any Sphere or Wall Doodle)
   -------------------------------------------------------------------------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.lb.is-open {
  display: grid;
}

.lb-card {
  position: relative;
  width: min(480px, 92vw);
  border-radius: 30px;
  background: #101014;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.85);
}

.lb-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  z-index: 4;
}

.lb-close:hover {
  background: var(--yellow);
  color: #000000;
}

.lb-fig {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  background: var(--pink);
  margin-bottom: 16px;
}

.lb-fig.is-toon svg {
  filter: url(#od-toon);
}

.lb-fig svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lb-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lb-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.lb-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   FOOTER (#footer)
   -------------------------------------------------------------------------- */
.od-footer {
  border-top: 1px solid var(--line-soft);
  background: #000000;
  padding: 100px clamp(18px, 4vw, 40px) 40px;
}

.od-foot-wrap {
  max-width: 1200px;
  margin-inline: auto;
}

.od-foot-cta {
  max-width: 720px;
  margin-bottom: 64px;
}

.od-foot-cta h2 {
  margin: 0 0 26px;
  font-family: var(--font-play);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.8vw, 3.8rem);
  line-height: 1.15;
}

.od-foot-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.od-foot-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 720px;
  padding-bottom: 52px;
}

.od-foot-links h4 {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.od-foot-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.od-foot-links a {
  font-size: 0.92rem;
  color: var(--ink-dim);
  transition: color 0.2s ease;
}

.od-foot-links a:hover {
  color: var(--yellow);
}

.od-foot-bottom {
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hud-nav {
    display: none;
  }

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

@media (max-width: 720px) {
  .home-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sphere-scene {
    height: 340px;
  }
}

@media (max-width: 640px) {
  .home {
    padding-top: 86px;
  }

  .home-title {
    font-size: 2.65rem;
  }

  .sphere-scene {
    height: 300px;
  }

  .sphere-card {
    width: 66px;
    height: 66px;
    top: -33px;
    left: -33px;
    border-radius: 10px;
  }

  .wall-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .toy {
    width: 46px;
    height: 46px;
    font-size: 1.25rem;
  }

  .od-foot-links {
    grid-template-columns: repeat(2, 1fr);
  }
}
