/* outagescout.thecloudgrid.com: Outage Scout product site. Mobile first. Light first; dark only when
   the visitor picks it with the sun/moon switch (owner 2026-11-16: the system-dark site was too dark).
   The choice is localStorage os-theme, applied before paint by the head's #os-theme script as
   <html data-theme="dark" class="dark">, and shared with /check, /schedule and the blog. */
:root {
  --bg: #fffaf0;
  --bg-2: #fff3dc;
  --surface: #ffffff;
  --ink: #1c1917;
  --ink-2: #57534e;
  --ink-3: #78716c;
  --line: #f0e2c4;
  --accent: #f59e0b;
  --accent-2: #f97316;
  --accent-ink: #b45309;
  --accent-soft: #fef3c7;
  --red: #ef4444;
  --orange: #f97316;
  --yellow: #eab308;
  --green: #22c55e;
  --shadow: 0 1px 2px rgba(120, 72, 0, .06), 0 8px 24px rgba(120, 72, 0, .08);
  --radius: 18px;
  --wrap: 1120px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #15110b;
  --bg-2: #1d170e;
  --surface: #221b11;
  --ink: #faf7f2;
  --ink-2: #d6cfc4;
  --ink-3: #a8a096;
  --line: #3a2f1e;
  --accent-ink: #fbbf24;
  --accent-soft: #3a2a0c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* ── header ─────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 20; transition: box-shadow .3s, background-color .3s;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 800; font-size: 1.05rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.nav { display: none; margin-left: auto; gap: 22px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
/* "Check my area" (opens /check?locate=1) sits just left of "Get the app"; the sun/moon switch
   sits left of it. */
.theme-btn { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; font: inherit;
  transition: transform .35s var(--spring, ease), border-color .3s, color .2s, background-color .3s; }
.theme-btn svg { width: 18px; height: 18px; grid-area: 1 / 1; transition: opacity .25s, transform .45s var(--spring, ease); }
.theme-btn svg:last-child { opacity: 0; transform: rotate(-90deg) scale(.6); }
[data-theme="dark"] .theme-btn svg:first-child { opacity: 0; transform: rotate(90deg) scale(.6); }
[data-theme="dark"] .theme-btn svg:last-child { opacity: 1; transform: none; color: var(--accent); }
.theme-btn:active { transform: scale(.92); }
@media (hover: hover) { .theme-btn:hover { color: var(--ink); border-color: var(--accent); } }
.top .theme-btn { margin-left: auto; }
.top .brand { flex: none; }
/* Phones under 420px keep the logo + both buttons (owner 2026-11-13); the switch is in the footer there. */
@media (max-width: 419px) { .top .theme-btn { display: none; } .top .locate { margin-left: auto; } }
.linkish { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.foot .social { margin-top: 14px; }
.foot .social a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.foot .social svg { width: 18px; height: 18px; color: #1877f2; }
[data-theme="dark"] .foot .social svg { color: #4e9bff; }
.top .locate svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
@media (min-width: 960px) { .nav { display: flex; } .top .theme-btn { margin-left: 10px; } }
/* Phones: the logo alone (the name stays for screen readers) and compact buttons, so both
   buttons fit down to 360px; under 360px the crosshair goes too. */
@media (max-width: 559px) {
  .top .wrap { gap: 8px; }
  .top .brand .name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .top .btn.small { min-height: 36px; padding: 0 11px; gap: 6px; font-size: .86rem; }
  .top .get .arr { display: none; }
  .theme-btn { width: 36px; height: 36px; }
}
@media (max-width: 359px) {
  .top .locate svg { display: none; }
  .top .btn.small { padding: 0 9px; font-size: .8rem; }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0;
  font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 16px rgba(245, 120, 11, .28);
}
.btn:hover { filter: brightness(1.05); }
.btn.ghost { color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: .9rem; border-radius: 10px; }

/* ── hero ───────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 36px 0 0; background: radial-gradient(120% 70% at 50% 0%, var(--bg-2), transparent 70%); }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .hero { padding-top: 64px; } .hero .wrap { grid-template-columns: 1fr 1fr; gap: 48px; } .hero h1 { font-size: clamp(2.6rem, 4.4vw, 3.4rem); } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 25%, transparent); }
.hero h1 { margin-top: 16px; }
.hero h1 .accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 16px; font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.cta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.badge img { height: 52px; width: auto; }
.badge .dark { display: none; }
[data-theme="dark"] .badge .light { display: none; } [data-theme="dark"] .badge .dark { display: block; }
.note { font-size: .9rem; color: var(--ink-3); }
.alt { margin-top: 14px; font-size: .95rem; color: var(--ink-2); }
.phones { position: relative; height: 470px; margin: 0 auto; width: 100%; max-width: 520px; }
.phones img { position: absolute; bottom: -40px; width: 230px; filter: drop-shadow(0 18px 30px rgba(80, 40, 0, .22)); }
.phones .front { left: 50%; translate: -50% 0; width: 250px; z-index: 2; }
.phones .left { left: calc(50% - 250px); rotate: -6deg; bottom: -60px; }
.phones .right { left: calc(50% + 20px); rotate: 6deg; bottom: -60px; }
@media (max-width: 520px) { .phones { height: 400px; } .phones img { width: 190px; } .phones .front { width: 210px; } .phones .left { left: calc(50% - 205px); } .phones .right { left: calc(50% + 15px); } }
@media (min-width: 960px) { .phones { height: 540px; max-width: 500px; } .phones img { width: 225px; } .phones .front { width: 265px; } .phones .left { left: calc(50% - 235px); } .phones .right { left: calc(50% + 10px); } }

/* ── sections ───────────────────────────────────────────── */
section { padding: 64px 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 42em; margin-bottom: 28px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }
.sub { margin-top: 12px; color: var(--ink-2); font-size: 1.05rem; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid.two, .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.band .card { background: var(--bg); box-shadow: none; }
.card p { margin-top: 8px; color: var(--ink-2); font-size: .98rem; }
.ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 14px; }
.ic svg { width: 22px; height: 22px; }
.tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; vertical-align: 2px; background: var(--accent-soft); color: var(--accent-ink); }

/* screenshots */
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 18px; margin: 0 -16px; }
.shots figure { margin: 0; flex: 0 0 auto; width: 220px; scroll-snap-align: center; }
.shots img { border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.shots figcaption { margin-top: 12px; font-size: .92rem; color: var(--ink-2); }
.shots figcaption b { color: var(--ink); display: block; }
@media (min-width: 1100px) { .shots { margin: 0; padding: 4px 0 18px; gap: 16px; justify-content: space-between; overflow: visible; } .shots figure { width: 160px; } }

/* steps */
.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 58px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; left: 22px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

/* plans */
.plan h3 { font-size: 1.3rem; }
.plan .price { margin-top: 6px; font-size: 1.6rem; font-weight: 800; }
.plan .price small { font-size: .9rem; font-weight: 600; color: var(--ink-3); }
.plan ul { margin: 16px 0 0; padding: 0; list-style: none; }
.plan li { position: relative; padding: 7px 0 7px 28px; border-top: 1px solid var(--line); color: var(--ink-2); }
.plan li:first-child { border-top: 0; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 8px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.plan.master { border: 2px solid var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 60%); }

/* status legend */
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: .9rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* check-a-barangay */
.check { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 720px) { .check { grid-template-columns: 1fr 1.4fr auto; align-items: end; } }
.check label { display: grid; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.check select { font: inherit; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }

/* coverage */
.places { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.places a { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; }
.places a:hover { border-color: var(--accent); }
.places small { color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.bgys { columns: 4 170px; column-gap: 24px; margin: 14px 0 0; padding: 0; list-style: none; }
.bgys li { break-inside: avoid; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .97rem; }
.bgys a { color: var(--ink); text-decoration: none; }
.bgys a:hover { color: var(--accent-ink); text-decoration: underline; }
.total { margin-top: 18px; font-weight: 700; }
.crumbs { font-size: .88rem; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-3); }
.callout { display: grid; gap: 14px; align-items: center; padding: 22px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
@media (min-width: 720px) { .callout { grid-template-columns: 1fr auto; } }
.callout .acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; font-weight: 400; color: var(--accent-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 18px; color: var(--ink-2); }
.faq .a p + p, .faq .a ul { margin-top: 10px; }
.faq .a ul { padding-left: 20px; }
.faq h2.group { font-size: 1.25rem; margin: 40px 0 4px; }
.faq h2.group:first-child { margin-top: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.toc a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink-2); font-size: .9rem; font-weight: 600; }

/* text pages */
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.doc h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.meta { margin-top: 8px; color: var(--ink-3); font-size: .9rem; }

/* final CTA */
.final { text-align: center; }
.final img.icon { width: 96px; height: 96px; margin: 0 auto 18px; }
.final .cta { justify-content: center; }

/* footer */
.foot { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-3); }
.foot .cols { display: grid; gap: 22px; }
@media (min-width: 760px) { .foot .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h3 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 6px 0; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .fine { margin-top: 26px; font-size: .8rem; line-height: 1.5; }
/* Links inside a sentence need more than colour to stand out. */
.foot p a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 2px; }
.foot .fine p + p { margin-top: 6px; }

/* ══ Motion ═══════════════════════════════════════════════════════════════════════════
   Load: header drops in, hero copy staggers up, phones rise then float.
   Scroll: blocks reveal as they enter (site.js adds .rv / .in, staggered by --i).
   Hover (mouse) + press (touch): cards lift, icons tip, buttons nudge their arrow.
   Navigation: cross-document View Transitions (header stays, page slides).
   Reduce Motion: the same moments as gentle fades, no movement. ?noanim: none at all. */
:root { --out: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.56, .64, 1); }

/* live honeycomb behind the hero */
.hexbg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70%; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(110% 95% at 78% 100%, #000 18%, transparent 68%); mask-image: radial-gradient(110% 95% at 78% 100%, #000 18%, transparent 68%); }
@media (max-width: 959px) { .hexbg { height: 52%; -webkit-mask-image: radial-gradient(120% 90% at 50% 100%, #000 20%, transparent 72%); mask-image: radial-gradient(120% 90% at 50% 100%, #000 20%, transparent 72%); } }
.hexbg polygon { fill: var(--accent); fill-opacity: .035; stroke: var(--accent); stroke-opacity: .16; stroke-width: 2; }
.hexbg .r { fill: var(--red); stroke: var(--red); }
.hexbg .o { fill: var(--orange); stroke: var(--orange); }
.hexbg .y { fill: var(--yellow); stroke: var(--yellow); }
.hexbg .g { fill: var(--green); stroke: var(--green); }
.hexbg .r, .hexbg .o, .hexbg .y, .hexbg .g { fill-opacity: .2; stroke-opacity: .42; }
[data-theme="dark"] .hexbg polygon { fill-opacity: .06; stroke-opacity: .16; }

/* scroll progress (site.js sets --p) */
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform-origin: 0 50%;
  transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.top.scrolled { box-shadow: 0 8px 28px rgba(90, 50, 0, .09); }

.btn .arr { display: inline-block; margin-left: 2px; transition: transform .35s var(--spring); }
.btn, .badge, .places a, .toc a, .card, .shots img, .ic, .bgys a, .nav a { transition: transform .35s var(--spring), box-shadow .35s var(--out), border-color .3s, background-color .3s, color .2s, filter .2s; }
.badge { display: inline-block; border-radius: 12px; }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: 50% 50%; transition: transform .35s var(--out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* press feedback, touch and mouse */
.btn:active, .badge:active, .places a:active, .toc a:active, .bgys a:active { transform: scale(.96); transition-duration: .08s; }

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(245, 120, 11, .38); }
  .btn.ghost:hover { box-shadow: 0 10px 22px rgba(90, 50, 0, .10); border-color: var(--accent); }
  .btn:hover .arr { transform: translateX(4px); }
  .badge:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0, 0, 0, .18); }
  .card:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(120, 72, 0, .06), 0 24px 44px rgba(120, 72, 0, .14); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
  .card:hover .ic { transform: rotate(-10deg) scale(1.14); background: var(--accent); color: #fff; }
  .places a:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 28px rgba(120, 72, 0, .12); }
  .toc a:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--ink); }
  .shots figure:hover img { transform: translateY(-10px) rotate(-1.5deg); box-shadow: 0 30px 50px rgba(90, 50, 0, .22); }
  .bgys a { display: inline-block; }
  .bgys a:hover { transform: translateX(6px); }
  .phones:hover .left { translate: -18px 0; rotate: -10deg; }
  .phones:hover .right { translate: 18px 0; rotate: 10deg; }
  .phones img { transition: translate .6s var(--spring), rotate .6s var(--spring); }
}

/* FAQ: smooth open where the browser can animate to auto height; the answer always fades in */
@supports selector(::details-content) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--out), content-visibility .45s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}
.faq summary { transition: color .2s, padding-left .3s var(--out); }
@media (hover: hover) { .faq summary:hover { color: var(--accent-ink); padding-left: 6px; } }

@keyframes os-up { from { opacity: 0; transform: translateY(24px); } }
/* The hero headline slides without fading: it's the page's largest text, and Chrome only
   counts it as painted (Largest Contentful Paint) if it isn't invisible at first. */
@keyframes os-slide { from { transform: translateY(24px); } }
@keyframes os-fade { from { opacity: 0; } }
@keyframes os-drop { from { opacity: 0; transform: translateY(-100%); } }
@keyframes os-rise { from { opacity: 0; transform: translateY(120px) scale(.94); } }
@keyframes os-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes os-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 12px transparent; } }
@keyframes os-ping-red { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes os-cell { 0%, 100% { fill-opacity: .1; stroke-opacity: .3; } 50% { fill-opacity: .42; stroke-opacity: .75; } }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(22px); } }

@view-transition { navigation: auto; }
.top { view-transition-name: site-top; }

@media (prefers-reduced-motion: no-preference) {
  html:not(.noanim) .top { animation: os-drop .7s var(--out) both; }
  html:not(.noanim) .hero-copy > * { animation: os-up .9s var(--out) both; }
  html:not(.noanim) .hero-copy > h1 { animation-name: os-slide; }
  html:not(.noanim) .hero-copy > :nth-child(2) { animation-delay: .08s; }
  html:not(.noanim) .hero-copy > :nth-child(3) { animation-delay: .18s; }
  html:not(.noanim) .hero-copy > :nth-child(4) { animation-delay: .28s; }
  html:not(.noanim) .hero-copy > :nth-child(5) { animation-delay: .36s; }
  html:not(.noanim) .phones img { animation: os-rise 1.2s var(--out) both, os-float 7s ease-in-out infinite; }
  html:not(.noanim) .phones .front { animation-delay: .2s, 1.6s; }
  html:not(.noanim) .phones .left { animation-delay: .38s, 2.4s; }
  html:not(.noanim) .phones .right { animation-delay: .5s, 3.1s; }
  html:not(.noanim) .hexbg { animation: os-fade 1.6s ease .2s both; }
  html:not(.noanim) .hexbg .r, html:not(.noanim) .hexbg .o, html:not(.noanim) .hexbg .y, html:not(.noanim) .hexbg .g { animation: os-cell 4.8s ease-in-out var(--d, 0s) infinite; }
  html:not(.noanim) .dot { animation: os-ping 2.2s ease-out infinite; }
  html:not(.noanim) .legend span:first-child i { animation: os-ping-red 2.2s ease-out infinite .6s; }
  html:not(.noanim) .faq details[open] .a { animation: os-up .5s var(--out) both; }
  .js .rv { --dl: calc(var(--i, 0) * 75ms); opacity: 0; translate: 0 32px;
    transition: opacity .9s var(--out) var(--dl), translate .9s var(--out) var(--dl), scale .9s var(--out) var(--dl),
      transform .35s var(--spring), box-shadow .35s var(--out), border-color .3s, background-color .3s, color .2s; }
  .js .shots .rv { translate: 48px 0; }
  .js .places .rv { translate: 0 18px; scale: .96; }
  .js .rv.in { opacity: 1; translate: none; scale: none; }
  ::view-transition-old(root) { animation: vt-out .22s var(--out) both; }
  ::view-transition-new(root) { animation: vt-in .5s var(--out) both; }
}
/* Reduce Motion: the same moments as plain fades */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html:not(.noanim) .hero-copy > *, html:not(.noanim) .phones img, html:not(.noanim) .hexbg { animation: os-fade .8s ease both; }
  html:not(.noanim) .hero-copy > h1 { animation: none; }
  html:not(.noanim) .phones .left, html:not(.noanim) .phones .right { animation-delay: .25s; }
  .js .rv { opacity: 0; transition: opacity .7s ease calc(var(--i, 0) * 50ms), border-color .3s, box-shadow .3s; }
  .js .rv.in { opacity: 1; }
  .btn:hover, .badge:hover, .card:hover, .places a:hover, .shots figure:hover img { transform: none; }
  .card:hover .ic { transform: none; }
  .phones:hover .left, .phones:hover .right { translate: none; }
}
.noanim *, .noanim *::before, .noanim *::after { animation: none !important; transition: none !important; }
.noanim .rv { opacity: 1 !important; translate: none !important; scale: none !important; }

/* A soft cross-fade while the theme switches (site.js adds .theme-anim for 450 ms). */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease !important; }

/* From the blog: home page cards that link to blog posts */
.posts .card { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.posts .card:hover { transform: translateY(-2px); border-color: var(--accent-ink); }
.posts .card:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.posts .kick { font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.posts .card h3 { margin-top: 8px; }
.posts .more { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--accent-ink); }
.posts .all { margin-top: 22px; }
@media (prefers-reduced-motion: reduce) { .posts .card { transition: none; } .posts .card:hover { transform: none; } }
