/* =====================================================================
   sheltermaps.com
   Night navy, exit-sign green, amber for "you are here".
   Atkinson Hyperlegible Next: a typeface designed to be read under stress.
   ===================================================================== */
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('../fonts/atkinson-next.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
:root {
  --night: #0b1a2b; --night-2: #12263c; --night-3: #1b3350; --green: #2eb45c; --green-deep: #1c7a3d; --green-soft: #6ee39a; --amber: #f2a516;
  --ink: #0b1a2b; --muted: #536173; --paper: #f3f6f9; --line: rgba(11,26,43,.12); --line-d: rgba(255,255,255,.12);
  --font: 'Atkinson Hyperlegible Next', 'Helvetica Neue', Arial, sans-serif; --font-ui: var(--font);
  --wrap: 1180px; --gut: clamp(18px, 4vw, 44px); --sec: clamp(80px, 10vw, 128px); --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.55; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 800; letter-spacing: -.025em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.2rem; font-weight: 750; line-height: 1.25; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 54px; padding: 0 26px; border-radius: 14px; border: 2px solid transparent; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .95rem; border-radius: 12px; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #29a253; box-shadow: 0 12px 28px -12px rgba(46,180,92,.8); }
.btn-line { color: #fff; border-color: rgba(255,255,255,.45); }
.btn-line:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* nav */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.logo img { border-radius: 9px; }
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; color: #fff; transition: background-color .3s, box-shadow .3s; padding-top: env(safe-area-inset-top); }
.nav-in { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; height: 68px; display: flex; align-items: center; gap: 28px; }
.nav.is-solid, .nav-solid { background: rgba(11,26,43,.88); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line-d); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .98rem; color: rgba(255,255,255,.82); }
.nav-links a:hover { color: #fff; }

/* hero */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(100svh, 940px); display: flex; align-items: center; background: var(--night); color: #fff; padding: 120px 0 80px; }
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--night) 0%, rgba(11,26,43,.86) 42%, rgba(11,26,43,.35) 100%), linear-gradient(0deg, var(--night), transparent 35%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-k { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--green-soft); opacity: 0; animation: fade .8s ease .1s forwards; }
.hero-k .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(46,180,92,.7); animation: ping 2s ease-out infinite; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.4rem); letter-spacing: -.035em; line-height: .96; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .ln > span { display: block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .1s; color: var(--green-soft); }
.hero-lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: rgba(255,255,255,.84); max-width: 30em; opacity: 0; animation: fade .9s ease .45s forwards; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: fade .9s ease .6s forwards; }
.hero-facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: rgba(255,255,255,.78); font-weight: 600; font-size: .98rem; opacity: 0; animation: fade .9s ease .75s forwards; }
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts .ico { color: var(--green-soft); }
.hero-art { display: grid; justify-items: center; font-size: clamp(11px, 1.25vw, 16px); opacity: 0; animation: lift 1.1s var(--ease) .35s forwards; }
.hero-art .dev { transform: rotate(-3deg); }
.hero-art .sh-sheet { animation: none; opacity: 1; transform: none; }
.hero-art .sh-route { animation-duration: 6s; }

/* stats */
.stats { background: var(--night-2); color: #fff; border-top: 1px solid var(--line-d); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 12px; text-align: center; display: grid; gap: 4px; }
.stat + .stat { border-left: 1px solid var(--line-d); }
.stat strong { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: rgba(255,255,255,.7); font-weight: 600; }

/* section heads */
.sec-head { display: grid; gap: 14px; max-width: 42em; margin-bottom: 40px; }
.sec-head p { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.sec-dark p { color: rgba(255,255,255,.72); }

/* map */
.mapsec { padding: var(--sec) 0; background: var(--night); color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; font: inherit; font-weight: 700; font-size: .95rem; color: #fff; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--line-d); cursor: pointer; transition: background-color .2s, box-shadow .2s; }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chip span { opacity: .6; font-variant-numeric: tabular-nums; }
.chip.is-on { background: #fff; color: var(--night); box-shadow: none; }
.map-frame { border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-d), 0 40px 80px -40px rgba(0,0,0,.7); }
.map { height: clamp(380px, 56vh, 560px); background: #0e1e31; position: relative; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.5); font-weight: 600; }
.map-note { margin-top: 14px; font-size: .92rem; color: rgba(255,255,255,.6); }
.pin { width: 22px; height: 22px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.5); cursor: pointer; position: relative; }
.pin::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--c); opacity: 0; animation: pin 2.6s ease-out infinite; animation-delay: var(--d, 0s); }
.pin.is-hidden { display: none; }
.maplibregl-popup-content { background: var(--night); color: #fff; border-radius: 12px; padding: 12px 14px; font-family: var(--font); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.maplibregl-popup-content strong { display: block; font-size: 1rem; }
.maplibregl-popup-content span { font-size: .85rem; color: rgba(255,255,255,.7); }
.maplibregl-popup-tip { border-top-color: var(--night) !important; border-bottom-color: var(--night) !important; }
.maplibregl-popup-close-button { display: none; }

/* features */
.features { padding: var(--sec) 0; background: #fff; }
.feat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat-grid li { padding: 30px 28px; border-radius: 22px; background: var(--paper); display: grid; gap: 10px; align-content: start; }
.feat-grid .ico { color: var(--green-deep); margin-bottom: 6px; }
.feat-grid p { color: var(--muted); font-size: 1rem; }

/* mission */
.mission { padding: var(--sec) 0; background: radial-gradient(70% 90% at 50% 0%, rgba(46,180,92,.22), transparent 70%), var(--night); color: #fff; text-align: center; }
.mission-big { font-size: clamp(2.2rem, 5.4vw, 4.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.mission-sub { margin: 22px auto 0; max-width: 32em; font-size: 1.2rem; color: rgba(255,255,255,.75); }

/* download */
.download { padding: var(--sec) 0; background: var(--paper); text-align: center; }
.download-in { display: grid; justify-items: center; gap: 14px; }
.dl-mark { border-radius: 22px; box-shadow: 0 20px 40px -18px rgba(11,26,43,.5); margin-bottom: 10px; }
.download p { color: var(--muted); font-size: 1.15rem; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 200px; padding: 12px 20px; border-radius: 14px; background: var(--night); color: #fff; text-decoration: none; text-align: left; transition: transform .2s var(--ease), box-shadow .2s; }
.store:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(11,26,43,.7); }
.store svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.store small { display: block; font-size: .72rem; opacity: .75; line-height: 1.1; }
.store b { font-size: 1.15rem; line-height: 1.2; }
.store-soon { opacity: .55; cursor: default; }
.store-soon:hover { transform: none; box-shadow: none; }

/* footer */
.footer { background: var(--night); color: rgba(255,255,255,.7); padding: 44px 0 calc(28px + env(safe-area-inset-bottom)); font-size: .95rem; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer-brand { display: grid; gap: 10px; }
.footer-brand .logo { color: #fff; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: #fff; }
.footer-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-d); font-size: .86rem; }
.footer-note p:first-child { max-width: 46em; }

/* legal pages */
.legal { padding: 130px 0 var(--sec); background: #fff; }
.legal-in { max-width: 760px; }
.legal-head { padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.legal-head h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 12px; }
.legal-head p { color: var(--muted); }
.legal-body { font-size: 1.05rem; line-height: 1.7; }
.legal-body h2 { font-size: 1.45rem; letter-spacing: -.01em; margin: 44px 0 14px; }
.legal-body h3 { font-size: 1.12rem; margin: 26px 0 10px; }
.legal-body h4 { margin: 0 0 10px; font-size: 1.05rem; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 16px; padding-left: 1.3em; }
.legal-body li { margin: 6px 0; }
.legal-body a { color: var(--green-deep); font-weight: 600; word-break: break-word; }
.legal-body .highlight-box, .legal-body .contact-box, .legal-body .warning-box, .legal-body .emergency-box { padding: 20px 22px; border-radius: 16px; margin: 22px 0; }
.legal-body .highlight-box { background: #eaf7ef; }
.legal-body .contact-box { background: var(--paper); }
.legal-body .warning-box { background: #fff5e0; }
.legal-body .emergency-box { background: #fdeceb; }
.legal-body .highlight-box p:last-child, .legal-body .contact-box p:last-child, .legal-body .warning-box p:last-child, .legal-body .emergency-box p:last-child { margin-bottom: 0; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: .95rem; display: block; overflow-x: auto; }
.legal-body th, .legal-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-body th { background: var(--paper); font-weight: 750; }
.legal-body .badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .8rem; font-weight: 700; background: #eaf7ef; color: var(--green-deep); }
.legal-body .badge-functional { background: #e9eefc; color: #3248a8; }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes lift { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(46,180,92,.7); } 100% { box-shadow: 0 0 0 12px rgba(46,180,92,0); } }
@keyframes pin { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { font-size: clamp(9px, 2.6vw, 13px); }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .hero { padding: 100px 0 56px; min-height: 0; }
  .hero-shade { background: linear-gradient(180deg, rgba(11,26,43,.75), rgba(11,26,43,.92) 60%, var(--night)); }
  .hero-cta .btn { flex: 1 1 auto; }
  .stats-in { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-d); }
  .feat-grid { grid-template-columns: 1fr; }
  .store { width: 100%; max-width: 300px; justify-content: center; }
  .legal { padding-top: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero h1 .ln > span, .hero-k, .hero-lede, .hero-cta, .hero-facts, .hero-art { opacity: 1; transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-video { display: none; }
  .hero { background: var(--night) url('../media/projects/sheltermaps/poster.jpg') center / cover; }
}

/* explainer video */
.explainer { padding: var(--sec) 0 0; background: var(--night); color: #fff; }
.vid-frame { border-radius: 22px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px var(--line-d), 0 50px 100px -50px rgba(0,0,0,.8); }
.vid-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.explainer + .mapsec { padding-top: var(--sec); }

/* ===== Device mockups (shared by both sites) ===== */
@property --c1 { syntax: '<color>'; inherits: true; initial-value: #e8452c; }
@property --c2 { syntax: '<color>'; inherits: true; initial-value: #f28c26; }

.dev { position: relative; font-family: var(--font-ui, system-ui, sans-serif); color: #f2f2f4; line-height: 1.25; -webkit-font-smoothing: antialiased; }
.dev svg { display: block; }
.dev-screen { position: relative; overflow: hidden; height: 100%; }

/* Phone */
.dev-phone { width: 16em; height: 34.6em; padding: .5em; border-radius: 2.7em; background: linear-gradient(145deg, #2a2d36, #0d0e12 45%, #1b1d24); box-shadow: 0 0 0 .08em rgba(255,255,255,.12) inset, 0 2.2em 4em -1.4em rgba(4,8,30,.55), 0 .8em 1.6em -.8em rgba(4,8,30,.4); }
.dev-phone::before { content: ''; position: absolute; z-index: 5; top: 1.15em; left: 50%; width: 4.6em; height: 1.3em; margin-left: -2.3em; border-radius: 1em; background: #050507; }
.dev-phone > .dev-screen { border-radius: 2.25em; }

/* Watch */
.dev-watch { width: 9.4em; height: 11.2em; padding: .55em; border-radius: 2.7em; background: linear-gradient(150deg, #34373f, #101115 55%, #24262d); box-shadow: 0 0 0 .07em rgba(255,255,255,.14) inset, 0 1.4em 2.6em -1em rgba(4,8,30,.55); }
.dev-watch > .dev-screen { border-radius: 2.2em; background: #000; }
.dev-crown { position: absolute; right: -.32em; top: 3.1em; width: .42em; height: 1.6em; border-radius: .2em; background: linear-gradient(90deg, #4a4d56, #23252b); }

/* Car display */
.dev-car { width: 31em; height: 13.2em; padding: .55em; border-radius: 1.6em; background: linear-gradient(160deg, #2a2c33, #0c0d10 60%); box-shadow: 0 0 0 .07em rgba(255,255,255,.1) inset, 0 1.8em 3.4em -1.4em rgba(4,8,30,.55); }
.dev-car > .dev-screen { border-radius: 1.15em; }

/* ---------- Oncast ---------- */
.oc-scope { transition: --c1 1.2s ease, --c2 1.2s ease; }
.oc-screen { background: radial-gradient(120% 70% at 10% 0%, color-mix(in srgb, var(--c1) 38%, transparent), transparent 62%), radial-gradient(90% 60% at 100% 100%, color-mix(in srgb, var(--c2) 26%, transparent), transparent 60%), #09090d; display: flex; flex-direction: column; padding: 2.9em 1.05em 1.1em; gap: .8em; }
.oc-top { display: flex; justify-content: space-between; align-items: center; }
.oc-logo { display: inline-flex; align-items: center; gap: .4em; font-size: 1.02em; letter-spacing: -.01em; }
.oc-logo b { font-weight: 800; }
.oc-glyph { width: 1.45em; height: 1.45em; flex: none; }
.oc-round { width: 1.9em; height: 1.9em; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.oc-round svg, .oc-actions svg, .oc-check svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.oc-card { border-radius: 1.2em; padding: .95em 1em 1em; background: linear-gradient(160deg, rgba(255,255,255,.11), rgba(255,255,255,.04)); box-shadow: 0 0 0 .06em rgba(255,255,255,.12) inset; display: grid; gap: .3em; }
.oc-live { display: inline-flex; align-items: center; gap: .4em; width: max-content; padding: .28em .62em; border-radius: 1em; background: rgba(255,255,255,.12); font-size: .62em; font-weight: 800; letter-spacing: .08em; }
.oc-live b { width: .55em; height: .55em; border-radius: 50%; background: var(--c1); box-shadow: 0 0 0 0 var(--c1); animation: oc-ping 1.8s ease-out infinite; }
.oc-name { font-size: 2em; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin-top: .1em; }
.oc-show { font-size: .74em; color: rgba(255,255,255,.7); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-show em { font-style: normal; color: var(--c1); }
.oc-dots { display: flex; justify-content: center; gap: .3em; }
.oc-dots i { width: .38em; height: .38em; border-radius: .2em; background: rgba(255,255,255,.25); transition: width .5s, background-color .5s; }
.oc-dots i.on { width: 1.2em; background: var(--c1); }
.oc-play { position: relative; height: 7.4em; display: grid; place-items: center; }
.oc-btn { position: relative; z-index: 2; width: 5.2em; height: 5.2em; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c2) 85%, #fff), var(--c1) 70%); box-shadow: 0 0 2.4em -.2em color-mix(in srgb, var(--c1) 70%, transparent); }
.oc-btn svg { width: 1.7em; height: 1.7em; fill: #fff; }
.oc-ring { position: absolute; width: 5.2em; height: 5.2em; border-radius: 50%; border: .16em solid var(--c1); opacity: 0; animation: oc-ring 3s ease-out infinite; }
.oc-ring.r2 { animation-delay: 1s; } .oc-ring.r3 { animation-delay: 2s; }
.oc-caption { border-radius: 1em; padding: .75em .85em; background: rgba(255,255,255,.06); box-shadow: 0 0 0 .06em rgba(255,255,255,.08) inset; min-height: 6.4em; display: grid; gap: .3em; align-content: start; }
.oc-who { font-size: .62em; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c2); }
.oc-caption p { margin: 0; font-size: .74em; line-height: 1.38; color: rgba(255,255,255,.92); min-height: 4.1em; }
.oc-caption p.typing::after { content: ''; display: inline-block; width: .45em; height: .95em; margin-left: .1em; vertical-align: -.12em; background: var(--c2); animation: oc-blink .8s steps(2) infinite; }
.oc-check { display: inline-flex; align-items: center; gap: .35em; width: max-content; font-size: .6em; font-weight: 700; padding: .25em .6em .25em .45em; border-radius: 1em; color: #c8f7d6; background: rgba(46,180,92,.18); transition: opacity .4s, transform .4s; }
.oc-check.off { opacity: 0; transform: translateY(.3em); }
.oc-wave { display: flex; align-items: center; justify-content: center; gap: .16em; height: 1.6em; }
.oc-wave i { width: .2em; height: 100%; border-radius: .2em; background: linear-gradient(var(--c2), var(--c1)); transform-origin: center; animation: oc-bar 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * -97ms); }
.oc-wave i:nth-child(3n) { animation-duration: .9s; } .oc-wave i:nth-child(4n+1) { animation-duration: 1.3s; }
.oc-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: .5em; font-size: .68em; font-weight: 700; }
.oc-actions span { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .85em .4em; border-radius: 1.2em; background: rgba(255,255,255,.08); }

/* Oncast watch */
.ow-screen { display: grid; justify-items: center; align-content: center; gap: .45em; padding: .8em; background: radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--c1) 45%, transparent), transparent 70%), #000; }
.ow-top { display: inline-flex; align-items: center; gap: .35em; font-size: .78em; font-weight: 800; }
.ow-top b { width: .5em; height: .5em; border-radius: 50%; background: var(--c1); animation: oc-ping 1.8s ease-out infinite; }
.ow-wave { display: flex; align-items: center; gap: .14em; height: 1.7em; }
.ow-wave i { width: .22em; height: 100%; border-radius: .2em; background: linear-gradient(var(--c2), var(--c1)); animation: oc-bar 1s ease-in-out infinite; animation-delay: calc(var(--i) * -83ms); }
.ow-show { font-size: .6em; color: rgba(255,255,255,.7); font-weight: 600; white-space: nowrap; }
.ow-btn { width: 2.3em; height: 2.3em; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--c2), var(--c1)); }
.ow-btn svg { width: .9em; height: .9em; fill: #fff; }

/* Oncast car */
.car-screen { display: grid; grid-template-columns: 3.5em 1fr; background: #0b0b10; }
.car-dock { display: grid; align-content: center; justify-items: center; gap: .55em; background: rgba(255,255,255,.05); padding: .6em 0; }
.car-dock span { width: 2.3em; height: 2.3em; border-radius: .6em; display: grid; place-items: center; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
.car-dock span.on { background: none; }
.car-dock span.on .oc-glyph { width: 2.3em; height: 2.3em; }
.car-dock svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.car-main { display: grid; grid-template-columns: auto 1fr; gap: 1.1em; align-items: center; padding: .9em 1.2em; background: radial-gradient(70% 90% at 0% 50%, color-mix(in srgb, var(--c1) 28%, transparent), transparent 70%); }
.car-art { width: 9.4em; height: 9.4em; border-radius: 1em; padding: .8em; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(140deg, var(--c1), var(--c2)); }
.car-art .oc-live { background: rgba(0,0,0,.22); }
.car-art .oc-live b { background: #fff; }
.car-art strong { font-size: 1.7em; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.car-meta { display: grid; gap: .2em; min-width: 0; }
.car-k { font-size: .66em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.car-meta strong { font-size: 1.25em; font-weight: 800; letter-spacing: -.01em; }
.car-meta > span:not(.car-k) { font-size: .78em; color: rgba(255,255,255,.65); font-weight: 600; }
.car-wave { justify-content: flex-start; height: 1.3em; margin: .45em 0 .2em; }
.car-ctrl { display: flex; align-items: center; gap: 1em; }
.car-ctrl > svg { width: 1.3em; height: 1.3em; fill: none; stroke: rgba(255,255,255,.75); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.car-ctrl .oc-btn { width: 2.6em; height: 2.6em; box-shadow: none; }
.car-ctrl .oc-btn svg { width: 1em; height: 1em; }

/* ---------- Shelter Navigator ---------- */
.sh-screen { background: #eef1f4; color: #0b1a2b; }
.sh-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.sh-route-under { fill: none; stroke: rgba(11,26,43,.12); stroke-width: 15; stroke-linejoin: round; stroke-linecap: round; }
.sh-route { fill: none; stroke: #2eb45c; stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 560; stroke-dashoffset: 560; animation: sh-draw 8s cubic-bezier(.45,.05,.25,1) infinite; }
.sh-pulse { fill: #f2a516; opacity: 0; transform-box: fill-box; transform-origin: center; animation: sh-pulse 2.2s ease-out infinite; }
.sh-dest { animation: sh-dest 8s ease infinite; }
.sh-top { position: absolute; top: 2.75em; left: .8em; right: .8em; display: flex; gap: .45em; }
.sh-search { flex: 1; display: flex; align-items: center; gap: .45em; padding: .62em .8em; border-radius: 1em; background: #fff; font-size: .72em; font-weight: 700; box-shadow: 0 .3em 1em -.3em rgba(11,26,43,.25); }
.sh-search svg { width: 1.1em; height: 1.1em; fill: none; stroke: #0b1a2b; stroke-width: 2.2; stroke-linecap: round; flex: none; }
.sh-lang { display: flex; padding: .2em; border-radius: 1em; background: #fff; box-shadow: 0 .3em 1em -.3em rgba(11,26,43,.25); font-size: .66em; }
.sh-lang b { display: grid; place-items: center; min-width: 2.1em; border-radius: .8em; font-weight: 800; color: #5b6773; transition: background-color .4s, color .4s; }
.sh-scope:not(.is-ar) .sh-lang b[data-sh-lang="en"], .sh-scope.is-ar .sh-lang b[data-sh-lang="ar"] { background: #0b1a2b; color: #fff; }
.sh-offline { position: absolute; top: 9.4em; left: 1.4em; display: inline-flex; align-items: center; gap: .35em; padding: .32em .65em .32em .45em; border-radius: 1em; background: rgba(11,26,43,.82); color: #fff; font-size: .58em; font-weight: 700; }
.sh-offline svg { width: 1.1em; height: 1.1em; fill: none; stroke: #6ee39a; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sh-sheet { position: absolute; left: .55em; right: .55em; bottom: .55em; padding: .9em 1em 1em; border-radius: 1.6em; background: #fff; box-shadow: 0 -.5em 2em -.6em rgba(11,26,43,.25); display: grid; gap: .25em; animation: sh-sheet 8s ease infinite; }
.sh-row { display: flex; justify-content: space-between; align-items: baseline; gap: .6em; font-size: .86em; }
.sh-row strong { font-weight: 800; }
.sh-dist { font-weight: 800; color: #00792f; font-variant-numeric: tabular-nums; }
.sh-sub { font-size: .7em; color: #5b6773; font-weight: 600; }
.sh-go { margin-top: .55em; display: block; text-align: center; padding: .75em; border-radius: .9em; background: #2eb45c; color: #fff; font-weight: 800; font-size: .78em; }
.sh-scope.is-ar .sh-sheet, .sh-scope.is-ar .sh-search { direction: rtl; font-family: system-ui, 'Geeza Pro', 'Noto Sans Arabic', sans-serif; }

/* ---------- Compositions ---------- */
.comp, .wall { position: relative; transform-style: preserve-3d; will-change: transform; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.comp-oncast { width: 34em; height: 43em; }
.comp-oncast .comp-phone { position: absolute; right: 2em; top: 0; transform: translateZ(-30px); }
.comp-oncast .comp-car { position: absolute; left: 0; top: 28em; transform: translateZ(40px); }
.comp-oncast .comp-watch { position: absolute; left: 2.5em; top: 7em; transform: rotate(-5deg) translateZ(20px); }
.comp-shelter { width: 18em; height: 36em; display: grid; place-items: center; }

.wall { width: 34em; height: 40em; }
.wall-shelter { position: absolute; right: .5em; top: 0; transform: rotate(5deg) translateZ(-60px); opacity: .97; }
.wall-oncast { position: absolute; left: 4em; top: 4.2em; transform: rotate(-3deg); }
.wall-watch { position: absolute; left: 0; bottom: 1.2em; transform: rotate(-6deg) translateZ(60px); }
.wall-chip { position: absolute; font-family: var(--font-ui, system-ui, sans-serif); display: inline-flex; align-items: center; gap: .5em; padding: .55em .9em .55em .7em; border-radius: 2em; font-size: .78em; font-weight: 700; color: #fff; background: rgba(12,18,48,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 .8em 1.6em -.8em rgba(0,0,0,.5); white-space: nowrap; animation: chip-float 7s ease-in-out infinite; }
.wall-chip i { width: .6em; height: .6em; border-radius: 50%; background: var(--c); box-shadow: 0 0 .7em var(--c); }
.chip-ai { left: -1.5em; top: 7em; }
.chip-geo { right: -1.2em; top: 26em; animation-delay: -2.3s; }
.chip-lang { right: 6em; bottom: -.5em; animation-delay: -4.6s; }

/* idle float on composed devices */
.wall-oncast > .dev, .comp-phone > .dev { animation: dev-float 9s ease-in-out infinite; }
.wall-shelter > .dev, .comp-car > .dev { animation: dev-float 11s ease-in-out -3s infinite; }
.wall-watch > .dev, .comp-watch > .dev { animation: dev-float 8s ease-in-out -5s infinite; }

/* pause everything when off-screen */
.dev-paused *, .dev-paused, .dev-paused *::before, .dev-paused *::after { animation-play-state: paused !important; }

@keyframes oc-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c1) 70%, transparent); } 100% { box-shadow: 0 0 0 .6em transparent; } }
@keyframes oc-ring { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes oc-bar { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes oc-blink { 50% { opacity: 0; } }
@keyframes sh-draw { 0% { stroke-dashoffset: 560; } 35%, 82% { stroke-dashoffset: 0; opacity: 1; } 92% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 560; opacity: 0; } }
@keyframes sh-pulse { 0% { opacity: .5; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes sh-dest { 0%, 30% { opacity: .35; } 38%, 90% { opacity: 1; } 100% { opacity: .35; } }
@keyframes sh-sheet { 0%, 34% { transform: translateY(.6em); opacity: .0; } 42%, 88% { transform: none; opacity: 1; } 96%, 100% { transform: translateY(.6em); opacity: 0; } }
@keyframes chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.5em); } }
@keyframes dev-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -.6em; } }

@media (prefers-reduced-motion: reduce) {
  .dev *, .dev, .wall-chip, .wall > div > .dev, .comp > div > .dev { animation: none !important; }
  .sh-route { stroke-dashoffset: 0; }
  .sh-sheet { opacity: 1; transform: none; }
  .oc-ring { display: none; }
  .comp, .wall { transition: none; }
}

/* Frozen state for still renders (og:images, covers) */
.is-still .dev *, .is-still .wall-chip { animation: none !important; transition: none !important; }
.is-still .sh-route { stroke-dashoffset: 0; }
.is-still .sh-sheet { opacity: 1; transform: none; }
.is-still .oc-ring.r1 { opacity: .35; transform: scale(1.25); }
.is-still .oc-ring.r2 { opacity: .15; transform: scale(1.55); }
.is-still .oc-wave i, .is-still .ow-wave i { transform: scaleY(calc(.3 + .7 * var(--h, .5))); }
.is-still .oc-wave i:nth-child(5n+1), .is-still .ow-wave i:nth-child(5n+1) { --h: .9; }
.is-still .oc-wave i:nth-child(5n+2), .is-still .ow-wave i:nth-child(5n+2) { --h: .35; }
.is-still .oc-wave i:nth-child(5n+3), .is-still .ow-wave i:nth-child(5n+3) { --h: .7; }
.is-still .oc-wave i:nth-child(5n+4), .is-still .ow-wave i:nth-child(5n+4) { --h: .15; }
.is-still .oc-wave i:nth-child(5n), .is-still .ow-wave i:nth-child(5n) { --h: .55; }

/* Screenshot composition */
.comp-screens { width: 40em; height: 37em; }
.comp-screens > div { position: absolute; top: 1.2em; }
.comp-screens .dev-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.comp-screens .cs-0 { left: 0; transform: rotate(-7deg) translateZ(-40px); top: 2.4em; }
.comp-screens .cs-1 { left: 12em; z-index: 2; top: 0; }
.comp-screens .cs-2 { right: 0; transform: rotate(7deg) translateZ(-40px); top: 2.4em; }
.comp-screens.n1 { width: 18em; } .comp-screens.n1 .cs-0 { left: 1em; transform: none; }
.comp-screens .cs-1 > .dev { animation: dev-float 9s ease-in-out infinite; }
.comp-screens .cs-0 > .dev, .comp-screens .cs-2 > .dev { animation: dev-float 11s ease-in-out -4s infinite; }
@media (prefers-reduced-motion: reduce) { .comp-screens .dev { animation: none !important; } }
.comp-screens .dev-phone::before { display: none; }

.sh-go2 { display: grid; grid-template-columns: 1fr 1fr; gap: .45em; margin-top: .55em; }
.sh-go2 .sh-go { margin-top: 0; }
.sh-go-alt { background: #0b1a2b !important; }
.sh-lang-one b { background: #0b1a2b; color: #fff; }
.sh-go2 .sh-go { white-space: nowrap; font-size: .7em; }
