/* intro-player.css — MANJI-022 / CLIENT-AMIAOS-013: the click-to-play cover, the frame and the overlay.
   Each site themes it with these properties (set on :root or on the .intro):
     --intro-bg      the cover's wash          --intro-accent  the play button
     --intro-ink     the cover's text           --intro-on      the play triangle
     --intro-art     url() of the site's art    --intro-radius  the corners
     --intro-font    the title's typeface */
.intro{ position:relative; width:100%; aspect-ratio:16/9; border-radius:var(--intro-radius,18px); overflow:hidden;
  background:#000; box-shadow:0 28px 80px -30px rgba(0,0,0,.65); }
.intro__frame{ position:absolute; inset:0; width:100%; height:100%; border:0; display:block; }

.intro__cover{ position:absolute; inset:0; width:100%; height:100%; border:0; padding:0; margin:0; cursor:pointer;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:clamp(10px,2.4vw,22px);
  color:var(--intro-ink,#fff); font:inherit; text-align:center;
  background:var(--intro-bg,linear-gradient(160deg,#0e0e10 0%,#1d2566 100%)); }
.intro__cover::before{ content:""; position:absolute; inset:0; background:var(--intro-art,none) center 62%/min(78%,760px) no-repeat;
  opacity:.5; transition:transform .9s cubic-bezier(.16,1,.3,1), opacity .4s; }
.intro__cover::after{ content:""; position:absolute; inset:0; background:radial-gradient(ellipse at 50% 45%,transparent 0,rgba(0,0,0,.45) 100%); }
.intro__cover > *{ position:relative; z-index:1; }
.intro__cover:hover::before, .intro__cover:focus-visible::before{ transform:scale(1.04); opacity:.62; }

.intro__play{ width:clamp(64px,11vw,104px); height:clamp(64px,11vw,104px); border-radius:50%; display:grid; place-items:center;
  background:var(--intro-accent,#00bf63); color:var(--intro-on,#06140d);
  box-shadow:0 0 0 10px color-mix(in srgb,var(--intro-accent,#00bf63) 22%,transparent), 0 18px 40px -12px rgba(0,0,0,.6);
  transition:transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s; }
.intro__play svg{ width:38%; height:38%; margin-left:8%; fill:currentColor; }
.intro__cover:hover .intro__play, .intro__cover:focus-visible .intro__play{ transform:scale(1.08);
  box-shadow:0 0 0 16px color-mix(in srgb,var(--intro-accent,#00bf63) 26%,transparent), 0 22px 48px -12px rgba(0,0,0,.6); }
.intro__cover:focus-visible{ outline:3px solid var(--intro-accent,#00bf63); outline-offset:-6px; }

.intro__title{ font-family:var(--intro-font,inherit); font-size:clamp(17px,2.6vw,30px); line-height:1.1; max-width:22ch;
  text-shadow:0 2px 18px rgba(0,0,0,.55); padding-inline:16px; }
.intro__len{ font-size:clamp(12px,1.3vw,15px); letter-spacing:.14em; text-transform:uppercase; opacity:.85;
  padding:5px 12px; border-radius:999px; background:rgba(0,0,0,.35); border:1px solid rgba(255,255,255,.22); }

.intro-yt{ display:block; margin-top:12px; text-align:center; font-size:.95rem; }

/* the overlay (opened by [data-intro-open]) */
.intro-overlay{ position:fixed; inset:0; z-index:2147483000; display:none; align-items:center; justify-content:center;
  padding:16px; background:rgba(4,6,14,.86); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }
.intro-overlay.is-open{ display:flex; animation:intro-in .28s ease both; }
.intro-overlay__panel{ position:relative; width:min(1100px,100%, calc((100svh - 120px) * 16 / 9)); }
.intro-overlay__close{ position:absolute; right:0; top:-52px; width:44px; height:44px; border-radius:50%; border:1px solid rgba(255,255,255,.3);
  background:rgba(255,255,255,.08); color:#fff; font-size:28px; line-height:1; cursor:pointer; }
.intro-overlay__close:hover, .intro-overlay__close:focus-visible{ background:rgba(255,255,255,.2); }
.intro-lock, .intro-lock body{ overflow:hidden; }
@keyframes intro-in{ from{ opacity:0 } to{ opacity:1 } }
@media (prefers-reduced-motion:reduce){ .intro__cover::before, .intro__play{ transition:none } .intro-overlay.is-open{ animation:none } }

/* amiaos.com's look (CLIENT-AMIAOS-013) */
.seeit{ max-width:900px; margin:56px auto 0; text-align:center; scroll-margin-top:90px; }
.seeit-h{ margin-bottom:22px; }
.seeit .intro{ --intro-accent:var(--red); --intro-on:#fff; --intro-ink:#fff; --intro-font:var(--din); --intro-radius:22px;
  --intro-art:url("/assets/edge-node-v1.png"); --intro-bg:radial-gradient(ellipse at 50% 115%,rgba(255,204,3,.30) 0,transparent 58%),linear-gradient(160deg,#1D2566 0%,#3D4AAA 100%);
  box-shadow:0 30px 70px -28px rgba(29,37,102,.6); border:4px solid var(--navy); }
.seeit .intro__title{ text-transform:uppercase; letter-spacing:.02em; font-size:clamp(22px,3.4vw,40px); }
.seeit .intro__len{ font-family:var(--din); letter-spacing:.1em; }
.seeit .intro-yt{ color:var(--navy); font-family:var(--din); text-transform:uppercase; letter-spacing:.06em; font-size:17px; margin-top:16px; }
.hx-watch{ display:inline-block; margin:14px 0 4px; font-family:var(--din); text-transform:uppercase; letter-spacing:.05em; font-size:19px;
  color:var(--navy); text-decoration:underline; text-decoration-color:var(--red); text-decoration-thickness:3px; text-underline-offset:6px; }
.hx-watch:hover{ color:var(--red); }
/* CLIENT-AMIAOS-014: the intro in its own band under the hero */
.seeband .seeit{ margin-top:0; }
.seeband .seeit-h{ margin-bottom:26px; }

/* MANJI-024 / CLIENT-AMIAOS-015: a cover wearing the video's own thumbnail (style="--intro-thumb:url(…)") and the Share button */
.intro[data-thumb] .intro__cover{ background:var(--intro-thumb) center/cover no-repeat; }
.intro[data-thumb] .intro__cover::before{ display:none; }
.intro[data-thumb] .intro__cover::after{ background:linear-gradient(180deg,transparent 62%,rgba(0,0,0,.32) 100%); }
.intro[data-thumb] .intro__title{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; padding:0; }
.intro[data-thumb] .intro__len{ position:absolute; right:14px; bottom:14px; background:rgba(0,0,0,.62); }
.intro[data-thumb] .intro__play{ position:absolute; left:var(--play-x,50%); top:var(--play-y,50%); transform:translate(-50%,-50%); }   /* --play-x/-y: a clear spot on that thumbnail */
.intro[data-thumb] .intro__cover:hover .intro__play, .intro[data-thumb] .intro__cover:focus-visible .intro__play{ transform:translate(-50%,-50%) scale(1.08); }
.intro-links{ display:flex; justify-content:center; align-items:baseline; flex-wrap:wrap; column-gap:28px; margin:0; }
.intro-links .intro-yt{ display:inline-block; }
.intro-share{ background:none; border:0; padding:0; cursor:pointer; line-height:inherit; }
.seeit .intro-share{ text-decoration:underline; text-underline-offset:4px; }
.nt{ text-transform:none; }   /* amiaOS keeps its case inside the uppercase headings */
.watch-cta{ display:flex; justify-content:center; flex-wrap:wrap; gap:14px; margin-top:34px; }
/* CLIENT-AMIAOS-015 part 2: the three-chapter story and the envoys */
.chapters{ display:flex; justify-content:center; flex-wrap:wrap; gap:8px 20px; margin:0 0 16px; font-family:var(--din); text-transform:uppercase; letter-spacing:.07em; font-size:15px; }
.chapters a{ color:var(--ink-70); text-decoration:none; display:inline-flex; align-items:center; gap:7px; }
.chapters a b{ display:inline-grid; place-items:center; width:26px; height:26px; border-radius:50%; border:2px solid currentColor; font-size:14px; }
.chapters a[aria-current]{ color:var(--red); }
.chapters a:hover{ color:var(--navy); }
.seeit .lead{ margin:0 auto 22px; max-width:46ch; }
.envoys{ list-style:none; padding:0; margin:26px auto 0; display:grid; grid-template-columns:repeat(4,1fr); gap:12px; max-width:900px; }
.envoys li{ background:#fff; border:2px solid var(--navy); border-radius:16px; padding:14px 12px; font-size:18px; line-height:1.3; text-align:center; }
.envoys b{ display:block; font-family:var(--din); text-transform:uppercase; font-size:24px; color:var(--navy); letter-spacing:.03em; }
.envoy-close{ margin:22px auto 0; max-width:30ch; font-family:var(--din); text-transform:uppercase; font-size:22px; line-height:1.25; color:var(--navy); }
.everybody .seeit{ margin-top:64px; }
@media (max-width:760px){ .envoys{ grid-template-columns:repeat(2,1fr); } .chapters{ font-size:13px; gap:6px 14px; } }
