/* Home cover (SGV-style full-viewport video) + About page. */
.cover{position:relative;min-height:100vh;min-height:100svh;display:flex;align-items:flex-end;color:#fff;overflow:hidden;background:#0F1A3D}
.cover-media{position:absolute;inset:0;z-index:0;margin:0}
.cover-media picture,.cover-media img,.cover-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:25% 50%;display:block}
.cover-media video{opacity:0;transition:opacity .8s ease}
.cover-media video.is-playing{opacity:1}
.cover::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(10,18,48,.55) 0,rgba(10,18,48,.25) 70px,rgba(10,18,48,0) 130px)}
.cover .wrap{position:relative;z-index:2;width:100%;padding-top:120px;padding-bottom:88px}
.cover-copy{max-width:680px}
.cover .eyebrow-line{display:flex;align-items:center;gap:12px;font:600 13px/1.3 Inter,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#CFE3FF;margin-bottom:18px}
.cover .eyebrow-line::before{content:"";width:36px;height:3px;border-radius:2px;background:var(--sky);flex:none}
.cover h1{font:700 clamp(40px,6.4vw,80px)/1.05 Poppins,Inter,sans-serif;letter-spacing:-.02em;margin-bottom:18px}
.cover p.lead{font-size:clamp(17px,1.5vw,20px);color:#DCE6F7;max-width:560px;margin-bottom:30px}
.cover .ctas{display:flex;flex-wrap:wrap;align-items:center;gap:22px}
.cover .text-link{color:#fff;font-weight:600;text-decoration:none;border-bottom:2px solid rgba(255,255,255,.45);padding-bottom:3px}
.cover .text-link:hover{border-color:#fff}
.cover .hero-contact{margin-top:22px;font-size:14px;color:#B9C7E3}
.cover-pause{position:absolute;z-index:3;right:24px;top:96px;width:44px;height:44px;border-radius:50%;border:2px solid rgba(255,255,255,.6);background:rgba(10,18,48,.35);color:#fff;cursor:pointer;display:grid;place-items:center}
.cover-pause:hover{background:rgba(10,18,48,.6)}
.cover-pause:focus-visible{outline:3px solid var(--sky);outline-offset:3px}
.cover-pause svg{width:18px;height:18px;fill:currentColor}
.cover-pause .i-play{display:none}
.cover-pause[aria-pressed="true"] .i-play{display:block}
.cover-pause[aria-pressed="true"] .i-pause{display:none}
.cover-pause[hidden]{display:none}
@media (max-width:640px){
  .cover{min-height:max(560px,100svh)}
  .cover .wrap{padding-top:100px;padding-bottom:84px}
  .cover .ctas .btn{width:100%;justify-content:center}
  .cover .ctas{gap:16px}
  .cover-pause{right:16px;top:88px}
}
@media (prefers-reduced-motion:reduce){.cover-media video{display:none}}

/* home teaser */
.about-teaser .split{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.about-teaser img{border-radius:20px;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:50% 38%;box-shadow:var(--shadow)}
@media (max-width:860px){.about-teaser .split{grid-template-columns:1fr;gap:28px}}

/* About page office video */
.office-video{background:#fff}
.office-video .split{display:grid;grid-template-columns:minmax(0,360px) 1fr;gap:56px;align-items:center}
.office-frame{position:relative;margin:0;width:100%;aspect-ratio:9/16;border-radius:24px;overflow:hidden;background:#133488;box-shadow:0 30px 70px rgba(5,10,30,.35)}
.office-frame video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.office-frame figcaption{margin-top:12px;font:600 14px/1.3 Inter;color:var(--muted);text-align:center}
.office-wrap{max-width:360px;justify-self:center;width:100%}
@media (max-width:860px){.office-video .split{grid-template-columns:1fr;gap:32px}.office-wrap{max-width:320px}}
.office-cap{margin-top:12px;font:600 14px/1.3 Inter,sans-serif;color:var(--muted);text-align:center}
.about-ctas{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px}

/* Tagline is inside the cover video; keep H1 for SEO/screen readers only */
.cover-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* ---- Cover placement ----
   The video carries two burned-in taglines: "KASANGGA MO SA NEGOSYO" centred at ~27% from top (23-78% of width, ~12-16 s)
   and the end lockup "Kasangga mo sa Negosyo." at lower left (x ~6-39%, y ~71-91%, ~16-21.75 s).
   Aspect 3:2 .. 21:10 (most laptops/desktops): full-viewport cover, object-fit cover, x 25% / y centre -> both stay inside the crop.
   Aspect > 21:10 (ultra-wide / short windows) and 1:1 .. 3:2 (4:3 laptops, iPad landscape): cover is exactly the
   16:9 frame (height 56.25vw), never cropped; the transparent header sits over the sky above the tagline.
   Portrait (aspect <= 1:1): the whole 16:9 frame sits BELOW the fixed 78px header, never cropped. */
@media (min-aspect-ratio:21/10),(max-aspect-ratio:3/2){
  .cover{min-height:0;height:56.25vw;align-items:stretch}
  .cover .wrap{padding:0}
}
@media (max-aspect-ratio:1/1){
  .cover{min-height:0;height:calc(78px + 56.25vw);align-items:stretch}
  .cover .wrap{padding:0}
  .cover-media{inset:78px 0 auto 0;aspect-ratio:16/9;height:auto}
  .cover::after{background:none}
  .cover-pause{top:90px;right:12px;width:38px;height:38px}
  /* Vertical cut available (section data-mobile="1"): full-screen portrait cover */
  /* height = min(screen, 9:16 frame at full width): tall phones (390x844, 360x800) get the whole frame width, no side crop of the tagline */
  .cover[data-mobile="1"]{min-height:0;height:min(100vh,177.78vw);height:min(100svh,177.78vw)}
  .cover[data-mobile="1"] .cover-media{inset:0;aspect-ratio:auto}
  .cover[data-mobile="1"] .cover-media img,.cover[data-mobile="1"] .cover-media video{object-position:50% 50%}
  .cover[data-mobile="1"]::after{background:linear-gradient(180deg,rgba(10,18,48,.55) 0,rgba(10,18,48,0) 130px)}
}
