/* Growth plan, Batch A (2026-11-11). Loaded last on every page.
   Plan: workspace/plans/2026-11-10-uppervision-site-growth-plan-fable-5.2.md
   Rules: only transform and opacity animate; content is never hidden waiting
   for motion; reduced motion and the pause control are respected. */
:root { --ring-found:#4fc3ec; --ring-answered:#ff3d9a; --ring-booked:#f5b04a; }

/* ---------- E1 + #41: headline "Found. Answered. Booked." ---------- */
.hero-refined h1.hero-trio {
  font-size:clamp(40px,4.4vw,68px); line-height:1.04; letter-spacing:-.035em;
  font-weight:500; gap:0 .3em; color:var(--ink,#f0f3f7);
}
.hero-refined h1.hero-trio>.hw { display:inline-block; white-space:nowrap; }
.hero-trio .hw-dot { display:inline-block; }
.hero-trio .hw-found .hw-dot { color:var(--ring-found); }
.hero-trio .hw-answered .hw-dot { color:var(--ring-answered); }
.hero-trio .hw-booked .hw-dot { color:var(--ring-booked); }
.hero-refined .hero-sub {
  /* 780px keeps the Spanish line (the longer one) to two lines on a laptop. */
  margin:16px auto 0; max-width:min(780px,100%); font-size:clamp(15px,1.15vw,17px); line-height:1.55;
  color:#c9d3e3; text-wrap:balance;
  /* The top orbit passes behind this line; a soft dark halo keeps the letters crisp over it. */
  text-shadow:0 0 14px #070b17, 0 0 4px #070b17;
}

/* ---------- E9 + #42: "First light" opening moment ----------
   Each word arrives in its ring colour with a soft glow, then settles to white.
   Text is fully visible from the first frame; only colour and glow change. */
@media (prefers-reduced-motion:no-preference) {
  .hero-trio .hw { animation:uv-first-light 1.5s cubic-bezier(.2,.65,.3,1) both; }
  .hero-trio .hw-found { --hw-c:var(--ring-found); animation-delay:.15s; }
  .hero-trio .hw-answered { --hw-c:var(--ring-answered); animation-delay:.6s; }
  .hero-trio .hw-booked { --hw-c:var(--ring-booked); animation-delay:1.05s; }
  .motion-paused .hero-trio .hw { animation:none; }
}
@keyframes uv-first-light {
  0% { color:var(--hw-c); text-shadow:0 0 28px color-mix(in srgb,var(--hw-c) 70%,transparent); transform:translateY(6px); }
  45% { color:var(--hw-c); text-shadow:0 0 18px color-mix(in srgb,var(--hw-c) 45%,transparent); transform:none; }
  100% { color:var(--ink,#f0f3f7); text-shadow:0 0 0 transparent; transform:none; }
}

/* ---------- E4 + #3: second hero button "Talk to Claudia" ---------- */
.button.secondary {
  background:#ffffff0d; color:var(--ink,#f0f3f7);
  border:1px solid #c9d6e84d; box-shadow:inset 0 1px 0 #ffffff14;
}
.button.secondary:hover { background:#ffffff17; border-color:color-mix(in srgb,var(--ring-answered) 55%,#ffffff); }
.hero-refined .hero-actions .button.secondary { gap:10px; }
.hero-demo svg { width:16px; height:16px; color:var(--ring-answered); }

/* ---------- #5: Meta credential beside the buttons ---------- */
.hero-refined .hero-trust {
  display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap;
  margin:14px 0 0; font-size:13px; line-height:1.5; color:#aebbd0;
}
.hero-trust .provider-icon, .trust-line .provider-icon { width:16px; height:16px; color:#8fd3ee; flex:none; }
.page-hero .trust-line {
  display:flex; align-items:flex-start; gap:10px; max-width:640px;
  margin:18px 0 0; font-size:14px; line-height:1.6; color:#aebbd0;
}
.page-hero .trust-line .provider-icon { margin-top:3px; }

/* ---------- E8 + #40: the hero fits the screen (desktop) ----------
   The stage height follows the window height, so headline, Earth and both
   buttons are visible without scrolling from 600 px tall upward. */
@media (min-width:901px) {
  .hero-refined .orbit-stage {
    --stage-h:clamp(300px,calc(100svh - 470px),470px);
    height:var(--stage-h); margin-top:clamp(12px,2svh,28px);
    --art-width:min(78vw,990px,calc(var(--stage-h) * 2.1));
  }
  .hero-refined .hero-closing { margin-top:clamp(14px,2.4svh,30px); }
}
@media (min-width:901px) and (max-height:820px) {
  .hero.hero-refined { padding-top:12px; padding-bottom:18px; }
  .hero-refined .eyebrow { margin-bottom:6px; font-size:14px; }
  .hero-refined h1.hero-trio { font-size:clamp(38px,7svh,56px); }
  .hero-refined .hero-sub { margin-top:8px; font-size:15px; }
  .hero-refined .hero-choice { display:none; }
  .hero-refined .orbit-stage { --stage-h:clamp(220px,calc(100svh - 360px),440px); }
  .hero-refined .hero-actions { margin-top:0; }
  .hero-refined .hero-trust { margin-top:8px; font-size:12px; }
}
@media (min-width:901px) and (max-height:680px) {
  /* Only the taller two-line headline with its sub-line needs this room. */
  .hero-refined .hero-copy:has(.hero-sub) .eyebrow { display:none; }
  .hero-refined .orbit-stage { --stage-h:clamp(200px,calc(100svh - 320px),440px); }
}

/* ---------- Phones: readable hero (#7) ---------- */
@media (max-width:900px) {
  .hero-refined h1.hero-trio { display:flex; flex-wrap:wrap; justify-content:center; font-size:clamp(38px,10.5vw,52px); gap:0 .28em; }
  .hero-refined .hero-sub { font-size:16px; margin-top:12px; }
  .hero-refined .hero-choice { font-size:14px; }
  .hero-refined .hero-actions .button, .hero-refined .hero-actions .text-link { font-size:14px; }
  .hero-refined .hero-trust { font-size:13px; }
}
@media (max-width:480px) {
  .hero-refined .hero-actions { flex-direction:column; align-items:stretch; }
  .hero-refined .hero-actions .button { width:100%; }
  .hero-refined .node-copy strong { font-size:14px; }
  .hero-refined .node-copy small { font-size:12px; }
}

/* ---------- M1 + #8: button feedback ---------- */
.button { transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease,border-color .15s ease; }
.button svg { transition:transform .15s ease; }
.button:hover svg { transform:translateX(4px); }
.button:active { transform:scale(.98); transition-duration:.08s; }
.button.secondary:hover svg { transform:none; }
.primary:hover { box-shadow:0 8px 30px #e90b7a4d; }
@media (prefers-reduced-motion:reduce) {
  .button,.button svg { transition:none; }
  .button:hover svg,.button:active { transform:none; }
}

/* ---------- M9 + #8: header after the first scroll ----------
   No height change, so nothing below it moves. */
.site-header { transition:background-color .25s ease,box-shadow .25s ease; }
.site-header.is-scrolled { background:#080b14f7; box-shadow:0 1px 0 #ffffff12,0 12px 30px #0007; }

/* ---------- #43: cookie notice in the site's own type, smaller ---------- */
#uv-cookie-notice { font:13px/1.55 Sora,Arial,sans-serif; width:min(380px,calc(100% - 32px)); padding:16px 18px; border-color:#3a4a60; background:#0e1624f2; backdrop-filter:blur(14px); }
#uv-cookie-notice h2 { font:600 15px/1.4 Sora,Arial,sans-serif; margin-bottom:6px; }
#uv-cookie-notice p { margin-bottom:4px; }
#uv-cookie-notice button { font:600 13px/1.4 Sora,Arial,sans-serif; padding:8px 14px; }
#uv-cookie-notice a { min-height:44px; }
#uv-cookie-notice.uv-pos-left { right:auto; left:16px; }
#uv-cookie-notice.uv-pos-top { bottom:auto; top:96px; }
/* Desktop: one compact card, link and both choices on one row. */
@media (min-width:761px) {
  #uv-cookie-notice { display:grid; grid-template-columns:1fr auto auto; column-gap:10px; align-items:center; width:min(440px,calc(100% - 32px)); }
  #uv-cookie-notice h2, #uv-cookie-notice p { grid-column:1 / -1; }
  #uv-cookie-notice .uv-cookie-actions { display:contents; }
  #uv-cookie-notice button { flex:none; min-width:92px; margin-top:4px; }
  #uv-cookie-notice a { margin-top:4px; justify-self:start; }
}

/* ---------- #44: phone bar with the two next steps ---------- */
.uv-mobile-bar { display:none; }
@media (max-width:760px) {
  .uv-mobile-bar {
    position:fixed; z-index:1000; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom,0px));
    display:flex; gap:8px; padding:8px; border-radius:16px;
    background:#0b1220eb; border:1px solid #2c3b52; backdrop-filter:blur(16px);
    box-shadow:0 10px 30px #000a;
    transition:transform .25s ease,opacity .25s ease;
  }
  .uv-mobile-bar[data-state="hidden"] { transform:translateY(130%); opacity:0; pointer-events:none; }
  .uv-mobile-bar a {
    flex:1; min-height:48px; display:inline-flex; align-items:center; justify-content:center; gap:8px;
    border-radius:10px; font-size:14px; font-weight:600; text-decoration:none; line-height:1.2; text-align:center;
  }
  .uv-mobile-bar .uv-bar-book { background:var(--pink,#e90b7a); color:#fff; }
  .uv-mobile-bar .uv-bar-demo { background:#ffffff10; color:#f0f3f7; border:1px solid #c9d6e84d; }
  .uv-mobile-bar svg { width:16px; height:16px; }
  .uv-mobile-bar .uv-bar-demo svg { color:var(--ring-answered); }
  @media (prefers-reduced-motion:reduce) { .uv-mobile-bar { transition:none; } }
}

/* ---------- #7: phone readability for reading text (homepage + footer) ----------
   Diagram labels inside the service map and workflow previews are drawn to fit
   and are left as they are. */
@media (max-width:760px) {
  :is(#industries,#process,#contact,#live-demo,#featured-project) :is(p,li,label):not(.eyebrow):not(.project-category):not(.demo-question-label) { font-size:15px; line-height:1.6; }
  :is(#industries,#process,#contact,#live-demo,#featured-project) :is(strong,.text-link,a.button) { font-size:14px; }
  #industries summary span, #industries summary small { font-size:14px; }
  :is(#industries,#process,#contact,#live-demo,#featured-project,#services) .eyebrow { font-size:12px; }
  #live-demo .demo-question-label, #featured-project .project-category, #featured-project figcaption { font-size:12px; }
  .site-footer a, .site-footer p, .site-footer span:not(.motion-symbol), footer a, footer p { font-size:14px; }
  footer h2 { font-size:12px; }
  #services > .section-wrap > p, #services .services-intro p { font-size:15px; }
}

/* ---------- Animation efficiency (2026-11-12 review, founder approved) ----------
   1. Service map: the dot now moves with transform instead of `left`, so the
      browser no longer redoes layout on every frame. The element spans the
      connector and draws a 10px dot at its left edge; 100% = connector width.
   2. The map's pause (its own button, off-screen, hidden tab) never reached the
      dot: the running rule is more specific and its shorthand reset the play
      state. This rule is more specific again. */
.ump-map.is-enhanced .ump-row .ump-connector::after {
  left:0; right:0; width:auto; box-shadow:none;
  background:linear-gradient(90deg,var(--ump-accent) 0 10px,transparent 10px);
  filter:drop-shadow(0 0 4px var(--ump-accent));
}
.ump-map.is-enhanced .ump-row.is-active .ump-connector::after { animation:uv-ump-flow 4.8s linear infinite; }
.ump-map.is-enhanced.is-paused .ump-row.is-active .ump-connector::after { animation-play-state:paused; }
@keyframes uv-ump-flow {
  0%,8% { transform:translateX(0); opacity:0; }
  13% { opacity:1; }
  35% { transform:translateX(calc(100% - 10px)); opacity:1; }
  40%,100% { transform:translateX(calc(100% - 10px)); opacity:0; }
}
/* 3. The slow star drift behind the Earth rests while the hero is off-screen
      (orbit-capsules.js sets .capsules-active only while it is in view). */
.orbit-stage:not(.capsules-active) .orbit-stars { animation-play-state:paused; }

/* ---------- Phone hero tightening (2026-11-16, before Wave 1) ----------
   The bigger headline and new sub-line pushed the service pills below the
   first phone screen. Smaller Earth, slightly smaller headline, compact pills. */
@media (max-width:480px) {
  .hero.hero-refined { padding-top:28px; }
  .hero-refined .eyebrow { margin-bottom:8px; }
  .hero-refined h1.hero-trio { font-size:clamp(32px,9vw,40px); line-height:1.04; }
  .hero-refined .hero-sub { font-size:14px; line-height:1.45; margin-top:8px; }
  /* With the line under the headline, both hero buttons still fit the first phone screen (390 x 844):
     the line does the eyebrow's job, the repeated "choose one service" line goes, the planet is 6% smaller. */
  .hero-refined .hero-copy:has(.hero-sub) .eyebrow { display:none; }
  .hero-refined .hero-copy:has(.hero-sub) ~ .hero-closing .hero-choice { display:none; }
  /* 44 px below the capsules is the pause control's own tap area, so it never sits on a capsule. */
  .hero-refined .orbit-stage { margin-top:4px; padding-bottom:44px; }
  .hero-refined .hero-copy:has(.hero-sub) ~ .hero-closing { margin-top:6px; }
  .hero-refined .hero-copy:has(.hero-sub) ~ .hero-closing .hero-actions { margin-top:0; }
  .hero-refined .orbit-art { width:70%; margin:0 auto; }
  .hero-refined .node-capsule { min-height:0; padding:10px; }
}
/* The longest pill label ("Recepción con IA y automatización") must not break word by word on phones. */
@media (max-width:480px) {
  .hero-refined .node-receptionists .node-capsule { padding:10px 8px; gap:6px; }
  .hero-refined .node-receptionists .node-copy strong { font-size:13px; letter-spacing:-.01em; }
}
