/* =========================================================
   Diquej — estilos globales
   ========================================================= */
:root {
  --bg: #020814;
  --bg-2: #04101f;
  --deep: #061a33;
  --surface: rgba(10, 32, 60, 0.55);
  --surface-solid: #0a2038;
  --line: rgba(120, 200, 255, 0.12);
  --line-strong: rgba(120, 200, 255, 0.28);
  --text: #eaf6ff;
  --muted: #93b3cc;
  --faint: #5f7d96;
  --cyan: #3fd0ff;
  --blue: #1e7bff;
  --violet: #8b5cff;
  --gold: #f5c542;
  --radius: 22px;
  --max: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.02em; line-height: 1.1; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.top.scrolled { background: rgba(2, 8, 20, 0.78); backdrop-filter: blur(14px); border-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-family: var(--font-head); font-weight: 700; letter-spacing: 0.22em; font-size: 1rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 0 22px rgba(63, 208, 255, .45); }
.nav { display: flex; align-items: center; gap: 26px; font-size: 0.94rem; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .btn { padding: 9px 18px; font-size: .9rem; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 12px; width: 42px; height: 42px; font-size: 1.2rem; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  border: 1px solid var(--line-strong); color: var(--text); background: rgba(10, 32, 60, .6);
  backdrop-filter: blur(8px);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); border-color: rgba(120, 200, 255, .5); }
.btn.primary {
  background: linear-gradient(120deg, var(--cyan), var(--blue) 60%, var(--violet));
  border: none; color: #fff;
  box-shadow: 0 10px 40px rgba(30, 123, 255, .45), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn.primary:hover { box-shadow: 0 14px 50px rgba(63, 208, 255, .55), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.gold { background: linear-gradient(120deg, #ffe08a, var(--gold) 50%, #c8901a); color: #1b1200; border: none; box-shadow: 0 10px 40px rgba(245, 197, 66, .35); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  padding: 110px 0 80px;
}
#scene, .scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 220px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan);
  padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(4, 16, 31, .5);
  backdrop-filter: blur(6px); margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 700; }
.grad {
  background: linear-gradient(100deg, #fff 10%, var(--cyan) 45%, var(--violet) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 24px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 54ch; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.stats { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 36px; }
.stats div { font-family: var(--font-head); }
.stats b { display: block; font-size: 1.7rem; color: var(--text); }
.stats span { font-size: .85rem; color: var(--faint); font-family: var(--font-body); }

/* Logo flotante 3D */
.logo-stage { perspective: 1000px; display: flex; justify-content: center; }
.logo-3d {
  position: relative; width: min(380px, 78vw); aspect-ratio: 1;
  transform-style: preserve-3d; transition: transform .15s linear;
  animation: float 7s ease-in-out infinite;
}
.logo-3d img {
  width: 100%; height: 100%; border-radius: 26%;
  object-fit: cover;
  box-shadow: 0 0 80px rgba(63, 208, 255, .45), 0 40px 80px rgba(0, 0, 0, .6);
  transform: translateZ(40px);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 62%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000 62%, transparent 72%);
}
.logo-3d .halo {
  position: absolute; inset: -14%; border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 208, 255, .35), transparent 62%);
  filter: blur(20px); transform: translateZ(-60px);
}
@keyframes float { 0%, 100% { translate: 0 -10px; } 50% { translate: 0 12px; } }

.scroll-hint { position: absolute; left: 50%; bottom: 28px; z-index: 3; translate: -50% 0; color: var(--faint); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint i { width: 1px; height: 38px; background: linear-gradient(var(--cyan), transparent); animation: drip 2s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Sections ---------- */
section { position: relative; padding: 110px 0; }
.kicker { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; display: block; }
.section-title { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; margin-bottom: 16px; max-width: 20ch; }
.section-sub { color: var(--muted); margin-bottom: 52px; max-width: 62ch; font-size: 1.08rem; }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Tarjetas con tilt 3D */
.card {
  position: relative; border-radius: var(--radius); padding: 32px;
  background: linear-gradient(160deg, rgba(14, 44, 80, .7), rgba(4, 14, 28, .85));
  border: 1px solid var(--line);
  transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(63, 208, 255, .16), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { border-color: var(--line-strong); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.card:hover::before { opacity: 1; }
.card > * { transform: translateZ(28px); }
.card h3 { font-size: 1.35rem; margin: 18px 0 10px; }
.card p { color: var(--muted); }
.icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(63, 208, 255, .22), rgba(139, 92, 255, .2));
  border: 1px solid var(--line-strong);
}
.icon svg { width: 26px; height: 26px; stroke: var(--cyan); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; padding: 5px 11px; border-radius: 999px; font-weight: 600; letter-spacing: .02em; }
.tag.live { background: rgba(46, 230, 140, .12); color: #4ff0a0; border: 1px solid rgba(46, 230, 140, .25); }
.tag.soon { background: rgba(245, 197, 66, .1); color: var(--gold); border: 1px solid rgba(245, 197, 66, .25); }
.tag.blue { background: rgba(63, 208, 255, .1); color: var(--cyan); border: 1px solid var(--line-strong); }

/* ---------- Proyectos ---------- */
.project {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; align-items: stretch;
  border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(14, 44, 80, .6), rgba(4, 14, 28, .9));
  margin-bottom: 32px;
}
.project.reverse { grid-template-columns: 1.1fr 1fr; }
.project.reverse .project-media { order: 2; }
.project-media { position: relative; min-height: 360px; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project:hover .project-media img { transform: scale(1.05); }
.project-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.project-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.project-head img { width: 64px; height: 64px; border-radius: 18px; }
.project-head h3 { font-size: 2rem; }
.project-body p { color: var(--muted); margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chips span { font-size: .8rem; color: var(--muted); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(4, 16, 31, .5); }
.project .actions { margin-top: 0; }
.project.gold { background: linear-gradient(160deg, rgba(60, 42, 6, .55), rgba(10, 8, 2, .92)); border-color: rgba(245, 197, 66, .2); }
.project.gold .chips span { border-color: rgba(245, 197, 66, .2); }
.project.gold .kicker { color: var(--gold); }

/* ---------- Banda océano (parallax) ---------- */
.ocean-band { position: relative; padding: 170px 0; overflow: hidden; }
.ocean-band .bg {
  position: absolute; top: -20%; bottom: -20%; left: -6%; width: 150%;
  background: url("/img/ocean.webp") center / cover no-repeat;
  will-change: transform; filter: saturate(1.1);
}
.ocean-band::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 8, 20, .92) 0%, rgba(2, 8, 20, .6) 38%, transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 75%, var(--bg) 100%);
}
.ocean-band .wrap { position: relative; z-index: 2; }
.ocean-band h2 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 14ch; text-shadow: 0 10px 40px rgba(0, 0, 0, .7); }
.ocean-band p { margin-top: 20px; max-width: 46ch; color: #cfe6f7; text-shadow: 0 4px 20px rgba(0, 0, 0, .8); font-size: 1.1rem; }
@media (max-width: 720px) {
  .ocean-band .bg { left: -40%; width: 220%; }
  .ocean-band::before { background: linear-gradient(180deg, var(--bg) 0%, rgba(2, 8, 20, .75) 30%, rgba(2, 8, 20, .75) 70%, var(--bg) 100%); }
}

/* ---------- Impresión 3D ---------- */
.print { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.print-stage { position: relative; aspect-ratio: 1; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(circle at 50% 70%, #0b2a4d, #020814 70%); }
.print-stage .readout { position: absolute; left: 20px; bottom: 18px; z-index: 2; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .78rem; color: var(--cyan); opacity: .85; }
.print ul { list-style: none; margin: 26px 0 32px; display: grid; gap: 12px; }
.print li { display: flex; gap: 12px; color: var(--muted); }
.print li::before { content: ""; flex-shrink: 0; margin-top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* ---------- Video ---------- */
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line-strong); background: #000; cursor: pointer;
  box-shadow: 0 40px 100px rgba(30, 123, 255, .25);
}
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .6s; filter: brightness(.8); }
.video:hover img { transform: scale(1.03); filter: brightness(.95); }
.video .play {
  position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(140deg, var(--cyan), var(--blue)); display: grid; place-items: center;
  box-shadow: 0 0 0 14px rgba(63, 208, 255, .18), 0 20px 50px rgba(0, 0, 0, .5);
  transition: transform .25s var(--ease);
}
.video:hover .play { transform: scale(1.08); }
.video .play svg { width: 34px; height: 34px; fill: #fff; margin-left: 5px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Galería ---------- */
.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 20px 26px; margin: 0 -20px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.gallery img { flex: 0 0 min(78vw, 620px); aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; scroll-snap-align: center; border: 1px solid var(--line); }

/* ---------- Carrusel 3D ---------- */
.carousel { position: relative; outline: none; }
.car-stage {
  position: relative; height: clamp(230px, 40vw, 470px);
  perspective: 1400px; transform-style: preserve-3d; overflow: hidden;
  touch-action: pan-y; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.car-slide {
  position: absolute; left: 50%; top: 50%; width: min(64%, 760px); aspect-ratio: 16 / 9; margin: 0;
  border-radius: 22px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line-strong); background: #000;
  transition: transform .8s var(--ease), opacity .8s var(--ease), box-shadow .8s;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}
.car-slide.active { cursor: default; box-shadow: 0 30px 90px rgba(30, 123, 255, .35), 0 0 0 1px rgba(120, 200, 255, .35); }
.theme-gold .car-slide.active { box-shadow: 0 30px 90px rgba(245, 197, 66, .3), 0 0 0 1px rgba(245, 197, 66, .4); }
.car-slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.car-btn {
  position: absolute; top: 50%; z-index: 30; translate: 0 -70%;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(4, 16, 31, .75); border: 1px solid var(--line-strong); backdrop-filter: blur(8px);
  transition: transform .2s var(--ease), background .2s;
}
.car-btn:hover { transform: scale(1.08); background: rgba(10, 40, 75, .9); }
.car-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.car-btn.prev { left: 6px; } .car-btn.next { right: 6px; }
.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.car-dots button { width: 9px; height: 9px; padding: 0; border-radius: 99px; border: none; cursor: pointer; background: var(--line-strong); transition: width .3s var(--ease), background .3s; }
.car-dots button.on { width: 28px; background: var(--cyan); }
.car-progress { width: 120px; height: 2px; margin: 14px auto 0; background: var(--line); border-radius: 2px; overflow: hidden; }
.car-progress i { display: block; height: 100%; width: 0; background: var(--cyan); }

/* Presentación en tarjetas de proyecto */
.project-media .slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s var(--ease); }
.project-media .slide-img.on { opacity: 1; animation: kenburns 7s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12) translate(1.5%, 1%); } to { transform: scale(1) translate(0, 0); } }
.slide-dots { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; z-index: 2; display: flex; gap: 6px; padding: 6px 10px; border-radius: 99px; background: rgba(2, 8, 20, .55); backdrop-filter: blur(6px); }
.slide-dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .35); transition: width .4s var(--ease), background .4s; }
.slide-dots i.on { width: 20px; background: #fff; }

/* Ventana de correo */
.mail-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(1, 4, 10, .72); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.mail-modal.open { opacity: 1; pointer-events: auto; }
.mail-box { position: relative; width: min(440px, 100%); border-radius: 26px; padding: 34px 28px 28px; border: 1px solid var(--line-strong); background: linear-gradient(170deg, #0b2442, #040e1c); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); transform: translateY(14px) scale(.97); transition: transform .3s var(--ease); }
.mail-modal.open .mail-box { transform: none; }
.mail-box h3 { font-size: 1.5rem; margin-bottom: 16px; }
.mail-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.mail-x:hover { color: var(--text); border-color: var(--line-strong); }
.mail-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .92rem; margin-bottom: 24px; padding: 14px 16px; border-radius: 14px; background: rgba(2, 8, 20, .5); border: 1px solid var(--line); }
.mail-meta dt { color: var(--faint); } .mail-meta dd { color: var(--text); word-break: break-word; }
.mail-opts { display: grid; gap: 10px; }
.mail-opts .btn { width: 100%; }

/* ---------- Contacto ---------- */
.contact { text-align: center; border-radius: 32px; padding: 80px 28px; border: 1px solid var(--line-strong); background: radial-gradient(circle at 50% 0%, rgba(30, 123, 255, .28), transparent 60%), linear-gradient(180deg, rgba(10, 32, 60, .6), rgba(2, 8, 20, .9)); }
.contact h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 14px; }
.contact p { color: var(--muted); max-width: 52ch; margin: 0 auto 32px; }
.contact .actions { justify-content: center; margin-top: 0; }

/* ---------- App page hero ---------- */
.app-hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.app-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; filter: blur(2px) saturate(1.2); transform: scale(1.05); }
.app-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 8, 20, .5), var(--bg)); }
.app-hero .wrap { position: relative; z-index: 2; }
.app-title { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.app-title img { width: 104px; height: 104px; border-radius: 28px; box-shadow: 0 20px 60px rgba(63, 208, 255, .35); }
.app-title h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.app-title .by { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature-emoji { font-size: 1.8rem; }

.theme-gold { --cyan: #f5c542; --line: rgba(245, 197, 66, .14); --line-strong: rgba(245, 197, 66, .32); }
.theme-gold .card { background: linear-gradient(160deg, rgba(60, 42, 6, .5), rgba(10, 8, 2, .9)); }
.theme-gold .app-title img { box-shadow: 0 20px 60px rgba(245, 197, 66, .3); }
.theme-gold .app-hero .bg { opacity: .22; filter: blur(7px) saturate(1.2); }
.theme-gold .logo-3d img { box-shadow: 0 0 80px rgba(245, 197, 66, .4), 0 40px 80px rgba(0, 0, 0, .6); -webkit-mask-image: none; mask-image: none; border-radius: 22%; }
.theme-gold .logo-3d .halo { background: radial-gradient(circle, rgba(245, 197, 66, .3), transparent 62%); }
.app-hero .logo-3d { width: min(320px, 70vw); }
.app-hero .logo-3d img { -webkit-mask-image: none; mask-image: none; border-radius: 24%; }

/* ---------- Legal ---------- */
.legal { padding: 140px 0 90px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal .updated { color: var(--faint); margin: 12px 0 40px; font-size: .92rem; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal ul, .legal ol { padding-left: 22px; margin: 10px 0; }
.legal li { margin: 7px 0; }
.legal strong { color: var(--text); }
.legal .box { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 26px 28px; background: var(--surface); margin: 22px 0; }
.lang-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line-strong); margin-bottom: 26px; }
.lang-switch button { background: none; border: none; color: var(--muted); padding: 7px 16px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .88rem; }
.lang-switch button[aria-pressed="true"] { background: var(--surface-solid); color: var(--text); }
[data-lang-block][hidden] { display: none; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--faint); font-size: .9rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.foot h4 { color: var(--text); font-family: var(--font-head); font-size: .95rem; margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 9px; }
.foot a { color: var(--muted); }
.foot .brand { margin-bottom: 14px; }
.copy { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .print, .project, .project.reverse { grid-template-columns: 1fr; }
  .project.reverse .project-media { order: 0; }
  .project-media { min-height: 240px; aspect-ratio: 16 / 9; }
  .project-body { padding: 32px 26px; }
  .logo-stage { order: -1; }
  .logo-3d { width: min(250px, 62vw); }
  .app-hero .logo-stage { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(2, 8, 20, .96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; border-bottom: none; }
  section { padding: 80px 0; }
  .hero { padding-top: 96px; }
  .stats { gap: 24px; }
  .ocean-band { padding: 110px 0; }
  .contact { padding: 56px 20px; }
  .foot { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
