/* youcanseeeverything.ai
   One screen. The portrait loop fills the viewport; the title, one button
   and a billing block sit over it. The call (the <tavus-embed> element)
   takes the whole viewport when it starts. Nothing scrolls. */

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/bodoni-moda-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo Narrow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/archivo-narrow-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo Narrow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/archivo-narrow-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo Narrow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/archivo-narrow-latin-600-normal.woff2") format("woff2");
}

:root {
  --white: #fff;
  --mute: rgba(255, 255, 255, 0.64);
  --faint: rgba(255, 255, 255, 0.42);
  --rule: rgba(255, 255, 255, 0.2);
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", "Bodoni MT", Georgia, serif;
  --sans: "Archivo Narrow", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(18px, 3.2vw, 44px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; overflow: hidden; }
body {
  margin: 0;
  background: #000;
  color: var(--white);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }

/* ---- the call ----------------------------------------------------------- */
tavus-embed.call {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

/* ---- the poster ---------------------------------------------------------- */
.poster {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: #000;
  transition: opacity 0.9s ease, visibility 0.9s;
}
/* the portrait is a band across the top of the page, cropped from the
   brow to just above the lips, so the eyes carry it and the mouth stays
   out of frame; app.js sets the crop (left/top/width/height of the still
   and the loop) from the known framing of the source. The still is the
   backdrop; the loop fades in over it once it plays. */
.poster-media {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 58%;
  overflow: hidden;
  background: #000;
  filter: saturate(0.76) contrast(1.05) brightness(0.84);
}
.poster-still,
.poster-video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 56% 30%;
}
.poster-video {
  z-index: 1;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.poster-video.ready { opacity: 1; }
.poster-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.9) 14%, rgba(0, 0, 0, 0.45) 36%, rgba(0, 0, 0, 0.08) 60%, rgba(0, 0, 0, 0.3) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 34%, rgba(0, 0, 0, 0) 60%);
}
body[data-state="starting"] .poster,
body[data-state="live"] .poster,
body[data-state="unavailable"] .poster {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---- the sheet: top line, title block, billing block ------------------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: var(--pad);
  padding-bottom: max(var(--pad), env(safe-area-inset-bottom));
  transition: opacity 0.5s ease, visibility 0.5s;
}
body[data-state="starting"] .sheet,
body[data-state="live"] .sheet,
body[data-state="unavailable"] .sheet {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* top line: the wordmark lockup left, the studio credit right */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.top a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; transition: color 0.2s; }
.top a:hover { color: var(--white); }
.eye { width: 22px; height: 22px; flex: none; color: var(--white); }
.studio { color: rgba(255, 255, 255, 0.6); }

/* the title block */
.bill {
  margin-top: auto;
  padding-bottom: clamp(18px, 3.4vh, 40px);
}
.now {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(14px, 2.2vh, 22px);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  animation: reveal 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.now::before { content: ""; width: 28px; height: 1px; background: rgba(255, 255, 255, 0.55); }
.title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 clamp(20px, 3.2vh, 36px);
  font-family: var(--serif);
  font-weight: 500;
  text-transform: uppercase;
  animation: reveal 1.2s 0.08s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.t1 {
  font-size: clamp(22px, min(3.2vw, 5vh), 52px);
  line-height: 1;
  letter-spacing: 0.22em;
  padding-left: 0.08em;
  margin-bottom: clamp(8px, 1.4vh, 16px);
}
.t2 {
  font-size: clamp(54px, min(9.4vw, 15vh), 156px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  margin-left: -0.03em;
}
.deck {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 18px 36px;
  animation: reveal 1.2s 0.16s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.cta {
  align-self: center;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #000;
  background: var(--white);
  border: 1px solid var(--white);
  border-radius: 0;
  padding: 19px 34px 18px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cta:hover { background: transparent; color: var(--white); }
.cta[disabled] { cursor: progress; background: rgba(255, 255, 255, 0.75); color: #000; }

/* the specs, set like the credit block on a one-sheet */
.specs {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 22px;
  margin: 0;
  align-self: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.2;
}
.specs > div { display: contents; }
.specs dt { color: rgba(255, 255, 255, 0.48); padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.specs dd { margin: 0; color: rgba(255, 255, 255, 0.86); font-weight: 500; padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); white-space: nowrap; }
.specs > div:first-child dt, .specs > div:first-child dd { border-top: 0; }
.note {
  margin: 14px 0 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--mute);
}
.note:empty { display: none; }
@keyframes reveal {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* billing block: the small print, set the way a one-sheet sets it */
.billing {
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  text-align: center;
}
.billing p {
  margin: 0 auto;
  max-width: 1320px;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
  text-wrap: balance;
}
.billing b { font-weight: 600; font-size: 11.5px; color: var(--mute); }
.billing a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.28); transition: color 0.2s; }
.billing a:hover { color: var(--white); }
.billing .sep { display: inline-block; width: 1.6em; }

/* ---- small screens -------------------------------------------------------- */
@media (max-width: 600px) {
  /* phones: a shorter band, so the title block has the room it needs */
  .poster-media { height: 52%; }
  .poster-shade {
    background:
      linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.85) 16%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.05) 62%, rgba(0, 0, 0, 0.3) 100%),
      linear-gradient(to right, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 40%);
  }
  .top { font-size: 10px; letter-spacing: 0.24em; }
  .top .studio { display: none; }
  .eye { width: 18px; height: 18px; }
  .now { font-size: 10px; letter-spacing: 0.24em; margin-bottom: 12px; }
  .t1 { font-size: clamp(16px, 5.4vw, 24px); letter-spacing: 0.2em; margin-bottom: 8px; }
  .t2 { font-size: clamp(40px, min(12.6vw, 9vh), 156px); }
  .title { margin-bottom: 18px; }
  .deck { gap: 16px; }
  .cta { width: 100%; padding: 17px 20px 16px; }
  .specs { width: 100%; font-size: 10px; letter-spacing: 0.12em; column-gap: 16px; }
  .specs dd { white-space: normal; }
  .billing p { font-size: 9px; letter-spacing: 0.05em; text-align: left; text-wrap: pretty; }
  .billing b { font-size: 10px; }
  .billing .sep { width: 1em; }
}
@media (max-height: 460px) {
  .top { display: none; }
  .now { display: none; }
  .specs { display: none; }
  .title { margin-bottom: 12px; }
  .t1 { margin-bottom: 6px; }
  .bill { padding-bottom: 12px; }
  .billing p { font-size: 9px; }
}

/* ---- motion ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .now, .title, .deck { animation: none; }
  .poster-video { transition: none; }
}
