:root {
    --bg: #fbf8f3;
    --surface: #ffffff;
    --surface-2: #fffcf8;
    --ink: #24303f;
    --muted: #63707f;
    --line: rgba(36, 48, 63, 0.1);
    --sky: #5b7cc0;
    --sky-2: #7aa0df;
    --dawn: #e9b79c;
    --haze: #f5e9de;
    --shadow: 0 20px 50px -26px rgba(36, 48, 63, 0.3);
    --card-shadow:
        0 1px 2px rgba(36, 48, 63, 0.05),
        0 12px 32px -20px rgba(36, 48, 63, 0.22);
    --line-strong: rgba(36, 48, 63, 0.18);
    --serif: "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", Georgia, serif;
    --sans:
        "Noto Sans SC", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Arial, sans-serif;
    --maxw: 1140px;
    --hero-glow: radial-gradient(
        1200px 720px at 80% -10%,
        rgba(255, 247, 235, 0.96),
        rgba(255, 226, 196, 0.6) 28%,
        rgba(240, 196, 158, 0.3) 46%,
        rgba(251, 248, 243, 0) 70%
    );
}
[data-theme="dark"] {
    --bg: #0f141c;
    --surface: #141c28;
    --surface-2: #121822;
    --ink: #f7faff;
    --muted: #9aa7bc;
    --line: rgba(255, 255, 255, 0.09);
    --sky: #8fb0ea;
    --sky-2: #8fb0ea;
    --dawn: #e9b79c;
    --haze: #1a2432;
    --shadow: 0 26px 64px -30px rgba(0, 0, 0, 0.72);
    --card-shadow:
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 14px 36px -22px rgba(0, 0, 0, 0.6);
    --line-strong: rgba(255, 255, 255, 0.16);
    --hero-glow: radial-gradient(
        1000px 640px at 80% -12%,
        rgba(143, 176, 234, 0.15),
        rgba(143, 176, 234, 0.05) 42%,
        rgba(15, 20, 28, 0) 68%
    );
}
* {
    box-sizing: border-box;
}
h1,
h2,
h3,
.sec-title,
.big {
    text-wrap: balance;
}
.lead,
.card p,
.dest p,
.phase,
.note,
figcaption,
.community,
.safari-note {
    text-wrap: pretty;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
    transition:
        background 1.8s cubic-bezier(0.3, 0.5, 0.7, 0.5),
        color 1.8s cubic-bezier(0.3, 0.5, 0.7, 0.5);
}
img {
    max-width: 100%;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}
b {
    font-weight: 500;
}
.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 28px;
    position: relative;
    background: transparent;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 17px;
}
.brand img {
    border-radius: 8px;
}
.nav-links {
    display: flex;
    gap: 28px;
    font-size: 14px;
    color: var(--muted);
}
.nav-links a:hover {
    color: var(--ink);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ghost-btn {
    background: none;
    border: 1px solid var(--line);
    color: var(--ink);
    height: 34px;
    min-width: 34px;
    padding: 0 11px;
    border-radius: 9px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        border-color 0.2s,
        background 0.2s;
}
.ghost-btn:hover {
    border-color: var(--sky);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ink);
    color: var(--bg);
    padding: 12px 22px;
    border-radius: 11px;
    font-weight: 400;
    font-size: 15px;
    cursor: pointer;
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        opacity 0.2s;
    border: 1px solid transparent;
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--card-shadow);
}
.btn-sm {
    padding: 8px 15px;
    font-size: 13px;
    border-radius: 9px;
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn-ghost:hover {
    border-color: var(--sky);
}
.install-split {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    gap: 1.5px;
}
.install-main {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.install-toggle {
    padding: 12px 12px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.install-toggle svg {
    transition: transform 0.2s;
}
.install-split.open .install-toggle svg {
    transform: rotate(180deg);
}
.install-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 6px;
    display: none;
    z-index: 20;
}
.install-split.open .install-menu {
    display: block;
}
.install-menu a {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 14px;
    white-space: nowrap;
}
.install-menu a:hover {
    background: var(--line);
}
@media (max-width: 720px) {
    .nav-links {
        display: none;
    }
}

.masthead {
    position: relative;
    overflow: hidden;
}
.masthead::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hero-glow);
    pointer-events: none;
}
.hero {
    position: relative;
    padding: 120px 0 96px;
}
.hero .wrap {
    position: relative;
}
.eyebrow {
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sky);
    margin: 0 0 22px;
}
.hero h1 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.12;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}
.lead {
    font-size: clamp(17px, 2vw, 20px);
    color: var(--muted);
    max-width: 54ch;
    margin: 0 0 34px;
}
.cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}
section {
    padding: 92px 0;
}
.sec-eyebrow {
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sky);
    margin: 0 0 14px;
}
.sec-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(26px, 3.4vw, 40px);
    line-height: 1.28;
    margin: 0 0 46px;
    letter-spacing: -0.01em;
    max-width: 22ch;
}

.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px;
    box-shadow: var(--card-shadow);
}
.card .tag {
    font-size: 12px;
    color: var(--sky);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 16px;
    display: block;
}
.card h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 20px;
    margin: 0 0 12px;
}
.card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}
@media (max-width: 820px) {
    .bento {
        grid-template-columns: 1fr;
    }
}

.dest {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px 22px;
    box-shadow: var(--card-shadow);
    text-align: center;
}
.dest .ico {
    height: 34px;
    width: auto;
    margin: 0 auto 14px;
}
[data-theme="dark"] .ico-invert {
    filter: invert(1);
}
.alt-install {
    margin: 14px 0 0;
    font-size: 13px;
}
.alt-install a {
    color: var(--muted);
    border-bottom: 1px solid transparent;
    transition:
        color 0.2s,
        border-color 0.2s;
}
.alt-install a:hover {
    color: var(--ink);
    border-color: var(--line);
}
.dest h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 19px;
    margin: 0 0 8px;
}
.dest p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}
.note {
    margin-top: 24px;
    color: var(--muted);
    font-size: 14px;
}

.shots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.shot {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin: 0;
}
.shot img {
    width: 100%;
}
.shot figcaption {
    padding: 16px 22px;
    color: var(--muted);
    font-size: 14px;
    border-top: 1px solid var(--line);
}
@media (max-width: 820px) {
    .shots {
        grid-template-columns: 1fr;
    }
}

.story {
    text-align: center;
}
.gather {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 14px auto 54px;
    max-width: 660px;
}
.frag {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 18px;
    font-size: 14px;
    color: var(--muted);
    box-shadow: var(--card-shadow);
    transition:
        transform 1s cubic-bezier(0.2, 0.7, 0.2, 1),
        opacity 1s ease;
}
.phase {
    max-width: 46ch;
    margin: 0 auto 18px;
    color: var(--muted);
    font-size: 17px;
}
.phase b {
    color: var(--ink);
}
.story .big {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(24px, 3.4vw, 38px);
    color: var(--ink);
    margin: 44px auto 0;
    max-width: 22ch;
    line-height: 1.3;
}

.community {
    margin-top: 26px;
    color: var(--muted);
    font-size: 14px;
}

.foot {
    padding: 104px 0 60px;
    position: relative;
    overflow: hidden;
}
.foot::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hero-glow);
    opacity: 0.7;
    pointer-events: none;
}
.foot .wrap {
    position: relative;
    text-align: center;
}
.foot .big {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(28px, 4vw, 50px);
    margin: 0 0 32px;
    line-height: 1.2;
}
.store-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.safari-note {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 44px;
}
.foot-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 14px;
    border-top: 1px solid var(--line);
    padding-top: 32px;
}
.foot-links a:hover {
    color: var(--ink);
}
.copyright {
    margin-top: 22px;
    color: var(--muted);
    font-size: 12px;
}

.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}
.js .reveal.in {
    opacity: 1;
    transform: none;
}
.js .reveal[data-d="1"] {
    transition-delay: 0.08s;
}
.js .reveal[data-d="2"] {
    transition-delay: 0.16s;
}
.js .reveal[data-d="3"] {
    transition-delay: 0.24s;
}
.js .gather .frag {
    transition:
        transform 1s cubic-bezier(0.2, 0.7, 0.2, 1),
        opacity 1s ease;
}
.js .gather:not(.in) .frag {
    opacity: 0.5;
}
.js .gather:not(.in) .frag:nth-child(1) {
    transform: translate(-48px, -30px) rotate(-9deg);
}
.js .gather:not(.in) .frag:nth-child(2) {
    transform: translate(0, -54px) rotate(4deg);
}
.js .gather:not(.in) .frag:nth-child(3) {
    transform: translate(46px, -20px) rotate(8deg);
}
.js .gather:not(.in) .frag:nth-child(4) {
    transform: translate(58px, 26px) rotate(-5deg);
}
.js .gather:not(.in) .frag:nth-child(5) {
    transform: translate(-52px, 30px) rotate(6deg);
}
@media (prefers-reduced-motion: reduce) {
    .js .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .js .gather .frag,
    .js .gather:not(.in) .frag {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Language switch — per-character chimney-smoke dissipation */
.ch {
    display: inline-block;
    white-space: pre;
    will-change: transform, opacity, filter;
}
@keyframes smoke-away {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0) scale(1);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) rotate(var(--rot))
            scale(1.28);
        filter: blur(var(--bl));
    }
}
.ch.away {
    animation: smoke-away var(--dur, 0.52s) cubic-bezier(0.36, 0.02, 0.62, 0.3)
        forwards;
}
@media (prefers-reduced-motion: reduce) {
    .ch.away {
        animation: none;
    }
}

/* Sponsors — angel supporters thank-you band */
.sponsors .sec-title {
    margin-bottom: 20px;
}
.sponsors-lead {
    color: var(--muted);
    font-size: clamp(16px, 1.8vw, 18px);
    max-width: 52ch;
    margin: 0 0 44px;
}
.sponsors-grid {
    column-count: 3;
    column-gap: 18px;
}
.sponsor {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px 28px;
    box-shadow: var(--card-shadow);
    margin: 0 0 18px;
    break-inside: avoid;
    display: block;
}
.sponsor:nth-child(3n + 2) {
    background: var(--surface-2);
}
.sponsor-amt {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 26px;
    line-height: 1;
    color: var(--sky);
    margin-bottom: 16px;
}
.sponsor blockquote {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.55;
    color: var(--ink);
    margin: 0 0 18px;
    flex: 1;
}
.sponsor-note {
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 18px;
    flex: 1;
}
.sponsor figcaption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    letter-spacing: 0.03em;
}
.sp-name {
    color: var(--sky);
    font-weight: 500;
}
a.sp-name {
    border-bottom: 1px solid transparent;
    transition:
        color 0.2s,
        border-color 0.2s;
}
a.sp-name:hover {
    color: var(--ink);
    border-color: var(--sky);
}
.sp-date {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.sponsors-total {
    margin: 28px 0 0;
    font-family: var(--serif);
    font-size: clamp(16px, 1.9vw, 19px);
    color: var(--ink);
}
.sponsors-names {
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.95;
}
.sponsors-names a {
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    transition:
        color 0.2s,
        border-color 0.2s;
}
.sponsors-names a:hover {
    color: var(--ink);
    border-color: var(--sky);
}
@media (max-width: 980px) {
    .sponsors-grid {
        column-count: 2;
    }
}
@media (max-width: 640px) {
    .sponsors-grid {
        column-count: 1;
    }
}


/* Capture — editorial: feature panel + numbered list */
.capture-lay {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 44px;
    align-items: start;
}
.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 38px 36px;
    box-shadow: var(--card-shadow);
}
.feature .tag {
    font-size: 12px;
    color: var(--sky);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 16px;
    display: block;
}
.feature h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(22px, 2.4vw, 28px);
    margin: 0 0 16px;
}
.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.85;
}
.numlist {
    list-style: none;
    margin: 0;
    padding: 0;
}
.numlist li {
    display: flex;
    gap: 22px;
    padding: 24px 4px;
    border-top: 1px solid var(--line);
}
.numlist li:first-child {
    border-top: 0;
    padding-top: 2px;
}
.numlist li:last-child {
    padding-bottom: 2px;
}
.numlist .num {
    font-family: var(--serif);
    font-size: 15px;
    color: var(--sky);
    font-variant-numeric: tabular-nums;
    padding-top: 3px;
    min-width: 22px;
}
.numlist h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 18px;
    margin: 0 0 6px;
}
.numlist p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
}
@media (max-width: 820px) {
    .capture-lay {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

/* Sync — hub-and-spoke distribution flow */
.flow {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hub {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    padding: 22px 36px;
    box-shadow: var(--card-shadow);
}
.hub-ico {
    border-radius: 12px;
    margin-bottom: 10px;
}
.hub-name {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 20px;
}
.hub-sub {
    color: var(--muted);
    font-size: 13.5px;
    margin-top: 2px;
}
.flow-tree {
    width: 100%;
    max-width: 760px;
    height: 56px;
    display: block;
}
.flow-tree path {
    stroke: var(--sky-2);
    opacity: 0.5;
}
.dests {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: 100%;
}
@media (max-width: 820px) {
    .flow-tree {
        display: none;
    }
    .dests {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 22px;
    }
}
