/* ova.design: the AVO website. Tokens, type and surfaces come from splat-glass.css (a copy of
   docs/design/landing/shared); this file lays out the pages from the AVO Website Board. */

/* the photos' dissolve edges reach past the wrap; never let them widen the page */
main, .footer { overflow-x: clip; }

.skip { position: absolute; left: var(--edge); top: -60px; z-index: 40; }
.skip:focus { top: 12px; }

/* ---------- the floating nav pill ---------- */
.nav {
  position: fixed; top: 20px; left: 0; right: 0; z-index: 30;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0 var(--edge); pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.nav.tucked { transform: translateY(-120%); opacity: 0; }
.nav.tucked.open { transform: none; opacity: 1; }
.nav > * { pointer-events: auto; }
.pill {
  height: 56px; padding: 0 8px 0 16px; display: flex; align-items: center; gap: 2px;
  max-width: 100%; border-radius: 48px;
}
.pill .brand { gap: 10px; padding-right: 14px; }
.pill .brand img { width: 30px; height: 30px; }
.pill-link {
  position: relative; height: 40px; padding: 0 14px; display: inline-flex; align-items: center;
  font: 700 15px/1 var(--f-display); color: rgba(255, 255, 255, 0.72); white-space: nowrap;
}
.pill-link:hover { color: #fff; text-decoration: none; }
.pill-link[aria-current="page"] { color: #fff; }
.pill-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 4px; background: var(--hot);
}
.pill-rule { width: 1px; height: 20px; margin: 0 8px; background: var(--rule); }
.pill .cta { margin-left: 4px; }
.menu-toggle { display: none; }
.sheet { display: none; }

@media (max-width: 899px) {
  .nav { top: 12px; padding: 0 16px; }
  .pill { width: 100%; max-width: 420px; padding: 0 8px 0 6px; gap: 6px; }
  .pill .links, .pill .pill-rule, .pill .signin { display: none; }
  .pill .brand { flex-grow: 1; padding: 0; gap: 8px; }
  .pill .brand img { width: 28px; height: 28px; }
  .pill .cta { height: 40px; padding: 0 16px; font-size: 14px; }
  .pill .cta .wide { display: none; }
  .menu-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0;
    border-radius: 48px; background: none; color: #fff; cursor: pointer;
  }
  .menu-toggle .icon { width: 20px; height: 20px; }
  .nav.open .sheet {
    display: flex; flex-direction: column; width: 100%; max-width: 420px; padding: 10px; border-radius: 28px;
    background: rgba(13, 17, 23, 0.9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  }
  .sheet a {
    height: 52px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between;
    font: 700 17px/1 var(--f-display); color: rgba(255, 255, 255, 0.8);
  }
  .sheet a:hover { color: #fff; text-decoration: none; }
  .sheet a[aria-current="page"] { color: #fff; }
  .sheet a[aria-current="page"]::after { content: ""; width: 6px; height: 6px; border-radius: 6px; background: var(--hot); }
  .sheet hr { width: calc(100% - 32px); height: 1px; margin: 6px 16px; border: 0; background: rgba(255, 255, 255, 0.12); }
}
.links { display: flex; align-items: center; gap: 2px; }

/* ---------- hero: the film ---------- */
.hero { position: relative; height: clamp(680px, 100svh, 1000px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; background: var(--ground); }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, var(--ground) 0%, rgba(13, 17, 23, 0.82) 24%, rgba(13, 17, 23, 0) 58%),
    linear-gradient(to right, rgba(13, 17, 23, 0.55) 0%, rgba(13, 17, 23, 0) 55%),
    linear-gradient(to bottom, rgba(13, 17, 23, 0.55) 0%, rgba(13, 17, 23, 0) 22%);
}
.hero-inner {
  position: relative; z-index: 2; padding-bottom: 48px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 36px 48px;
}
.hero-copy { flex: 1 1 420px; max-width: 620px; display: flex; flex-direction: column; gap: 18px; }
.hero-copy .t-display .intro { display: block; color: var(--text-2); }
.hero-copy .t-lead { max-width: 520px; color: rgba(255, 255, 255, 0.78); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.code-link { font-size: 14px; color: rgba(255, 255, 255, 0.78); }
.code-link a { color: var(--link); }

.film { position: relative; flex: 0 1 460px; display: flex; flex-direction: column; gap: 18px; }
.film-thumbs { display: flex; justify-content: center; gap: 14px; }
.film-thumb {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0;
  background: none; cursor: pointer; font: 500 13px/1.2 var(--f-body); color: rgba(255, 255, 255, 0.6);
}
.film-thumb img { width: 96px; height: 60px; object-fit: cover; border-radius: 14px; display: block; opacity: 0.72; }
.film-thumb[aria-current="true"] { color: #fff; }
.film-thumb[aria-current="true"] img { opacity: 1; }
.film-bar { height: 64px; padding: 0 16px 0 12px; display: flex; align-items: center; gap: 12px; }
.film-bar .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.film-bar .label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.film-step { font: 700 15px/1.2 var(--f-display); white-space: nowrap; }
.film-step span { color: rgba(255, 255, 255, 0.5); font-weight: 400; }
.film-bar .t-mono { color: rgba(255, 255, 255, 0.55); }
.play { width: 40px; height: 40px; padding: 0; flex: none; display: grid; place-items: center; }
.play .icon { width: 18px; height: 18px; }

@media (max-width: 1023px) {
  .hero-inner { flex-direction: column; align-items: stretch; }
  .film { flex-basis: auto; width: 100%; max-width: 520px; }
  .film-thumbs { display: none; }
}
@media (max-width: 639px) {
  .hero { height: max(640px, 100svh); }
  .hero-film { object-position: 50% 30%; }
  .hero-inner { padding-bottom: 28px; gap: 28px; }
  .cta-row .btn { flex: 1 1 100%; }
}

/* ---------- sections ---------- */
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 48px; max-width: 760px; }
.section-head .t-lead { max-width: 620px; }

.steps { list-style: none; margin: 0; padding: 0; }
.step { padding: 28px 24px 26px; display: flex; flex-direction: column; gap: 12px; min-height: 280px; }
.step .top-row { display: flex; align-items: center; justify-content: space-between; }
.step .glyph { width: 48px; height: 48px; display: grid; place-items: center; }
.step .glyph .icon { width: 22px; height: 22px; }
.step .t-body { color: rgba(255, 255, 255, 0.7); }
.step .t-mono { margin-top: auto; }
@media (max-width: 639px) { .step { min-height: 0; padding: 24px 20px; } }

.tech-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.tech-copy { display: flex; flex-direction: column; gap: 18px; }
.pipeline { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pipeline li { display: inline-flex; align-items: center; gap: 10px; }
.pipeline li + li::before { content: ""; width: 14px; height: 1.5px; background: rgba(255, 255, 255, 0.35); }
.compare { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.compare-stage { position: relative; aspect-ratio: 16 / 9; width: 100%; }
.compare-stage .c-mesh { clip-path: inset(-40px -40px -40px calc(30px + (100% - 60px) * var(--s, 0.5))); }
.compare-handle { position: absolute; top: 6%; bottom: 6%; left: calc(var(--s, 0.5) * 100%); width: 0; z-index: 2; pointer-events: none; }
.compare-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -0.75px; width: 1.5px; background: rgba(255, 255, 255, 0.7); }
.compare-knob { position: absolute; top: 50%; left: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; display: grid; place-items: center; }
.compare-stage input[type="range"] { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-stage:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 6px; }
.compare-tags { position: absolute; inset: auto 0 14px; z-index: 2; display: flex; justify-content: space-between; padding: 0 22px; pointer-events: none; color: rgba(255, 255, 255, 0.7); }
.compare figcaption { display: flex; justify-content: space-between; gap: 12px; }
@media (max-width: 1023px) { .tech-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px var(--gap); list-style: none; margin: 0; padding: 0; }
.mode { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; align-items: start; }
.mode .glyph { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; }
.mode .name { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 9px; }
.mode .t-caption { max-width: 34ch; }
@media (max-width: 1023px) { .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .modes { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

.audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gap); }
.audience { display: flex; flex-direction: column; gap: 12px; }
.audience .edge-img { aspect-ratio: 16 / 10; margin: 0 0 14px; }
@media (max-width: 1023px) {
  .audiences { grid-template-columns: minmax(0, 1fr); }
  .audience { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 28px; align-items: start; }
  .audience .edge-img { grid-row: span 3; margin: 0; }
}
@media (max-width: 639px) { .audience { display: flex; } .audience .edge-img { margin: 0 0 10px; } }

.faq { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 56px; }
.faq div { display: flex; flex-direction: column; gap: 8px; }
.faq dt { font: 800 17px/1.3 var(--f-display); }
.faq dd { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-2); }
@media (max-width: 767px) { .faq { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- connect ---------- */
.connect { display: flex; justify-content: center; }
.connect-card { width: 100%; max-width: 640px; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.connect-card .head { display: flex; flex-direction: column; gap: 12px; }
.invite-form { display: flex; flex-direction: column; gap: 14px; }
.invite-form label { font-size: 14px; font-weight: 500; }
.invite-form .field { width: 100%; height: 44px; }
.invite-form .btn { margin-top: 6px; width: 100%; }
.invite-form .note { min-height: 20px; }
.connect-more { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; border-top: 1px solid var(--rule); }
.connect-more p { padding-top: 12px; }

/* ---------- footer ---------- */
.footer { padding: var(--section) 0 40px; }
.footer .wrap { display: flex; flex-direction: column; gap: 56px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.footer-about { flex: 1 1 300px; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }
.socials { display: flex; gap: 4px; margin-left: -10px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; color: var(--text-2); }
.socials a:hover { color: #fff; }
.socials .icon { width: 20px; height: 20px; }
.footer-cols { flex: 2 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 32px; }
.footer-cols nav { display: flex; flex-direction: column; gap: 14px; }
.footer-cols a { font-size: 14px; color: var(--text-2); }
.footer-cols a:hover { color: #fff; text-decoration: none; }
.sign-off { margin: 0; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 0 24px; }
.giant { position: relative; display: block; font: 900 clamp(120px, 25vw, 320px)/0.78 var(--f-display); letter-spacing: 0.01em; color: #fff; }
.giant span { display: block; }
.giant .g-core { position: absolute; inset: 0; filter: url(#sg-type-core); -webkit-mask-image: linear-gradient(to right, #000 38%, transparent 104%); mask-image: linear-gradient(to right, #000 38%, transparent 104%); }
.giant .g-specks { filter: url(#sg-type-specks); }
.sign-by { font: 400 clamp(18px, 2.2vw, 30px)/1 var(--f-body); color: var(--text-2); padding-bottom: 0.3em; white-space: nowrap; }
.sign-by b { font: 900 1em/1 var(--f-display); letter-spacing: 0.06em; color: #fff; }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.footer-base a { font-size: 13px; color: var(--text-2); }

/* ---------- about ---------- */
.page-hero { padding: 168px 0 0; }
.page-hero .wrap { display: flex; flex-direction: column; gap: 18px; max-width: 860px; margin-inline: max(var(--edge), (100% - var(--content)) / 2); }
.page-hero .t-display .then { display: block; color: var(--text-2); }
.story { list-style: none; margin: 0; padding: 0; }
.story .step { min-height: 300px; }
.partners { margin-top: 56px; display: flex; flex-direction: column; gap: 18px; }
.partners ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 40px; }
.partners li { font: 900 18px/1 var(--f-display); letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.55); }
@media (max-width: 639px) { .page-hero { padding-top: 120px; } }

/* ---------- 404 ---------- */
.lost { min-height: 70svh; display: flex; align-items: center; }
.lost .wrap { display: flex; flex-direction: column; gap: 18px; padding-top: 120px; }
