/* Landing page (index.html) refresh: monochrome Geist look in light + dark, matching css/app.css.
   index.html is generated from ATHARV/skysentry/dist/site.html by scripts/sync-web.mjs, which links this file
   after the page's own styles, so these rules win without editing Atharv's source. The 3D film scene is untouched. */
:root{
  --paper:#fff;--paper-2:#f4f4f5;--card:#fff;--ink-s:#0a0a0a;--mute-s:#6b7280;--line-s:#e5e7eb;--line-2:#d4d4d8;
  --accent:#0a0a0a;--on-accent:#fff;--clay:#0a0a0a;--hover:#f4f4f5;
  --serif:"Geist",system-ui,-apple-system,"Segoe UI",sans-serif;--sans:var(--serif);--mono-s:"Geist Mono",ui-monospace,Menlo,monospace;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --paper:#0a0a0a;--paper-2:#141414;--card:#111;--ink-s:#fafafa;--mute-s:#a1a1aa;--line-s:#262626;--line-2:#3f3f46;
  --accent:#fafafa;--on-accent:#0a0a0a;--clay:#fafafa;--hover:#1c1c1c;color-scheme:dark}}
:root[data-theme="dark"]{
  --paper:#0a0a0a;--paper-2:#141414;--card:#111;--ink-s:#fafafa;--mute-s:#a1a1aa;--line-s:#262626;--line-2:#3f3f46;
  --accent:#fafafa;--on-accent:#0a0a0a;--clay:#fafafa;--hover:#1c1c1c;color-scheme:dark}

body{-webkit-font-smoothing:antialiased}
::selection{background:color-mix(in srgb,var(--ink-s) 16%,transparent)}

/* top bar */
/* the film's own .bar{display:flex} also matched this header and shrink-wrapped its row off the content column;
   block layout + no body margin puts the logo on the same left edge as the hero text */
html body{margin:0}
header.bar{display:block;width:auto}
header.bar .bar-in{box-sizing:content-box;gap:32px}
header.bar .bar-cta{padding:5px 12px;font-size:.82rem;border-radius:8px;white-space:nowrap}
.bar-link + .bar-cta{margin-left:-20px}
.bar-link{font:500 .9rem var(--sans);color:var(--mute-s);text-decoration:none;white-space:nowrap}
.bar-link:hover,.bar-link:focus-visible{color:var(--ink-s)}
.bar-link:focus-visible{outline:2px solid var(--ink-s);outline-offset:3px;border-radius:4px}
header.bar{background:color-mix(in srgb,var(--paper) 86%,transparent);backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px)}
.brand{font:600 1.15rem/1 var(--sans);letter-spacing:-.02em;gap:9px}
.brand .mark{width:20px;height:24px;fill:currentColor;flex:none}
.nav a{font-weight:500}
.tag{font:500 .74rem var(--sans);letter-spacing:0;border-radius:6px;padding:4px 9px;background:var(--paper-2)}
.theme-btn{all:unset;box-sizing:border-box;display:grid;place-items:center;width:32px;height:32px;border-radius:8px;color:var(--mute-s);cursor:pointer;flex:none}
.theme-btn:hover{background:var(--hover);color:var(--ink-s)}
.theme-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.theme-btn:focus-visible{outline:2px solid var(--ink-s);outline-offset:2px}
@media (max-width:820px){.bar-link{margin-left:auto} .bar-link + .bar-cta{margin-left:4px} header.bar .nav + .bar-cta{margin-left:auto} header.bar .bar-in{gap:10px}}

/* hero */
.eyebrow-s{font:500 .8rem var(--sans);letter-spacing:0;color:var(--mute-s)}
.hero h1{font:600 clamp(2.4rem,5.4vw,4rem)/1.04 var(--sans);letter-spacing:-.045em}
.hero h1 em{font-style:normal;color:var(--mute-s)}
.btn-s{font:500 .93rem var(--sans);border-radius:10px;padding:10px 16px;background:var(--card)}
.btn-s:hover{border-color:var(--line-s);background:var(--hover)}
.btn-s.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.btn-s.primary:hover{background:var(--accent);border-color:var(--accent);opacity:.86}
.btn-s:focus-visible,.nav a:focus-visible,summary:focus-visible,#film .btn:focus-visible,#film .seg:focus-visible{outline-color:var(--ink-s)}
.sheet{border-top-color:var(--line-s)}
.sheet dt{font:500 .8rem var(--sans)}

/* film frame (the stage itself keeps its daylight scene) */
#film{--sign:#f2b705}   /* in-scene highlight sits behind navy text in both themes, so it can't follow --ink */
#film .glass,#film .callout .lb{background:rgba(255,255,255,.95)}
#film .dash{background:rgba(10,10,10,.96)}
#film .stage{border-radius:14px;box-shadow:0 0 0 1px var(--line-s),0 24px 60px -28px rgba(0,0,0,.45)}
#film .caption{font-family:var(--sans);font-weight:500;letter-spacing:-.01em}
#film .btn{border-radius:10px}
#film .btn.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
#film .btn:hover{border-color:var(--line-2);background:var(--hover)}
#film .btn.primary:hover{background:var(--accent);opacity:.86}
#film .seg i b{background:var(--ink-s)}
#film #creditsToggle a,#film #assetStatus{color:var(--ink-s)}
#film .load-title{font-family:var(--sans);font-weight:600;letter-spacing:-.02em}

/* sections */
.sec h2{font:600 clamp(1.9rem,3.4vw,2.6rem)/1.1 var(--sans);letter-spacing:-.04em}
.sec-head p{color:var(--mute-s)}
.facts,.risk,.stack,.faq{border-top-color:var(--line-s)}
.fact b{font:600 2.8rem/1 var(--sans);letter-spacing:-.04em}
.fact b.warn{color:var(--ink-s);font-style:normal}
.fact span,.risk-row.head span{font:500 .8rem var(--sans)}
.step3{border-radius:12px;padding:22px;transition:border-color .15s,box-shadow .15s}
a.step3:hover{border-color:var(--line-2);box-shadow:0 8px 28px -14px rgba(0,0,0,.22)}
.step3 svg{width:22px;height:22px;stroke:var(--ink-s);padding:9px;box-sizing:content-box;border:1px solid var(--line-s);border-radius:10px;background:var(--paper-2)}
.step3 h3{font:600 1.12rem/1.2 var(--sans);letter-spacing:-.02em}
.step3 code{align-self:start;font:500 .74rem var(--mono-s);color:var(--mute-s);border:1px solid var(--line-s);border-radius:6px;padding:2px 8px;background:var(--paper-2)}
.lvl{font:600 1.05rem var(--sans);color:var(--ink-s)!important}
.journey li::before{border-color:var(--line-2);background:var(--card);color:var(--ink-s)}
.journey b,.stack b{font:600 1.05rem var(--sans);letter-spacing:-.01em}
.journey em{font:500 .74rem var(--mono-s);color:var(--mute-s)}
.limits{border:1px solid var(--line-s)}
.limits h3{font:600 1.1rem var(--sans)}
.faq summary{font:500 1.08rem var(--sans);letter-spacing:-.01em}
.faq summary::after{color:var(--mute-s)}
.foot{border-top-color:var(--line-s)}
.foot b{display:inline-flex;align-items:center;gap:8px;font:600 1.05rem var(--sans);letter-spacing:-.02em}
.foot b .mark{width:16px;height:19px;fill:currentColor}
.load-title{display:inline-flex;align-items:center;gap:.22em}
.load-title .mark{width:.72em;height:.86em;fill:currentColor}
#film .load-sub{color:var(--mute-s)}
#film .load-track{background:linear-gradient(90deg,transparent,var(--ink-s),transparent);background-size:200%}

/* ---------- breathing room: fewer things per screen, more space between them ---------- */
.hero{padding-block:104px 72px;gap:72px}
.hero p{margin-top:24px}
.cta{margin-top:36px}
.sheet div{padding:16px 0}
.film-note{margin-top:14px}
.sec{padding-block:148px 0}
.sec-head{gap:14px;margin-bottom:56px}
.steps3{gap:24px}
.step3{padding:30px;gap:14px}
.step3 p{line-height:1.65}
.step3 code{padding:0;border:0;background:none;font-size:.72rem;letter-spacing:.01em}
.facts{gap:56px;padding-top:36px}
.fact{gap:12px}
.risk-row{padding-block:26px}
.split2{gap:88px}
.journey li{padding-bottom:34px;padding-left:40px}
.stack{gap:0 56px}
.stack div{padding-block:24px}
.limits{padding:28px 30px}
.faq summary{padding-block:26px}
.foot{margin-top:148px;padding-block:32px 8px}
@media (max-width:860px){.hero{padding-block:64px 40px;gap:40px}.sec{padding-block:104px 0}.sec-head{margin-bottom:40px}.split2{gap:48px}.foot{margin-top:104px}}

/* ---------- motion ----------
   Hero plays once on load. Everything below is scroll-driven CSS (animation-timeline): no JS, nothing can get stuck
   hidden, and browsers without support just show the page still. All of it is off under prefers-reduced-motion. */
@keyframes rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes settle{from{opacity:.35;transform:scale(.93) translateY(30px)}to{opacity:1;transform:none}}
@keyframes progress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes hero-out{to{opacity:.2;transform:translateY(-48px)}}
@keyframes bar-in{to{border-bottom-color:var(--line-s);box-shadow:0 6px 24px -18px rgba(0,0,0,.35)}}
@media (prefers-reduced-motion:no-preference){
  header.bar{animation:fade .5s ease-out both}
  .hero .eyebrow-s,.hero h1,.hero p,.hero .cta,.sheet div{animation:rise .8s cubic-bezier(.2,.7,.2,1) both}
  .hero h1{animation-delay:.07s} .hero p{animation-delay:.15s} .hero .cta{animation-delay:.23s}
  .sheet div:nth-child(1){animation-delay:.3s} .sheet div:nth-child(2){animation-delay:.36s}
  .sheet div:nth-child(3){animation-delay:.42s} .sheet div:nth-child(4){animation-delay:.48s}
  .btn-s,.step3,.faq summary::after{transition:background .15s,border-color .15s,box-shadow .2s,transform .2s,opacity .15s}
  a.step3:hover{transform:translateY(-3px)}
  /* buttons lift a little on hover and press in on click; the top-bar text link dims on press */
  .btn-s:hover{transform:translateY(-1px);box-shadow:0 6px 16px -10px color-mix(in srgb,var(--ink-s) 55%,transparent)}
  .btn-s:active{transform:translateY(0) scale(.96);box-shadow:none;transition-duration:.06s}
  .bar-link{transition:color .15s,opacity .1s}
  .bar-link:active{opacity:.55}
  .faq details[open] p{animation:rise .35s cubic-bezier(.2,.7,.2,1) both}

  @supports (animation-timeline:view()){
    /* reading-progress line under the top bar, and the bar gains its edge once you scroll */
    header.bar{border-bottom-color:transparent;animation:fade .5s ease-out both,bar-in linear both;animation-timeline:auto,scroll(root);animation-range:normal,0 120px}
    header.bar::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--ink-s);transform-origin:0 50%;animation:progress linear both;animation-timeline:scroll(root)}
    /* hero drifts up and fades as the film arrives */
    .hero{animation:hero-out linear both;animation-timeline:scroll(root);animation-range:0 85vh}
    /* the film stage settles into place */
    #film .stage{animation:settle linear both;animation-timeline:view();animation-range:entry 0% cover 35%}
    #film .stage:fullscreen{animation:none}
    /* sections rise in as they enter; siblings are staggered by offsetting their ranges */
    .sec-head,.step3,.fact,.risk-row,.journey li,.stack div,.limits,.faq details,.foot > div{
      animation:rise linear both;animation-timeline:view();animation-range:entry 5% entry 60%}
    :is(.step3,.fact):nth-child(2),.stack div:nth-child(3n+2),.foot > div:nth-child(2){animation-range:entry 12% entry 67%}
    :is(.step3,.fact):nth-child(3),.stack div:nth-child(3n){animation-range:entry 19% entry 74%}
    /* risk dots pop as their row arrives */
    .lvl i{animation:dot-pop linear both;animation-timeline:view();animation-range:entry 30% entry 80%}
    @keyframes dot-pop{from{transform:scale(0)}70%{transform:scale(1.35)}to{transform:scale(1)}}
  }
}

/* ---------- promo clips (scripts/promo-section.html) ---------- */
.promo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.promo-card{margin:0;border:1px solid var(--line-s);border-radius:14px;overflow:hidden;background:var(--paper-2);aspect-ratio:9/16}
.promo-card video{display:block;width:100%;height:100%;object-fit:cover}
@media (max-width:860px){.promo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:view()){
    .promo-card{animation:rise linear both;animation-timeline:view();animation-range:entry 5% entry 60%}
    .promo-card:nth-child(2){animation-range:entry 12% entry 67%}
    .promo-card:nth-child(3){animation-range:entry 19% entry 74%}
    .promo-card:nth-child(4){animation-range:entry 26% entry 81%}
  }
}

