/* =========================================================
   02 Our POV (Figma 292:202) + founder video band (292:825)
   All selectors prefixed .pov / .pov-band / .pov-chip / .pov-modal
   ========================================================= */

/* Half the band's height: the band straddles the white POV section and the
   black section that follows (Figma: band y=1705..2225, boundary at 1965). */
:root { --pov-overlap: calc((min(100vw, var(--page-max)) - 2 * var(--gutter)) * 0.18678); }
@media (max-width: 1100px) { :root { --pov-overlap: calc((100vw - 2 * var(--gutter)) * 0.3125); } }
@media (max-width: 720px)  { :root { --pov-overlap: calc((100vw - 2 * var(--gutter)) * 0.625); } }

/* ---------- section ---------- */
.pov {
  border-radius: clamp(28px, 4vw, 60px);
  padding-bottom: calc(var(--section-pad) - 4px + var(--pov-overlap));
}

.pov__grid {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 666px);
  justify-content: space-between;
  align-items: start;
  column-gap: 60px;
}

.pov__title { max-width: 600px; }
.pov__body  { max-width: 560px; margin-top: 16px; letter-spacing: -0.02em; }

/* rows */
.pov__rows { margin-top: -4px; }
.pov__row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  column-gap: 47px;
  padding-block: 32px;
  border-top: 1px solid var(--rule);
}
.pov__row:first-child { padding-top: 0; border-top: 0; }
.pov__row:last-child  { padding-bottom: 0; }

.pov__graphic { display: block; width: 180px; height: 112px; }
.pov__graphic img { width: 180px; height: 112px; }
/* blur graphic is 186.2 wide with its first cell 1.2px in from the left */
.pov__graphic .pov__graphic-blur { width: 186.2px; max-width: none; margin-left: -1.2px; }

.pov__row-text { max-width: 439px; padding-top: 12px; }
.pov__row-title { color: var(--black); }
.pov__row-body { max-width: 415px; margin-top: 12px; letter-spacing: -0.02em; }
.pov__row-body--wide { max-width: 439px; }

/* ---------- founder video band ---------- */
.pov-band-wrap {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--pov-overlap));
}

.pov-band {
  position: relative;
  aspect-ratio: 1392 / 520;
  border-radius: 24px;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  isolation: isolate;
}

.pov-band__media { position: absolute; inset: 0 auto 0 0; width: 66.379%; }
.pov-band__thumb { width: 100%; height: 100%; object-fit: cover; }
.pov-band__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.08) 50%, rgba(0,0,0,.72) 100%);
}

/* fluted glass: 18 x 27px strips, each showing a blurred, shifted slice of the same image */
.pov-band__fluted {
  position: absolute; inset: 0 0 0 auto; width: 33.621%;
  display: flex; overflow: hidden; background: var(--black);
}
.pov-band__flute { position: relative; flex: 1 1 0; height: 100%; overflow: hidden; }
.pov-band__flute::before {
  content: ""; position: absolute;
  left: calc(-297px - var(--i) * 20.25px);
  top: -135px;
  width: 1439.1px; height: 1151.55px;
  background: url("../../assets/02-pov/fluted-source.png") center / cover no-repeat;
  filter: blur(4.5px);
}
.pov-band__flute:nth-child(even)::before { top: -127px; }
.pov-band__flute::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 55%, rgba(255,255,255,.05) 100%);
}

/* play button (centred on the band: Figma 658,222 / 76px in 1392x520) */
.pov-band__play {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.pov-band__play img { width: 76px; height: 76px; }
.pov-band__play:hover { transform: scale(1.06); background: rgba(255,255,255,.08); }
.pov-band__play:focus-visible { outline-offset: 4px; }

/* chips — positions are Figma x/y as % of the 1392x520 band */
.pov-band__chips { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pov-chip {
  position: absolute;
  height: auto; padding: 10px 14px 10px 10px; gap: 6px;
  background: rgba(255,255,255,.1);
  box-shadow: none;
  backdrop-filter: blur(5.8px); -webkit-backdrop-filter: blur(5.8px);
  font-size: 16px; line-height: 1.15; letter-spacing: -0.03em;
}
.pov-chip.chip--active { background: linear-gradient(104.5deg, var(--blue-2) 0%, var(--blue-1) 100%); }
.pov-chip__icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: none; }
.pov-chip .pov-chip__icon img { width: auto; height: auto; }
.pov-chip--agency   { left: 45.977%; top: 18.462%; }
.pov-chip--team     { left: 60.776%; top: 37.692%; }
.pov-chip--meetings { left: 76.580%; top: 71.538%; }
.pov-chip--accounts { left: 35.417%; top: 77.308%; }

/* founder signature + name (Figma: signature 40,359 rotated -7.59deg; name 44,452) */
.pov-band__founder {
  position: absolute; left: 40px; bottom: 26px; z-index: 2;
  display: flex; flex-direction: column;
  font-size: 16px; line-height: 1.5; letter-spacing: -0.02em;
}
.pov-band__signature {
  width: 169px; height: 88.6px;
  transform: rotate(-7.59deg);
  margin: 0 0 -16px 0;
  position: relative; z-index: 1;
}
.pov-band__name { padding-left: 4px; color: var(--white); }
.pov-band__org  { padding-left: 4px; color: var(--w-45); }

/* ---------- video modal ---------- */
.pov-modal {
  width: min(1100px, calc(100% - 40px));
  max-width: none; max-height: calc(100% - 40px);
  padding: 0; border: 0; border-radius: 16px;
  background: var(--black); color: var(--white);
  overflow: visible;
}
.pov-modal::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pov-modal[open] { animation: pov-modal-in .35s var(--ease); }
@keyframes pov-modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.pov-modal__inner { position: relative; }
.pov-modal__stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--black);
}
.pov-modal__stage video,
.pov-modal__stage iframe,
.pov-modal__stage img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.pov-modal__soon {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.7));
  font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.03em;
}
.pov-modal__soon small { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--w-50); letter-spacing: 0; }
.pov-modal__close {
  position: absolute; top: -52px; right: 0; z-index: 2;
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255,255,255,.1); color: var(--white);
  transition: background-color .25s var(--ease);
}
.pov-modal__close:hover { background: rgba(255,255,255,.2); }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .pov__grid { grid-template-columns: minmax(0, 1fr); row-gap: 64px; }
  .pov__rows { margin-top: 0; }
  .pov__row-text, .pov__row-body, .pov__row-body--wide { max-width: 560px; }

  .pov-band { aspect-ratio: 16 / 10; }
  .pov-band__media { width: 72%; }
  .pov-band__fluted { width: 28%; }
  .pov-band__chips {
    inset: 20px 20px auto 20px;
    display: flex; flex-wrap: wrap; gap: 8px;
  }
  .pov-chip { position: static; }
}

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  .pov__row { grid-template-columns: minmax(0, 1fr); row-gap: 16px; padding-block: 28px; }
  .pov__row-text { padding-top: 0; }
  .pov__graphic { width: 144px; height: 90px; }
  .pov__graphic img { width: 144px; height: 90px; }
  .pov__graphic .pov__graphic-blur { width: 149px; margin-left: -1px; }
  .pov__br { display: none; }

  .pov-band { aspect-ratio: 4 / 5; border-radius: 20px; }
  .pov-band__media { width: 100%; }
  .pov-band__thumb { object-position: 30% center; }
  .pov-band__fluted { display: none; }
  .pov-band__chips { inset: 16px 16px auto 16px; gap: 6px; }
  .pov-chip { font-size: 14px; padding: 8px 12px 8px 8px; }
  .pov-band__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .pov-band__play img { width: 64px; height: 64px; }
  .pov-band__founder { left: 20px; bottom: 20px; font-size: 14px; }
  .pov-band__signature { width: 130px; height: 68px; margin-bottom: -12px; }
  .pov-modal__close { top: -48px; }
}

@media (prefers-reduced-motion: reduce) {
  .pov-modal[open] { animation: none; }
  .pov-band__play:hover { transform: none; }
}
