/* Escritório Virtual 3D page: each "take" is a tall section with a pinned video that the scroll scrubs
   (js/escritorio.js). The poster image is the first frame, so the take is sharp before the video arrives. */
.take { position: relative; height: calc(var(--len, 4) * 100vh); background: #06080B; }
.take__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.take__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
video.take__media { opacity: 0; transition: opacity .6s var(--ease); transform: translateZ(0); }   /* its own layer: a new frame repaints nothing else */
video.take__media.is-ready { opacity: 1; }
.take__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(6, 8, 11, .72), transparent 24%, transparent 46%, rgba(6, 8, 11, .92)), radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(6, 8, 11, .6)); }
/* The veils that come and go with the scroll are layers of their own, faded by opacity: changing the colours of a
   full-screen gradient on every frame repainted the whole screen, which phones do slowly. */
.take__shade--hero, .take__shade--end { background: linear-gradient(180deg, rgba(6, 8, 11, .7), transparent 22%, transparent 50%, rgba(6, 8, 11, .92)); }
.take__shade--hero::before, .take__shade--end::before { content: ""; position: absolute; inset: 0; will-change: opacity; }
.take__shade--hero::before { opacity: var(--veil, 1); background: linear-gradient(90deg, rgba(6, 8, 11, .86), rgba(6, 8, 11, .5) 48%, transparent 78%); }
.take__shade--end { background: linear-gradient(180deg, rgba(6, 8, 11, .75), rgba(6, 8, 11, .12) 30%, rgba(6, 8, 11, .15) 70%, rgba(6, 8, 11, .95)); }
.take__shade--end::before { opacity: var(--veil, 0); background: linear-gradient(180deg, transparent, rgba(6, 8, 11, .36) 30%, rgba(6, 8, 11, .4) 70%, transparent); }

/* the slate: which take is on screen, and how far through it */
.take__slate { position: absolute; left: var(--pad); top: 96px; display: flex; align-items: center; gap: 12px; font: 500 .7rem/1 var(--disp); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .72); text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.take__slate b { font-weight: 500; color: var(--ember2); }
.take__slate i { position: relative; width: 96px; height: 1px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.take__slate i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ember), var(--blue2)); transform-origin: 0 50%; transform: scaleX(var(--tp, 0)); }

/* captions: they fade in and out with the take's progress (--o comes from the script) */
.take__cap { position: absolute; left: var(--pad); bottom: clamp(64px, 11vh, 120px); max-width: min(540px, calc(100% - var(--pad) * 2)); display: grid; gap: 16px; opacity: var(--o, 0); transform: translateY(calc((1 - var(--o, 0)) * 40px)); pointer-events: none; text-shadow: 0 2px 30px rgba(0, 0, 0, .75); }
.take__cap:not(.is-live):not(.take__cap--hero) { visibility: hidden; }   /* off screen in every sense until its turn */
.take__cap--hero { --o: 1; }                                             /* on screen before the script runs */
.take__cap.is-on { pointer-events: auto; }
.take__cap--r { left: auto; right: var(--pad); }
.take__cap h2 { font-size: clamp(2.1rem, 4.6vw, 4.2rem); }
.take__cap h3 { font-size: clamp(1.5rem, 2.8vw, 2.4rem); }
.take__cap p:not(.eyebrow):not(.fine) { color: #d3dae4; font-size: clamp(1rem, 1.3vw, 1.15rem); }
.take__cap .eyebrow { color: #c3ccd9; }
.take__cap .num { color: var(--ember2); }

.take__cap--hero { top: 0; bottom: 0; align-content: center; gap: 22px; max-width: min(760px, calc(100% - var(--pad) * 2)); padding-top: 70px; transform: translateY(calc((1 - var(--o, 0)) * -40px)); }
.take__title { font: 800 clamp(2.9rem, 8.2vw, 7.4rem)/.96 var(--sans); letter-spacing: -.05em; display: grid; }
.take__title span { display: block; }
/* the gradient is painted only inside the word's box, and the tight letter-spacing leaves the last letter sticking out
   of it: the padding widens the box, and the negative margin keeps the full stop where it was */
.take__title em { display: inline-block; padding: 0 .08em .06em 0; margin: 0 -.08em -.06em 0; background: linear-gradient(100deg, var(--ember) 0%, var(--ember2) 28%, #fff 50%, var(--blue2) 72%, var(--blue) 100%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: cool 7s var(--ease2) infinite alternate; }
.take__lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: #d3dae4; max-width: 33em; }
.take__hint { position: absolute; right: var(--pad); bottom: 34px; display: flex; align-items: center; gap: 14px; font: 500 .7rem/1 var(--disp); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .7); opacity: var(--veil, 1); }

.take__cap--end { left: var(--pad); right: var(--pad); margin: 0 auto; top: 0; bottom: 0; padding-top: 60px; align-content: center; justify-items: center; text-align: center; max-width: 820px; }
.take__cap--end h2 { font-size: clamp(2.2rem, 5.4vw, 4.8rem); }
.take__cap--end p:not(.eyebrow):not(.fine) { max-width: 34em; }
.take__cap--end .fine { color: #aeb7c4; }
.take__anchor { position: absolute; top: 34%; }

/* the areas an agent can cover */
.areas { padding: clamp(90px, 12vw, 180px) 0; }
.areas__list { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: flex; flex-wrap: wrap; gap: 12px; }
.areas__list li { padding: clamp(14px, 1.6vw, 22px) clamp(20px, 2.4vw, 34px); border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); font: 700 clamp(1.1rem, 2.4vw, 2rem)/1 var(--sans); letter-spacing: -.03em; transition: border-color .4s, color .4s, transform .5s var(--ease); }
.areas__list li:hover { border-color: var(--blue2); color: var(--blue2); transform: translateY(-3px); }

@media (max-width: 700px) {
  .take__slate { top: 84px; }
  .take__slate i { width: 56px; }
  .take__cap--r { right: auto; left: var(--pad); }
  .take__cap { bottom: 96px; max-width: calc(100% - var(--pad) * 2); }   /* clear of the WhatsApp button */
  .take__cap--hero { bottom: 0; padding-top: 90px; align-content: center; }
  .take__shade--hero { background: linear-gradient(180deg, rgba(6, 8, 11, .55), transparent 60%, rgba(6, 8, 11, .94)); }
  .take__shade--hero::before { background: linear-gradient(180deg, rgba(6, 8, 11, .3), rgba(6, 8, 11, .62) 60%, transparent); }
  .take__cap, .take__slate { text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }   /* a wide blurred shadow is slow to repaint on a phone */
  .take__hint { display: none; }
  .take__cap--end .btn { width: 100%; justify-content: center; }
}
