/* =========================================================
   FORJA · estilos
   foco: espectacular, fluido, responsive
   ========================================================= */

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

:root {
  /* base = negro verdoso (identidad slime) */
  --bg:        #061009;
  --bg-2:      #0a160e;
  --panel:     #0c1711;
  /* tinta */
  --ink:       #f3f1ea;
  --ink-dim:   #9b9aa6;
  --ink-mute:  #5b5a66;
  --line:      rgba(243, 241, 234, 0.09);
  --line-2:    rgba(243, 241, 234, 0.16);
  /* acento marca = slime */
  --slime:     #5af04a;
  --slime-2:   #34d92a;
  /* calor de fragua */
  --ember:     #ff6a1a;
  --ember-h:   #ffba47;
  --hot:       #ff3d2e;

  --radius:    20px;
  --radius-sm: 12px;
  --maxw:      1320px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);

  --font:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Bebas Neue", "Oswald", "Anton", "Impact", "Arial Narrow", sans-serif;
  --mono:    ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: 94px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--slime); color: #04130a; }

.hot {
  background: linear-gradient(120deg, var(--ember-h), var(--ember) 45%, var(--hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nowrap { white-space: nowrap; }

/* =========================================================
   ATMOSPHERE
   ========================================================= */
.atmosphere { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.atm-base {
  position: absolute; inset: 0;
  background:
    radial-gradient(110% 75% at 78% -10%, rgba(90,240,74,0.14), transparent 55%),
    radial-gradient(95% 70% at 8% 112%, rgba(52,217,42,0.12), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #040b06 100%);
}
.atm-heat {
  position: absolute; border-radius: 50%;
  filter: blur(140px); opacity: 0.32;
  animation: drift 26s var(--ease) infinite;
}
.atm-heat-1 { width: 60vw; height: 60vw; background: var(--slime); top: -22vw; right: -16vw; opacity: 0.22; }
.atm-heat-2 { width: 52vw; height: 52vw; background: #0e9c46; bottom: -26vw; left: -16vw; opacity: 0.20; animation-delay: -12s; }
@keyframes drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-4vw, 3vw) scale(1.12); }
}
.atm-grain {
  position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* embers */
.embers { position: absolute; inset: 0; }
.ember {
  position: absolute; bottom: -16px;
  width: 4px; height: 4px; border-radius: 50%;
  background: #aef7a2;
  box-shadow: 0 0 8px var(--slime), 0 0 18px rgba(90,240,74,0.7);
  opacity: 0; animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  8%   { opacity: 0.9; }
  85%  { opacity: 0.5; }
  100% { transform: translateY(-108vh) translateX(var(--drift,40px)) scale(0.3); opacity: 0; }
}

/* cursor glow (desktop only, set via JS) */
.cursor-glow {
  position: absolute; width: 520px; height: 520px;
  margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(90,240,74,0.10), transparent 60%);
  opacity: 0; transition: opacity 0.4s ease;
  left: 50%; top: 30%;
}

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: padding 0.4s var(--ease), background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  padding-top: 12px; padding-bottom: 12px;
  background: rgba(7,8,12,0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 36px; height: 36px;
  filter: drop-shadow(0 0 10px rgba(90,240,74,0.45));
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-word {
  font-family: var(--display); font-size: 26px;
  letter-spacing: 0.22em; padding-left: 0.22em;
}
.topnav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.topnav a {
  font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-dim); position: relative; transition: color 0.25s ease;
}
.topnav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--slime); transition: width 0.3s var(--ease);
}
.topnav a:not(.nav-cta):hover { color: var(--ink); }
.topnav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  color: var(--ink); padding: 9px 18px;
  border: 1px solid var(--line-2); border-radius: 100px;
  transition: all 0.3s var(--ease);
}
.nav-cta:hover {
  background: var(--slime); color: #04130a; border-color: var(--slime);
  box-shadow: 0 0 28px rgba(90,240,74,0.4); transform: translateY(-1px);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px clamp(20px,5vw,64px) 90px;
  overflow: hidden;
}
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(243,241,234,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243,241,234,0.04) 1px, transparent 1px);
  background-size: clamp(48px, 6vw, 84px) clamp(48px, 6vw, 84px);
  mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, #000 30%, transparent 80%);
}
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.kicker {
  display: inline-block; font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ember-h); margin-bottom: 26px; padding-left: 18px; position: relative;
}
.kicker::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 10px; height: 1px; background: var(--ember-h);
}
.hero-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(56px, 11.5vw, 184px); line-height: 0.86;
  letter-spacing: 0.005em; margin-bottom: 32px; max-width: 16ch;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > * , .hero-title .line { will-change: transform; }
.hero-sub {
  font-size: clamp(15px, 1.5vw, 21px); color: var(--ink-dim);
  max-width: 600px; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 15px 26px; border-radius: 100px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s ease, color 0.3s ease;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.btn-primary { background: var(--slime); color: #04130a; box-shadow: 0 8px 30px rgba(90,240,74,0.25); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 44px rgba(90,240,74,0.5); }
.btn-primary:hover svg { transform: translateX(5px); }

.hero-orb {
  position: absolute; z-index: 1;
  right: clamp(-60px, 2vw, 80px); top: 50%;
  transform: translateY(-46%);
  width: clamp(240px, 34vw, 460px); aspect-ratio: 1;
  display: grid; place-items: center;
  opacity: 0.92;
}
.hero-orb::before {
  content: ""; position: absolute; inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90,240,74,0.22), transparent 62%);
  filter: blur(20px);
  animation: pulse 4s ease-in-out infinite;
}
.hero-orb img {
  position: relative; width: 78%;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.55)) drop-shadow(0 0 30px rgba(90,240,74,0.25));
  animation: hammer 3s ease-in-out infinite;
  transform-origin: 60% 60%;
}
@keyframes pulse { 0%,100%{transform:scale(1);opacity:.7} 50%{transform:scale(1.08);opacity:1} }
@keyframes hammer { 0%,100%{transform:rotate(0)} 46%{transform:rotate(-3.5deg)} 56%{transform:rotate(2deg)} }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 25px; height: 40px; border: 1.5px solid var(--ink-mute);
  border-radius: 14px; display: grid; place-items: center; z-index: 3;
}
.scroll-cue span { width: 3px; height: 8px; background: var(--ink-dim); border-radius: 2px; animation: scrollDot 1.7s ease-in-out infinite; }
@keyframes scrollDot { 0%,100%{transform:translateY(-6px);opacity:.4} 50%{transform:translateY(6px);opacity:1} }

/* =========================================================
   SECTION HEADS
   ========================================================= */
.section-head { max-width: var(--maxw); margin: 0 auto clamp(36px,5vw,64px); padding: 0 clamp(20px,5vw,64px); }
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-dim); margin-bottom: 16px;
}
.section-tag i { font-style: normal; color: var(--slime); }
.section-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(44px, 7.5vw, 110px); line-height: 0.92; letter-spacing: 0.01em;
}
.section-lead {
  margin-top: 18px; max-width: 620px; color: var(--ink-dim); font-size: clamp(14px,1.4vw,17px);
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
}
.count-pill {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--slime); border: 1px solid var(--line-2); border-radius: 100px;
  padding: 4px 12px;
}

/* =========================================================
   GALLERY
   ========================================================= */
.collection { padding: clamp(70px,9vw,120px) 0 clamp(50px,7vw,90px); }
.gallery {
  max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px,5vw,64px);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
  grid-auto-flow: dense;
}
.obra {
  grid-column: span 2;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  position: relative; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line);
  background: var(--panel);
  transform: perspective(1000px) rotateX(0) rotateY(0);
  transition: transform 0.5s var(--ease), border-color 0.4s ease, box-shadow 0.5s var(--ease);
  will-change: transform;
}
.obra.featured { grid-column: span 3; aspect-ratio: 3 / 4; }
.obra:hover { border-color: var(--line-2); box-shadow: 0 30px 70px rgba(0,0,0,0.55), 0 0 0 1px rgba(90,240,74,0.15); }

.obra-media {
  position: absolute; inset: 0; overflow: hidden;
  transition: transform 0.7s var(--ease);
  transform: translateZ(0);
}
.obra-media:not(.obra-carousel) { background-size: cover; background-position: center; }
.obra:hover .obra-media { transform: scale(1.05); }
.obra-track {
  position: absolute; inset: 0;
  display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.obra-track::-webkit-scrollbar { display: none; }
.obra-slide {
  flex: 0 0 100%; min-width: 100%; height: 100%;
  background-size: cover; background-position: center;
  scroll-snap-align: start;
}
.obra-car-btn {
  position: absolute; top: 50%; z-index: 4;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(0,0,0,0.42); color: var(--ink);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  cursor: pointer; opacity: 0; transform: translateY(-50%) scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease;
}
.obra-car-btn svg { width: 17px; height: 17px; }
.obra-car-btn:hover { background: var(--slime); color: #04130a; }
.obra-car-prev { left: 12px; }
.obra-car-next { right: 12px; }
.obra:hover .obra-car-btn,
.obra:focus-within .obra-car-btn { opacity: 1; transform: translateY(-50%) scale(1); }
.obra-dots {
  position: absolute; top: 54px; right: 18px; z-index: 4;
  display: flex; gap: 5px;
}
.obra-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.42);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.28);
}
.obra-dots span.active { background: var(--slime); box-shadow: 0 0 10px rgba(90,240,74,0.7); }

/* generated placeholder (no photo yet) */
.obra-canvas {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  overflow: hidden;
}
.obra-canvas .spotlight {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 45% at 50% 30%, rgba(255,255,255,0.12), transparent 60%);
}
.obra-canvas .pedestal {
  position: absolute; bottom: -2%; left: 50%; transform: translateX(-50%);
  width: 70%; height: 22%;
  background: radial-gradient(ellipse at center top, rgba(0,0,0,0.55), transparent 70%);
}
.obra-wire {
  width: 52%; max-width: 200px; aspect-ratio: 1;
  animation: spin3d 18s linear infinite;
  transform-style: preserve-3d;
  filter: drop-shadow(0 0 18px currentColor);
}
.obra:hover .obra-wire { animation-duration: 8s; }
@keyframes spin3d {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.obra-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(5,6,10,0.94) 0%, rgba(5,6,10,0.5) 32%, rgba(5,6,10,0.04) 58%, transparent 100%);
}
.obra-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 16px 18px;
}
.obra-type {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--slime);
}
.obra-idx {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.4); padding: 4px 9px; border-radius: 100px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.obra-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px clamp(18px,2vw,26px); }
.obra-saga {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ember-h); margin-bottom: 6px;
}
.obra-title {
  font-family: var(--display); font-weight: 400; line-height: 0.96; letter-spacing: 0.01em;
  font-size: clamp(22px, 2.4vw, 36px); margin-bottom: 10px;
}
.obra-foot { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; color: var(--ink-dim); }
.obra-scale { letter-spacing: 0.04em; }
.obra-view {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); opacity: 0; transform: translateX(-6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.obra-view svg { width: 13px; height: 13px; }
.obra:hover .obra-view { opacity: 1; transform: translateX(0); }

/* =========================================================
   PROCESS
   ========================================================= */
.process { padding: clamp(70px,9vw,120px) 0; }
.steps {
  max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px,5vw,64px);
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px,1.6vw,22px);
}
.step {
  padding: clamp(24px,2.4vw,34px); border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), transparent);
  position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s ease, background 0.4s ease;
}
.step::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--slime), var(--ember)); transition: width 0.5s var(--ease);
}
.step:hover { transform: translateY(-6px); border-color: var(--line-2); }
.step:hover::before { width: 100%; }
.step-n {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--ember-h);
  display: block; margin-bottom: 22px;
}
.step h3 { font-family: var(--display); font-weight: 400; font-size: clamp(22px,2vw,30px); letter-spacing: 0.02em; margin-bottom: 12px; }
.step p { color: var(--ink-dim); font-size: 14.5px; line-height: 1.6; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: clamp(80px,10vw,140px) clamp(20px,5vw,64px) 40px; text-align: center; }
.contact-inner { max-width: 920px; margin: 0 auto; }
.contact-inner .kicker { margin-bottom: 22px; }
.contact-title {
  font-family: var(--display); font-weight: 400; line-height: 1.02; letter-spacing: 0.01em;
  font-size: clamp(34px, 5.4vw, 78px); margin-bottom: 46px;
}
.contact-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--slime), var(--ember-h));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact-email {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: clamp(17px, 2.2vw, 27px);
  padding: 18px 34px; border: 1px solid var(--line-2); border-radius: 100px;
  transition: all 0.35s var(--ease);
}
.contact-email svg { width: 22px; height: 22px; transition: transform 0.35s var(--ease); }
.contact-email:hover { border-color: var(--slime); color: var(--slime); box-shadow: 0 0 50px rgba(90,240,74,0.35); transform: translateY(-2px); }
.contact-email:hover svg { transform: translateX(6px); }

.socials { display: flex; justify-content: center; gap: 14px; margin-top: 26px; }
.social {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border: 1px solid var(--line); border-radius: 100px;
  font-size: 13px; color: var(--ink-dim); transition: all 0.3s var(--ease);
}
.social svg { width: 17px; height: 17px; }
.social:hover { color: var(--ink); border-color: var(--line-2); transform: translateY(-2px); }

.foot {
  max-width: var(--maxw); margin: clamp(60px,8vw,100px) auto 0; padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* =========================================================
   AUDIO FOOTER
   ========================================================= */
.audio-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  padding: 12px clamp(14px, 3vw, 34px);
  pointer-events: none;
}
.audio-shell {
  max-width: var(--maxw); margin: 0 auto;
  min-height: 66px; display: grid;
  grid-template-columns: minmax(190px, 0.7fr) auto minmax(240px, 1fr);
  align-items: center; gap: clamp(14px, 2vw, 26px);
  padding: 12px 16px;
  border: 1px solid rgba(243,241,234,0.16);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(90,240,74,0.13), transparent 34%),
    rgba(5, 9, 7, 0.82);
  box-shadow: 0 18px 46px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  pointer-events: auto;
}
.audio-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.audio-mark {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.38), transparent 24%),
    linear-gradient(135deg, var(--slime), #187a35 64%, #0a1b0d);
  box-shadow: 0 0 20px rgba(90,240,74,0.34), inset 0 0 0 1px rgba(255,255,255,0.18);
  position: relative;
}
.audio-mark::after {
  content: ""; position: absolute; inset: 12px 10px 10px 13px;
  border-radius: 2px;
  background: #04130a;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.audio-kicker {
  display: block; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; color: var(--ember-h);
}
.audio-brand strong {
  display: block; margin-top: 2px;
  font-family: var(--display); font-weight: 400;
  font-size: 23px; line-height: 1; letter-spacing: 0.03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.audio-controls { display: flex; align-items: center; justify-content: center; gap: 10px; }
.audio-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.06); color: var(--ink);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.audio-btn svg { width: 19px; height: 19px; }
.audio-btn:hover {
  transform: translateY(-2px);
  border-color: var(--slime); color: #04130a; background: var(--slime);
  box-shadow: 0 0 26px rgba(90,240,74,0.34);
}
.audio-play .icon-pause { display: none; }
.audio-play.is-playing .icon-play { display: none; }
.audio-play.is-playing .icon-pause { display: block; }
.audio-progress-wrap {
  display: grid; grid-template-columns: 44px 1fr 44px;
  align-items: center; gap: 10px; min-width: 0;
}
.audio-time {
  font-family: var(--mono); font-size: 11px; color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}
.audio-time:last-child { text-align: right; }
.audio-progress {
  --audio-fill: 0%;
  width: 100%; height: 24px; appearance: none; -webkit-appearance: none;
  background: transparent; cursor: pointer;
}
.audio-progress::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--slime) var(--audio-fill), rgba(255,255,255,0.16) var(--audio-fill));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.audio-progress::-moz-range-track {
  height: 6px; border-radius: 999px; background: rgba(255,255,255,0.16);
}
.audio-progress::-moz-range-progress {
  height: 6px; border-radius: 999px; background: var(--slime);
}
.audio-progress::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ember-h); border: 3px solid #061009;
  margin-top: -6px; box-shadow: 0 0 18px rgba(255,186,71,0.5);
}
.audio-progress::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ember-h); border: 3px solid #061009;
  box-shadow: 0 0 18px rgba(255,186,71,0.5);
}
.audio-progress:focus-visible { outline: 2px solid var(--slime); outline-offset: 4px; border-radius: 999px; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr; place-items: center;
  background: rgba(4,5,9,0.86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
  padding: clamp(20px,4vw,60px);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-stage {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(20px,3vw,48px);
  align-items: center; max-width: 1100px; width: 100%;
  transform: scale(0.96); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.lightbox.open .lb-stage { transform: scale(1); opacity: 1; }
.lb-media {
  aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden;
  background-size: cover; background-position: center; position: relative;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px rgba(0,0,0,0.6);
  display: grid; place-items: center;
}
.lb-saga { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ember-h); }
.lb-title { font-family: var(--display); font-weight: 400; font-size: clamp(34px,4.4vw,64px); line-height: 0.96; letter-spacing: 0.01em; margin: 12px 0 20px; }
.lb-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.lb-chip { font-family: var(--mono); font-size: 12px; color: var(--ink-dim); border: 1px solid var(--line-2); border-radius: 100px; padding: 6px 14px; }
.lb-note { color: var(--ink-dim); font-size: clamp(15px,1.5vw,18px); line-height: 1.6; max-width: 42ch; }

.lb-close {
  position: absolute; top: clamp(16px,3vw,28px); right: clamp(16px,3vw,28px);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line-2); color: var(--ink);
  cursor: pointer; display: grid; place-items: center; transition: all 0.3s var(--ease);
}
.lb-close svg { width: 20px; height: 20px; }
.lb-close:hover { background: var(--hot); border-color: var(--hot); transform: rotate(90deg); }

.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line-2); color: var(--ink);
  cursor: pointer; display: grid; place-items: center; transition: all 0.3s var(--ease); z-index: 2;
}
.lb-nav svg { width: 22px; height: 22px; }
.lb-nav:hover { background: var(--slime); color: #04130a; border-color: var(--slime); }
.lb-prev { left: clamp(10px,2vw,28px); }
.lb-next { right: clamp(10px,2vw,28px); }

/* =========================================================
   REVEAL (JS toggles .in)
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .obra { grid-column: span 2; }
  .obra.featured { grid-column: span 4; aspect-ratio: 16/10; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { padding-bottom: 132px; }
  .topnav a:not(.nav-cta) { display: none; }
  .hero { padding-top: 120px; text-align: left; }
  .hero-orb { opacity: 0.18; right: -20%; width: 90vw; }
  .hero-grid-lines { mask-image: radial-gradient(ellipse 90% 60% at 50% 45%, #000 30%, transparent 85%); -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 45%, #000 30%, transparent 85%); }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .obra { grid-column: span 1; aspect-ratio: 3/4; }
  .obra.featured { grid-column: span 2; aspect-ratio: 4/3; }

  .lb-stage { grid-template-columns: 1fr; max-width: 460px; gap: 20px; }
  .lb-media { aspect-ratio: 16/12; }
  .lb-note { max-width: none; }
  .lb-nav { width: 44px; height: 44px; }

  .audio-shell {
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
    padding: 12px;
  }
  .audio-brand strong { font-size: 20px; }
  .audio-mark { width: 36px; height: 36px; border-radius: 10px; }
  .audio-controls { justify-content: flex-end; }
  .audio-progress-wrap { grid-column: 1 / -1; }
}

@media (max-width: 460px) {
  body { padding-bottom: 142px; }
  .brand-word { font-size: 22px; }
  .hero-title { font-size: clamp(46px, 15vw, 80px); }
  .steps { grid-template-columns: 1fr; }
  .obra-canvas .obra-wire { width: 60%; }
  .foot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .audio-footer { padding: 10px; }
  .audio-shell { border-radius: 16px; }
  .audio-kicker { font-size: 9px; }
  .audio-brand { gap: 10px; }
  .audio-brand strong { font-size: 18px; }
  .audio-btn { width: 38px; height: 38px; }
  .audio-progress-wrap { grid-template-columns: 38px 1fr 38px; gap: 8px; }
  .audio-time { font-size: 10px; }
}
