/* Vídeo de apresentação da home: cartão grande logo a seguir ao hero, com
   cursor próprio "Pausar / Reproduzir" (estilo antigravity.google). */
.home-video-section { padding: 28px 0 8px; }
.home-video-section .container { max-width: 1320px; }
.home-video-copy { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; flex-wrap: wrap; }
.home-video-copy h2 { margin: 6px 0 0; font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -.035em; line-height: 1.12; }
.home-video-copy h2 span { color: #8b8e96; }
.home-video-copy p { margin: 0; max-width: 380px; color: #a6a7ab; font-size: 14px; line-height: 1.6; }

.home-video {
  position: relative; margin: 0; border-radius: 28px; overflow: hidden; background: #05080c;
  aspect-ratio: 16 / 9; max-width: 100%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 40px 120px rgba(0,0,0,.55);
  transform: scale(var(--hv-scale, 1)); transform-origin: 50% 0; will-change: transform;
}
.home-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) { .home-video { cursor: none; } }

/* Cursor que segue o rato por cima do vídeo */
.home-video-cursor {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none;
  display: flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: #0b0d12; font: 600 14px/1 Poppins, system-ui, sans-serif; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  opacity: 0; transform: translate(-50%, -50%) translate(var(--cx, 0px), var(--cy, 0px)) scale(.4);
  transition: opacity .18s ease, transform .18s ease;
}
.home-video.is-hover .home-video-cursor { opacity: 1; transform: translate(-50%, -50%) translate(var(--cx, 0px), var(--cy, 0px)) scale(1); }
.home-video-cursor svg { width: 18px; height: 18px; }

/* Botão fixo no canto: teclado, ecrãs táteis e quem prefere menos movimento */
.home-video-btn {
  position: absolute; right: 18px; bottom: 18px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer;
  background: rgba(8, 11, 16, .62); color: #fff; backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.home-video-btn svg { width: 20px; height: 20px; }
.home-video-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .home-video.is-hover .home-video-btn { opacity: 1; } }

.home-video [data-icon="play"] { display: none; }
.home-video.is-paused [data-icon="play"] { display: block; }
.home-video.is-paused [data-icon="pause"] { display: none; }

@media (max-width: 700px) {
  .home-video-section { padding-top: 12px; }
  .home-video { border-radius: 18px; }
  .home-video-btn { right: 12px; bottom: 12px; width: 40px; height: 40px; }
}

/* Play grande ao centro enquanto está parado (ex.: "reduzir movimento" ligado) */
.home-video-big {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
  background: rgba(255,255,255,.92); color: #0b0d12; box-shadow: 0 16px 40px rgba(0,0,0,.4);
  opacity: 0; transform: scale(.85); transition: opacity .2s ease, transform .2s ease;
}
.home-video-big svg { width: 34px; height: 34px; margin-left: 4px; }
.home-video.is-paused .home-video-big { opacity: 1; transform: scale(1); }
@media (hover: hover) and (pointer: fine) { .home-video.is-paused.is-hover .home-video-big { opacity: 0; } }
@media (max-width: 700px) { .home-video-big { width: 64px; height: 64px; margin: -32px 0 0 -32px; } .home-video-big svg { width: 26px; height: 26px; } }

/* Chapters and controls share the same timeline as the rendered film. */
.home-video{border-radius:20px}.home-video-controls{position:absolute;z-index:4;inset:auto 0 0;display:flex;align-items:center;gap:14px;padding:42px 22px 18px;background:linear-gradient(transparent,rgba(4,7,11,.92));cursor:default}.home-video-controls .home-video-btn{position:static;flex:0 0 36px;width:36px;height:36px;background:rgba(255,255,255,.09);backdrop-filter:none}.home-video-controls .home-video-btn svg{width:16px;height:16px}.home-video-now{display:flex;flex-direction:column;gap:4px;flex:0 1 235px;min-width:0;font-size:12px;color:#e0e4eb}.home-video-now>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-video-time{font-size:10px;font-variant-numeric:tabular-nums;color:#9ca6b5}.home-video-seek{flex:1;min-width:45px;display:flex;align-items:center;padding:12px 0;cursor:pointer}.home-video-seek input{appearance:none;-webkit-appearance:none;width:100%;height:3px;margin:0;border:0;border-radius:5px;background:linear-gradient(to right,#d9e2ef var(--seek-fill,0%),rgba(255,255,255,.2) var(--seek-fill,0%));cursor:pointer}.home-video-seek input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:10px;height:10px;border-radius:50%;background:#f5f7fb;border:0}.home-video-seek input::-moz-range-thumb{width:10px;height:10px;border-radius:50%;background:#f5f7fb;border:0}.home-video-seek input:focus-visible{outline:2px solid #b9cde8;outline-offset:7px}.home-video-fullscreen{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border:0;border-radius:7px;background:transparent;color:#dce4ef;cursor:pointer}.home-video-fullscreen[hidden]{display:none}.home-video-fullscreen:hover{background:rgba(255,255,255,.12)}.home-video-fullscreen svg{width:18px;height:18px}.home-video-fullscreen:focus-visible{outline:2px solid white;outline-offset:2px}.home-video-chapters{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.home-video-chapters button{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid #2b3039;border-radius:8px;background:#12151b;color:#919aaa;font-family:inherit;font-size:12px;font-weight:500;line-height:1.3;cursor:pointer;transition:background .18s,color .18s,border-color .18s}.home-video-chapters button:hover{color:#f2f4f8;border-color:#64748b}.home-video-chapters button[aria-current="true"]{color:#edf2f8;background:#222b39;border-color:#73849c}.home-video-chapters button:focus-visible{outline:2px solid #c9d6ea;outline-offset:3px}.home-video-chapter-number{font-size:9px;color:#697587;letter-spacing:.04em}.home-video-chapters button[aria-current="true"] .home-video-chapter-number{color:#b6c7df}.home-video-chapters button:disabled{opacity:.55;cursor:default}.home-video-note{color:#727b89;font-size:11px;line-height:1.5;margin:12px 0 0}.home-video-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.home-video:fullscreen{border-radius:0;aspect-ratio:auto;width:100%;height:100%;transform:none;box-shadow:none}.home-video:fullscreen video{object-fit:contain}.home-video:fullscreen .home-video-controls{padding-inline:28px}@media(max-width:700px){.home-video-controls{gap:9px;padding:30px 12px 10px}.home-video-now{flex-basis:125px;font-size:10px}.home-video-chapters{gap:6px;margin-top:14px}.home-video-chapters button{padding:8px 10px;font-size:11px}.home-video-chapter-number{font-size:8px}.home-video-note{font-size:10px}}@media(max-width:430px){.home-video-now{flex-basis:96px}.home-video-controls{gap:8px}.home-video-controls .home-video-btn{width:30px;height:30px;flex-basis:30px}.home-video-time{font-size:9px}}@media(prefers-reduced-motion:reduce){.home-video,.home-video-cursor,.home-video-big,.home-video-chapters button{transition:none}.home-video{transform:none;will-change:auto}}
