/* ===== Flow-Line theme layer (Beta_v01) =====
   Global look controls live here so look passes touch one file.
   --glow: 0 (hard vector) .. 5 (full 80s fantasy glow); wired up in stage 5. */
:root { --glow: 5; }
.tube-d { color: #f3e8ff; text-shadow: 0 0 1px #fff, 0 0 3px #f3e8ff, 0 0 7px #9b5bff, 0 0 14px #9b5bff, 0 0 28px #9b5bff; padding: 0 .02em; }
#phonedemo .td { color: #f3e8ff; text-shadow: 0 0 1px #fff, 0 0 3px #f3e8ff, 0 0 7px #9b5bff, 0 0 14px #9b5bff; }

/* ---- hero sun rays: two ray layers, opposite slow turns, slow fade, screen blend, kept above the horizon ---- */
.raybox { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; clip-path: inset(0 0 calc(100% - var(--hz, 60%)) 0); }
.raybox .ray, .wintro .ray { position: absolute; border-radius: 50%; mix-blend-mode: screen; pointer-events: none;
  -webkit-mask: radial-gradient(closest-side, transparent 22%, #000 32%, rgba(0,0,0,.55) 62%, transparent 100%); mask: radial-gradient(closest-side, transparent 22%, #000 32%, rgba(0,0,0,.55) 62%, transparent 100%); }
.raybox .ray { left: calc(var(--sunx, 50%) - var(--sunr, 160px) * 4); top: calc(var(--suny, 40%) - var(--sunr, 160px) * 4 + var(--rise, 0px)); width: calc(var(--sunr, 160px) * 8); height: calc(var(--sunr, 160px) * 8); }
.ray.r1 { background: repeating-conic-gradient(from 0deg, rgba(255,200,120,.30) 0deg 3deg, rgba(255,120,180,.10) 5deg, transparent 9deg 18deg); animation: rayA 150s linear infinite, rayFade 11s ease-in-out infinite; }
.ray.r2 { background: repeating-conic-gradient(from 7deg, rgba(255,150,220,.22) 0deg 2deg, rgba(255,220,140,.08) 4deg, transparent 7deg 23deg); animation: rayB 210s linear infinite, rayFade 15s ease-in-out -5s infinite; }
@keyframes rayA { to { transform: rotate(360deg); } }
@keyframes rayB { to { transform: rotate(-360deg); } }
@keyframes rayFade { 0%, 100% { opacity: calc(.45 * var(--glow) / 3); } 50% { opacity: calc(.95 * var(--glow) / 3); } }

/* ---- watch sunrise intro ---- */
.wintro { position: absolute; inset: 0; z-index: 20; overflow: hidden; background: linear-gradient(#04011a 0%, #2a0844 55%, #7a1460 78%, #05010f 78.5%); pointer-events: auto; opacity: 1; }
.wintro .wsun { position: absolute; left: 50%; top: 78%; width: 120px; height: 120px; margin-left: -60px; border-radius: 50%; transform: translateY(40px);
  background: repeating-linear-gradient(180deg, transparent 0 62%, #2a0844 62% 66%), linear-gradient(#fff07a, #ffb238 45%, #ff4f8b 75%, #d6177f); box-shadow: 0 0 40px rgba(255,120,170,.7), 0 0 90px rgba(255,90,170,.45); }
.wintro .ray { left: -105px; top: calc(78% - 230px); width: 460px; height: 460px; transform-origin: center; }
.wintro b { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font: 400 30px/1 "Tilt Neon", sans-serif; color: #e6fdff; letter-spacing: .04em; opacity: 0;
  text-shadow: 0 0 3px #e6fdff, 0 0 8px #00d9ff, 0 0 18px #00d9ff; }
.wintro b span { color: #f3e8ff; text-shadow: 0 0 8px #9b5bff, 0 0 18px #9b5bff; }
.wintro.go .wsun { animation: wsunup 2s cubic-bezier(.2,.8,.2,1) forwards; }
.wintro.go b { animation: wlogo .6s 1.2s ease-out forwards; }
.wintro.go { animation: wout .7s 2.6s ease-in forwards; }
@keyframes wsunup { to { transform: translateY(-62px); } }
@keyframes wlogo { 0% { opacity: 0; } 30% { opacity: 1; } 45% { opacity: .4; } 60%, 100% { opacity: 1; } }
@keyframes wout { to { opacity: 0; visibility: hidden; } }

/* ---- duty alarm: screaming pink near the peak (always full strength) ---- */
:is(#wristdemo, #wristhero) svg.alarm #wd-duty { stroke: #ff2bd6 !important; animation: dalarm .5s ease-in-out infinite; filter: url(#wd-gl) drop-shadow(0 0 6px #ff2bd6) !important; }
:is(#wristdemo, #wristhero) svg.alarm #wd-dutyTxt { fill: #ff4fe0; }
:is(#wristdemo, #wristhero) svg.alarm ~ * {}
@keyframes dalarm { 50% { stroke-width: 11; opacity: .75; } }

/* ---- glow levels (0 hard vector … 5 full 80s) ---- */
:root[data-glow="0"] .tube-c, :root[data-glow="0"] .tube-m, :root[data-glow="0"] .tube-d, :root[data-glow="0"] #phonedemo .tc, :root[data-glow="0"] #phonedemo .tm, :root[data-glow="0"] h2 .n, :root[data-glow="0"] .tag { text-shadow: none !important; }
:root[data-glow="0"] :is(#wristdemo, #wristhero) svg:not(.alarm) [filter], :root[data-glow="0"] .hw-scr svg [filter] { filter: none !important; }
:root[data-glow="0"] .streak, :root[data-glow="0"] .glass, :root[data-glow="0"] #phonedemo .bub, :root[data-glow="0"] :is(#wristdemo, #wristhero) .wb { box-shadow: none !important; }
:root[data-glow="1"] .wordmark, :root[data-glow="2"] .wordmark { filter: saturate(.85) brightness(.9); }
:root[data-glow="1"] .tube-c, :root[data-glow="1"] .tube-m { text-shadow: 0 0 2px #fff, 0 0 6px currentColor; }
:root[data-glow="4"] .wordmark { filter: drop-shadow(0 0 10px rgba(255,43,214,.45)) brightness(1.06); }
:root[data-glow="5"] .wordmark { filter: drop-shadow(0 0 16px rgba(255,43,214,.6)) drop-shadow(0 0 30px rgba(41,231,255,.35)) brightness(1.1); }
:root[data-glow="4"] :is(#wristdemo, #wristhero) .wd-screen, :root[data-glow="4"] #phonedemo .scr { filter: brightness(1.05) saturate(1.1); }
:root[data-glow="5"] :is(#wristdemo, #wristhero) .wd-screen, :root[data-glow="5"] #phonedemo .scr { filter: brightness(1.1) saturate(1.2) drop-shadow(0 0 2px rgba(255,255,255,.25)); }
/* text and data stay crisp: only a slight extra glow on big numbers */
:is(#wristdemo, #wristhero) #wd-spdTxt { filter: drop-shadow(0 0 calc(var(--glow) * 1px) rgba(241,236,255,.35)); }

/* ---- hero v2: content powers on after the sun clears the horizon ---- */
.hero.lit .hero-inner > div:first-child { animation: hin 1s 2.7s ease-out both; }
.hero.lit .watch-wrap { animation: hin 1.1s 3.1s ease-out both; }
@keyframes hin { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* ---- Section 01 feature tiles (#100–102) ---- */
.tag.wtag { color: var(--trail-soft); border: 1px solid rgba(255,43,214,.6); }
.ftitle { display: flex; align-items: center; gap: 10px; margin: 30px 0 12px; font: 600 15px/1.2 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.ftitle .tag { margin: 0; }
.ftiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ftile { position: relative; padding: 14px 14px 12px 50px; border-radius: 14px; background: rgba(20,8,48,.6); border: 1px solid rgba(165,155,214,.18); }
.ftile i { position: absolute; left: 12px; top: 13px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font: 700 15px/1 var(--head); }
.ftile b { display: block; color: var(--ink); font: 600 15px/1.25 var(--body); margin-bottom: 4px; }
.ftile p { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.45; }
.ftile.lite i { color: #7dffb0; background: rgba(125,255,176,.1); box-shadow: 0 0 calc(4px * var(--glow)) rgba(125,255,176,.35); }
.ftile.qj { border-color: rgba(255,216,77,.35); } .ftile.qj i { color: #ffd84d; background: rgba(255,216,77,.12); box-shadow: 0 0 calc(4px * var(--glow)) rgba(255,216,77,.4); }
.ftile.flow i { color: var(--gauge); background: rgba(41,231,255,.1); box-shadow: 0 0 calc(4px * var(--glow)) rgba(41,231,255,.4); }
.ftile.wtag i { color: var(--trail-soft); background: rgba(255,43,214,.12); box-shadow: 0 0 calc(4px * var(--glow)) rgba(255,43,214,.4); }

/* ---- watch sunrise intro v2 (#95) ---- */
.wintro2 { position: absolute; inset: 0; z-index: 20; overflow: hidden; background: #03010f; transition: opacity .6s ease-in; }
.wintro2 canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wintro2::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px); }
.wintro2 b { position: absolute; left: 0; right: 0; top: 15%; z-index: 2; text-align: center; font: 400 31px/1 "Tilt Neon", sans-serif; letter-spacing: .04em; opacity: 0;
  color: #e6fdff; text-shadow: 0 0 3px #e6fdff, 0 0 8px #00d9ff, 0 0 18px #00d9ff; }
.wintro2 b span { font: inherit; }
.wintro2.go b { animation: wlogo2 .7s 1.9s ease-out forwards; }
@keyframes wlogo2 { 0% { opacity: 0; filter: blur(4px); } 30% { opacity: .5; } 40% { opacity: .2; } 100% { opacity: 1; filter: none; } }
.wintro2.out { opacity: 0; }

/* ---- #210 hero intro order: the sunrise plays out first, then the words, and the watch last ----
   Hidden from the first paint (html.js) so nothing shows before the sequence starts. */
html.js .hero:not(.lit) .hero-inner > div:first-child > *, html.js .hero:not(.lit) .watch-wrap { opacity: 0; }
.hero.lit .hero-inner > div:first-child { animation: none; }
.hero.lit .hero-inner > div:first-child > * { animation: hin .9s ease-out both; }
.hero.lit .hero-inner > div:first-child > .tag { animation-delay: 4.3s; }
.hero.lit .hero-inner > div:first-child > .logo { animation: power-on0 1.6s 4.55s ease-out both; }
.hero.lit .logo-sub .bar { animation-delay: 5.45s; }
.hero.lit .wordmark { animation-delay: 6.6s; }
.hero.lit .tube-m { animation-delay: 7.6s; }
.hero.lit .hero-inner > div:first-child > .lede { animation-delay: 5.5s; }
.hero.lit .hero-inner > div:first-child > .facts { animation-delay: 5.85s; }
.hero.lit .watch-wrap { animation: hin 1.3s 6.6s ease-out both; }
@keyframes power-on0 { 0% { opacity: 0; } 12% { opacity: .12; } 14% { opacity: 1; } 18% { opacity: .3; } 22%, 30% { opacity: 1; } 33% { opacity: .5; } 38%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html.js .hero .hero-inner > div:first-child > *, html.js .hero .watch-wrap { opacity: 1 !important; animation: none !important; }
}
