/* Rex signal hero and the sections that share its look, for public/home.html.
   Hero rules are scoped to .rx-hero, and it leans on the page's own nav, buttons, tokens and pause control
   from public/css/rex-cinematic-home.css. Every hidden or mid-animation state lives
   under .motion-ok, so the hero is complete with no script or with reduced motion. */
@font-face{font-family:'JetBrains Mono';src:url('/fonts/jetbrains-mono-latin.woff2') format('woff2');font-weight:100 800;font-display:swap}

.rx-hero{
  --rx-glass:rgb(255 255 255 / .14);--rx-line:rgb(255 255 255 / .26);
  --rx-soft:#fff1f4;--rx-muted:rgb(255 241 244 / .82);--rx-faint:rgb(255 241 244 / .62);
  --rx-ok:#b6ffd6;
  min-height:max(100svh,780px);
}
/* :where keeps these resets at class weight, so the component rules below win. */
.rx-hero :where(h1,p,ol,ul,figure){margin:0}
.rx-hero :where(ol,ul){padding:0;list-style:none}

/* Field: the real sky first, the dot field over it once WebGL is ready. */
.rx-field{position:absolute;inset:0;z-index:-1;pointer-events:none}
.rx-field-image,.rx-field-canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.rx-field-image{object-fit:cover;object-position:50% 60%;max-width:none}
.rx-field-canvas{opacity:0;transition:opacity .5s ease}
.rx-field-ready .rx-field-canvas{opacity:1}
.rx-no-gl .rx-field-canvas{display:none}
.rx-field-shade{position:absolute;inset:0;background:linear-gradient(180deg,#7a001b33 0%,#5a001500 30%,#5a001500 80%,#3a000d26 100%)}

/* Centered copy under the mark, like the live hero */
.rx-body{flex:1;display:flex;flex-direction:column;align-items:center;gap:44px;padding-top:calc(var(--nav-h) + clamp(20px,4vh,52px));padding-bottom:40px}
.rx-copy{display:flex;flex-direction:column;align-items:center;text-align:center}
.rx-mark-wrap{position:relative;margin-bottom:26px}
/* A soft bloom behind Rex, painted by a pseudo element, never a filter on the logo. */
.rx-mark-wrap::before{content:"";position:absolute;inset:-60%;border-radius:50%;background:radial-gradient(circle,rgb(255 255 255 / .3),rgb(255 255 255 / 0) 62%);pointer-events:none}
.rx-mark{position:relative;width:clamp(78px,6.6vw,108px);height:auto;aspect-ratio:740/709}
/* The live hero's eyebrow, kept word for word. */
.rx-eyebrow{display:flex;align-items:center;gap:10px;font-size:12.5px;letter-spacing:.08em;color:var(--rx-soft)}
.rx-eyebrow>span{width:5px;height:5px;background:#fff;border-radius:50%}
.rx-hero .rx-title{margin-top:22px;font-size:clamp(40px,5.6vw,86px);font-weight:450;letter-spacing:-.06em;line-height:1.02;max-width:none;text-shadow:0 2px 40px #5a001540}
.rx-line{display:block;white-space:nowrap}
.rx-sub{margin-top:24px;max-width:34em;font-size:clamp(16px,1.3vw,19px);line-height:1.55;text-wrap:pretty}
.rx-cta{margin-top:30px;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:26px}
.rx-hero .text-link{color:#fff;text-decoration-color:#ffffff80}
.rx-hero .text-link:hover{text-decoration-color:#fff}

/* Console: light frosted glass, the same material as the live hero's pulse pill. */
.rx-console{width:min(560px,100%);border-radius:16px;border:1px solid var(--rx-line);background:linear-gradient(180deg,rgb(255 255 255 / .16),rgb(255 255 255 / .06)),rgb(160 0 26 / .34);-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);box-shadow:0 24px 60px rgb(90 0 21 / .28),inset 0 1px 0 rgb(255 255 255 / .3);font-family:'JetBrains Mono',ui-monospace,monospace;font-size:12.5px;line-height:1.5;overflow:hidden;text-align:left}
.rx-console-top{display:flex;align-items:center;gap:12px;padding:11px 14px;border-bottom:1px solid rgb(255 255 255 / .18);font-size:11px;color:var(--rx-faint)}
.rx-lights{display:flex;gap:6px}
.rx-lights i{width:9px;height:9px;border-radius:50%;background:rgb(255 255 255 / .38)}
.rx-console-title{flex:1;text-align:center;color:var(--rx-muted)}
.rx-console-title em{font-style:normal;opacity:.6}
.rx-console-tag{display:inline-flex;align-items:center;gap:6px;text-transform:uppercase;letter-spacing:.08em;font-size:10px;color:var(--rx-muted)}
.rx-console-tag i{width:6px;height:6px;border-radius:50%;background:#fff;animation:rx-live 1.6s ease-in-out infinite}
@keyframes rx-live{50%{opacity:.35}}
/* Rex's reasoning: a verb column (what he did) and what he knew when he did it. */
.rx-log{padding:16px 18px 18px;display:grid;gap:8px;color:#fff;min-height:214px}
.rx-log li{display:grid;grid-template-columns:9.5ch minmax(0,1fr);gap:0 10px;align-items:baseline}
.rx-verb{color:var(--rx-faint);text-transform:uppercase;letter-spacing:.06em;font-size:10.5px}
.rx-verb-hot{color:#fff}
.rx-verb-hold{color:#ffd9a8}
.rx-verb-ok{color:var(--rx-ok)}
.rx-log li.is-now .rx-verb{color:#fff}
.rx-dim{color:var(--rx-faint)}
.rx-log s{color:var(--rx-soft);opacity:.7;text-decoration-thickness:1px}
.rx-log b{color:var(--rx-ok);font-weight:600}
.rx-arrow{color:var(--rx-faint)}
.rx-caret{display:inline-block;width:8px;height:15px;background:#fff;vertical-align:-2px;animation:rx-blink 1.05s steps(1) infinite}
@keyframes rx-blink{50%{opacity:0}}

/* Platforms strip, a ruled glass band over the cloud bank */
.rx-platforms{padding-bottom:28px;text-align:center}
.rx-platforms p{font-size:13px;color:#fff;margin-bottom:12px;text-shadow:0 1px 2px rgb(90 0 21 / .7),0 0 16px rgb(90 0 21 / .65)}
.rx-platforms p b{color:#fff;font-weight:600}
.rx-platforms ul{display:grid;grid-template-columns:repeat(6,1fr);border:1px solid var(--rx-line);border-radius:14px;background:rgb(255 255 255 / .12);-webkit-backdrop-filter:blur(14px) saturate(140%);backdrop-filter:blur(14px) saturate(140%);overflow:hidden}
.rx-platforms li{display:grid;place-items:center;height:54px;font-size:15px;font-weight:600;letter-spacing:-.01em}
.rx-platforms li+li{border-left:1px solid rgb(255 255 255 / .2)}

/* The page's own pause control, parked under the nav. */
.rx-hero .rx-motion{position:absolute;z-index:2;right:var(--gutter);top:calc(var(--nav-h) + 12px);padding:7px 12px;min-height:36px;border-radius:999px;border:1px solid var(--rx-line);background:var(--rx-glass);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}

/* Entrance and drift, only when motion is allowed and the script has started. */
.motion-ok.rx-live .rx-reveal{opacity:0;filter:blur(10px);transform:translateY(8px)}
.motion-ok.rx-live.rx-revealed .rx-reveal{opacity:1;filter:blur(0);transform:none;transition:opacity .9s var(--ease-out) var(--d),filter .9s var(--ease-out) var(--d),transform .9s var(--ease-out) var(--d)}
/* The mark rises without blur: no filters on the logo. */
.motion-ok.rx-live .rx-rise{opacity:0;transform:translateY(14px) scale(.92)}
.motion-ok.rx-live.rx-revealed .rx-rise{opacity:1;transform:none;transition:opacity 1.1s var(--ease-out) var(--d),transform 1.3s var(--ease-out) var(--d)}
.motion-ok .rx-mark{animation:rx-drift 13s ease-in-out 1.6s infinite}
@keyframes rx-drift{0%,100%{translate:0 0;rotate:0deg}30%{translate:0 -6px;rotate:-2deg}65%{translate:0 3px;rotate:1.5deg}}
.motion-ok.rx-live .rx-log li.is-pending{visibility:hidden}
/* Each line types in left to right, a step at a time. */
.motion-ok.rx-live .rx-log li.is-typing>span:last-child{animation:rx-type .8s steps(32) both}
@keyframes rx-type{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}

@media (max-width:900px){
  .rx-platforms ul{grid-template-columns:repeat(3,1fr)}
  .rx-platforms li:nth-child(4){border-left:0}
  .rx-platforms li:nth-child(n+4){border-top:1px solid rgb(255 255 255 / .2)}
  .rx-platforms li{height:46px;font-size:14px}
  .rx-hero .rx-motion{top:auto;bottom:16px}
  .rx-platforms{padding-bottom:68px}
}
@media (max-width:600px){
  .rx-hero .rx-title{font-size:clamp(38px,11vw,56px)}
  .rx-line{white-space:normal;text-wrap:balance}
  .rx-cta{flex-direction:column;gap:14px}
}
@media (max-width:420px){
  .rx-console{font-size:11.5px}
}

/* The new Rex badge, used below the hero: the white mark on the same red halftone
   as the hero field, drawn in CSS. Replaces the old mark-on-photo icon. */
.rex-badge.rx-badge{--rx-dot:5px;background:
  radial-gradient(circle,rgb(255 120 110 / .42) 34%,transparent 38%) 0 0/var(--rx-dot) var(--rx-dot),
  radial-gradient(circle,rgb(255 120 110 / .42) 34%,transparent 38%) calc(var(--rx-dot) / 2) calc(var(--rx-dot) / 2)/var(--rx-dot) var(--rx-dot),
  radial-gradient(circle at 50% 38%,#e4002b,#b5001f)}
.rex-badge.rx-badge img{width:62%;height:auto;object-fit:contain}
.turn-badge.rx-badge{--rx-dot:7px}
.rex-badge--sm.rx-badge{--rx-dot:3px}

/* Rex answers the phone: a light section, same type and spacing as "Sound familiar?". */
.rx-call{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,480px);gap:clamp(40px,7vw,110px);align-items:center;padding-block:clamp(40px,6vw,90px) clamp(72px,10vw,150px)}
.rx-call-points{margin-top:34px;border-top:1px solid var(--line)}
.rx-call-points li{display:grid;grid-template-columns:minmax(150px,max-content) 1fr;gap:18px;padding-block:16px;border-bottom:1px solid var(--line);font-size:15px;color:var(--muted)}
.rx-call-points b{color:var(--ink);font-weight:600}

.rx-phone{margin:0;border-radius:28px;background:#fff;box-shadow:0 40px 90px -50px #2a000d73,0 0 0 1px var(--line);overflow:hidden}
.rx-phone-head{display:flex;align-items:center;gap:12px;padding:18px 20px;color:#fff;background:
  radial-gradient(circle,rgb(255 120 110 / .32) 34%,transparent 38%) 0 0/6px 6px,
  radial-gradient(circle,rgb(255 120 110 / .32) 34%,transparent 38%) 3px 3px/6px 6px,
  linear-gradient(135deg,#e4002b,#b5001f)}
.rx-phone .rx-phone-avatar{width:42px;height:42px;box-shadow:0 0 0 2px rgb(255 255 255 / .5)}
.rx-phone-who{display:grid;line-height:1.25}
.rx-phone-who b{font-size:16px;font-weight:600}
.rx-phone-who small{font-size:12px;opacity:.82}
.rx-voice{margin-left:auto;display:flex;align-items:center;gap:3px;height:22px}
.rx-voice i{width:3px;height:6px;border-radius:2px;background:#fff;opacity:.55;transition:height .2s}
.rx-phone-time{font-size:12px;opacity:.82;font-variant-numeric:tabular-nums}
.rx-phone.is-rex-speaking .rx-voice i{opacity:1;animation:rx-voice .9s ease-in-out infinite}
.rx-voice i:nth-child(2){animation-delay:-.2s}.rx-voice i:nth-child(3){animation-delay:-.45s}.rx-voice i:nth-child(4){animation-delay:-.1s}.rx-voice i:nth-child(5){animation-delay:-.6s}
@keyframes rx-voice{0%,100%{height:6px}50%{height:20px}}
.rx-rang{display:flex;align-items:center;gap:9px;margin:0;padding:12px 20px;font-size:12.5px;color:var(--muted);border-bottom:1px solid var(--line)}
.rx-rang span{width:7px;height:7px;border-radius:50%;background:var(--red)}
.rx-lines{display:grid;gap:10px;padding:18px 20px 6px;margin:0;list-style:none}
.rx-say{max-width:86%;padding:10px 14px;border-radius:18px;font-size:14px;line-height:1.45}
.rx-say-rex{justify-self:start;background:#fff1f3;color:var(--ink);border-bottom-left-radius:6px}
.rx-say-guest{justify-self:end;background:#f2f2f5;color:var(--ink);border-bottom-right-radius:6px}
.rx-after{margin:12px 20px 20px;padding:14px 16px;border-radius:16px;background:#fafafa;box-shadow:0 0 0 1px var(--line);display:grid;gap:9px;list-style:none;font-size:13.5px;color:var(--muted)}
.rx-after li{display:grid;grid-template-columns:44px 1fr;gap:8px}
.rx-after b{color:var(--ink);font-weight:600}
.rx-after-time{font-variant-numeric:tabular-nums;color:var(--quiet)}
.rx-after-done .rx-after-time{color:#1a9f5a}

/* The call plays once when it scrolls in. Without motion it is simply all there. */
.motion-ok.rx-live .rx-phone [data-rx-lines] li,.motion-ok.rx-live .rx-phone [data-rx-after] li{opacity:0;transform:translateY(6px);transition:opacity .45s var(--ease-out),transform .45s var(--ease-out)}
.motion-ok.rx-live .rx-phone li.is-in{opacity:1;transform:none}

@media (max-width:900px){
  .rx-call{grid-template-columns:1fr}
  .rx-phone{width:100%;max-width:560px;justify-self:center}
}
@media (max-width:600px){
  .rx-call-points li{grid-template-columns:1fr;gap:2px}
}
.rx-call .lede{margin-top:24px}
.rx-phone-who{min-width:0}
.rx-phone-who small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rx-phone-time{white-space:nowrap}
@media (max-width:420px){.rx-phone-time{display:none}.rx-phone-head{padding:16px}}
.rx-nowrap{white-space:nowrap}

/* Phones: a tighter hero so the reasoning card starts near the first screen. */
@media (max-width:600px){
  .rx-body{gap:30px;padding-top:calc(var(--nav-h) + 18px);padding-bottom:28px}
  .rx-mark-wrap{margin-bottom:18px}
  .rx-mark{width:66px}
  .rx-hero .rx-title{margin-top:18px}
  .rx-sub{margin-top:18px;font-size:16px}
  .rx-cta{margin-top:24px}
  .rx-log{padding:14px 14px 16px;gap:9px;min-height:0}
  .rx-log li{grid-template-columns:8.5ch minmax(0,1fr);gap:0 8px}
  .rx-console-top{padding:10px 12px}
  .rx-platforms p{font-size:12.5px}
  .rx-platforms li{height:42px;font-size:13.5px}
  .rx-platforms{padding-bottom:64px}
}
@media (max-width:360px){
  .rx-hero .rx-title{font-size:35px}
  .rx-eyebrow{font-size:11.5px;letter-spacing:.06em}
  .rx-console{font-size:11px}
}
