/* ==========================================================================
   WIVEX — Home v3 · Editorial 60/40 (Obsidian / Pure Off-White) + WIVEX LAB
   ========================================================================== */

html.intro-lock { overflow: hidden; }
html.has-intro .h-content,
html.has-intro .h-reel { visibility: hidden; }
html.has-intro .intro-ctl { display: flex; }

/* -------------------------------------------------------------------------
   HERO + FULL-CANVAS CODE INTRO (Tela Única — sem caixas nem janelas)
   ------------------------------------------------------------------------- */
.hero-code { display: block !important; position: relative; min-height: 100svh; padding: 0 !important; overflow: hidden; }
.intro {
  position: absolute; inset: 0; z-index: 4;
  padding: calc(var(--header-h) + 28px) var(--gutter) clamp(82px, 10vh, 118px);
  display: grid; grid-template-rows: auto 1fr; gap: clamp(20px, 3vh, 36px);
  pointer-events: none;
}
.boot { display: grid; gap: 3px; color: var(--silver-300); font-size: 11px; letter-spacing: .1em; width: min(360px, 90%); }
.boot__line { opacity: .92; }
.boot__line b { color: var(--white); font-weight: 500; }
.boot__bar { margin-top: 6px; height: 2px; background: rgba(250, 250, 250, .16); position: relative; overflow: hidden; }
.boot__bar i { position: absolute; inset: 0; background: var(--metal); transform-origin: left; transform: scaleX(0); }

.intro__stage { display: flex; align-items: flex-end; min-height: 0; width: 100%; }
.code-canvas {
  margin: 0; padding: 0; width: 100%; max-width: min(1240px, 100%);
  font-family: var(--f-mono); font-size: clamp(16px, 2.35vw, 34px); line-height: 1.5; letter-spacing: -0.025em;
  color: #D4D8DE; white-space: pre-wrap; word-break: break-word;
  counter-reset: ln; overflow: visible; background: transparent; border: 0;
}
.cl { counter-increment: ln; display: block; min-height: 1.5em; will-change: transform, opacity, filter; }
.cl::before {
  content: counter(ln, decimal-leading-zero);
  display: inline-block; width: 2.8em;
  font-size: .52em; letter-spacing: .08em; vertical-align: .2em;
  color: rgba(161, 161, 170, .48); user-select: none;
}
.cl--hero { color: #FAFAFA; font-weight: 500; letter-spacing: -0.03em; }
.cl--hero::before { color: rgba(250, 250, 250, .72); }
.t-c { color: #6E757D; } .t-t { color: #FAFAFA; font-weight: 500; } .t-a { color: #A1A1AA; } .t-s { color: #F1F3F5; }
.t-k { color: #D4D8DE; } .t-p { color: #71717A; } .t-f { color: #FAFAFA; }
.caret {
  display: inline-block; width: .48em; height: 1.05em; margin-left: 2px; vertical-align: -.16em;
  background: var(--white); box-shadow: 0 0 12px rgba(250, 250, 250, .55);
  animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .intro, .intro-ctl { display: none !important; }
}

/* intro controls */
.intro-ctl { position: fixed; right: var(--gutter); bottom: 20px; z-index: 7100; display: none; gap: 8px; }
.intro-ctl__btn { height: 34px; padding: 0 14px; border-radius: 999px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--silver-300); background: rgba(8, 8, 10, .65); box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .3s, color .3s; }
.intro-ctl__btn:hover { background: rgba(250, 250, 250, .14); color: #fff; }
.intro-ctl__btn b { font-weight: 500; color: #fff; }

/* floating top-right showreel / fold card — balances the upper Hero */
.h-reel {
  position: absolute; top: calc(var(--header-h) + 26px); right: var(--gutter); z-index: 3;
  width: clamp(220px, 21vw, 330px); border-radius: 16px; overflow: hidden;
  background: rgba(14, 14, 17, .85);
  box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .16), 0 30px 70px -25px rgba(0, 0, 0, .9);
  display: grid; transition: transform .6s var(--ease-out), box-shadow .5s;
}
.h-reel:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .38), 0 36px 80px -20px rgba(0, 0, 0, .95); }
.h-reel__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #09090B; }
.h-reel__media img { width: 100%; height: 100%; object-fit: cover; animation: reelDrift 16s ease-in-out infinite alternate; }
@keyframes reelDrift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -2%); } }
.h-reel__badge {
  position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 999px; background: rgba(9, 9, 11, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .16);
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #FAFAFA;
}
.h-reel__badge i { width: 5px; height: 5px; border-radius: 50%; background: #FAFAFA; animation: caret 1.4s ease-in-out infinite; }
.h-reel__foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--titanium); border-top: 1px solid rgba(250, 250, 250, .09); }
.h-reel__foot b { color: var(--white); font-weight: 500; }

/* final hero text */
.h-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) clamp(22px, 3vw, 40px); display: grid; gap: clamp(18px, 2.2vw, 32px); }
.h-eyebrow { color: var(--titanium); }
.h-title { font-size: clamp(42px, 6.6vw, 128px); max-width: 22ch; }
.h-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: end; }
.h-lead { grid-column: 1 / span 5; font-size: 17px; max-width: 42ch; }
.h-cta { grid-column: 7 / span 6; justify-self: end; display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; }
.h-ticker { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--titanium); }
.h-ticker a { display: inline-flex; align-items: center; gap: 8px; transition: color .35s, transform .4s var(--ease-out); }
.h-ticker a:hover { color: var(--white); transform: translateY(-2px); }
@media (max-width: 1100px) {
  .h-lead, .h-cta { grid-column: 1 / -1; justify-self: start; }
  .h-reel { display: none; }
}

/* -------------------------------------------------------------------------
   POSITIONING MARQUEE
   ------------------------------------------------------------------------- */
.act-marquee { position: relative; padding-block: clamp(10px, 2vw, 24px); }
.act-marquee .marquee--big { border-block: 1px solid var(--line); padding-block: clamp(18px, 2.2vw, 28px); }
.act-marquee .marquee--big .marquee__item { font-size: clamp(22px, 2.7vw, 40px); letter-spacing: -0.03em; padding-inline: .35em; font-weight: 500; }
.act-marquee .marquee__sep { font-family: var(--f-display); font-size: clamp(20px, 2.4vw, 34px); font-weight: 300; color: var(--fg-dim); opacity: .45; padding-inline: .2em; }

/* -------------------------------------------------------------------------
   01 // PURE OFF-WHITE EDITORIAL GALLERY (60/40 BRANDING RULE)
   ------------------------------------------------------------------------- */
.work-paper { padding-block: clamp(88px, 11vw, 170px); }
.wp-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: end; margin-bottom: clamp(44px, 6vw, 88px); }
.wp-head__left { grid-column: 1 / span 8; display: grid; gap: 18px; }
.wp-head__right { grid-column: 9 / span 4; justify-self: end; display: grid; gap: 16px; justify-items: end; text-align: right; }
.work-paper .eyebrow::before { background: #09090B; }
.work-paper .btn--paper { --btn-bg: #09090B; --btn-fg: #FAFAFA; background: #09090B; color: #FAFAFA; }
.work-paper .btn--paper::before { background: #27272A; }
.work-paper .btn--paper:hover { color: #FAFAFA; }
.work-paper .btn--paper .btn__icon { background: #FAFAFA; color: #09090B; }

.wg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4.4vw, 72px) clamp(24px, 3.6vw, 56px); align-items: start; }
.wg-card { display: grid; gap: 18px; color: #09090B; }
.wg-card:nth-child(2n) { margin-top: clamp(36px, 6vw, 96px); }
.wg-media {
  position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #141417;
  box-shadow: 0 28px 60px -32px rgba(9, 9, 11, .28);
}
.wg-media img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; will-change: transform; transition: transform 1s var(--ease-out), filter .7s; }
.wg-card:hover .wg-media img { transform: scale(1.045); }
.wg-media__top {
  position: absolute; left: 14px; right: 14px; top: 14px; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #FAFAFA;
}
.wg-media__top span { padding: 5px 10px; border-radius: 999px; background: rgba(9, 9, 11, .68); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.wg-metric {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(9, 9, 11, .84); color: #FAFAFA; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase;
}
.wg-metric::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--signal); }
.wg-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid rgba(9, 9, 11, .14); padding-top: 16px; }
.wg-title { font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 2.8vw, 44px); letter-spacing: -.04em; line-height: 1; transition: transform .6s var(--ease-out); }
.wg-card:hover .wg-title { transform: translateX(8px); }
.wg-cat { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #52525B; white-space: nowrap; }
.wg-desc { color: #52525B; font-size: 15.5px; line-height: 1.5; max-width: 48ch; }
.wp-note { margin-top: clamp(36px, 5vw, 64px); padding-top: 22px; border-top: 1px solid rgba(9, 9, 11, .12); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: #52525B; }

/* -------------------------------------------------------------------------
   02 // WIVEX LAB — UNIFIED PINNED MORPHING CAPABILITIES STAGE (01 → 05)
   ------------------------------------------------------------------------- */
.lab { position: relative; }
.lab__pin {
  min-height: 100svh; display: grid; grid-template-rows: auto 1fr; gap: clamp(20px, 2.6vw, 34px);
  padding: calc(var(--header-h) + 18px) 0 clamp(28px, 3vw, 44px);
}
.lab__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.lab__nav { display: flex; gap: 6px; flex-wrap: wrap; }
.lab__pill {
  height: 34px; padding: 0 14px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--titanium); box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .14);
  transition: background .4s, color .4s, box-shadow .4s, transform .35s var(--ease-out);
}
.lab__pill:hover { color: var(--white); box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .38); }
.lab__pill.is-active { background: #FAFAFA; color: #09090B; font-weight: 600; box-shadow: 0 6px 24px -6px rgba(250, 250, 250, .4); }

.lab__odo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--titanium); }
.lab__odo-num { display: inline-block; height: 1.3em; overflow: hidden; color: var(--white); font-weight: 600; }
.lab__odo-track { display: grid; transition: transform .7s var(--ease-out); }
.lab__odo-track span { display: block; height: 1.3em; line-height: 1.3em; }
.lab__prog { width: 72px; height: 2px; background: rgba(250, 250, 250, .15); position: relative; overflow: hidden; }
.lab__prog i { position: absolute; inset: 0; background: #FAFAFA; transform-origin: left; transform: scaleX(.2); transition: transform .7s var(--ease-out); }

.lab__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: center; min-height: 0; }
.lab__copy { grid-column: 1 / span 5; position: relative; min-height: clamp(290px, 38vh, 410px); display: grid; align-items: center; }
.lab-panel {
  grid-area: 1 / 1; display: grid; gap: 20px; align-content: center;
  opacity: 0; pointer-events: none; transform: translateY(24px);
  transition: opacity .55s var(--ease-out), transform .7s var(--ease-out);
}
.lab-panel.is-active { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lab-panel .h2 { font-size: clamp(34px, 4.4vw, 76px); }
.lab-panel .lead { font-size: 17px; max-width: 40ch; }
.lab-panel__tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* RIGHT CINEMATIC STAGE */
.lab__stage {
  grid-column: 6 / span 7; position: relative; aspect-ratio: 16 / 10.6; max-height: 68svh; width: 100%;
  border-radius: 22px; overflow: hidden;
  background: radial-gradient(80% 70% at var(--sx, 50%) var(--sy, 50%), rgba(250, 250, 250, .07), transparent 62%), rgba(10, 10, 13, .92);
  box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .16), 0 50px 120px -50px #000;
  transform: perspective(1500px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .45s var(--ease-out);
}
.lab-scene {
  position: absolute; inset: 0; padding: clamp(16px, 2vw, 26px);
  opacity: 0; pointer-events: none; transform: scale(.96);
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out);
}
.lab-scene.is-active { opacity: 1; pointer-events: auto; transform: scale(1); }

/* --- SCENE 01: Interactive Code-to-Reality Laser Scanner --- */
.scanner { position: relative; width: 100%; height: 100%; border-radius: 14px; overflow: hidden; background: #09090B; box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .14); cursor: ew-resize; --cut: 52%; }
.scanner__code {
  position: absolute; inset: 0; padding: 48px 24px 20px; font-family: var(--f-mono); font-size: clamp(10.5px, .92vw, 13px); line-height: 1.95; color: #A1A1AA;
  background: radial-gradient(circle at 20% 20%, rgba(250, 250, 250, .05), transparent 60%), #09090B;
}
.scanner__code b { color: #FAFAFA; font-weight: 500; }
.scanner__code i { font-style: normal; color: #71717A; }
.scanner__live {
  position: absolute; inset: 0;
  clip-path: inset(0 0 0 var(--cut));
  background: #09090B;
}
.scanner__live img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.82) contrast(1.06); }
.scanner__live::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,9,11,.55) 0%, rgba(9,9,11,.15) 45%, rgba(9,9,11,.82) 100%); }
.scanner__ui { position: relative; z-index: 2; height: 100%; padding: 48px 24px 20px; display: flex; flex-direction: column; justify-content: space-between; }
.scanner__nav { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(250,250,250,.85); }
.scanner__hero-t { font-family: var(--f-art); font-style: italic; font-size: clamp(28px, 3.4vw, 52px); line-height: .95; color: #FAFAFA; text-shadow: 0 8px 30px rgba(0,0,0,.6); }
.scanner__scores { display: flex; gap: 10px; flex-wrap: wrap; }
.scanner__score {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px;
  background: rgba(9, 9, 11, .75); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .2);
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase; color: #FAFAFA;
}
.scanner__score b { color: var(--signal); font-weight: 600; }
.scanner__beam {
  position: absolute; top: 0; bottom: 0; left: var(--cut); width: 1.5px; z-index: 4; pointer-events: none;
  background: linear-gradient(to bottom, transparent, #FAFAFA 20%, #FAFAFA 80%, transparent);
  box-shadow: 0 0 20px rgba(250, 250, 250, .85), 0 0 40px rgba(250, 250, 250, .35);
}
.scanner__handle {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 6px 10px; border-radius: 999px; background: #FAFAFA; color: #09090B;
  font-family: var(--f-mono); font-size: 9px; font-weight: 600; letter-spacing: .12em; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
}
.scanner__chrome {
  position: absolute; left: 0; right: 0; top: 0; height: 34px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
  background: rgba(9, 9, 11, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(250, 250, 250, .1); font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; color: var(--titanium);
}
.scanner__dots { display: flex; gap: 5px; }
.scanner__dots i { width: 8px; height: 8px; border-radius: 50%; background: #2E3036; }

/* --- SCENE 02: Kinetic Telemetry Deck --- */
.deck { height: 100%; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; }
.deck__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--titanium); }
.deck__live { display: inline-flex; align-items: center; gap: 7px; color: #FAFAFA; }
.deck__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.deck__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.deck__kpi {
  padding: 14px; border-radius: 12px; background: rgba(20, 20, 24, .88); box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .12);
  display: grid; gap: 5px; transition: transform .4s var(--ease-out), box-shadow .4s;
}
.deck__kpi:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .34); }
.deck__kpi small { font-family: var(--f-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--titanium); }
.deck__kpi b { font-family: var(--f-display); font-size: clamp(20px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.04em; line-height: 1; color: #FAFAFA; }
.deck__kpi em { font-family: var(--f-mono) !important; font-style: normal !important; font-size: 10px !important; -webkit-text-fill-color: var(--signal) !important; color: var(--signal) !important; background: none !important; }
.deck__mid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 10px; min-height: 0; }
.deck__panel { position: relative; border-radius: 12px; background: rgba(20, 20, 24, .88); box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .12); padding: 14px; overflow: hidden; }
.deck__panel svg { width: 100%; height: 100%; overflow: visible; }
.deck__curve { fill: none; stroke: #FAFAFA; stroke-width: 1.8; stroke-dasharray: 420; stroke-dashoffset: 0; }
.deck__bars { display: flex; align-items: flex-end; gap: 8px; height: 100%; padding-top: 18px; }
.deck__bar {
  position: relative; flex: 1; height: var(--h, 60%); border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, rgba(161, 161, 170, .25), rgba(250, 250, 250, .88));
  transition: transform .4s var(--ease-out), background .35s;
}
.deck__bar:hover { transform: scaleY(1.06); transform-origin: bottom; background: #FAFAFA; }
.deck__bar::after {
  content: attr(data-val); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 9px; color: #FAFAFA; opacity: 0; transition: opacity .3s; white-space: nowrap;
}
.deck__bar:hover::after { opacity: 1; }
.deck__foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; font-family: var(--f-mono); font-size: 10px; color: var(--titanium); }
.deck__foot div { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 10px; background: rgba(20, 20, 24, .65); box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .09); }
.deck__foot b { color: #FAFAFA; font-weight: 500; }

/* --- SCENE 03: Interactive Velocity Signal Field (Canvas 2D) --- */
.field { position: relative; width: 100%; height: 100%; border-radius: 14px; overflow: hidden; background: #09090B; box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .12); }
.field__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.field__metrics { position: relative; z-index: 2; padding: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.field__m { padding: 12px 14px; border-radius: 12px; background: rgba(9, 9, 11, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .14); display: grid; gap: 4px; }
.field__m small { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--titanium); }
.field__m b { font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2.5vw, 36px); letter-spacing: -.05em; line-height: 1; color: #FAFAFA; }
.field__hint { position: absolute; left: 18px; bottom: 14px; z-index: 2; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--titanium); }

/* --- SCENE 04: Interactive Logo 2 Orbital Systems Circuit --- */
.orbit { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 10px; }
.orbit svg { width: 100%; height: 100%; overflow: visible; }
.orbit .edge { stroke: rgba(250, 250, 250, .2); stroke-width: 1; transition: stroke .35s, stroke-width .35s; }
.orbit .edge.is-lit { stroke: #FAFAFA; stroke-width: 1.8; filter: drop-shadow(0 0 8px rgba(250, 250, 250, .75)); }
.orbit .edge--ring { stroke-dasharray: 2 5; stroke: rgba(250, 250, 250, .14); }
.orbit .o-node { cursor: pointer; }
.orbit .o-node circle { fill: #09090B; stroke: rgba(250, 250, 250, .42); stroke-width: 1; transition: fill .35s, stroke .35s, transform .35s; transform-box: fill-box; transform-origin: center; }
.orbit .o-node text { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .09em; fill: #D4D4D8; text-anchor: middle; dominant-baseline: central; pointer-events: none; transition: fill .35s; }
.orbit .o-node:hover circle, .orbit .o-node.is-lit circle { fill: #FAFAFA; stroke: #FAFAFA; transform: scale(1.1); }
.orbit .o-node:hover text, .orbit .o-node.is-lit text { fill: #09090B; font-weight: 600; }
.orbit__core circle { fill: #FAFAFA; filter: drop-shadow(0 0 24px rgba(250, 250, 250, .35)); }
.orbit__log {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px;
  background: rgba(9, 9, 11, .75); box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .14);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--titanium);
}
.orbit__log b { color: #FAFAFA; font-weight: 500; }
.orbit__log i { font-style: normal; color: var(--signal); }

/* --- SCENE 05: Sculptural 3D "Dobra de Papel" Brand Studio --- */
.sculpt { position: relative; width: 100%; height: 100%; border-radius: 14px; overflow: hidden; background: #09090B; box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .14); }
.sculpt__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), opacity .6s, filter .6s; }
.sculpt__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .16; transition: opacity .6s;
  background-image: linear-gradient(rgba(250, 250, 250, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(250, 250, 250, .16) 1px, transparent 1px);
  background-size: 16.666% 20%;
}
.sculpt__overlay { position: relative; z-index: 2; height: 100%; padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(180deg, rgba(9,9,11,.5) 0%, transparent 40%, rgba(9,9,11,.82) 100%); }
.sculpt__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.sculpt__tabs { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(9, 9, 11, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .18); }
.sculpt__tab { height: 26px; padding: 0 11px; border-radius: 999px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--titanium); transition: background .35s, color .35s; }
.sculpt__tab.is-active { background: #FAFAFA; color: #09090B; font-weight: 600; }
.sculpt__center { display: flex; align-items: baseline; gap: 18px; opacity: .22; transform: translateY(12px); transition: opacity .6s, transform .7s var(--ease-out); }
.sculpt__aa { font-family: var(--f-art); font-style: italic; font-size: clamp(64px, 8.5vw, 130px); line-height: .8; color: #FAFAFA; }
.sculpt__grotesk { font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 3.6vw, 56px); letter-spacing: -.05em; color: #FAFAFA; }
.sculpt__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.sculpt__sw { display: flex; gap: 8px; }
.sculpt__sw span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: rgba(9, 9, 11, .78); box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .18); font-family: var(--f-mono); font-size: 9px; letter-spacing: .1em; color: #FAFAFA; }
.sculpt__sw i { width: 10px; height: 10px; border-radius: 50%; display: block; border: 1px solid rgba(250, 250, 250, .35); }
.sculpt[data-mode="type"] .sculpt__img { opacity: .28; filter: blur(2px) scale(1.06); transform: scale(1.06); }
.sculpt[data-mode="type"] .sculpt__center { opacity: 1; transform: translateY(0); }
.sculpt[data-mode="system"] .sculpt__img { opacity: .35; }
.sculpt[data-mode="system"] .sculpt__grid { opacity: .55; }
.sculpt[data-mode="system"] .sculpt__center { opacity: .75; transform: translateY(-6px) scale(.92); }

/* -------------------------------------------------------------------------
   03 // SCRUB MANIFESTO + PILLARS
   ------------------------------------------------------------------------- */
.manifesto-scrub { padding-block: clamp(96px, 13vw, 200px); border-top: 1px solid var(--line); }
.ms-wrap { display: grid; gap: clamp(40px, 6vw, 84px); }
.ms-text {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(30px, 4.4vw, 72px);
  letter-spacing: -.04em; line-height: 1.06; max-width: 24ch;
}
.ms-word { display: inline-block; opacity: .16; transition: opacity .15s linear; margin-right: .22em; }
.ms-word.is-em { font-family: var(--f-art); font-style: italic; font-weight: 400; font-size: 1.08em; letter-spacing: -.01em; }
.ms-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.ms-pillar { display: grid; gap: 10px; }
.ms-pillar strong { font-family: var(--f-display); font-weight: 500; font-size: clamp(34px, 4vw, 64px); letter-spacing: -.05em; line-height: .95; color: #FAFAFA; }
.ms-pillar span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--titanium); }

/* -------------------------------------------------------------------------
   04 // FINALE
   ------------------------------------------------------------------------- */
.finale { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; padding-block: clamp(80px, 10vw, 160px); }
.finale__in { position: relative; z-index: 1; display: grid; justify-items: center; gap: clamp(24px, 3.2vw, 44px); }
.finale__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(46px, 9vw, 170px); letter-spacing: -.06em; line-height: .88; }
.finale__btn {
  display: inline-flex; align-items: center; gap: .35em; padding: .3em .3em .3em .9em; border-radius: 999px; background: var(--metal); color: #09090B;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 5.6vw, 100px); letter-spacing: -.045em; line-height: 1;
  box-shadow: 0 30px 80px -30px rgba(250, 250, 250, .35), inset 0 0 0 1px rgba(255, 255, 255, .5); transition: box-shadow .6s, background .5s;
}
.finale__btn:hover { box-shadow: 0 40px 110px -25px rgba(250, 250, 250, .6), inset 0 0 0 1px #fff; }
.finale__btn-icon { display: grid; place-items: center; width: 1.25em; aspect-ratio: 1; border-radius: 50%; background: #09090B; color: #FAFAFA; transition: transform .7s var(--ease-out); }
.finale__btn:hover .finale__btn-icon { transform: scale(1.06) rotate(-45deg); }
.finale__btn-icon svg { width: 36%; height: auto; }
.finale__meta { display: grid; justify-items: center; gap: 10px; }
.finale__guarantee { color: var(--titanium); font-size: 11px; letter-spacing: .09em; opacity: .85; }
.finale::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(54% 44% at 50% 50%, rgba(5, 5, 7, .48) 0%, rgba(5, 5, 7, .14) 68%, transparent 100%);
}
@media (prefers-reduced-motion: reduce) { .ms-word { opacity: 1; } }

/* -------------------------------------------------------------------------
   MOBILE — bespoke responsive layout
   ------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .intro { padding: calc(var(--header-h) + 14px) var(--gutter) 82px; gap: 18px; }
  .intro__stage { align-items: flex-end; }
  .code-canvas { font-size: clamp(13px, 4vw, 18px); line-height: 1.62; letter-spacing: -0.02em; }
  .cl::before { width: 2.2em; font-size: .62em; }
  .boot { font-size: 10px; }
  .boot__line[data-boot="3"] { display: none; }
  .h-title { font-size: clamp(38px, 11vw, 64px); }
  .h-ticker { flex-wrap: wrap; justify-content: flex-start; gap: 10px 18px; }
  .intro-ctl { bottom: 14px; left: var(--gutter); right: var(--gutter); justify-content: space-between; }

  .wp-head { grid-template-columns: 1fr; }
  .wp-head__left, .wp-head__right { grid-column: 1; justify-self: start; justify-items: start; text-align: left; }
  .wg-grid { grid-template-columns: 1fr; gap: 44px; }
  .wg-card:nth-child(2n) { margin-top: 0; }

  .lab__pin { min-height: 0; padding-block: 72px; }
  .lab__grid { grid-template-columns: 1fr; gap: 28px; }
  .lab__copy, .lab__stage { grid-column: 1; }
  .lab__copy { min-height: 240px; }
  .lab__stage { aspect-ratio: 4 / 3.4; max-height: none; transform: none; }
  .deck__mid { grid-template-columns: 1fr; }
  .deck__foot { display: none; }
  .ms-pillars { grid-template-columns: 1fr; gap: 28px; }
  .finale__title { font-size: clamp(42px, 13vw, 72px); }
}

/* ==========================================================================
   v5 — Omni Flash videos, pillars ribbon, real projects
   ========================================================================== */
/* elegant fallback behind every video slot: deep cosmic black + subtle silver glow.
   If a file is missing the <video> is hidden (.is-missing) and only this remains. */
.wx-video {
  background:
    radial-gradient(42% 46% at 72% 64%, rgba(235, 238, 242, .06) 0%, transparent 70%),
    radial-gradient(36% 40% at 28% 36%, rgba(255, 255, 255, .04) 0%, transparent 72%),
    #050507;
}
.wx-video video { display: block; background: transparent; }
.wx-video video.is-missing { visibility: hidden; }
.wx-video video::-webkit-media-controls { display: none !important; }

/* hero showreel card */
.h-reel__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }

/* finale: crisp white typography over the white starfield */
.finale__title, .finale__guarantee { text-shadow: 0 2px 30px rgba(5, 5, 7, .7); }
.finale__guarantee a { color: var(--fg); }

/* pillars ribbon */
.act-marquee--pillars .marquee--big .marquee__item { display: inline-flex; align-items: baseline; gap: .6em; font-size: clamp(24px, 3vw, 46px); }
.act-marquee--pillars .marquee__item em { font-family: var(--f-art); font-style: italic; font-weight: 400; }
.mq-pillar__k {
  font-family: var(--f-mono); font-size: clamp(10px, .8vw, 12px); letter-spacing: .16em; text-transform: uppercase;
  color: var(--titanium); transform: translateY(-.9em); white-space: nowrap;
}
.marquee__mono { width: clamp(30px, 2.6vw, 42px); height: auto; opacity: .55; margin-inline: clamp(18px, 2.4vw, 40px); flex: none; }

/* real project cards */
.wg-card--real .wg-media { display: block; }
.wg-card--real .wg-media img { object-position: 50% 30%; }
.wg-live {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: #09090B; padding-bottom: 3px; border-bottom: 1px solid rgba(9, 9, 11, .3);
  transition: border-color .35s, gap .35s var(--ease-out);
}
.wg-live svg { width: 12px; height: 12px; }
.wg-live:hover { border-color: #09090B; gap: 12px; }
.wg-live:focus-visible { outline: 2px solid #09090B; outline-offset: 4px; }

@media (max-width: 700px) {
  .h-ticker { flex-direction: column; gap: 8px; }
}

/* ==========================================================================
   CORNER GLOW — section effects (palette tokens --glow-* in main.css)
   ========================================================================== */
/* 6 · projects: on hover (or while the card crosses the middle of the screen on touch)
   a corner glow slides into the image from the top-left and the bottom-right, like the background */
.wg-glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; border-radius: inherit; }
.wg-glow::before, .wg-glow::after {
  content: ''; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%;
  filter: blur(34px); opacity: 0; mix-blend-mode: screen;
  transition: transform 1.1s var(--ease-out), opacity .75s ease;
}
.wg-glow::before {
  left: -31%; top: -50%; transform: translate(-32%, -32%) scale(.6);
  background: radial-gradient(closest-side, var(--glow-tl-1) 0%, var(--glow-tl-2) 24%, var(--glow-tl-3) 46%, var(--glow-tl-4) 68%, var(--glow-tl-5) 86%, transparent 100%);
}
.wg-glow::after {
  right: -31%; bottom: -50%; transform: translate(32%, 32%) scale(.6); transition-delay: .08s;
  background: radial-gradient(closest-side, var(--glow-br-1p) 0%, var(--glow-br-1) 18%, var(--glow-br-2) 42%, var(--glow-br-3) 64%, var(--glow-br-4) 84%, transparent 100%);
}
.wg-media.is-glow .wg-glow::before, .wg-media.is-glow .wg-glow::after { opacity: .85; transform: none; }

/* 7 · capabilities: the active one gets an arc of light in the palette, the others stay dark */
.lab__pill { position: relative; }   /* no isolation: the blurred arc (z -1) sits under the pill, not over its fill */
.lab__pill:not(.is-active) { background: rgba(3, 2, 7, .62); color: #A1A1AA; box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .1); }
.lab__pill:not(.is-active):hover { color: #FAFAFA; box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .3); }
.lab__pill.is-active { box-shadow: 0 8px 30px -10px rgba(201, 206, 212, .55); }
.lab__pill.is-active::before, .lab__pill.is-active::after {
  content: ''; position: absolute; border-radius: inherit; pointer-events: none;
  /* the arc: palette order, transparent gap so blue never meets yellow */
  background: conic-gradient(from var(--ga), transparent 0deg, var(--glow-tl-1) 30deg, var(--glow-tl-2) 75deg, var(--glow-tl-3) 125deg, var(--glow-tl-4) 170deg, var(--glow-tl-5) 205deg, transparent 245deg, transparent 360deg);
  animation: pillArc 4.5s linear infinite;
}
.lab__pill.is-active::before {
  inset: -2px; padding: 2px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.lab__pill.is-active::after { inset: -7px; z-index: -1; filter: blur(12px); opacity: .6; }
@keyframes pillArc { to { --ga: 360deg; } }
.lab__prog i { background: linear-gradient(90deg, var(--glow-tl-1), var(--glow-tl-2) 25%, var(--glow-tl-3) 50%, var(--glow-tl-4) 75%, var(--glow-tl-5)); box-shadow: 0 0 10px rgba(201, 206, 212, .5); }
@media (prefers-reduced-motion: reduce) {
  .lab__pill.is-active::before, .lab__pill.is-active::after { animation: none; }
  .wg-glow::before, .wg-glow::after { transition: opacity .2s; }
}
