/* ==========================================================================
   WIVEX — persistent HUD background + transparent dark sections (all pages)
   ========================================================================== */
:root {
  --surface: rgba(14, 14, 17, .62);
  color-scheme: dark;
}

[data-theme="light"],
[data-theme="dark"] {
  --bg: #09090B;
  --fg: #FAFAFA;
  --fg-dim: #A1A1AA;
  --line: rgba(250, 250, 250, .12);
  --line-strong: rgba(250, 250, 250, .24);
  --surface: rgba(14, 14, 17, .62);
  --accent: #C9CED4;
  --metal-text: linear-gradient(135deg, #FAFAFA 0%, #D4D8DE 50%, #A1A1AA 100%);
}

body {
  background: #050507;
}

/* sections never cover the background — except intentional Pure Off-White paper sections (60/40 brand rhythm) */
.section,
.section--tight,
.page-hero,
.site-footer,
.hscroll,
.slash,
.big-cta,
.hero {
  background: transparent !important;
}

.section--paper {
  position: relative;
  z-index: 2;
  background: #FAFAFA !important;
  color: #09090B;
  --bg: #FAFAFA;
  --fg: #09090B;
  --fg-dim: #52525B;
  --line: rgba(9, 9, 11, .12);
  --line-strong: rgba(9, 9, 11, .24);
  --surface: #FFFFFF;
  --accent: #09090B;
  --metal-text: linear-gradient(135deg, #09090B 0%, #3F3F46 60%, #71717A 100%);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.page-hero__glow {
  display: none;
}

/* canvas + vignette */
.hud-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.hud-vig {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(125% 95% at 50% 42%, transparent 36%, rgba(5, 5, 7, .55) 70%, rgba(5, 5, 7, .92) 100%);
}

/* margin rails */
.hud-rail {
  position: fixed;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(201, 206, 212, .46);
  pointer-events: none;
}

.hud-rail>span {
  display: block;
  writing-mode: vertical-rl;
  white-space: nowrap;
}

.hud-rail--l {
  left: 4px;
}

.hud-rail--l>span {
  transform: rotate(180deg);
}

.hud-rail--r {
  right: 12px;
  z-index: 40;
  mix-blend-mode: difference;
  color: rgba(250, 250, 250, .58);
}

.hud-rail__idx {
  color: var(--white);
  font-weight: 500;
}

.hud-rail__pct {
  writing-mode: horizontal-tb !important;
}

.hud-rail__pct b {
  color: var(--white);
  font-weight: 500;
}

.hud-rail__bar {
  width: 1px;
  height: 92px;
  background: rgba(250, 250, 250, .16);
  position: relative;
  writing-mode: horizontal-tb !important;
}

.hud-rail__bar i {
  position: absolute;
  inset: 0;
  background: var(--white);
  transform-origin: top;
  transform: scaleY(0);
}

@media (min-width: 1100px) {
  .hud-rail {
    display: flex;
  }
}

/* readable glass surfaces now that sections are transparent */
.spot,
.svc-list,
.faq {
  backdrop-filter: none;
}

.footer-word img {
  opacity: .92;
}

[data-page="home"] .footer-cta {
  display: none;
}

/* ==========================================================================
   WX monogram background — one fixed logo that travels with the scroll
   (path + rotation are driven by js/hud-bg.js, scrubbed to page progress)
   ========================================================================== */
:root {
  --wx-logo-w: clamp(520px, 74vw, 1500px);
}

.wx-logo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}

.wx-logo__mover {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--wx-logo-w);
  transform: translate3d(30vw, 20vh, 0);
  will-change: transform;
}

.wx-logo__img {
  display: block;
  width: 100%;
  height: auto;
  opacity: .045;
}

.wx-logo__img--b {
  display: none;
}

/* light theme swaps to the dark monogram; dark theme uses the white one */
html[data-theme="light"] .wx-logo__img--w {
  display: none;
}

html[data-theme="light"] .wx-logo__img--b {
  display: block;
}

/* brighter copy of the logo, only visible inside a soft circle that follows the cursor */
.wx-logo--glow {
  opacity: 0;
  transition: opacity .5s ease;
  --gx: -999px;
  --gy: -999px;
  -webkit-mask-image: radial-gradient(circle 280px at var(--gx) var(--gy), #000 0%, rgba(0, 0, 0, .5) 42%, transparent 100%);
  mask-image: radial-gradient(circle 280px at var(--gx) var(--gy), #000 0%, rgba(0, 0, 0, .5) 42%, transparent 100%);
}

.wx-logo--glow .wx-logo__img {
  opacity: .5;
  filter: drop-shadow(0 0 18px rgba(201, 206, 212, .35));
}

/* subtle static film grain (one tiled SVG noise, no animation) */
.wx-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .8  0 0 0 0 .82  0 0 0 0 .85  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

html[data-theme="light"] .wx-grain {
  opacity: .05;
  filter: invert(1);
}

/* mobile: same path, less travel (set in JS), no cursor glow, bigger monogram */
@media (max-width: 700px),
(pointer: coarse) {
  :root {
    --wx-logo-w: 150vw;
  }

  .wx-logo--glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wx-logo--glow {
    display: none;
  }

  .wx-logo__mover {
    will-change: auto;
  }
}

/* ==========================================================================
   Silver line — hero rule, scroll spine, section nodes, title underlines
   (behaviour in js/line.js)
   ========================================================================== */
.wx-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  z-index: 0;
  pointer-events: none;
}

.wx-line__hero {
  position: absolute;
  left: calc(var(--gutter) * .5);
  right: calc(var(--gutter) * .5);
  height: 1px;
  background: linear-gradient(90deg, rgba(250, 250, 250, .7), #FAFAFA 50%, rgba(250, 250, 250, .12));
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform 1.6s cubic-bezier(.76, 0, .24, 1);
}

.wx-line__hero.is-drawn {
  transform: scaleX(1);
}

.wx-line__spine {
  position: absolute;
  left: calc(var(--gutter) * .5);
  width: 1px;
  margin-left: -.5px;
  background: rgba(250, 250, 250, .1);
}

.wx-line__fill {
  position: absolute;
  inset: 0;
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
  background: linear-gradient(to bottom, rgba(250, 250, 250, .35), #FAFAFA);
  box-shadow: 0 0 12px rgba(250, 250, 250, .35);
}

.wx-node {
  position: absolute;
  left: 0;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: #050507;
  box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .32);
  transition: background .5s, box-shadow .6s, transform .6s cubic-bezier(.16, 1, .3, 1);
}

.wx-node.is-on {
  background: #FAFAFA;
  transform: scale(1.15);
  box-shadow: 0 0 0 5px rgba(250, 250, 250, .12), 0 0 16px rgba(250, 250, 250, .6);
}

.wx-node--end {
  border-radius: 2px;
  transform: rotate(45deg);
}

.wx-node--end.is-on {
  transform: rotate(45deg) scale(1.15);
}

/* section titles draw a rule underneath */
html.wx-line-on .wx-title::after {
  content: '';
  display: block;
  height: 1px;
  width: clamp(120px, 38%, 420px);
  margin-top: clamp(16px, 1.8vw, 28px);
  background: linear-gradient(90deg, #FAFAFA, rgba(250, 250, 250, .12));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.3s cubic-bezier(.16, 1, .3, 1);
}

html.wx-line-on .wx-title.is-drawn::after {
  transform: scaleX(1);
}

html.wx-line-on .finale__title.wx-title::after {
  margin-inline: auto;
  transform-origin: center;
  background: linear-gradient(90deg, transparent, #FAFAFA, transparent);
}

/* reduced motion: everything drawn, nothing moves */
html.wx-line-static .wx-line__hero {
  transform: scaleX(1);
  transition: none;
}

html.wx-line-static .wx-line__fill {
  will-change: auto;
}

html.wx-line-static .wx-node,
html.wx-line-static .wx-title::after {
  transition: none;
}

/* ==========================================================================
   Official WIVEX wordmark (PNG, Branding Logo2) — header, footer, invite
   ========================================================================== */
.site-header__logo {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.site-header__logo .wm {
  display: block;
  height: 17px;
  width: auto;
  transition: transform .6s var(--ease-out), opacity .4s;
}

.site-header__logo:hover .wm {
  transform: translateX(3px);
}

.wm--b {
  display: none !important;
}

.site-header.is-on-light .site-header__logo .wm--w {
  display: none !important;
}

.site-header.is-on-light .site-header__logo .wm--b {
  display: block !important;
}

@media (max-width: 700px) {
  .site-header__logo .wm {
    height: 14px;
  }
}

.footer-word {
  padding-block: clamp(24px, 4vw, 56px) clamp(12px, 2vw, 24px);
}

.footer-word img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-mono {
  display: block;
  width: 64px;
  height: auto;
  margin-bottom: 22px;
  opacity: .9;
}

.footer-invite {
  display: inline-block;
  margin-top: 22px;
  font-size: 14px;
  color: var(--fg);
}

.preloader__log i {
  opacity: .4;
  font-style: normal;
}

/* ==========================================================================
   Video slots shared by inner pages (fallback = cosmic black + subtle silver glow)
   ========================================================================== */
.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.is-missing { visibility: hidden; }

/* estudio.html — cinematic galaxy band */
.studio-band {
  position: relative;
  z-index: 1;
  min-height: clamp(380px, 56vw, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-block: 1px solid var(--line);
}
.studio-band__media { position: absolute; inset: 0; }
.studio-band__video { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.studio-band__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #050507 0%, rgba(5, 5, 7, .1) 30%, rgba(5, 5, 7, .2) 62%, rgba(5, 5, 7, .88) 100%);
}
.studio-band__in { position: relative; display: grid; gap: 16px; padding-block: clamp(40px, 6vw, 96px); }
.studio-band__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(44px, 8vw, 150px);
  letter-spacing: -.055em;
  line-height: .9;
  color: #FAFAFA;
  text-shadow: 0 4px 40px rgba(5, 5, 7, .6);
}
.studio-band__title em { font-family: var(--f-art); font-style: italic; font-weight: 400; }
.studio-band__sub { color: var(--fg-dim); }

/* projetos.html — 2 real case studies, purpose-built 2-column grid */
.projects--duo .project,
.projects--duo .project:nth-child(n) { grid-column: span 6; margin-top: 0; }
.projects--duo .project:nth-child(2) { margin-top: clamp(40px, 8vw, 120px); }
.projects--duo .project--next { grid-column: 1 / -1; }
.projects--duo .project--next .project__media { aspect-ratio: 21 / 7; }
.projects--duo .project__media { aspect-ratio: 16 / 10; }
.projects--duo .art--photo img { object-position: 50% 30%; }
.project__live { width: fit-content; }
@media (max-width: 900px) {
  .projects--duo .project,
  .projects--duo .project:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .projects--duo .project--next .project__media { aspect-ratio: 16 / 9; }
}

/* contacto.html — single sober invitation */
.contact-invite { margin-top: clamp(18px, 2vw, 28px); max-width: 46ch; color: var(--fg-dim); }

/* ==========================================================================
   CORNER GLOW (aurora) — two blurred arcs pinned to opposite corners
   Top-left: solar yellow → orange → magenta → purple, electric blue on the left side
   Bottom-right: amber/orange → dark magenta → electric violet → cyan blue
   The centre stays black, the text lives there. Palette tokens: --glow-* in main.css
   Arcs + cursor trail + logo halo + section sweep + Proposal: js/hud-bg.js (one WebGL canvas)
   ========================================================================== */
@property --gr { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --ga { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --gs { syntax: '<length>'; inherits: true; initial-value: 0px; }

body { background: var(--glow-base); }
/* vignette: deepest black between the arcs and the content, corners left open */
.hud-vig {
  background: radial-gradient(62% 56% at 50% 50%, rgba(3, 2, 7, .62) 0%, rgba(3, 2, 7, .34) 52%, rgba(3, 2, 7, 0) 84%);
}

/* shared canvas (rendered at 0.5–0.6x, scaled up) — behind the white stars and the WX logo */
.wx-aurora {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0;
  pointer-events: none; display: block;
}
/* fallback without WebGL: the same two corners in CSS gradients */
.wx-aurora-fallback { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.wx-aurora-fallback::before,
.wx-aurora-fallback::after {
  content: ''; position: absolute; width: 78vmax; height: 78vmax; border-radius: 50%;
  filter: blur(110px); opacity: .78; animation: auroraBreath 10s ease-in-out infinite alternate;
}
.wx-aurora-fallback::before {
  left: -40vmax; top: -40vmax;
  background: radial-gradient(closest-side, var(--glow-tl-1) 0%, var(--glow-tl-2) 24%, var(--glow-tl-3) 44%, var(--glow-tl-3b) 54%, var(--glow-tl-4) 68%, var(--glow-tl-5) 84%, transparent 100%);
}
.wx-aurora-fallback::after {
  right: -40vmax; bottom: -40vmax; animation-delay: -5s;
  background: radial-gradient(closest-side, var(--glow-br-1p) 0%, var(--glow-br-1) 20%, var(--glow-br-2) 42%, var(--glow-br-3) 62%, var(--glow-br-4) 82%, transparent 100%);
}
@keyframes auroraBreath {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: .66; }
  100% { transform: translate3d(1.2%, 1%, 0) scale(1.06); opacity: .82; }
}
/* light theme: arcs almost off, never in the way of reading */
html[data-theme="light"] .wx-aurora,
html[data-theme="light"] .wx-aurora-fallback { opacity: .2; }

/* soft dark veil behind long copy so text stays AA over any part of the glow */
.lab__copy, .ms-wrap, .finale__in {
  background-image: radial-gradient(closest-side, rgba(3, 2, 7, .5), rgba(3, 2, 7, .2) 70%, transparent);
}

/* 3 · scroll line: the palette runs along the spine */
.wx-line__fill {
  transform: none !important;
  background: repeating-linear-gradient(to bottom,
    var(--glow-tl-1) 0px, var(--glow-tl-2) 110px, var(--glow-tl-3) 230px, var(--glow-tl-3b) 300px, var(--glow-tl-4) 380px,
    var(--glow-tl-5) 470px, var(--glow-br-4) 540px, var(--glow-br-3) 630px, var(--glow-br-2) 740px, var(--glow-tl-2) 850px, var(--glow-tl-1) 960px);
  background-size: 100% 960px;
  box-shadow: 0 0 10px rgba(201, 206, 212, .3);
  animation: glowRun 8s linear infinite;
}
@keyframes glowRun { to { background-position: 0 960px; } }

/* section nodes light up (yellow/orange) and cool down (magenta → purple → blue) */
.wx-node.is-on { animation: nodeGlow 2.8s cubic-bezier(.16, 1, .3, 1) forwards; }
@keyframes nodeGlow {
  0%   { background: var(--glow-tl-1); transform: scale(1.5); box-shadow: 0 0 0 7px rgba(161, 161, 170, .32), 0 0 26px rgba(212, 216, 222, .8); }
  25%  { background: var(--glow-tl-2); transform: scale(1.25); box-shadow: 0 0 0 6px rgba(161, 161, 170, .22), 0 0 20px rgba(161, 161, 170, .6); }
  60%  { background: var(--glow-tl-3); transform: scale(1.12); box-shadow: 0 0 0 5px rgba(201, 206, 212, .16), 0 0 14px rgba(201, 206, 212, .5); }
  100% { background: var(--glow-tl-5); transform: scale(1.1); box-shadow: 0 0 0 4px rgba(14, 115, 231, .16), 0 0 10px rgba(14, 115, 231, .45); }
}
.wx-node--end.is-on { animation-name: nodeGlowEnd; }
@keyframes nodeGlowEnd {
  0%   { background: var(--glow-tl-1); transform: rotate(45deg) scale(1.5); box-shadow: 0 0 26px rgba(212, 216, 222, .8); }
  100% { background: var(--glow-tl-2); transform: rotate(45deg) scale(1.15); box-shadow: 0 0 14px rgba(161, 161, 170, .5); }
}

/* 4 · title keywords (<em>): the palette flows through the word */
html [class] :is(h1, h2, .h1, .h2, .finale__title) em:not(:has(.w)) {
  background-image: var(--glow-text); background-size: 260% 100%; background-position: 0% 50%;
  animation: glowSlide 12s ease-in-out infinite alternate;
}
@keyframes glowSlide { to { background-position: 100% 50%; } }
/* split titles (words / letters): one gradient across the whole word, aligned by js/line.js */
html [class] :is(h1, h2, .h1, .h2, .finale__title) em:has(.w) { color: var(--glow-tl-3); animation: glowShift 12s ease-in-out infinite alternate; }
html [class] :is(h1, h2, .h1, .h2, .finale__title) em:has(.w) .wi:not(:has(.c)),
html [class] :is(h1, h2, .h1, .h2, .finale__title) em:has(.w) .c {
  background-image: var(--glow-text);
  background-size: var(--gw, 260%) 100%;
  background-position: calc(var(--gx, 0px) + var(--gs)) 50%;
}
@keyframes glowShift { to { --gs: var(--gd, 0px); } }
/* off-white paper sections: dark stops only */
html .section--paper.section--paper :is(h1, h2, .h1, .h2) em:not(:has(.w)),
html .section--paper.section--paper :is(h1, h2, .h1, .h2) em:has(.w) .wi:not(:has(.c)),
html .section--paper.section--paper :is(h1, h2, .h1, .h2) em:has(.w) .c { background-image: var(--glow-text-ink); }
html .section--paper.section--paper :is(h1, h2, .h1, .h2) em:has(.w) { color: var(--glow-tl-4); }

/* 8003 ambient thermal colors around the edges of the site */
.wx-thermal {
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .62;
  transition: opacity .6s ease;
}
.wx-thermal::before,
.wx-thermal::after {
  content: '';
  position: absolute;
  inset: 0;
  filter: blur(54px) saturate(1.2);
  will-change: opacity, transform;
}
.wx-thermal::before {
  background:
    radial-gradient(38% 36% at 2% 0%, #FFD60A 0%, #FF7A00 24%, #FF2D55 46%, #B026FF 70%, transparent 100%),
    radial-gradient(32% 40% at -2% 56%, #00EBB0 0%, #00E0B8 24%, #00C8F0 42%, #2F6BFF 64%, #7B2CFF 84%, transparent 100%);
  animation: thermalLayerA 9s ease-in-out infinite;
}
.wx-thermal::after {
  background:
    radial-gradient(34% 40% at 100% 72%, #FF9500 0%, #FF3B1D 32%, #E4107A 56%, #8A2BFF 80%, transparent 100%),
    radial-gradient(54% 36% at 70% 106%, #00EBB0 0%, #00E0B8 24%, #00C8F0 42%, #2F5BFF 64%, #8A2BFF 84%, transparent 100%);
  animation: thermalLayerB 9s ease-in-out infinite;
}
html[data-theme="light"] .wx-thermal { opacity: 0; }

/* cozy ambience (js/cozy.js): warm hearth, light rays, cursor lamp, floating dust */
.wx-cozy { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; mix-blend-mode: screen; }
.wx-cozy > * { position: absolute; display: block; }
/* hearth: a low ember glow under the centre, so the black feels warm instead of empty */
.wx-cozy__hearth {
  left: 50%; bottom: -34vmax; width: 120vmax; height: 62vmax; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 146, 82, .3), rgba(214, 84, 62, .17) 44%, rgba(140, 44, 96, .07) 72%, transparent);
  filter: blur(30px); animation: cozyHearth 7s ease-in-out infinite alternate;
}
@keyframes cozyHearth {
  0% { opacity: .75; transform: translateX(-50%) scale(1); }
  45% { opacity: 1; transform: translateX(-51%) scale(1.04, 1.07); }
  100% { opacity: .85; transform: translateX(-49%) scale(1.02, .98); }
}
/* rays: soft bands of light leaning on the WX angle, fading out from the top-right corner */
.wx-cozy__rays {
  right: -18vmax; top: -18vmax; width: 105vmax; height: 105vmax;
  background: repeating-linear-gradient(114deg,
    rgba(255, 228, 196, 0) 0, rgba(255, 228, 196, .15) 4vmax, rgba(255, 228, 196, 0) 8vmax,
    rgba(255, 228, 196, 0) 11vmax, rgba(255, 210, 170, .1) 13vmax, rgba(255, 210, 170, 0) 17vmax);
  background-size: 160% 160%;
  -webkit-mask-image: radial-gradient(closest-side at 82% 18%, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%);
  mask-image: radial-gradient(closest-side at 82% 18%, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%);
  filter: blur(10px); animation: cozyRays 26s ease-in-out infinite alternate;
}
@keyframes cozyRays {
  0% { background-position: 0% 0%; opacity: .7; }
  50% { opacity: 1; }
  100% { background-position: 60% 30%; opacity: .8; }
}
/* lamp: a warm pool of light carried by the cursor (desktop only) */
.wx-cozy__lamp {
  left: 0; top: 0; width: 64vmax; height: 64vmax; opacity: 0; transition: opacity 1.2s ease;
  background: radial-gradient(closest-side, rgba(255, 222, 186, .14), rgba(255, 170, 120, .065) 45%, transparent 100%);
  will-change: transform;
}
.wx-cozy.has-lamp .wx-cozy__lamp { opacity: 1; }
.wx-cozy__motes { inset: 0; width: 100%; height: 100%; }
html[data-theme="light"] .wx-cozy { display: none; }
@media (max-width: 900px) {
  .wx-cozy__rays { width: 140vmax; height: 140vmax; right: -50vmax; top: -40vmax; }
  .wx-cozy__lamp { display: none; }
}
@keyframes thermalLayerA {
  0%, 100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  50% { opacity: .18; transform: translate3d(-2%, 2%, 0) scale(1.06); }
}
@keyframes thermalLayerB {
  0%, 100% { opacity: .18; transform: translate3d(2%, -2%, 0) scale(1.06); }
  50% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

/* 5 · buttons: GPU-composited liquid wave fill + diagonal glass sheen + kinetic icon (strictly INSIDE every button) */
.btn, .finale__btn, .v6-btn, .menu-btn {
  position: relative;
}
.btn, .finale__btn, .v6-btn, .menu-btn, .sound-fab, .wa-fab {
  isolation: isolate;
  overflow: hidden;
  /* NOT `transform`: the magnetic pull (GSAP, js/app.js) drives it every frame. Lift and press use the independent translate/scale properties. */
  transition: translate .42s cubic-bezier(.22, 1, .36, 1), scale .2s cubic-bezier(.22, 1, .36, 1), color .35s ease, box-shadow .42s cubic-bezier(.22, 1, .36, 1), border-color .35s ease;
}
.btn, .v6-btn {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), 0 10px 28px -14px rgba(0, 0, 0, .55);
}
.menu-btn {
  background: rgba(14, 14, 18, .52);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .24), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.btn:hover, .v6-btn:hover, .finale__btn:hover, .menu-btn:hover {
  translate: 0 -2px;
}
.btn:active, .v6-btn:active, .finale__btn:active, .menu-btn:active {
  translate: 0 0; scale: .975;
}

/* Layer 1 (::before): colorful liquid orb that blooms from cursor entry and follows the mouse smoothly inside every button */
.btn::before, .finale__btn::before, .v6-btn::before, .menu-btn::before, .sound-fab::before, .wa-fab::before {
  content: '';
  display: block !important;
  position: absolute;
  left: 0;
  top: 0;
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  z-index: -2;
  border-radius: 50%;
  pointer-events: none;
  /* the same colours as the corner glows of the page: cream → orange → red → pink → magenta → violet → blue → cyan.
     Warm and bright near the pointer (where the text sits), cool and softer on the rim. */
  background: radial-gradient(circle,
    rgb(255, 240, 200) 0%,
    rgba(255, 115, 0, .95) 18%,
    rgba(255, 38, 0, .85) 34%,
    rgba(219, 39, 119, .8) 48%,
    rgba(192, 38, 211, .5) 62%,
    rgba(109, 40, 217, .34) 76%,
    rgba(37, 99, 235, .26) 89%,
    rgba(0, 229, 255, 0) 100%);
  filter: blur(10px);
  transform: translate3d(var(--bx, 50%), var(--by, 50%), 0) scale(0.08);
  opacity: 0;
  will-change: transform, opacity;
  transition: transform .52s cubic-bezier(.22, 1, .36, 1), opacity .42s ease;
}
.finale__btn::before {
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  filter: blur(18px);
}

/* Layer 2 (::after): soft specular highlight pinpoint following the cursor inside the button */
.btn::after, .finale__btn::after, .v6-btn::after, .menu-btn::after, .sound-fab::after, .wa-fab::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 140px;
  height: 140px;
  margin: -70px 0 0 -70px;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .55) 0%, rgba(255, 238, 200, .22) 38%, rgba(255, 255, 255, 0) 72%);
  mix-blend-mode: soft-light;
  transform: translate3d(var(--bx, 50%), var(--by, 50%), 0) scale(0.2);
  opacity: 0;
  will-change: transform, opacity;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .35s ease;
}
.finale__btn::after {
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
}

.btn:hover::before, .btn.is-glow::before,
.finale__btn:hover::before, .finale__btn.is-glow::before,
.v6-btn:hover::before, .v6-btn.is-glow::before,
.menu-btn:hover::before, .menu-btn.is-glow::before,
.sound-fab:hover::before, .sound-fab.is-glow::before,
.wa-fab:hover::before, .wa-fab.is-glow::before {
  transform: translate3d(var(--bx, 50%), var(--by, 50%), 0) scale(1.45);
  opacity: 1;
}
/* dark buttons (outline, menu, sound, WhatsApp): the colour is a glow, the base stays dark so the white text stays readable */
.btn--ghost:hover::before, .btn--ghost.is-glow::before,
.menu-btn:hover::before, .menu-btn.is-glow::before,
.sound-fab:hover::before, .sound-fab.is-glow::before,
.wa-fab:hover::before, .wa-fab.is-glow::before { opacity: .55; }
.site-header.is-on-light .menu-btn:hover::before { opacity: .3; }
.site-header.is-on-light .btn--metal:hover::before { opacity: .6; }

.btn:hover::after, .btn.is-glow::after,
.finale__btn:hover::after, .finale__btn.is-glow::after,
.v6-btn:hover::after, .v6-btn.is-glow::after,
.menu-btn:hover::after, .menu-btn.is-glow::after,
.sound-fab:hover::after, .sound-fab.is-glow::after,
.wa-fab:hover::after, .wa-fab.is-glow::after {
  transform: translate3d(var(--bx, 50%), var(--by, 50%), 0) scale(1);
  opacity: 1;
}

/* Text on hover: white on the dark buttons, dark on the silver ones (white on the orange glow is unreadable) */
.btn--ghost:hover, .menu-btn:hover, .sound-fab:hover, .wa-fab:hover,
.site-header.is-on-light .btn--metal:hover {
  color: #FFFFFF !important;
  text-shadow: 0 1px 12px rgba(9, 9, 11, .28);
}
.btn:not(.btn--ghost):hover, .v6-btn:hover, .finale__btn:hover { color: #09090B !important; text-shadow: none; }
.site-header.is-on-light .btn--metal:hover { color: #FFFFFF !important; }
.site-header.is-on-light .menu-btn:hover { color: #09090B !important; text-shadow: none; }
.v6-btn__t, .finale__btn-label {
  transition: transform .42s cubic-bezier(.22, 1, .36, 1);
}
.v6-btn:hover .v6-btn__t, .finale__btn:hover .finale__btn-label {
  transform: translateX(3px);
}
.btn:hover, .v6-btn:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 0 0 1px rgba(255, 255, 255, .24), 0 16px 36px -14px rgba(9, 9, 11, .7);
}
.menu-btn:hover {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42), inset 0 1px 0 rgba(255, 255, 255, .36);
}
.btn__icon, .v6-btn__i, .finale__btn-icon {
  overflow: hidden;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), background .35s ease, color .35s ease, box-shadow .35s ease;
}
.btn:hover .btn__icon, .btn--metal:hover .btn__icon, .btn--ghost:hover .btn__icon,
.v6-btn:hover .v6-btn__i, .finale__btn:hover .finale__btn-icon {
  background: #FFFFFF !important;
  color: #09090B !important;
  box-shadow: 0 6px 18px rgba(9, 9, 11, .28);
}
.btn:not(.btn--ghost):hover .btn__icon, .v6-btn:hover .v6-btn__i, .finale__btn:hover .finale__btn-icon {
  background: #09090B !important; color: #FAFAFA !important; box-shadow: 0 6px 18px rgba(9, 9, 11, .3);
}
.site-header.is-on-light .btn--metal:hover .btn__icon { background: #FFFFFF !important; color: #09090B !important; }
.btn:hover .btn__icon, .v6-btn:hover .v6-btn__i { transform: scale(1.08) rotate(-45deg); }
.finale__btn:hover .finale__btn-icon { transform: scale(1.06) rotate(-45deg); }
.btn:hover .btn__icon svg, .v6-btn:hover .v6-btn__i svg, .finale__btn:hover .finale__btn-icon svg {
  animation: btnArrowShoot .45s cubic-bezier(.4, 0, .2, 1);
}
@keyframes btnArrowShoot {
  0%   { transform: translate(0, 0); opacity: 1; }
  45%  { transform: translate(110%, -10%); opacity: 0; }
  46%  { transform: translate(-110%, 10%); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}
.menu-btn__lines {
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), background .3s ease;
}
.menu-btn:hover .menu-btn__lines {
  background: #FFFFFF;
  transform: scale(1.08);
}
.menu-btn:hover .menu-btn__lines span { background: #09090B; }
html:not(.menu-open) .menu-btn:hover .menu-btn__lines span:nth-child(1) { transform: translateX(2px); }
html:not(.menu-open) .menu-btn:hover .menu-btn__lines span:nth-child(2) { transform: translateX(-2px); }

.wx-rip {
  position: absolute; z-index: -1; left: 0; top: 0; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0) 56%, rgba(255, 255, 255, .78) 76%, rgba(255, 215, 160, .48) 88%, rgba(255, 255, 255, 0) 100%);
  transform: scale(0); opacity: 0; animation: wxRip .78s cubic-bezier(.16, 1, .3, 1) forwards;
}
@keyframes wxRip { 0% { transform: scale(0); opacity: 1; } 55% { opacity: .75; } 100% { transform: scale(var(--rs, 14)); opacity: 0; } }

/* reduced motion: static arcs (rendered once), no trail / sweep / flow / pulses */
@media (prefers-reduced-motion: reduce) {
  .wx-aurora-fallback::before, .wx-aurora-fallback::after,
  .wx-thermal::before, .wx-thermal::after,
  .wx-cozy__hearth, .wx-cozy__rays,
  .wx-line__fill,
  .btn::before, .finale__btn::before, .v6-btn::before, .menu-btn::before, .sound-fab::before, .wa-fab::before,
  .btn::after, .finale__btn::after, .v6-btn::after, .menu-btn::after, .sound-fab::after, .wa-fab::after,
  .btn__icon svg, .v6-btn__i svg, .finale__btn-icon svg,
  html [class] :is(h1, h2, .h1, .h2, .finale__title) em { animation: none !important; }
  .wx-node.is-on { animation-duration: .01s; }
  .btn::before, .finale__btn::before, .v6-btn::before, .menu-btn::before, .sound-fab::before, .wa-fab::before { transition: none; }
  .wx-rip { display: none; }
}

/* ---- Instagram-post palette: edge glow, progress line, orb hover ---- */
:root { --ig-grad: linear-gradient(100deg, #FF7300 0%, #FF2600 24%, #DB2777 48%, #C026D3 70%, #2563EB 100%); --ig-line: linear-gradient(90deg, #00E5FF, #2563EB, #6D28D9, #C026D3, #DB2777, #FF2600, #FF7300); }
.scroll-progress { display: none !important; }
.orb:hover { background: var(--ig-grad); color: #FFFFFF; }
.sound-fab:hover { border-color: #DB2777; }
.footer-legal a:hover, .link-u:hover { color: #FF7300; }
.link-u:hover::after { background: var(--ig-line); }
.arrow-link:hover, .v6-link:hover { color: #FF7300; }
.wk:hover::before, .wk.is-open::before { background: var(--ig-line); }
.wk.is-open .wk__icon { background: var(--ig-grad); color: #FFFFFF; border-color: transparent; }
.lab-panel__tags .tag:hover, .tag:hover { border-color: #DB2777; color: #FFFFFF; }
/* WhatsApp button, bottom right: black and white (no green), symbol inverts on hover */
.wa-fab { background: #FAFAFA; color: #09090B; border: 1px solid rgba(9, 9, 11, .9); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7); }
.wa-fab:hover { background: #09090B; color: #FAFAFA; border-color: rgba(250, 250, 250, .85); }
/* no floating bubbles / dust */
.wx-cozy__motes { display: none !important; }
