/* Your data, screen 1, the hero. The frame is the product pages' hero frame: 1440 x 680 under
   the nav, and --u is one design px of it, so the headline, the drawing and the copy scale
   together. The phone frame is drawn at 390 x 640. */
/* Clipped at the window's sides only (section): the ground runs off both edges. */
.dt-hero { container: dt-hero / inline-size; }
.dh-frame { --u: min(1px, calc(100cqw / 1440)); position: relative; width: calc(1440 * var(--u)); height: calc(680 * var(--u)); margin: 0 auto; }
.dh-scene { position: absolute; inset: 0; }
.dh-art { position: absolute; left: 0; top: 0; width: 100%; height: auto; overflow: visible; pointer-events: none; }
.dt-hero .art-phone { display: none; }

/* The copy on the logo's left line: the label, the headline, the mid line and the status. */
.dh-copy { position: absolute; left: calc(80 * var(--u)); top: calc(10 * var(--u)); z-index: 2; }
.dh-label { margin-bottom: calc(18 * var(--u)); color: var(--plum); }
.dh-h { font-size: calc(150 * var(--u)); line-height: 0.95; font-weight: 800; letter-spacing: -0.045em; white-space: nowrap; }
.dh-h .line { display: block; }
.dh-h .line > .lift { display: inline-block; }
/* The full stop: 0.2 em, the travelling dot's first station (css/station.css draws it). */
.dh-h .station { position: relative; display: inline-block; width: 0.2em; height: 0.2em; margin-left: 0.08em; border-radius: 50%; vertical-align: baseline; }
.dh-mid { margin-top: calc(40 * var(--u)); max-width: calc(620 * var(--u)); font-size: max(19px, calc(30 * var(--u))); line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; text-wrap: pretty; }
.dh-cta { margin-top: calc(30 * var(--u)); }
.dh-cta .btn { height: max(44px, calc(58 * var(--u))); padding: 0 max(22px, calc(32 * var(--u))); font-size: max(15px, calc(18 * var(--u))); }

/* The phone (the hero 720 wide or less): the copy and the status first, the drawing under
   them, OpenAI's ring cut by the right edge. Up to 1.25x. */
@container dt-hero (max-width: 720px) {
  .dh-frame { --u: min(1.25px, calc(100cqw / 390)); width: calc(390 * var(--u)); height: calc(640 * var(--u)); }
  .dt-hero .art-desk { display: none; }
  .dt-hero .art-phone { display: block; }
  .dh-copy { left: calc(20 * var(--u)); top: calc(26 * var(--u)); width: calc(350 * var(--u)); }
  .dh-label { margin-bottom: calc(12 * var(--u)); }
  .dh-h { font-size: calc(64 * var(--u)); }
  .dh-mid { margin-top: calc(20 * var(--u)); max-width: none; font-size: calc(21 * var(--u)); line-height: 1.3; }
  .dh-cta { margin-top: calc(22 * var(--u)); }
  .dh-cta .btn { width: 100%; }
}

/* ---------------------------------------------------------------- motion
   The headline and the copy rise in as the page opens; then what you said comes into your
   machine a row at a time. The final frame (no motion) is every row in place. */
.motion .dt-hero .lift { animation: dh-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d) both; }
@keyframes dh-rise { from { opacity: 0; translate: 0 18px; } }
.dh-row { transform-box: fill-box; transform-origin: left center; }
.motion .dt-hero .dh-row { animation: dh-row 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) calc(0.9s + var(--i) * 0.35s) both; }
@keyframes dh-row { from { opacity: 0; transform: translateX(-14px) scale(0.6); } }
