/* Email → video, ported from the previous iteration (text-to-video.css). Only the frame changed:
   the card is laid out at its original 780px design size and scaled to 1000 design px wide (Figma's 1172 at ~85%,
   in step with the smaller hero), and it carries Figma's radius and layered drop shadow (node 896:650) instead of the old outline. */
.ttv-section{--ttv-morph:0;--ttv-email-opacity:1;--ttv-video-opacity:0;--ttv-card-width:780px;--ttv-card-height:425px;--ttv-k:1;--ttv-photo-x:36px;--ttv-photo-y:121px;--ttv-photo-width:38px;--ttv-photo-height:38px;--ttv-photo-radius:19px;
  position:relative;isolation:isolate;padding-top:calc(70 * var(--u));height:calc(70 * var(--u) + 562.5 * var(--u) + 380px)}
.ttv-stage{position:sticky;top:max(24px,calc((100svh - 562.5 * var(--u)) / 2));height:calc(562.5 * var(--u))}
.ttv-canvas{position:relative;width:100%;height:100%}
/* Figma: radius 17.292, shadow 0 2 5 / 0 8 8 / 0 19 11 / 0 33 13 / 0 52 15 of #7a7a7a — divided by the card scale (1.282) so the shadow keeps Figma's on-screen size */
.ttv-morph-card{position:absolute;left:50%;top:0;width:var(--ttv-card-width);height:var(--ttv-card-height);margin-left:calc(var(--ttv-card-width) / -2);
  transform:scale(var(--ttv-k));transform-origin:50% 0;background:#fff;border-radius:13.49px;overflow:hidden;isolation:isolate;will-change:width,height,transform;
  box-shadow:0 40.56px 11.7px rgba(122,122,122,0),0 25.74px 10.14px rgba(122,122,122,.01),0 14.82px 8.58px rgba(122,122,122,.05),0 6.24px 6.24px rgba(122,122,122,.09),0 1.56px 3.9px rgba(122,122,122,.1)}
@media(max-width:820px){
  .ttv-section{padding-top:64px;height:calc(min(640px,100svh - 104px) + 64px + 220px)}
  .ttv-stage{top:max(72px,calc((100svh - min(640px,100svh - 104px)) / 2 + 20px));height:min(640px,calc(100svh - 104px))}
  .ttv-morph-card{border-radius:14px}
  .ttv-morph-card{border-radius:8px;box-shadow:0 22px 9px rgba(122,122,122,.01),0 13px 7px rgba(122,122,122,.05),0 5px 5px rgba(122,122,122,.09),0 1px 3px rgba(122,122,122,.1)}
  .ttv-video-caption{font-size:14px;line-height:1.5;bottom:37px;left:16px;right:16px;letter-spacing:-.15px}.ttv-video-caption>span{padding:2px 0;box-shadow:6px 0 #18201dcc,-6px 0 #18201dcc}
  .ttv-player-chrome{left:16px;right:16px;bottom:13px;gap:10px}.ttv-player-chrome svg{width:12px;height:12px}.ttv-player-chrome>span{font-size:8px;padding:2px}
}
@media(prefers-reduced-motion:reduce){.ttv-section{height:auto}.ttv-stage{position:relative;top:0}.ttv-morph-card,.ttv-portrait-frame{will-change:auto}}
/* One sender portrait grows continuously into its video frame. */
.ttv-intro{display:none}
.ttv-email{position:absolute;inset:0;opacity:var(--ttv-email-opacity);z-index:1;background:#fff;overflow:hidden}
.ttv-email svg,.ttv-player-chrome svg{fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ttv-inbox-toolbar{height:46px;border-bottom:1px solid #eeeeea;background:#fafaf8;display:flex;align-items:center;justify-content:space-between;padding:0 26px;color:#777771;font:400 13px/1 var(--sans)}
.ttv-inbox-label{display:flex;align-items:center;gap:14px;color:#494944}.ttv-inbox-toolbar svg{width:18px;height:18px}.ttv-inbox-toolbar>div{display:flex;align-items:center;gap:17px}.ttv-inbox-toolbar>div>span{font-size:11px;color:#85857e;margin-right:2px}
.ttv-email-message{padding:26px 36px 0}.ttv-email-message h3{font:550 22px/1.3 var(--sans);letter-spacing:-.45px;margin:0 0 22px;color:#262622}
.ttv-sender{height:38px;display:flex;align-items:center;gap:12px}.ttv-sender-spacer{display:block;width:38px;height:38px;flex:none;object-fit:cover;object-position:center;border-radius:50%;filter:none;opacity:1}
.ttv-section[data-ttv-ready='true'] .ttv-sender-spacer{visibility:hidden}
.ttv-sender strong{display:block;font:550 12px/1.3 var(--sans);color:#33332f}.ttv-sender span{display:flex;align-items:center;gap:4px;font:400 11px/1.5 var(--sans);color:#8b8b84;margin-top:2px}.ttv-sender span svg{width:9px;height:9px}.ttv-sender time{margin-left:auto;font:400 11px/1 var(--sans);color:#8b8b84;align-self:flex-start;margin-top:6px}
.ttv-email-body{margin:22px 0 0 50px;max-width:555px;color:#55554e;font:400 15px/1.65 var(--sans);letter-spacing:-.08px}.ttv-email-body p{margin:0 0 17px}.ttv-email-body span{display:block;color:#77776f;font-size:13px;line-height:1.5;margin-top:18px}.ttv-email:after{content:'';position:absolute;inset:auto 0 0;height:24%;background:linear-gradient(transparent,#fff 95%);pointer-events:none}.ttv-reply{display:none}
.ttv-portrait-frame{position:absolute;left:var(--ttv-photo-x);top:var(--ttv-photo-y);width:var(--ttv-photo-width);height:var(--ttv-photo-height);border-radius:var(--ttv-photo-radius);overflow:hidden;z-index:2;background:#e1dfd8;clip-path:none!important;visibility:hidden;will-change:left,top,width,height,border-radius;pointer-events:none}
.ttv-section[data-ttv-ready='true'] .ttv-portrait-frame{visibility:visible}
.ttv-portrait-frame img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;filter:none}
.ttv-photo-shade{position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,#11171330 65%,#111713a8 100%);opacity:var(--ttv-video-opacity)}
.ttv-video-label{display:none}.ttv-video-caption{position:absolute;bottom:57px;left:30px;right:30px;text-align:center;z-index:3;opacity:var(--ttv-video-opacity);font:450 clamp(17px,1.6vw,22px)/1.5 var(--sans);color:#fff;letter-spacing:-.25px;pointer-events:none}.ttv-video-caption>span{background:#18201dcc;box-shadow:9px 0 #18201dcc,-9px 0 #18201dcc;box-decoration-break:clone;-webkit-box-decoration-break:clone;padding:3px 0;border-radius:2px}
.ttv-player-chrome{position:absolute;bottom:22px;left:26px;right:26px;display:flex;align-items:center;gap:15px;z-index:4;color:#fff;opacity:var(--ttv-video-opacity);pointer-events:none}.ttv-player-chrome svg{width:16px;height:16px;stroke-width:1.5}.ttv-player-chrome>span{font:500 9px/1 var(--sans);border:1px solid #ffffff8c;border-radius:2px;padding:2px}.ttv-timeline{position:relative;height:2px;background:#ffffff52;flex:1}.ttv-timeline>i{position:absolute;left:0;top:0;bottom:0;width:35%;background:#fff}.ttv-timeline>b{height:5px;width:5px;background:#fff;border-radius:50%;position:absolute;top:50%;left:35%;transform:translate(-50%,-50%)}
/* hero video: the portrait runs through the live CRT + lens shader (js/crt-lens.js) as it grows; no player chrome */
.ttv-portrait-frame img,.ttv-portrait-video{object-position:50% 30%}
/* pfp -> video: the frame starts zoomed on his face exactly like the avatar (1.6x around the face) and opens out to the full shot */
.ttv-portrait-frame img,.ttv-portrait-video{transform:scale(var(--ttv-zoom,1));transform-origin:50% 12%}
.ttv-portrait-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0}
.ttv-shader{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(var(--ttv-zoom,1));transform-origin:50% 12%;display:block;opacity:0;pointer-events:none;background:#fff}   /* white behind the glass, as in Figma: the photo below must not show through the lens's transparent rim */   /* drawn once at the card's full size; the growing frame crops it */
.ttv-photo-shade,.ttv-video-caption,.ttv-player-chrome,.ttv-video-label{display:none}
/* the line over the picture: two copies of the same text — difference at 100%, then overlay at 10% */
.ttv-line{position:absolute;left:0;right:0;bottom:11%;margin:0;text-align:center;pointer-events:none;
  font:italic 500 32px/1.12 var(--sans);letter-spacing:-.045em}
.ttv-line>span{display:block;color:#fff;position:relative;z-index:3}   /* the layers stack, not the wrapper: a wrapper z-index would wall them off from the picture */
.ttv-line-a{mix-blend-mode:difference;opacity:var(--ttv-video-opacity)}   /* opacity on each layer, not the wrapper, so both still blend with the picture */
.ttv-line-b{position:absolute!important;inset:0;mix-blend-mode:overlay;opacity:calc(var(--ttv-video-opacity) * .1)}
@media(max-width:820px){.ttv-line{font-size:28px;bottom:9%;padding:0 16px}}
