:root {
    --paper:      #f4f5f7;
    --surface:    #ffffff;
    --ink:        #17181d;
    --ink-deep:   #101116;
    --ink-2:      #5c626c;
    --line:       #e3e5ea;
    --accent:     #ffffff;
    --accent-ink: #ffffff;
    --on-dark:    #f4f2ee;
    --on-dark-2:  #a9aab0;

    --radius: 16px;
    --maxw: 1080px;

    --sans: "Noto Sans", "Noto Sans SC", "Noto Sans TC",
            -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --mono: "Space Mono", "Noto Sans Mono", ui-monospace, "SFMono-Regular",
            Menlo, Consolas, monospace;

    --fs-display: clamp(2.6rem, 7vw, 5.4rem);
    --fs-h2:      clamp(1.8rem, 3.6vw, 2.9rem);
    --fs-lead:    clamp(1.2rem, 2vw, 1.65rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; }
a { color: inherit; }

.wordmark {
    height: 0.86em;
    width: auto;
    vertical-align: -0.04em;
    display: inline-block;
    margin: 0 0.22em;
    filter: brightness(0);
}
.hero .wordmark,
.band--dark .wordmark,
footer .wordmark { filter: none; }

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(16px, 4vw, 40px);
    background: rgba(16, 17, 22, 0.72);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-brand img { height: 22px; width: auto; display: block; }

.nav-right { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); }

.nav-links { display: flex; list-style: none; gap: clamp(18px, 3vw, 30px); }
.nav-links a {
    color: var(--on-dark);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    opacity: 0.82;
    transition: opacity 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { opacity: 1; color: #fff; }

.lang {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
}
.lang a {
    color: var(--on-dark-2);
    text-decoration: none;
    transition: color 0.2s ease;
}
.lang a:hover { color: #fff; }
.lang a[aria-current="true"] { color: var(--accent); font-weight: 700; }
.lang span { color: rgba(255, 255, 255, 0.25); }

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px clamp(20px, 6vw, 48px) 90px;
    background-image: url('dot-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(16, 17, 22, 0.66) 0%,
        rgba(16, 17, 22, 0.30) 34%,
        rgba(16, 17, 22, 0.42) 72%,
        rgba(16, 17, 22, 0.86) 100%
    );
}
.hero > * { position: relative; z-index: 1; }

.hero-mark {
    width: clamp(200px, 50vw, 400px);
    height: auto;
    filter: none;
    opacity: 0.97;
}

.thesis {
    font-weight: 900;
    font-size: var(--fs-display);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--ink);
    max-width: 18ch;
    margin: 0 auto;
}
.thesis .wordmark {
    height: 0.6em;
    vertical-align: -0.02em;
}

.eyebrow {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent-ink);
    margin-bottom: 24px;
}
.eyebrow::after {
    content: '';
    width: 34px;
    height: 2px;
    background: var(--accent);
}

.section {
    padding: clamp(80px, 12vw, 140px) clamp(20px, 6vw, 48px);
}
.section--paper   { background: var(--paper); }
.section--surface { background: var(--surface); }
.band--dark       { background: var(--ink-deep); color: var(--on-dark); }

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-title {
    font-weight: 800;
    font-size: var(--fs-h2);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.lead {
    font-size: var(--fs-lead);
    line-height: 1.5;
    font-weight: 400;
    color: var(--ink);
    max-width: 32ch;
    margin: 0 auto;
}
.band--dark .lead { color: var(--on-dark); }
.lead--muted { color: var(--ink-2); max-width: 46ch; }
.band--dark .lead--muted { color: var(--on-dark-2); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
    padding: 15px 34px;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
    background: var(--accent-ink);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(143, 92, 29, 0.35);
}
.btn .fa-arrow-right { font-size: 13px; transition: transform 0.2s ease; }
.btn:hover .fa-arrow-right { transform: translateX(3px); }

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    margin-top: 56px;
}
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 48px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
    transform: translateY(-6px);
    border-color: rgba(181, 118, 42, 0.45);
    box-shadow: 0 18px 40px rgba(23, 24, 29, 0.10);
}
.card-icon {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: rgba(181, 118, 42, 0.10);
    color: var(--accent);
    font-size: 26px;
}
.card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}
.card-arrow {
    color: var(--accent);
    font-size: 13px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.card:hover .card-arrow { opacity: 1; transform: translateY(0); }

.donate-mark {
    width: clamp(84px, 12vw, 120px);
    height: auto;
    margin-bottom: 30px;
    filter: none;
    opacity: 0.96;
}

footer {
    background: var(--ink-deep);
    color: var(--on-dark-2);
    padding: clamp(56px, 8vw, 84px) clamp(20px, 6vw, 48px) 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}
.footer-brand img { height: 26px; width: auto; display: block; margin-bottom: 22px; }

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 28px;
}
.footer-links a {
    color: var(--on-dark-2);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-links a:hover { color: #fff; }
.footer-links .dot { display: inline-flex; align-items: baseline; gap: 2px; }
.footer-links .dot .wordmark { height: 0.8em; }

.footer-legal {
    justify-self: end;
    max-width: 40ch;
    text-align: right;
    font-size: 13.5px;
    line-height: 1.7;
}
.footer-legal a { color: var(--accent); text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }

.footer-bottom {
    max-width: 1180px;
    margin: 48px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.4);
}
.footer-bottom .wordmark { height: 0.95em; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

@media (max-width: 860px) {
    .cards { grid-template-columns: 1fr; max-width: 420px; }
    .footer-inner { grid-template-columns: 1fr; gap: 40px; }
    .footer-legal { justify-self: start; text-align: left; }
}
@media (max-width: 620px) {
    .nav-links { display: none; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
