/* =========================================================
   jimagine.ça — V2 (scroll-told web design history)
   ========================================================= */

@font-face {
  font-family: 'Aller Display';
  src: url('assets/fonts/AllerDisplay.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky-top:    #00A8E0;
  --sky-mid:    #19C2F2;
  --sky-bottom: #9BE1F6;
  --brand:      #1CADE4;
  --brand-deep: #0E8BC2;
  --ink:        #0B2B3A;
  --ink-soft:   #3d5f70;

  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* Body font — everything that isn't the logo/wordmark or the Bebas display */
  --font-base:  'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Brand mark (logo) font — only for "jimagine.ça" wordmark */
  --font-brand: 'Aller Display', 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--sky-mid);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
img  { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; font-family: var(--font-base); font-weight: 700; }
h1, h2, h3, h4 { font-family: var(--font-base); font-weight: 800; letter-spacing: -0.02em; }

/* Brand wordmark — used for logo/title only (plain lowercase) */
.brand-mark {
  font-family: var(--font-brand);
  font-variant-caps: normal;
  text-transform: lowercase;
  letter-spacing: -0.01em;
  font-weight: 400;
}

/* ===== Sky + layered clouds ===== */
.sky {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.18), transparent 55%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-bottom) 100%);
  z-index: -2;
  overflow: hidden;
  transition: opacity .8s var(--ease);
}
.sky.hidden { opacity: 0; }

.cloud-layer {
  position: absolute;
  inset: -10% -5% -5% -5%;
  will-change: transform;
  pointer-events: none;
}
.cloud {
  position: absolute;
  color: #fff;
  will-change: transform;
}
.layer-far  .cloud { opacity: 0.55; filter: blur(2.5px); }
.layer-mid  .cloud { opacity: 0.85; filter: blur(0.4px) drop-shadow(0 8px 14px rgba(0,60,95,0.1)); }
.layer-near .cloud { opacity: 1;    filter: drop-shadow(0 14px 24px rgba(0,60,95,0.14)); }

.layer-far  .cloud { animation: drift 180s linear infinite; }
.layer-mid  .cloud { animation: drift 120s linear infinite; }
.layer-near .cloud { animation: drift  85s linear infinite; }

.layer-far  .cloud:nth-child(2n) { animation-delay: -40s; animation-duration: 210s; }
.layer-far  .cloud:nth-child(3n) { animation-delay: -90s; animation-duration: 160s; }
.layer-mid  .cloud:nth-child(2n) { animation-delay: -30s; animation-duration: 140s; }
.layer-mid  .cloud:nth-child(3n) { animation-delay: -70s; animation-duration: 100s; }
.layer-near .cloud:nth-child(2n) { animation-delay: -20s; animation-duration:  95s; }
.layer-near .cloud:nth-child(3n) { animation-delay: -55s; animation-duration:  75s; }

@keyframes drift {
  from { transform: translateX(calc(-100vw - 500px)); }
  to   { transform: translateX(calc(100vw + 500px)); }
}

/* ===== Huge foreground clouds — drift in front of hero/content ===== */
.cloud-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.hero { overflow: hidden; }
.after-story { position: relative; overflow: hidden; }
.cloud-overlay-bottom { z-index: 0; }
.after-story > section,
.after-story > footer { position: relative; z-index: 1; }
.huge-cloud {
  position: absolute;
  left: 0;
  color: #fff;
  opacity: 0.18;
  filter: blur(10px);
  will-change: transform;
  animation: drift var(--d, 140s) linear infinite;
}
.huge-cloud.tint-warm { opacity: 0.12; }
@media (prefers-reduced-motion: reduce) {
  .huge-cloud { animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .cloud { animation: none !important; }
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1180px;
  padding: 10px 20px;
  display: flex; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(11, 43, 58, 0.08);
  z-index: 50;
}
.nav-home {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px;
  color: var(--brand-deep);
}
.nav-home .brand-mark { font-size: 30px; letter-spacing: -0.01em; line-height: 1; }
.nav-mark { width: 30px; height: 30px; color: var(--brand); }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; }
.nav-links a { transition: color .2s; position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--brand);
  transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--brand-deep); }
.nav-links a:hover::after { width: 100%; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1.5px solid rgba(14, 139, 194, 0.3);
  color: var(--ink-soft);
  padding: 6px 12px; border-radius: 999px;
  font-weight: 700; font-size: 11px; letter-spacing: 0.1em;
  transition: background .2s, color .2s, border-color .2s;
}
.lang-toggle:hover { border-color: var(--brand); color: var(--brand-deep); }
.lang-current { color: var(--brand-deep); font-weight: 800; }
.lang-sep     { opacity: 0.4; }
.lang-other   { opacity: 0.55; }

@media (max-width: 720px) {
  .nav-links   { display: none; }
  .nav-home .brand-mark { display: none; }
  /* Push lang + theme toggles to the right on mobile */
  .lang-toggle { margin-left: auto; }
}

/* ===== Theme (day/night) toggle ===== */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(14, 139, 194, 0.3);
  color: var(--ink-soft);
  border-radius: 999px;
  margin-left: 6px;
  transition: background .25s, color .25s, border-color .25s, transform .5s var(--ease);
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand-deep); transform: rotate(25deg); }
.theme-icon { width: 18px; height: 18px; transition: opacity .3s, transform .5s var(--ease); }
.theme-moon { display: none; }
html.night .theme-sun  { display: none; }
html.night .theme-moon { display: block; }
html.night .theme-toggle { color: #ffd089; border-color: rgba(255,208,137,.45); }
html.night .theme-toggle:hover { color: #ffb354; border-color: #ffb354; transform: rotate(-15deg); }

/* ===== Night mode ===== */
html, body { transition: background-color .9s var(--ease), color .9s var(--ease); }
.sky, .cloud, .huge-cloud, .nav, .hero-title, .scene-caption, .year-badge, .footer {
  transition: background .9s var(--ease), color .9s var(--ease), opacity .9s var(--ease), filter .9s var(--ease), border-color .9s var(--ease), box-shadow .9s var(--ease), text-shadow .9s var(--ease);
}

html.night body { background: #0a1226; color: #d8dfe8; }
html.night .sky {
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,0.95), transparent 70%),
    radial-gradient(1.2px 1.2px at 78% 12%, rgba(255,255,255,0.85), transparent 70%),
    radial-gradient(1px 1px at 45% 28%, rgba(255,255,255,0.75), transparent 70%),
    radial-gradient(1.5px 1.5px at 92% 40%, rgba(255,255,255,0.9), transparent 70%),
    radial-gradient(1.2px 1.2px at 30% 8%, rgba(255,255,255,0.85), transparent 70%),
    radial-gradient(1px 1px at 60% 34%, rgba(255,255,255,0.65), transparent 70%),
    radial-gradient(1.5px 1.5px at 15% 50%, rgba(255,255,255,0.75), transparent 70%),
    radial-gradient(1px 1px at 88% 22%, rgba(255,255,255,0.9), transparent 70%),
    radial-gradient(1.2px 1.2px at 35% 62%, rgba(255,255,255,0.7), transparent 70%),
    radial-gradient(1px 1px at 70% 8%, rgba(255,255,255,0.85), transparent 70%),
    radial-gradient(1.2px 1.2px at 52% 48%, rgba(255,255,255,0.7), transparent 70%),
    radial-gradient(1px 1px at 8% 32%, rgba(255,255,255,0.75), transparent 70%),
    radial-gradient(ellipse at 30% 20%, rgba(120,150,220,0.10), transparent 55%),
    linear-gradient(180deg, #050a1a 0%, #0b1530 45%, #1a2248 75%, #2a2645 100%);
}
html.night .cloud { filter: blur(1.5px) brightness(0.32) saturate(0.6) !important; color: #2a3150; }
html.night .layer-far  .cloud { opacity: 0.5; }
html.night .layer-mid  .cloud { opacity: 0.65; }
html.night .layer-near .cloud { opacity: 0.8; }
html.night .huge-cloud { opacity: 0.22; color: #343a56; filter: blur(14px); }

html.night .nav {
  background: rgba(14, 22, 40, 0.68);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}
html.night .nav-home { color: #e7ecf4; }
html.night .nav-links { color: #a9b4c5; }
html.night .nav-links a:hover { color: #fff; }
html.night .nav-links a::after { background: #ffb354; }
html.night .lang-toggle { color: #a9b4c5; border-color: rgba(255,255,255,0.18); }
html.night .lang-toggle:hover { color: #fff; border-color: #ffb354; }
html.night .lang-current { color: #fff; }
html.night .nav-mark { color: #7ed1f0; }

/* Light pollution: warm city glow radiating up from bottom */
.light-pollution {
  position: absolute;
  left: -10vw; right: -10vw; bottom: 0;
  height: 62%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
  z-index: 1;
  background:
    radial-gradient(ellipse 55% 100% at 28% 100%,
      rgba(255,140,60,0.55) 0%,
      rgba(255,110,70,0.30) 22%,
      rgba(220,80,120,0.14) 45%,
      transparent 75%),
    radial-gradient(ellipse 60% 95% at 72% 100%,
      rgba(255,175,90,0.50) 0%,
      rgba(255,120,80,0.26) 28%,
      rgba(180,90,140,0.12) 52%,
      transparent 80%),
    radial-gradient(ellipse 100% 50% at 50% 100%,
      rgba(255,160,90,0.22) 0%,
      rgba(255,110,90,0.10) 45%,
      transparent 80%);
  mix-blend-mode: screen;
}
html.night .light-pollution { opacity: 1; }

.page-glow {
  height: 420px;
  z-index: 0;
}

/* Warm underlight on hero logo/title in night mode */
html.night .hero-title {
  color: #f6f1e6;
  text-shadow:
    0 -6px 22px rgba(255,170,90,0.35),
    0 -2px 10px rgba(255,130,70,0.45),
    0 18px 28px rgba(0,0,0,0.35),
    0 40px 60px rgba(0,0,0,0.20);
}
html.night .hero-mark img {
  filter: drop-shadow(0 -4px 12px rgba(255,160,80,0.55)) drop-shadow(0 -2px 4px rgba(255,120,70,0.35));
}
html.night .scroll-cue {
  border-color: rgba(255,200,140,0.55);
  box-shadow: 0 0 18px rgba(255,160,80,0.25);
}
html.night .scroll-cue::before { background: #ffd089; }

html.night .scene-caption { color: #e7ecf4; }
html.night .year-badge { color: #ffd089; text-shadow: 0 0 14px rgba(255,170,90,0.45); }
html.night .footer { color: #8a96ab; }
html.night .footer a { color: #a9b4c5; }

@media (prefers-reduced-motion: reduce) {
  html, body, .sky, .cloud, .huge-cloud, .nav, .hero-title, .light-pollution { transition: none !important; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px;
  text-align: center;
}
.hero-stage { display: flex; flex-direction: column; align-items: center; max-width: 960px; }
.hero-mark {
  margin-bottom: 36px; color: #fff;
  filter:
    drop-shadow(0 18px 28px rgba(0, 20, 40, 0.08))
    drop-shadow(0 40px 60px rgba(0, 20, 40, 0.06));
  animation: floaty 4s ease-in-out infinite;
  will-change: transform;
}
.hero-mark img { width: clamp(220px, 28vw, 380px); height: auto; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
@keyframes floaty-sm { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floaty-xs { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.hero-title {
  font-size: clamp(80px, 14vw, 200px);
  line-height: 0.9;
  color: #fff;
  text-shadow:
    0 18px 28px rgba(0, 20, 40, 0.08),
    0 40px 60px rgba(0, 20, 40, 0.06);
  will-change: transform;
  animation: floaty-sm 5s ease-in-out -1s infinite;
}
.hero-tag {
  margin-top: 22px;
  font-size: clamp(16px, 2.2vw, 26px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-shadow:
    0 2px 4px rgba(0, 20, 40, 0.25),
    0 8px 22px rgba(0, 20, 40, 0.18);
  will-change: transform;
  animation: floaty-xs 4.5s ease-in-out -2s infinite;
}
@media (max-width: 640px) {
  .hero-tag {
    white-space: normal;
    font-size: clamp(14px, 3.8vw, 20px);
    max-width: 92vw;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}
.scroll-cue {
  position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 70px;
  border: 3px solid rgba(255,255,255,0.55); border-radius: 22px;
  box-shadow: 0 4px 18px rgba(0, 20, 40, 0.12);
  opacity: 0.6;
  will-change: opacity;
}
.scroll-cue::before {
  content: ''; display: block;
  width: 6px; height: 12px; background: #fff; border-radius: 3px;
  margin: 14px auto;
  animation: scrollpulse 1.8s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%   { transform: translateY(0);    opacity: 1; }
  60%  { transform: translateY(22px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}

/* =========================================================
   STORY — sticky-pin scenes with scroll-linked mockups
   ========================================================= */

.story { position: relative; perspective: 1500px; }

.scene {
  position: relative;
  min-height: 180vh;      /* ~80vh of pin-duration per scene */
  overflow: clip;
}

.scene-bg {
  position: absolute; inset: 0;
  z-index: 0;
  will-change: transform, opacity;
}

.scene-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 90px 24px 70px;
  z-index: 2;
}

.scene-caption {
  margin-top: 34px;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: clamp(12px, 2.2vw, 28px);
  text-align: center;
  line-height: 1.3;
  max-width: none;
  letter-spacing: -0.015em;
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
}

.year-badge {
  position: absolute;
  top: 26px; right: 26px;
  font-family: 'Orbitron', var(--font-base);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 3;
  opacity: 0;
  will-change: transform, opacity;
}

/* Device stage — wraps desktop + companion devices as one animated unit */
.device-stage {
  position: relative;
  width: 100%;
  max-width: 1080px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  will-change: transform, opacity;
  transform-origin: center center;
  backface-visibility: hidden;
}
.device-stage.stage-solo { max-width: 920px; }
.device-stage.stage-duo .browser { flex: 1 1 auto; max-width: 780px; }
.device-stage.stage-constellation {
  max-width: 1120px;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  justify-items: center;
  align-items: center;
}
.device-stage.stage-constellation > * { grid-column: 1; grid-row: 1; }

/* Browser chrome shared */
.browser {
  width: 100%;
  max-width: 920px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  background: #fff;
  transform-origin: center center;
}

/* ===== Companion devices — base ===== */
.device {
  flex-shrink: 0;
  position: relative;
}

/* iPhone (original 2007) — classic phone */
.phone-classic {
  width: 168px;
  height: 340px;
  background: linear-gradient(180deg, #e8e8ea 0%, #b9b9bd 100%);
  border-radius: 28px;
  padding: 40px 10px 44px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.6);
  border: 1px solid #7c7c82;
}
.phone-classic .phone-speaker {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 5px; border-radius: 3px;
  background: #2a2a2e;
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.4);
}
.phone-classic .phone-home {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(180deg, #f2f2f4, #cacacc);
  border: 1px solid #808086;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.phone-classic .phone-home::before {
  content: ''; display: block; width: 8px; height: 8px;
  margin: 7px auto; border: 1.5px solid #888; border-radius: 2px;
}
.screen-iphone1 {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #4a6e9a 0%, #2b3a55 100%);
  border-radius: 2px;
  padding: 6px;
  display: flex; flex-direction: column;
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.ios1-statusbar {
  display: flex; justify-content: space-between;
  font-size: 7px; font-weight: 700;
  padding: 2px 4px 4px;
  color: #fff;
  background: linear-gradient(180deg, #555, #222);
  border-bottom: 1px solid rgba(0,0,0,0.4);
}

/* Mini-site (mirrors the desktop site on mobile) */
.mini-site {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: 'Lucida Grande', 'Helvetica Neue', Arial, sans-serif;
  background: #fff;
}

/* 00s mini — Web 2.0 glossy */
.mini-00 {
  background: linear-gradient(180deg, #ffffff 0%, #d2e3f0 100%);
  color: #1a2937;
}
.mini-hdr-00 {
  background: linear-gradient(180deg, #4a6fa5 0%, #2c4970 100%);
  color: #fff;
  padding: 6px 8px;
  box-shadow: 0 1px 0 #1a2a44;
}
.mini-logo-00 {
  font-family: 'Georgia', serif;
  font-weight: 700;
  font-style: italic;
  font-size: 11px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.3);
}
.mini-logo-00 i {
  font-style: normal;
  font-size: 6px;
  background: linear-gradient(180deg, #ffe066, #e8a93a);
  color: #553a00;
  padding: 1px 3px;
  border-radius: 2px;
  margin-left: 3px;
  vertical-align: middle;
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 700;
}
.mini-hero-00 {
  padding: 14px 10px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, #eaf4fb 0%, transparent 70%);
  flex: 1;
}
.mini-h-00 {
  font-family: 'Georgia', serif;
  font-weight: 700;
  font-size: 13px;
  color: #1a2937;
  letter-spacing: -0.2px;
  line-height: 1.1;
  margin-bottom: 10px;
  text-shadow: 0 1px 0 #fff;
}
.mini-h-00 em { color: #d9472b; font-style: italic; }
.mini-btn-00 {
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(180deg, #ff9c33 0%, #d9472b 100%);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  border: 1px solid #a32a12;
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
  font-family: 'Lucida Grande', sans-serif;
}

/* 10s mini — flat modern */
.mini-10 {
  background: #fff;
  color: #2c3e50;
  font-family: 'Inter', sans-serif;
}
.mini-hdr-10 {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid #eceef1;
}
.mini-logo-10 {
  font-size: 11px;
  color: #1a2937;
}
.mini-burger { display: flex; flex-direction: column; gap: 2px; }
.mini-burger i {
  display: block;
  width: 12px; height: 1.5px;
  background: #5f6368;
  border-radius: 1px;
}
.mini-hero-10 {
  padding: 16px 12px 12px;
  flex: 1;
}
.mini-h-10 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.05;
  color: #1a2937;
  letter-spacing: -0.5px;
}

/* iPad flat (2015-ish) */
.tablet-flat {
  width: 230px;
  height: 310px;
  background: #1a1a1c;
  border-radius: 14px;
  padding: 26px 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  border: 1px solid #000;
  position: relative;
}
.tablet-cam {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: #444;
}
.tablet-home {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid #444;
}
.tablet-screen {
  width: 100%; height: 100%;
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
  display: flex; flex-direction: column;
  font-family: 'Inter', sans-serif;
}
.ipad-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px;
  background: #f1f3f4;
  border-bottom: 1px solid #e3e5e8;
  font-size: 7px; color: #5f6368;
}
.ipad-dots { display: inline-flex; gap: 3px; }
.ipad-dots i { width: 5px; height: 5px; border-radius: 50%; background: #ddd; }
.ipad-hero { padding: 16px 12px; flex: 1; }
.ipad-logo { font-size: 10px; color: #1a2937; margin-bottom: 6px; }
.ipad-h {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px; letter-spacing: 0.02em;
  color: #1a2937; line-height: 1;
  margin-bottom: 10px;
}
.ipad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.ipad-grid > div {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #e8eef5 0%, #c9d6e2 100%);
  border-radius: 4px;
}
.ipad-grid > div:nth-child(3n+1) { background: linear-gradient(135deg, #1cade4, #0e8bc2); }
.ipad-grid > div:nth-child(3n+2) { background: linear-gradient(135deg, #f3f5f8, #dde3ec); }

/* Apple Watch */
.watch-modern {
  position: absolute !important;
  left: 5%; top: 12%;
  width: 110px;
  z-index: 3;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}
.watch-modern .watch-screen {
  width: 110px; height: 130px;
  background: #000;
  border-radius: 26px;
  border: 2px solid #2a2a2e;
  padding: 14px 10px;
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.watch-crown {
  position: absolute; right: -4px; top: 38px;
  width: 6px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, #555, #2a2a2e);
}
.watch-band {
  width: 54px; height: 14px;
  background: linear-gradient(180deg, #2a2a2e, #1a1a1e);
  margin: 0 auto;
  border-radius: 0 0 10px 10px;
}
.watch-time {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700;
  color: #22d3ee;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.watch-ring {
  width: 60px; height: 60px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.watch-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.watch-ring span {
  font-size: 18px;
  background: linear-gradient(90deg, #22d3ee, #0E8BC2);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Modern iPhone */
.phone-modern {
  position: absolute !important;
  right: 3%; top: 6%;
  width: 150px; height: 310px;
  background: linear-gradient(180deg, #1a1a1e 0%, #0c0c10 100%);
  border-radius: 26px;
  padding: 6px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(14,139,194,0.3);
  border: 1.5px solid #2a2a2e;
  z-index: 3;
}
.phone-notch {
  position: absolute;
  top: 10px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 14px;
  background: #000;
  border-radius: 10px;
  z-index: 2;
}
.screen-modern {
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 50% 0%, #0b1a36 0%, #08081a 60%, #03030a 100%);
  border-radius: 20px;
  padding: 28px 14px 18px;
  display: flex; flex-direction: column;
  color: #fff;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  position: relative;
}
.ios-statusbar {
  display: flex; justify-content: space-between;
  font-size: 7px; color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
}
.modern-app { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.modern-app-logo {
  font-size: 28px;
  background: linear-gradient(90deg, #22d3ee, #0E8BC2);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.modern-app-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 10px; letter-spacing: 2px;
  background: linear-gradient(90deg, #22d3ee, #0E8BC2);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.modern-chip {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(28, 173, 228, 0.18);
  border: 1px solid rgba(28, 173, 228, 0.45);
  border-radius: 999px;
  font-size: 8px;
  color: #bfe5f5;
  margin-bottom: 16px;
}
.modern-grad-btn {
  padding: 8px 22px;
  background: linear-gradient(90deg, #22d3ee, #0E8BC2);
  color: #0a0a1a;
  font-weight: 700; font-size: 11px;
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(14, 139, 194, 0.5);
  margin-bottom: 16px;
}
.modern-dots-row {
  display: flex; gap: 4px;
  margin-top: auto;
}
.modern-dots-row i {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.modern-dots-row i:first-child { background: linear-gradient(90deg, #22d3ee, #0E8BC2); }

/* Cloud connector (Web3 scene) */
.cloud-connector {
  position: absolute !important;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}
.cloud-line {
  animation: cloudPulse 3s linear infinite;
}
@keyframes cloudPulse {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -40; }
}
.cloud-node {
  position: absolute !important;
  top: 4%; left: 50%;
  transform: translateX(-50%);
  width: 140px;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  filter: drop-shadow(0 0 30px rgba(28,173,228,0.6));
}
.cloud-node svg {
  width: 140px; height: auto;
  color: rgba(255,255,255,0.95);
}
.cloud-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.75);
  margin-top: -6px;
}

/* Constellation layout tweaks — center the desktop browser */
.stage-constellation .browser {
  max-width: 560px;
  position: relative;
  z-index: 2;
  margin-top: 30px;
}

.browser-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  font-size: 12px;
}
.browser-toolbar {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
}
.browser-body { padding: 0; }

/* =========================================================
   SCENE 1 — 1990s
   ========================================================= */
.scene-90s .scene-bg {
  background: linear-gradient(180deg, #9fd9e8 0%, #4fa8bd 100%);
}
.scene-90s .scene-caption { color: #2a2110; font-family: 'Times New Roman', serif; font-style: italic; font-weight: 400; }
.scene-90s .year-badge    { background: #000; color: #0f0; font-family: 'VT323', monospace; letter-spacing: 2px; font-size: 18px; border: 2px outset #888; }

.browser-ie4 {
  border-radius: 0;
  background: #c0c0c0;
  border: 2px outset #d4d0c8;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
}
.ie-title {
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  color: #fff;
  font-family: 'Tahoma', sans-serif;
  font-weight: 700;
  padding: 4px 10px;
  flex: 1;
}
.browser-ie4 header.browser-bar {
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  padding: 0;
}
.ie-controls {
  display: flex;
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
}
.ie-controls span {
  display: inline-block;
  width: 22px; height: 22px; line-height: 20px;
  background: #d4d0c8;
  border: 1px outset #fff;
  color: #000;
  text-align: center;
  font-family: 'Tahoma', sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.ie-toolbar {
  background: #d4d0c8;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #808080;
  font-family: 'Tahoma', sans-serif;
}
.btn90 {
  padding: 3px 10px;
  background: #d4d0c8;
  border: 1px outset #fff;
  color: #000;
  font-size: 11px;
}
.addr90 {
  flex: 1;
  margin-left: 10px;
  padding: 3px 8px;
  background: #fff;
  border: 1px inset #808080;
  color: #000;
  font-family: 'Courier New', monospace;
  font-size: 11px;
}

.site-90s {
  background: #008080;
  color: #000;
  padding: 0;
  font-family: 'Times New Roman', serif;
}
.marquee-90 {
  background: #000;
  color: #ff0;
  font-family: 'VT323', monospace;
  font-size: 18px;
  padding: 6px 12px;
  white-space: nowrap;
  overflow: hidden;
  letter-spacing: 1px;
  animation: marq 20s linear infinite;
}
@keyframes marq {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}
.title-90 {
  background: #c0c0c0;
  color: #ff00ff;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-weight: 700;
  font-size: 30px;
  text-align: center;
  padding: 20px 8px;
  text-shadow: 2px 2px 0 #000;
}
.title-90 u { color: #00f; }
.content-90 {
  background: #c0c0c0;
  padding: 32px 36px 40px;
  text-align: center;
  font-size: 16px;
  color: #000;
}
.content-90 p { margin: 0 auto 24px; max-width: 500px; }
.content-90 blink { color: #f00; font-weight: 700; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.links-90 {
  padding: 6px 0 8px;
  text-align: center;
  font-family: 'Times New Roman', serif;
  font-size: 12px;
  color: #000080;
  letter-spacing: 0.02em;
}
.links-90 a {
  color: #000080; text-decoration: underline; cursor: pointer;
}
.hit-counter {
  display: inline-block;
  background: #000;
  color: #0f0;
  text-align: center;
  padding: 8px 14px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  border: 2px inset #888;
}
.counter-digits {
  display: inline-block;
  font-family: 'VT323', monospace;
  font-size: 20px;
  letter-spacing: 2px;
  background: #111;
  padding: 2px 8px;
  margin-left: 6px;
  border: 1px inset #333;
}

/* =========================================================
   SCENE 2 — 2005-2010 (Web 2.0)
   ========================================================= */
.scene-00s .scene-bg {
  background: radial-gradient(circle at 50% 0%, #ffffff 0%, #cfd8dc 50%, #90a4ae 100%);
}
.scene-00s .scene-caption { color: #1a2937; font-weight: 600; }
.scene-00s .year-badge    { background: linear-gradient(180deg, #f0f0f0, #bcbcbc); color: #333; border: 1px solid #888; box-shadow: 0 2px 6px rgba(0,0,0,0.2), inset 0 1px 0 #fff; font-family: 'Helvetica Neue', sans-serif; }

.browser-ff3 {
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(180deg, #e8e8e8 0%, #b8b8b8 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), inset 0 1px 0 #fff;
  border: 1px solid #707070;
}
.ff-bar {
  background: linear-gradient(180deg, #d4d4d4 0%, #9c9c9c 100%);
  padding: 10px 14px 8px;
  border-bottom: 1px solid #666;
}
.ff-dots { display: flex; gap: 6px; }
.ff-dots i {
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffaaaa, #e23434);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  display: inline-block;
}
.ff-dots i:nth-child(2) { background: radial-gradient(circle at 30% 30%, #ffd98a, #e6a229); }
.ff-dots i:nth-child(3) { background: radial-gradient(circle at 30% 30%, #a8e591, #3aa228); }

.ff-tab {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  color: #222;
  background: linear-gradient(180deg, #fefefe, #d9d9d9);
  padding: 4px 14px;
  border-radius: 6px 6px 0 0;
  border: 1px solid #888;
  box-shadow: inset 0 1px 0 #fff;
}
.ff-toolbar {
  background: linear-gradient(180deg, #c7c7c7, #9f9f9f);
  padding: 8px 12px;
  border-bottom: 1px solid #707070;
}
.btn00 {
  width: 26px; height: 24px; line-height: 22px;
  text-align: center;
  font-size: 12px; color: #333;
  background: linear-gradient(180deg, #fff, #c8c8c8);
  border: 1px solid #888;
  border-radius: 4px;
  display: inline-block;
  box-shadow: inset 0 1px 0 #fff;
}
.addr00 {
  flex: 1;
  background: linear-gradient(180deg, #fff, #ebebeb);
  border: 1px solid #888;
  border-radius: 4px;
  padding: 4px 10px;
  color: #333;
  font-family: 'Lucida Grande', 'Segoe UI', sans-serif;
  font-size: 12px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.rss-btn {
  background: linear-gradient(180deg, #ffaf30, #e27d00);
  color: #fff;
  border: 1px solid #c2640a;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0,0,0,0.2);
}

.site-00s {
  background: linear-gradient(180deg, #ffffff 0%, #d2e3f0 100%);
  color: #1a2937;
  font-family: 'Lucida Grande', 'Helvetica Neue', Arial, sans-serif;
  padding: 0;
}
.hdr-00 {
  display: flex; align-items: center;
  padding: 16px 24px;
  background: linear-gradient(180deg, #4a6fa5 0%, #2c4970 100%);
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.3), 0 2px 0 #1a2a44;
}
.logo-00 {
  font-family: 'Georgia', serif;
  font-size: 26px;
  font-weight: 700;
  font-style: italic;
  text-shadow: 0 2px 0 rgba(0,0,0,0.3);
}
.beta {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  background: linear-gradient(180deg, #ffe066, #e8a93a);
  color: #553a00;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
  text-shadow: none;
}
.nav-00 {
  margin-left: auto;
  display: flex;
  gap: 2px;
}
.nav-00 a {
  padding: 8px 16px;
  color: #d8e4f0;
  font-size: 13px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.3);
  border-radius: 3px;
}
.nav-00 a:hover, .nav-00 a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.hero-00 {
  padding: 54px 28px 58px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(ellipse at 50% 0%, #eaf4fb 0%, transparent 70%);
}
.hero-00 h1 {
  font-family: 'Georgia', serif;
  font-size: 38px;
  font-weight: 700;
  color: #1a2937;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  text-shadow: 0 1px 0 #fff;
}
.hero-00 h1 em { color: #d9472b; font-style: italic; }
.hero-00 p { font-size: 15px; color: #44556a; margin-bottom: 26px; font-family: 'Lucida Grande', sans-serif; }
.glossy-btn {
  padding: 12px 26px;
  background: linear-gradient(180deg, #ff9c33 0%, #d9472b 100%);
  color: #fff;
  font-family: 'Lucida Grande', sans-serif;
  font-weight: 700;
  border: 1px solid #a32a12;
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    0 2px 4px rgba(0,0,0,0.25);
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
  font-size: 14px;
  position: relative;
  overflow: hidden;
}
.glossy-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
  border-radius: 22px 22px 0 0;
  pointer-events: none;
}

/* =========================================================
   SCENE 3 — 2015-2020 (flat / modern)
   ========================================================= */
.scene-10s .scene-bg {
  background: linear-gradient(180deg, #f4f7fa 0%, #dfe7ef 100%);
}
.scene-10s .scene-caption { color: #2c3e50; font-weight: 500; }
.scene-10s .year-badge    { background: #2c3e50; color: #fff; font-weight: 600; }

.browser-chrome {
  border-radius: 10px 10px 6px 6px;
  background: #f1f3f4;
  box-shadow: 0 32px 80px rgba(0,0,0,0.22), 0 6px 20px rgba(0,0,0,0.10);
}
.chrome-bar {
  background: #dadce0;
  padding: 8px 14px;
  border-bottom: 1px solid #c0c3c6;
}
.chrome-dots { display: flex; gap: 6px; }
.chrome-dots i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; background: #feba4e; }
.chrome-dots i:first-child { background: #ff5f57; }
.chrome-dots i:last-child  { background: #28c93e; }
.chrome-tab {
  background: #fff;
  padding: 5px 16px;
  border-radius: 8px 8px 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #5f6368;
}
.chrome-toolbar {
  background: #f1f3f4;
  padding: 10px 14px;
  border-bottom: 1px solid #e8eaed;
  font-family: 'Inter', sans-serif;
  gap: 12px;
}
.chrome-nav { color: #5f6368; font-size: 14px; }
.addr10 {
  flex: 1;
  background: #fff;
  border-radius: 18px;
  padding: 6px 14px;
  color: #3c4043;
  font-size: 13px;
  box-shadow: inset 0 0 0 1px #dadce0;
}

.site-10s {
  background: #ffffff;
  color: #2c3e50;
  font-family: 'Inter', sans-serif;
}
.hdr-10 {
  display: flex; align-items: center;
  padding: 22px 32px;
  border-bottom: 1px solid #eceef1;
}
.logo-10 {
  display: flex; align-items: center; gap: 9px;
  font-size: 22px;
  color: #1a2937;
  letter-spacing: 0.02em;
}
.mark-10 {
  width: 22px; height: 22px; color: #1a2937; flex: 0 0 auto;
}
.lead-10 {
  font-size: 14px; color: #7a9db5;
  margin: -6px 0 26px; font-weight: 400; line-height: 1.45;
}
.nav-10 {
  margin-left: 40px;
  display: flex; gap: 26px;
  font-size: 13px;
  color: #5f6368;
  font-weight: 500;
}
.nav-10 a:hover { color: #1a2937; }
.cta-10 {
  margin-left: auto;
  padding: 9px 18px;
  background: #1a2937;
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.hero-10 {
  padding: 70px 32px 80px;
  text-align: left;
  max-width: 600px;
}
.tag-10 {
  display: inline-block;
  font-size: 11px;
  color: #5f6368;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-10 h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.05;
  color: #1a2937;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.hero-10 p {
  font-size: 15px;
  color: #5f6368;
  line-height: 1.55;
  max-width: 360px;
  font-weight: 400;
}

/* =========================================================
   SCENE 4 — Web3 / AI
   ========================================================= */
.scene-web3 { color: #e9f2ff; }
.scene-web3 .scene-bg {
  background: radial-gradient(ellipse at 70% 10%, #0b1a36 0%, #0a0a1a 50%, #03030a 100%);
}
.scene-web3 .scene-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle 1px at 15% 30%, rgba(255,255,255,0.8), transparent),
    radial-gradient(circle 1px at 30% 70%, rgba(255,255,255,0.6), transparent),
    radial-gradient(circle 1px at 60% 40%, rgba(255,255,255,0.9), transparent),
    radial-gradient(circle 1px at 80% 80%, rgba(255,255,255,0.6), transparent),
    radial-gradient(circle 1px at 90% 20%, rgba(255,255,255,0.8), transparent),
    radial-gradient(circle 2px at 25% 85%, rgba(255,255,255,0.7), transparent),
    radial-gradient(circle 1.5px at 50% 15%, rgba(255,255,255,0.85), transparent);
  pointer-events: none;
}
.mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: screen;
}
.mesh-1 { width: 520px; height: 520px; background: #0E8BC2; top: -8%; left: -10%; }
.mesh-2 { width: 620px; height: 620px; background: #06b6d4; bottom: -10%; right: -15%; }
.mesh-3 { width: 420px; height: 420px; background: #22d3ee; top: 30%; right: 20%; }

.scene-web3 .scene-caption {
  color: #fff;
  background: linear-gradient(90deg, #67e8f9, #22d3ee, #0E8BC2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.scene-web3 .year-badge {
  background: linear-gradient(90deg, rgba(34,211,238,0.2), rgba(28,173,228,0.2));
  border: 1px solid rgba(28,173,228,0.45);
  color: #cfe8f7;
  font-family: 'Orbitron', monospace;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.browser-modern {
  border-radius: 14px;
  background: rgba(10, 12, 25, 0.85);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 80px rgba(14, 139, 194, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.modern-bar {
  background: rgba(255,255,255,0.04);
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 14px;
}
.modern-dots { display: flex; gap: 7px; }
.modern-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.2); display: inline-block; }
.modern-tab {
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 4px 14px;
  font-family: var(--font-brand);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

.site-web3 {
  background: transparent;
  color: #e9f2ff;
  font-family: 'Inter', sans-serif;
  padding: 0;
}
.hdr-w3 {
  display: flex; align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 16px;
}
.logo-w3 {
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap;
}
.mark-w3 {
  width: 18px; height: 18px; min-width: 18px; min-height: 18px;
  max-width: 18px; max-height: 18px;
  color: #22d3ee; flex: 0 0 auto;
  display: inline-block;
}
.wordmark-w3 {
  font-family: 'Aller Display', 'DM Sans', sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 19px;
  line-height: 1;
  text-transform: lowercase;
  color: #67e8f9;
  /* Solid-color fallback renders first; gradient text-clip is opt-in via @supports */
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  @media (min-width: 721px) {
    .wordmark-w3 {
      background: linear-gradient(90deg, #67e8f9, #22d3ee, #0E8BC2);
      -webkit-background-clip: text; background-clip: text;
      -webkit-text-fill-color: transparent;
    }
  }
}
.nav-w3 {
  display: flex; gap: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  font-family: 'Inter', sans-serif;
}
.nav-w3 a { cursor: pointer; transition: color .2s; }
.nav-w3 a:hover { color: #fff; }
.wallet-w3 {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #cfeffa;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.wallet-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.9);
  animation: walletPulse 2s ease-in-out infinite;
}
@keyframes walletPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.modern-bar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.net-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 8px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: #a9e8f7;
  letter-spacing: 0.04em;
}
.net-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.9);
}

.hero-w3 { padding: 48px 32px 36px; text-align: center; }
.chip-w3 {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(28, 173, 228, 0.15);
  border: 1px solid rgba(28, 173, 228, 0.35);
  border-radius: 999px;
  font-size: 10px;
  color: #cfeefb;
  margin-bottom: 18px;
  letter-spacing: 0.8px;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
}
.hero-w3 h1 {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.6px;
  margin-bottom: 14px;
  color: #fff;
}
.hero-w3 .sub-w3 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 auto 22px;
  max-width: 380px;
  line-height: 1.5;
}
.hero-w3 .grad {
  background: linear-gradient(90deg, #67e8f9, #22d3ee, #0E8BC2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-row-w3 { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.neon-btn {
  padding: 11px 24px;
  background: linear-gradient(90deg, #22d3ee, #0E8BC2);
  color: #0a0a1a;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  border-radius: 999px;
  box-shadow: 0 0 30px rgba(14, 139, 194, 0.5), inset 0 1px 0 rgba(255,255,255,0.35);
  border: 0;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.ghost-btn {
  padding: 11px 22px;
  background: rgba(255,255,255,0.04);
  color: #e9f2ff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  letter-spacing: 0.02em;
}

/* Feature grid in web3 scene */
.feat-grid-w3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 22px 20px;
}
.feat-card-w3 {
  padding: 14px 12px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  text-align: left;
  font-family: 'Inter', sans-serif;
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.feat-card-w3:hover {
  transform: translateY(-2px);
  border-color: rgba(28,173,228,0.35);
  background: rgba(28,173,228,0.06);
}
.feat-ico {
  font-size: 18px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #22d3ee, #0E8BC2);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.feat-t {
  font-size: 12px; font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.feat-d {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}

.stats-w3 {
  display: flex; align-items: center; justify-content: center;
  gap: 22px;
  padding: 16px 22px 22px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: 'Inter', sans-serif;
}
.stats-w3 > div { text-align: center; }
.stats-w3 b {
  display: block;
  font-size: 18px; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(90deg, #22d3ee, #0E8BC2);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stats-w3 span {
  display: block;
  font-size: 9px; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 1.4px;
  margin-top: 2px;
}
.stats-div {
  width: 1px; height: 22px;
  background: rgba(255,255,255,0.08);
}

/* J-mark inside watch ring */
.watch-ring .watch-mark {
  position: relative;
  inset: auto;
  width: 18px; height: 18px;
  color: #7ed4f5;
  opacity: 0.9;
  z-index: 1;
}
/* Watch — add little stat under the ring */
.watch-stat {
  font-family: 'Inter', sans-serif;
  font-size: 8px; font-weight: 700;
  letter-spacing: 0.1em;
  color: #a9e8f7;
  margin-top: 2px;
}

/* Phone app — wallet + AI + actions */
.app-head-w3 {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.app-logo-w3 {
  width: 20px; height: 20px; color: #22d3ee;
  display: flex; align-items: center; justify-content: center;
}
.app-logo-w3 svg { width: 100%; height: 100%; }
.app-wallet-w3 {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px;
  background: rgba(34,211,238,0.10);
  border: 1px solid rgba(34,211,238,0.28);
  border-radius: 999px;
  font-size: 7px; color: #cfeffa;
  letter-spacing: 0.04em;
}
.app-wallet-w3 i {
  width: 4px; height: 4px; border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 5px rgba(34,211,238,0.9);
}
.app-balance-w3 {
  text-align: center;
  padding: 10px 0 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 12px;
}
.bal-label {
  font-size: 7px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2px;
}
.bal-amt {
  font-size: 20px; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(90deg, #22d3ee, #0E8BC2);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bal-amt span { font-size: 10px; opacity: 0.7; font-weight: 600; margin-left: 2px; }
.bal-delta {
  font-size: 7px; color: #4ade80; letter-spacing: 0.08em;
  margin-top: 2px;
}
.app-ai-msg {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px;
  background: rgba(28,173,228,0.14);
  border: 1px solid rgba(28,173,228,0.32);
  border-radius: 10px;
  margin-bottom: 10px;
}
.ai-avatar {
  width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #0E8BC2);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; flex-shrink: 0;
}
.ai-bubble { font-size: 8px; color: #e9e2ff; letter-spacing: 0.02em; }
.app-actions-w3 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  margin-bottom: 10px;
}
.act-btn {
  padding: 6px; text-align: center;
  font-size: 8px; font-weight: 700; letter-spacing: 0.05em;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}
.act-btn.primary {
  background: linear-gradient(90deg, #22d3ee, #0E8BC2);
  color: #0a0a1a;
  border: 0;
  box-shadow: 0 0 14px rgba(14,139,194,0.45);
}

/* =========================================================
   About / skills / quote / contact
   ========================================================= */

.section {
  position: relative;
  padding: 140px 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.section-about { padding-top: 160px; }

.section-head { margin-bottom: 70px; max-width: 780px; }
.section-head h2 {
  white-space: nowrap;
  font-size: clamp(26px, 4.6vw, 62px);
  max-width: none;
}
.section-lead {
  margin-top: 26px;
  font-size: 17px;
  font-weight: 500;
  color: rgba(255,255,255,0.94);
  max-width: 680px;
  line-height: 1.55;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-deep);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
h2 {
  font-family: var(--font-base);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 6px 24px rgba(11, 43, 58, 0.18);
}

/* Today-brand — "jimagine.ça" in Bebas Neue, the payoff after the eras */
.today-brand {
  font-family: 'Bebas Neue', 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(52px, 10vw, 150px);
  color: #fff;
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 10px 0 22px;
  white-space: nowrap;
  text-shadow: 0 8px 28px rgba(11, 43, 58, 0.22);
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  background: transparent;
  border: none;
  padding: 0;
  backdrop-filter: none;
}
.skill-card {
  position: relative;
  padding: 34px 28px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(11, 43, 58, 0.10);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28,173,228,0.0) 0%, rgba(28,173,228,0.08) 100%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(11, 43, 58, 0.18);
}
.skill-card:hover::before { opacity: 1; }

.skill-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 6px 18px rgba(28,173,228,0.35);
  transition: transform .35s var(--ease);
}
.skill-card:hover .skill-icon {
  transform: rotate(-6deg) scale(1.08);
}
.skill-icon svg { width: 28px; height: 28px; }

.skill-card h3 {
  font-family: 'Bebas Neue', var(--font-base);
  font-weight: 400;
  font-size: 32px;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 10px;
}
.skill-card p { color: var(--ink-soft); font-size: 14px; font-weight: 500; line-height: 1.55; }

.quote-band { padding: 120px 24px; text-align: center; }
.quote {
  font-family: 'Bebas Neue', var(--font-base);
  font-weight: 400;
  font-size: clamp(28px, 5.6vw, 78px);
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1;
  max-width: none;
  margin: 0 auto;
  text-shadow: 0 6px 24px rgba(11, 43, 58, 0.18);
  white-space: nowrap;
}

/* ---------- Specialties marquee (under the quote) ---------- */
.specialties {
  position: relative;
  padding: 60px 0 110px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}
.spec-track {
  display: flex;
  gap: 72px;
  width: max-content;
  padding: 0 36px;
  animation: spec-scroll 90s linear infinite;
  will-change: transform;
}
.specialties:hover .spec-track { animation-play-state: paused; }
@keyframes spec-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.spec-card {
  flex: 0 0 200px;
  padding: 10px 0;
  background: transparent;
  border: 0; box-shadow: none;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
  color: #fff;
}
.spec-pict {
  width: 140px; height: 140px;
  display: grid; place-items: center;
  background: transparent;
  position: relative;
  transition: transform .5s cubic-bezier(.4,0,.2,1), filter .3s;
}
.spec-card:hover .spec-pict {
  transform: translateY(-8px) scale(1.06);
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.30));
}
.spec-pict svg {
  width: 100%; height: 100%;
  overflow: visible;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.22));
  transition: filter .3s;
}
.spec-card h3 {
  font-size: 16px; font-weight: 700; margin: 0;
  color: #fff; line-height: 1.2;
  letter-spacing: 0.01em;
}
.spec-card p {
  font-size: 12.5px; color: rgba(255,255,255,0.75);
  margin: 0; line-height: 1.5; max-width: 200px;
  font-weight: 500;
}

@media (max-width: 720px) {
  .specialties { padding: 40px 0 80px; mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%); }
  .spec-track { gap: 36px; animation-duration: 70s; padding: 0 20px; }
  .spec-card { flex-basis: 160px; gap: 14px; }
  .spec-pict { width: 110px; height: 110px; }
  .spec-card h3 { font-size: 14px; }
  .spec-card p { font-size: 12px; max-width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  .spec-track { animation: none; }
  .specialties { overflow-x: auto; scroll-snap-type: x mandatory; }
  .spec-card { scroll-snap-align: center; }
}

/* ============================================================
   Tech stack — languages, platforms, frameworks
   Infinite horizontal marquee with Simple Icons white SVG logos
   ============================================================ */
.tech-stack {
  position: relative;
  padding: 100px 0 80px;
  z-index: 2;
}
.tech-head {
  max-width: 900px;
  margin: 0 auto 56px;
  padding: 0 24px;
  text-align: center;
}
.tech-eyebrow {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 14px;
  font-weight: 500;
}
.tech-title {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 200;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: #fff;
  line-height: 1.15;
}
.tech-sub {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  line-height: 1.6;
}
.tech-marquee {
  overflow: hidden;
  min-height: 80px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.tech-track {
  display: flex;
  gap: 52px;
  width: max-content;
  padding: 10px 0;
  animation: tech-slide 60s linear infinite;
  will-change: transform;
}
.tech-track:hover { animation-play-state: paused; }
@keyframes tech-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tech-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 90px;
  cursor: default;
}
.tech-logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.tech-logo img {
  width: 40px;
  height: 40px;
  display: block;
  opacity: 0.72;
  /* Force white regardless of what the CDN returns (some mobile browsers
     cache a dark variant or strip the color query param). brightness(0)
     collapses any pixel to black, invert(1) flips it to pure white. */
  filter: brightness(0) invert(1);
  transition: opacity .3s ease, transform .5s cubic-bezier(.4, 0, .2, 1);
}
.tech-item:hover .tech-logo img {
  opacity: 1;
  transform: scale(1.15);
}
.tech-name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  transition: color .3s ease;
}
.tech-item:hover .tech-name { color: #fff; }

@media (max-width: 900px) {
  .tech-stack { padding: 70px 0 60px; }
  .tech-head { margin-bottom: 42px; }
  .tech-track { gap: 40px; animation-duration: 50s; }
  .tech-item { min-width: 78px; gap: 10px; }
  .tech-logo { width: 38px; height: 38px; }
  .tech-logo img { width: 34px; height: 34px; }
  .tech-name { font-size: 11px; }
}

@media (max-width: 520px) {
  .tech-stack { padding: 50px 0 50px; }
  .tech-sub { font-size: 14px; }
  .tech-head { margin-bottom: 32px; padding: 0 16px; }
  .tech-track { gap: 32px; animation-duration: 42s; }
  .tech-item { min-width: 66px; gap: 8px; }
  .tech-logo { width: 32px; height: 32px; }
  .tech-logo img { width: 28px; height: 28px; }
  .tech-name { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .tech-track { animation: none; }
  .tech-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

.section-contact { padding-bottom: 100px; }
.contact {
  text-align: center;
  padding: 80px 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 30px 70px rgba(11, 43, 58, 0.18);
}
.contact h2 { color: var(--ink); text-shadow: none; margin-bottom: 30px; }
.email {
  display: inline-block;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--brand-deep);
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background .2s, border-color .2s, transform .15s;
  letter-spacing: -0.01em;
}
.email:hover {
  background: rgba(28, 173, 228, 0.08);
  border-color: rgba(28, 173, 228, 0.3);
  transform: translateY(-2px);
}

.footer {
  padding: 20px 24px 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  /* Failsafe: if JS doesn't fire (no IntersectionObserver, CSP error, etc.),
     force visibility after 3s so content never stays permanently hidden. */
  animation: reveal-fallback 0s linear 3s forwards;
}
.reveal.in { opacity: 1; transform: translateY(0); animation: none; }
@keyframes reveal-fallback {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
}
/* No-JS: always visible */
.no-js .reveal { opacity: 1; transform: none; animation: none; }

/* Responsive */
@media (max-width: 780px) {
  /* Release the 100vh sticky pin so stacked device mockups fit */
  .scene { min-height: 100vh; }
  .scene-inner {
    height: auto;
    min-height: 100vh;
    padding: 100px 16px 80px;
  }
  .browser { font-size: 90%; }
  .title-90 { font-size: 24px; }
  .hero-00 h1 { font-size: 28px; }
  .hero-10 h1 { font-size: 30px; line-height: 1.1; }
  .hero-w3 h1 { font-size: 28px; letter-spacing: -1px; }
  .hero-w3 { padding: 32px 20px 24px; }
  .hero-w3 .sub-w3 { font-size: 12px; }
  .hdr-00, .hdr-10, .hdr-w3 { flex-wrap: wrap; gap: 10px; }
  .nav-00, .nav-10, .nav-w3 { margin-left: 0; }
  .nav-w3 { display: none; }
  .feat-grid-w3 { grid-template-columns: repeat(2, 1fr); padding: 0 16px 16px; }
  .stats-w3 { gap: 14px; padding: 12px 16px 16px; }
  .stats-w3 b { font-size: 16px; }

  /* ----- Scene 3 (scene-10s): stack duo vertically ----- */
  .scene-10s .device-stage.stage-duo {
    flex-direction: column;
    gap: 26px;
    align-items: center;
  }
  .scene-10s .browser-chrome {
    width: 100%;
    max-width: 440px;
  }
  .scene-10s .tablet-flat {
    width: 184px;
    height: 246px;
    padding: 22px 8px;
  }
  .scene-10s .mini-h-10 { font-size: 18px; }

  /* ----- Scene 4 (scene-web3): collapse constellation to flow layout ----- */
  .scene-web3 .device-stage.stage-constellation {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 18px;
    min-height: 0;
    align-items: center;
    justify-content: center;
    max-width: 100%;
  }
  .scene-web3 .cloud-connector { display: none; }
  .scene-web3 .cloud-node {
    position: static !important;
    transform: none !important;
    width: 96px;
    margin: 0 0 -6px;
    order: 1;
    flex: 0 0 auto;
  }
  .scene-web3 .cloud-node svg { width: 96px; }
  .scene-web3 .cloud-label { font-size: 8px; letter-spacing: 2.4px; }

  .scene-web3 .stage-constellation .browser {
    position: static;
    margin-top: 0;
    max-width: 100%;
    width: 100%;
    order: 2;
    flex: 0 0 auto;
  }
  .scene-web3 .watch-modern,
  .scene-web3 .phone-modern {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    z-index: auto;
    flex: 0 0 auto;
  }
  /* Watch + phone sit side-by-side below the browser */
  .scene-web3 .watch-wrap-m { order: 3; }
  .scene-web3 .watch-modern { order: 3; width: 96px; }
  .scene-web3 .watch-modern .watch-screen {
    width: 96px; height: 114px; padding: 12px 8px;
  }
  .scene-web3 .phone-modern {
    order: 4;
    width: 150px; height: 300px;
  }
  .scene-web3 .screen-modern { padding: 22px 10px 14px; }

  /* Group watch + phone on one row with a wrapper rule using flex subgrouping */
  .scene-web3 .stage-constellation::after {
    content: '';
    display: block;
    width: 100%;
    order: 2;  /* separates browser row from device row */
  }
}

/* Very narrow phones — hide the floating watch to keep it breathable */
@media (max-width: 420px) {
  .scene-web3 .watch-modern { display: none; }
  .scene-web3 .cloud-node { display: none; }
  .scene-10s .tablet-flat {
    width: 156px;
    height: 208px;
    padding: 18px 7px;
  }
}
@media (max-width: 600px) {
  .scene-inner  { padding: 80px 14px 60px; }
  .section      { padding: 100px 20px; }
  .quote-band   { padding: 80px 20px; }
  .hero         { padding: 110px 20px 60px; }
  .contact      { padding: 56px 24px; }
  .skills li    { padding: 28px 24px; }
  .year-badge   { top: 16px; right: 16px; font-size: 11px; padding: 6px 10px; }
  .scene-caption { font-size: clamp(10px, 3vw, 14px); }
  .content-90   { padding: 22px 18px 28px; }
}
