/* Concepto Vivo: Nuvofy identity (nuvofy.css tokens) with denser, scroll-driven motion. */
:root {
  color-scheme: light dark;
  --navy: #111344;
  --navy-deep: #0a0c2c;
  --blue: #0072bb;
  --teal: #1e91d6;
  --mint: #71dec9;
  --violet: #231651;

  --bg: light-dark(#f4f7fa, #0b0d2b);
  --paper: light-dark(#ffffff, #12153c);
  --ink: light-dark(#111344, #eef2fb);
  --muted: light-dark(#566084, #9ea7cc);
  --line: light-dark(#d8e2ea, rgba(255, 255, 255, .09));
  --accent: light-dark(#0072bb, #71dec9);
  --accent-soft: light-dark(#dff1fb, rgba(113, 222, 201, .12));

  --sans: 'Manrope', 'Avenir Next', system-ui, sans-serif;
  --display: 'Space Grotesk', 'Avenir Next', system-ui, sans-serif;
  --edge: clamp(20px, 5vw, 76px);
  --section-y: clamp(96px, 13vw, 190px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--mint); color: var(--navy); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1.1em; }

.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

/* ---------- Chrome: progress, frame lines, nav ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--mint)); }

.frame-lines { position: fixed; inset: 0; pointer-events: none; z-index: 1; display: flex; justify-content: space-between; padding: 0 var(--edge); }
.frame-lines i { width: 1px; background: var(--line); opacity: .7; }

.nav {
  position: fixed; inset: 14px var(--edge) auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 8px 8px 8px 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(13, 16, 52, .55);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  color: #fff;
  transition: transform .5s var(--ease), background .4s, color .4s, border-color .4s;
}
.nav.is-hidden { transform: translateY(-140%); }
.nav.on-light { background: light-dark(rgba(255, 255, 255, .78), rgba(13, 16, 52, .7)); color: var(--ink); border-color: var(--line); }
.nav-brand img { display: block; height: 32px; width: auto; }
.nav .logo-light { display: none; }
.nav.on-light .logo-dark { display: none; }
.nav.on-light .logo-light { display: block; }
@media (prefers-color-scheme: dark) {
  .nav.on-light .logo-dark { display: block; }
  .nav.on-light .logo-light { display: none; }
}
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav-links a { text-decoration: none; opacity: .78; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--mint); --fg-btn: var(--navy);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--sans); text-decoration: none;
  background: var(--bg-btn); color: var(--fg-btn);
  overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: #fff; transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn b { font-weight: 500; transition: transform .45s var(--ease); }
.btn:hover b { transform: translateX(4px); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-ghost { --bg-btn: transparent; --fg-btn: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.btn-ghost::before { background: rgba(255, 255, 255, .1); }
.btn-big { min-height: 64px; padding: 0 34px; font-size: 18px; }

/* ---------- Hero (always dark) ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  background: radial-gradient(120% 90% at 80% 20%, #1b2070 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff; display: grid; align-items: center;
  padding: 120px var(--edge) 90px;
}
.hero-shader { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, var(--navy-deep)); pointer-events: none; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1360px; margin: 0 auto; width: 100%; }
.hero h1 { font-size: clamp(3.2rem, 8vw, 7.4rem); line-height: .92; margin: 26px 0 28px; }
.hero-lede { max-width: 33em; color: rgba(255, 255, 255, .74); font-size: clamp(1.02rem, 1.35vw, 1.2rem); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }


.scan-card {
  position: relative; margin: 0; padding: 16px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .12);
  overflow: hidden; transform-style: preserve-3d; will-change: transform;
}
.scan-head { display: flex; align-items: center; gap: 12px; padding: 4px 4px 14px; font-size: 13px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.scan-title { font-weight: 600; }
.scan-status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--mint); font-size: 12px; }
.scan-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.scan-tabs { display: flex; gap: 6px; margin-bottom: 12px; font-size: 12px; }
.scan-tabs span { padding: 6px 11px; border-radius: 8px; color: rgba(255, 255, 255, .55); }
.scan-tabs .on { background: rgba(255, 255, 255, .1); color: #fff; }
.scan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.scan-list li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 12px; background: rgba(8, 10, 40, .55); border: 1px solid rgba(255, 255, 255, .06);
  font-size: 13.5px; line-height: 1.3;
}
.scan-list b { font-weight: 600; display: block; }
.scan-list small { color: rgba(255, 255, 255, .5); font-size: 12px; }
.scan-list em { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(113, 222, 201, .14); color: var(--mint); }
.scan-list li[data-tone="warn"] em { background: rgba(255, 196, 102, .14); color: #ffc466; }
.scan-list li[data-tone="info"] em { background: rgba(30, 145, 214, .2); color: #7cc4f0; }
.sq { width: 10px; height: 10px; border-radius: 3px; background: var(--mint); }
li[data-tone="warn"] .sq { background: #ffc466; }
li[data-tone="info"] .sq { background: var(--teal); }
.scan-beam { position: absolute; left: 0; right: 0; height: 90px; top: -90px; background: linear-gradient(180deg, transparent, rgba(113, 222, 201, .14) 70%, rgba(113, 222, 201, .5) 100%); pointer-events: none; mix-blend-mode: screen; }
.scan-card figcaption { margin-top: 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .38); text-align: right; }

.scroll-hint { position: absolute; z-index: 3; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border-radius: 20px; border: 1.5px solid rgba(255, 255, 255, .35); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: #fff; animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee-band { position: relative; z-index: 2; background: var(--navy-deep); color: #fff; padding: 26px 0 30px; border-block: 1px solid rgba(255, 255, 255, .08); overflow: hidden; }
.marquee { display: flex; overflow: hidden; white-space: nowrap; }
.marquee + .marquee { margin-top: 10px; }
.marquee-track { display: flex; align-items: center; gap: 28px; padding-right: 28px; flex-shrink: 0; will-change: transform; }
.marquee span { font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 3rem); font-weight: 500; letter-spacing: -.03em; }
.marquee i { font-style: normal; color: var(--mint); font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 2rem); }
.marquee-reverse span { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .45); }

/* ---------- Sections ---------- */
.section { position: relative; z-index: 2; padding: var(--section-y) var(--edge); max-width: 1440px; margin: 0 auto; }
.context { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.context h2, .ops h2, .guarantee h2 { font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: .98; }
.ops h2, .guarantee h2 { margin-bottom: 30px; }
.context-left { position: sticky; top: 120px; }
.scrub-text { font-family: var(--display); font-size: clamp(1.45rem, 2.5vw, 2.2rem); line-height: 1.22; letter-spacing: -.02em; font-weight: 500; }
.scrub-text .w { opacity: .16; transition: opacity .1s linear; }
.context-emphasis { font-size: 1.15em; font-weight: 600; margin-top: 1.6em; }
mark { background: linear-gradient(transparent 58%, var(--accent-soft) 58%); color: inherit; padding: 0 .1em; }

.ticker { margin-top: 56px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.ticker-q { font-size: 13px; font-weight: 600; color: var(--muted); }
.ticker-list { list-style: none; margin: 0; padding: 0; height: 160px; position: relative; overflow: hidden; mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.ticker-list li { position: absolute; left: 0; top: 50%; padding: 7px 14px; border-radius: 10px; font-size: 14.5px; white-space: nowrap; transform: translateY(-50%); background: var(--paper); border: 1px solid var(--line); color: var(--muted); transition: transform .8s var(--ease), opacity .8s var(--ease), color .4s; }
.ticker-list li.is-current { color: var(--ink); border-color: var(--accent); box-shadow: 0 10px 30px -14px color-mix(in srgb, var(--accent) 60%, transparent); }

/* ---------- Method (pinned board) ---------- */
.method { position: relative; z-index: 2; background: var(--paper); border-block: 1px solid var(--line); }
.method-stage { height: 100svh; display: grid; grid-template-columns: minmax(280px, .8fr) 1.2fr; gap: clamp(30px, 5vw, 80px); align-items: center; padding: 90px var(--edge) 40px; max-width: 1440px; margin: 0 auto; }
.method-meter { display: flex; gap: 6px; margin-bottom: 28px; }
.method-meter i { height: 3px; flex: 1; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.method-meter i::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.method-steps { display: grid; }
.mstep { grid-area: 1 / 1; opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.mstep.is-active { opacity: 1; transform: none; pointer-events: auto; }
.mstep-n { display: block; font-family: var(--display); font-size: clamp(4rem, 8vw, 7rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--accent); margin-bottom: 14px; }
.mstep h3 { font-size: clamp(2.2rem, 4.2vw, 3.8rem); line-height: 1; margin-bottom: 20px; }
.mstep p { color: var(--muted); max-width: 30em; }
.mstep b { color: var(--ink); }

.board { position: relative; height: min(72svh, 640px); border-radius: 22px; background: var(--bg); border: 1px solid var(--line); overflow: hidden;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--muted) 30%, transparent) 1px, transparent 0); background-size: 22px 22px; }
.board-cols, .board-lanes { position: absolute; inset: 0; pointer-events: none; }
.board-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px; }
.board-cols span { border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); padding: 12px 14px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); opacity: 0; }
.board-lanes { display: grid; grid-template-rows: repeat(3, 1fr); padding: 18px; gap: 12px; }
.board-lanes span { position: relative; border-radius: 14px; border-top: 1px solid var(--line); opacity: 0; }
.board-lanes b { position: absolute; left: 0; top: 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.board-lanes span::after { content: ''; position: absolute; left: 0; right: 0; top: 58%; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); transform-origin: 0 50%; transform: scaleX(var(--lane, 0)); }
.board-cards { position: absolute; inset: 0; }
.bcard { position: absolute; left: 0; top: 0; width: var(--cw, 150px); padding: 9px 11px; border-radius: 10px; font-size: 12px; font-weight: 600; line-height: 1.25; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 10px 24px -16px rgba(17, 19, 68, .5); will-change: transform; }
.bcard::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 7px; background: var(--c, var(--accent)); vertical-align: 1px; }
.bcard small { display: block; margin-top: 3px; font-weight: 500; color: var(--muted); font-size: 11px; }

/* ---------- Ops / orbit ---------- */
.ops { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.ops p { color: var(--muted); max-width: 32em; }
.ops p b { color: var(--ink); }
.orbit { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.orbit svg { width: 100%; height: 100%; overflow: visible; }
.orbit-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.orbit-ring.faint { stroke-dasharray: 3 6; }
.orbit-link { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 150; stroke-dashoffset: 150; }
.orbit-arc { fill: none; stroke: var(--accent); stroke-width: 1.4; opacity: .5; stroke-dasharray: 943; stroke-dashoffset: 943; }
.pulse { fill: var(--mint); filter: drop-shadow(0 0 6px var(--mint)); opacity: 0; }
.orbit.is-on .pulse { opacity: 1; transition: opacity .6s .9s; }
.orbit-core, .orbit-node { position: absolute; transform: translate(-50%, -50%); border-radius: 999px; font-weight: 600; white-space: nowrap; }
.orbit-core { left: 50%; top: 50%; width: 26%; aspect-ratio: 1; display: grid; place-items: center; font-family: var(--display); font-size: clamp(1.2rem, 2.2vw, 1.9rem); background: var(--navy); color: #fff; box-shadow: 0 0 0 10px var(--accent-soft), 0 30px 60px -20px rgba(0, 114, 187, .6); }
.orbit-node { padding: 9px 16px; font-size: 14px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 14px 30px -18px rgba(17, 19, 68, .45); }
.n0 { left: 50%; top: 12.5%; } .n1 { left: 87.5%; top: 50%; } .n2 { left: 50%; top: 87.5%; } .n3 { left: 12.5%; top: 50%; }

.values { position: relative; z-index: 2; color: #fff; }

/* ---------- Guarantee ---------- */
.guarantee { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.g-dial { position: relative; width: min(100%, 420px); aspect-ratio: 1; justify-self: center; }
.g-dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.g-track { fill: none; stroke: var(--line); stroke-width: 6; }
.g-fill { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 553; stroke-dashoffset: 553; }
.g-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.g-num b { font-family: var(--display); font-size: clamp(5rem, 12vw, 9rem); line-height: .85; letter-spacing: -.06em; font-weight: 600; font-variant-numeric: tabular-nums; }
.g-num span { font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.g-copy p { color: var(--muted); max-width: 34em; }

/* ---------- About ---------- */
.about { border-top: 1px solid var(--line); }
.about-big { max-width: 22em; font-size: clamp(1.8rem, 3.6vw, 3.3rem); line-height: 1.1; margin-bottom: 56px; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 980px; color: var(--muted); }
.link-arrow { display: inline-flex; gap: 10px; margin-top: 18px; font-weight: 600; text-decoration: none; color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.link-arrow span { transition: transform .4s var(--ease); }
.link-arrow:hover span { transform: translate(3px, -3px); }

/* ---------- Closing + footer (always dark) ---------- */
.closing { position: relative; z-index: 2; overflow: hidden; background: var(--navy-deep); color: #fff; padding: clamp(120px, 16vw, 220px) var(--edge); text-align: center; }
.closing-shader { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }
.closing-inner { position: relative; max-width: 980px; margin: 0 auto; }
.closing h2 { font-size: clamp(2.8rem, 6.6vw, 6.2rem); line-height: .96; margin-bottom: 30px; }
.closing p { color: rgba(255, 255, 255, .7); max-width: 38em; margin: 0 auto 40px; }

.footer { position: relative; z-index: 2; background: var(--navy-deep); color: rgba(255, 255, 255, .6); padding: 0 var(--edge); overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px 0; font-size: 14px; }
.footer-row div { display: flex; gap: 22px; }
.footer-row a { text-decoration: none; }
.footer-row a:hover { color: #fff; }
.footer-word { font-family: var(--display); font-weight: 700; font-size: 22vw; line-height: 1; letter-spacing: -.07em; text-align: center; margin-bottom: -5vw; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .16); background: linear-gradient(90deg, var(--blue), var(--mint)) no-repeat; background-size: 0% 100%; -webkit-background-clip: text; background-clip: text; user-select: none; }

/* ---------- Split / reveal helpers ---------- */
.split .wrap { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .word { display: inline-block; will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid, .context, .ops, .guarantee, .about-cols { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .context-left { position: static; }
  .method-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: 100svh; padding-top: 84px; align-content: start; }
  .mstep-n { font-size: 3rem; }
  .mstep h3 { font-size: 1.9rem; margin-bottom: 10px; }
  .mstep p { font-size: .95rem; }
  .board { height: 46svh; }
  .bcard { font-size: 10px; padding: 6px 7px; }
  .board-cols span { font-size: 9px; letter-spacing: .06em; padding: 8px; }
  .bcard small { display: none; }
  .frame-lines { display: none; }
}
@media (max-width: 580px) {
  .nav { inset: 10px 12px auto; padding-left: 14px; }
  .nav-brand img { height: 26px; }
  .scan-list li:nth-child(n+4) { display: none; }
  .ticker { grid-template-columns: 1fr; }
  .ticker-list li { white-space: normal; max-width: 100%; }
  .footer-row { flex-direction: column; }
}

/* ---------- Reduced motion / no JS: everything readable, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.static .scrub-text .w { opacity: 1; }
html:not(.js) .mstep, .static .mstep { position: static; opacity: 1; transform: none; grid-area: auto; margin-bottom: 36px; }
html:not(.js) .method-stage, .static .method-stage { height: auto; padding-block: var(--section-y); }
html:not(.js) .method-meter, .static .method-meter { display: none; }
.static .board { height: 520px; }
html:not(.js) .ticker-list, .static .ticker-list { height: auto; mask-image: none; -webkit-mask-image: none; }
html:not(.js) .ticker-list li, .static .ticker-list li { position: static; transform: none; display: block; width: fit-content; margin-bottom: 8px; white-space: normal; }
html:not(.js) .orbit-link, html:not(.js) .orbit-arc, .static .orbit-link, .static .orbit-arc, .static .g-fill, html:not(.js) .g-fill { stroke-dashoffset: 0; }
.static .pulse, html:not(.js) .pulse { display: none; }
html:not(.js) .footer-word, .static .footer-word { background-size: 100% 100%; }

/* Vivo preview: rotating headline, stacked values, and the contact close. */
.hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.hero-heading h1 {
  font-size: clamp(2.5rem, 7.1vw, 6.9rem);
  line-height: .94;
  text-wrap: initial;
}
.hero-heading .hero-title-line { display: block; }
.hero-rotator {
  display: block;
  width: max-content;
  max-width: 100%;
  height: 1.15em;
  overflow: hidden;
  color: var(--mint);
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.rotator-entry, .rotator-track, .rotator-track span { display: block; }
.rotator-entry, .rotator-track span { height: 1.15em; }
.rotator-entry { overflow: hidden; }
.rotator-track span { padding-right: .12em; white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .hero-title-line .word, .rotator-entry { animation: hero-title-in .8s var(--ease) .25s backwards; }
  .hero-title-line:nth-child(2) .word { animation-delay: .33s; }
  .rotator-entry { animation-delay: .41s; }
  .rotator-track { animation: rotate-platforms 12s var(--ease) .85s infinite; }
}
.hero-rotator.is-offscreen .rotator-track { animation-play-state: paused; }
@keyframes hero-title-in {
  from { transform: translateY(110%); }
}
@keyframes rotate-platforms {
  0%, 20% { transform: translateY(0); }
  25%, 45% { transform: translateY(-20%); }
  50%, 70% { transform: translateY(-40%); }
  75%, 95% { transform: translateY(-60%); }
  100% { transform: translateY(-80%); }
}

.values-stacked {
  overflow: visible;
  padding: var(--section-y) var(--edge);
  background: var(--navy-deep);
  scroll-margin-top: 72px;
}
.values-intro, .value-stack { max-width: 1120px; margin: 0 auto; }
.values-intro { margin-bottom: clamp(36px, 5vw, 72px); }
.values-intro h2 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: .98;
  margin: 0 0 20px;
}
.values-intro p { max-width: 46ch; color: #c1cce8; margin: 0; }
.value-stack { display: grid; gap: 22px; }
.value-card {
  --stack-offset: 0px;
  --card-bg: var(--mint);
  --card-ink: var(--navy);
  --card-accent: #0b5f63;
  position: sticky;
  top: calc(84px + var(--stack-offset));
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(16px, 5vw, 68px);
  align-items: center;
  min-height: clamp(360px, 61svh, 550px);
  padding: clamp(28px, 6vw, 80px);
  border: 1px solid color-mix(in srgb, var(--card-ink) 22%, transparent);
  border-radius: clamp(18px, 2vw, 30px);
  background: var(--card-bg);
  color: var(--card-ink);
  box-shadow: 0 -10px 32px rgb(0 0 0 / .17);
}
.value-card:nth-child(2) { --stack-offset: 16px; --card-bg: #12559d; --card-ink: #fff; --card-accent: #a5f3e2; }
.value-card:nth-child(3) { --stack-offset: 32px; --card-bg: #d9eaf8; --card-accent: #165787; }
.value-card:nth-child(4) { --stack-offset: 48px; --card-bg: #262859; --card-ink: #fff; --card-accent: var(--mint); }
.value-card:nth-child(5) { --stack-offset: 64px; --card-bg: #a5eddf; }
.value-card .label { color: var(--card-accent); margin-bottom: 15px; }
.value-card h3 { font-size: clamp(2rem, 5vw, 4.5rem); line-height: .99; margin-bottom: 20px; text-wrap: pretty; }
.value-card p { margin: 0; max-width: 48ch; }
.value-art {
  width: 100%;
  max-width: 270px;
  justify-self: center;
  fill: none;
  stroke: var(--card-ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.value-art .art-accent { stroke: var(--card-accent); stroke-width: 4; }

.closing { scroll-margin-top: 72px; }
.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, rgb(10 12 44 / .84), transparent 75%);
  pointer-events: none;
}
.closing-inner { z-index: 2; }
.closing h2 { font-size: clamp(2.7rem, 8vw, 6rem); }
.closing h2 span { color: var(--mint); }
.closing p { color: #d8def2; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 580px) {
  .hero-heading h1 { font-size: clamp(2.5rem, 9.8vw, 3.8rem); }
  .value-card { top: calc(70px + var(--stack-offset) * .55); grid-template-columns: minmax(0, 1fr); min-height: 350px; }
  .value-art { width: 100px; justify-self: start; }
}
@media (max-height: 570px), (prefers-reduced-motion: reduce) {
  .value-card { position: relative; top: auto; }
}

.nav-actions { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 22px); }
.lang-switch { font-size: .875rem; font-weight: 600; text-decoration: none; }
.lang-switch:hover { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 580px) {
  .nav { gap: 8px; }
  .nav .btn-small { padding-inline: 12px; }
}
