:root {
  --paper: #f5f3ee;
  --paper-blue: #e8edf0;
  --surface: #fffefa;
  --ink: #232526;
  --muted: #687177;
  --line: #d9dcdb;
  --red: #8b3035;
  --red-soft: #c88482;
  --blue: #3f5968;
  --blue-deep: #253943;
  --sand: #d7c6aa;
  --serif: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.page-grain { position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .16; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E"); }
.section-shell { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }

.site-header { position: absolute; z-index: 10; top: 0; left: 50%; width: min(1320px, calc(100% - 48px)); transform: translateX(-50%); display: flex; justify-content: space-between; align-items: center; padding: 24px 0; border-bottom: 1px solid rgba(35,37,38,.14); }
.wordmark { display: flex; align-items: center; gap: 12px; }
.wordmark-logo { width: 42px; height: 42px; border-radius: 14px; box-shadow: 0 10px 22px rgba(37,57,67,.12); }
.wordmark > span:last-child { display: grid; }
.wordmark strong { font-family: Georgia, serif; font-size: 17px; letter-spacing: .02em; }
.wordmark small { color: var(--muted); font-size: 11px; letter-spacing: .28em; }
.site-header nav { display: flex; align-items: center; gap: 30px; font-size: 13px; }
.site-header nav > a:not(.admin-link) { color: var(--muted); }

.hero { min-height: 820px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 52px; padding-top: 112px; }
.eyebrow { margin: 0 0 20px; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .24em; }
.hero h1, .section-heading h2, .statement-inner h2, .mobile-only h2, .download-heading h2 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -.045em; }
.hero h1 { font-size: clamp(50px, 5.4vw, 78px); line-height: 1.13; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-lead { max-width: 570px; margin: 28px 0 0; color: var(--muted); font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.primary-action { display: inline-flex; align-items: center; justify-content: center; min-width: 138px; padding: 15px 24px; color: white; background: var(--red); border-radius: 999px; font-weight: 700; }
.text-action { color: var(--blue-deep); font-size: 14px; font-weight: 700; }
.text-action span { margin-left: 8px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 46px; }
.hero-notes span { padding: 7px 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }

.hero-visual { position: relative; min-height: 620px; }
.image-arch { position: absolute; top: 22px; right: 0; width: 78%; height: 520px; overflow: hidden; border-radius: 260px 260px 20px 20px; }
.image-arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(23,35,41,.45)); }
.image-arch img { width: 100%; height: 100%; object-fit: cover; }
.museum-caption { position: absolute; z-index: 2; right: 18px; bottom: 22px; display: flex; gap: 12px; color: var(--blue-deep); }
.museum-caption span { font: italic 34px Georgia, serif; color: var(--red-soft); }
.museum-caption p { margin: 4px 0 0; font-family: var(--serif); font-size: 14px; line-height: 1.6; }
.phone-frame { position: absolute; z-index: 3; left: 0; bottom: 12px; width: 264px; padding: 9px; border-radius: 42px; background: #202426; box-shadow: 0 30px 70px rgba(26,36,40,.28); transform: rotate(-3deg); }
.phone-speaker { position: absolute; z-index: 2; top: 17px; left: 50%; width: 72px; height: 17px; transform: translateX(-50%); border-radius: 999px; background: #202426; }
.phone-screen { min-height: 532px; overflow: hidden; padding: 30px 18px 18px; border-radius: 34px; background: #f8f5ee; }
.app-topline { display: flex; justify-content: space-between; color: #555d61; font-size: 10px; }
.app-kicker { margin: 30px 0 7px; color: var(--red); font-size: 8px; font-weight: 800; letter-spacing: .2em; }
.phone-screen h2 { margin: 0 0 14px; font-family: var(--serif); font-size: 27px; }
.app-image { height: 175px; overflow: hidden; border-radius: 70px 70px 18px 18px; }
.app-image img { width: 100%; height: 100%; object-fit: cover; }
.app-copy { margin: 15px 2px; color: #60686c; font-size: 11px; line-height: 1.7; }
.app-route { display: grid; gap: 5px; padding: 14px; border-radius: 17px; background: #e7ecee; }
.app-route span { color: var(--red); font-size: 8px; letter-spacing: .18em; }
.app-route strong { font-family: var(--serif); font-size: 14px; }
.app-route small { color: #697278; font-size: 9px; }

.statement-band { position: relative; overflow: hidden; padding: 74px 0; color: white; background: var(--blue-deep); }
.statement-band::before { content: ""; position: absolute; width: 460px; height: 460px; right: -120px; top: -170px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.018); }
.statement-inner { position: relative; }
.statement-inner > p { margin: 0 0 12px; color: #b9c6cc; font-size: 14px; }
.statement-inner h2 { max-width: 840px; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.22; }
.statement-mark { position: absolute; right: 1%; bottom: 0; color: var(--sand); font-family: var(--serif); font-size: 18px; letter-spacing: .4em; writing-mode: vertical-rl; }

.story { padding: 66px 0; }
.section-heading { display: grid; grid-template-columns: .75fr 1.25fr; align-items: end; margin-bottom: 24px; }
.section-heading h2 { font-size: clamp(34px, 3.9vw, 52px); line-height: 1.16; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { position: relative; min-height: 245px; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background-color: var(--surface); box-shadow: 0 18px 42px rgba(34, 37, 38, .05); transition: transform 1.35s cubic-bezier(.16,.84,.24,1), border-color 1.3s ease .1s, background-color 1.45s ease .12s, box-shadow 1.3s ease .1s, color 1.2s ease .1s; }
.feature-card::before { content: ""; position: absolute; width: 140px; height: 140px; right: -44px; top: -58px; border: 1px solid var(--line); border-radius: 50%; transition: transform 1.16s cubic-bezier(.16,.84,.24,1), border-color 1s ease .12s, opacity 1s ease .12s; }
.feature-card::after { content: ""; position: absolute; inset: auto -35% -45% 18%; height: 170px; opacity: 0; pointer-events: none; background: radial-gradient(circle, rgba(255,255,255,.2), transparent 68%); transform: translateY(18px) rotate(-8deg); transition: opacity 1.08s ease .16s, transform 1.18s cubic-bezier(.16,.84,.24,1); }
.feature-card-dark { background: var(--surface); border-color: var(--line); }
.feature-card-dark::before { border-color: var(--line); }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; color: var(--red); border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: 19px; }
.feature-card-dark .feature-icon { color: var(--red); }
.feature-card h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 26px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.feature-card-dark p { color: var(--muted); }

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover { color: white; background-color: #7f3034; border-color: rgba(139,48,53,.62); box-shadow: 0 20px 46px rgba(74, 36, 34, .11); transform: translateY(-2px); }
  .feature-card:hover::before { opacity: .72; border-color: rgba(255,255,255,.24); transform: scale(1.08) translate(-4px, 4px); }
  .feature-card:hover::after { opacity: 1; transform: translateY(0) rotate(-8deg); }
  .feature-card:hover .feature-icon { color: white; }
  .feature-card:hover p { color: #f2dedd; }
}

.mobile-only { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 650px; background: var(--paper-blue); }
.mobile-only-image { min-height: 650px; background: linear-gradient(90deg, rgba(25,38,45,.15), transparent), url("/media/museums/capital-museum-exterior-02.jpg") center/cover; clip-path: polygon(0 0, 90% 0, 100% 100%, 0 100%); }
.mobile-only-copy { align-self: center; max-width: 560px; padding: 80px 70px 80px 40px; }
.mobile-only h2 { font-size: clamp(42px, 4.3vw, 62px); line-height: 1.24; }
.mobile-only-copy > p:not(.eyebrow) { margin: 26px 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.mobile-only ul { margin: 30px 0 0; padding: 0; list-style: none; }
.mobile-only li { display: flex; gap: 16px; padding: 15px 0; border-top: 1px solid #cbd2d5; font-size: 14px; }
.mobile-only li span { color: var(--red); font: italic 15px Georgia, serif; }

.download-section { padding: 130px 0; background: var(--surface); }
.download-heading { max-width: 720px; margin-bottom: 50px; }
.download-heading h2 { font-size: clamp(34px, 3.9vw, 52px); line-height: 1.16; }
.download-heading > p:last-child { max-width: 620px; margin-top: 24px; color: var(--muted); line-height: 1.8; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 430px)); justify-content: center; gap: 22px; }
.download-card { display: grid; grid-template-columns: 1fr 168px; gap: 20px 28px; align-items: center; padding: 30px; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); }
.platform-heading { display: flex; justify-content: center; text-align: center; }
.platform-heading small { color: var(--red); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.platform-heading h3 { margin: 4px 0 0; font-family: var(--serif); font-size: 22px; }
.qr-stage { grid-row: 1 / 4; grid-column: 2; width: 168px; height: 168px; padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.qr-code { display: none; width: 150px; height: 150px; }
.qr-code img, .qr-code canvas { width: 150px !important; height: 150px !important; }
.qr-placeholder { position: relative; height: 100%; display: grid; place-items: center; overflow: hidden; color: var(--muted); border: 1px dashed #bfc4c4; border-radius: 11px; text-align: center; font-size: 11px; line-height: 1.6; }
.qr-placeholder span { position: absolute; inset: 8px; opacity: .17; background: repeating-conic-gradient(var(--ink) 0 25%, transparent 0 50%) 0 0/18px 18px; }
.qr-placeholder strong { z-index: 1; padding: 8px; background: rgba(255,255,255,.9); }
.download-card.available .qr-code { display: block; }
.download-card.available .qr-placeholder { display: none; }
.release-status { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.download-button { justify-self: start; padding: 11px 16px; color: white; border-radius: 999px; background: var(--red); font-size: 13px; font-weight: 700; }
.download-button.disabled { color: var(--muted); background: #e3e2dd; pointer-events: none; }

footer { padding: 38px 0 30px; color: #d6dde0; background: #1e2c33; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; }
.footer-brand { display: flex; align-items: baseline; gap: 12px; }
.footer-brand strong { font: 22px Georgia, serif; color: white; }
.footer-brand span, footer p, .footer-links { color: #aebbc0; font-size: 12px; }
footer p { text-align: center; }
.footer-links { display: flex; justify-content: flex-end; gap: 24px; }
.footer-compliance { display: grid; gap: 11px; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(214,221,224,.14); color: #8fa0a7; font-size: 12px; text-align: center; }
.footer-meta, .footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.footer-docs { color: #819199; }
.footer-contact { gap: 8px 24px; }
.footer-compliance a { color: #b9c6cc; }

.reveal { animation: rise .75s cubic-bezier(.2,.75,.2,1) both; }
.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 160px; padding-bottom: 80px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { width: min(680px, 100%); margin: 0 auto; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; }
  .mobile-only { grid-template-columns: 1fr; }
  .mobile-only-image { min-height: 430px; clip-path: none; }
  .mobile-only-copy { max-width: none; padding: 70px max(32px, 8vw); }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .download-card { grid-template-columns: 1fr; }
  .qr-stage { grid-row: auto; grid-column: auto; }
}

@media (max-width: 680px) {
  .section-shell { width: min(100% - 36px, 1180px); }
  .site-header { width: calc(100% - 32px); padding: 16px 0; }
  .wordmark small { display: none; }
  .hero { min-height: 0; gap: 44px; padding-top: 130px; }
  .hero h1 { font-size: 43px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-visual { min-height: 510px; }
  .image-arch { width: 86%; height: 400px; }
  .phone-frame { width: 210px; }
  .phone-screen { min-height: 424px; padding: 26px 14px 14px; }
  .app-kicker { margin-top: 22px; }
  .phone-screen h2 { font-size: 22px; }
  .app-image { height: 130px; }
  .app-copy { font-size: 9px; }
  .museum-caption { display: none; }
  .statement-band, .download-section { padding: 64px 0; }
  .story { padding: 48px 0; }
  .statement-inner h2, .section-heading h2, .mobile-only h2, .download-heading h2 { font-size: 34px; }
  .statement-inner h2 { max-width: none; }
  .statement-mark { display: none; }
  .feature-grid, .download-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 220px; }
  .feature-card-dark { transform: none; }
  .mobile-only-image { min-height: 300px; }
  .mobile-only-copy { padding: 62px 24px; }
  .download-card { grid-template-columns: 1fr 132px; padding: 22px; }
  .qr-stage { grid-row: 1 / 4; grid-column: 2; width: 132px; height: 132px; }
  .qr-code, .qr-code img, .qr-code canvas { width: 114px !important; height: 114px !important; }
  .footer-inner { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .footer-brand, .footer-links { justify-content: center; }
  .footer-meta, .footer-contact { flex-direction: column; gap: 7px; }
  footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  .feature-card, .feature-card::before, .feature-card::after { transition: none; }
  .feature-card:hover { transform: none; }
}
