:root {
    /* --bg: #f7f2e8;  */
    /* --bg-soft: #fdfaf4;
    --paper: #fffdfa;
    --paper-2: #fbf6ee; */
    --bg: rgba(243, 244, 242, 0.8); 
    --bg-soft: rgba(230, 232, 228, 0.9);
    --paper: rgba(255, 255, 255, 1);
    --paper-2: rgba(248, 249, 247, 1);
    --text: #2d2419;
    --muted: #726756;
    --line: rgba(177, 140, 79, 0.16);
    --line-2: rgba(177, 140, 79, 0.26);
    --gold-1: #f5e7c4;
    --gold-2: #e5c98f;
    --gold-3: #c69b58;
    --gold-4: #8f6a36;
    --gold-5: #5d4525;
    --shadow-lg: 0 28px 70px rgba(116, 91, 53, 0.12);
    --shadow-md: 0 16px 36px rgba(116, 91, 53, 0.1);
    --shadow-sm: 0 10px 24px rgba(116, 91, 53, 0.08);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --container-max: 1360px;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 8% 0%, rgba(229, 201, 143, 0.22), transparent 20%),
        radial-gradient(circle at 92% 8%, rgba(229, 201, 143, 0.16), transparent 16%),
        linear-gradient(180deg, #fffdf9 0, #fbf7ef 260px, rgba(243, 244, 242, 0.8) 100%);
    /* background: radial-gradient(circle at 8% 0%, rgba(229, 201, 143, 0.22), transparent 20%),
        radial-gradient(circle at 92% 8%, rgba(229, 201, 143, 0.16), transparent 16%),
        linear-gradient(180deg, #fffdf9 0, #fbf7ef 260px, #f7f2e8 100%); */
    overflow-x: hidden;
}
body.menu-open {
    overflow: hidden;
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    display: block;
    max-width: 100%;
}
.site-shell {
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}
body.page-ready .site-shell {
    opacity: 1;
    transform: none;
}
body.page-leaving .site-shell {
    opacity: 0;
    transform: translateY(10px);
}
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
}
.skip-link:focus {
    left: 20px;
    top: 20px;
    z-index: 9999;
    padding: 0.8rem 1rem;
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: 14px;
}
.container-wide {
    width: min(100% - 2rem, var(--container-max));
    margin-inline: auto;
}
.main-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.section {
    padding: 1.5rem 0;
}
.section-sm {
    padding: 1rem 0;
}
.section-title {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 3vw, 3.8rem);
    line-height: 1.14;
    letter-spacing: 0.02em;
    font-weight: 800;
}
.section-lead {
    margin: 0;
    font-size: 1.04rem;
    color: var(--muted);
    line-height: 1.92;
}
.gold-text {
    font-size: clamp(1rem, 6vw, 2.25rem);
    background: linear-gradient(135deg, var(--gold-2), var(--gold-3), var(--gold-5));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.text-balance {
    text-wrap: balance;
}
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    padding: 0.56rem 0.98rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 239, 223, 0.96));
    border: 1px solid var(--line);
    color: var(--gold-5);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.76rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}
.kicker::before {
    content: "";
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold-4), var(--gold-2));
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    background: rgba(255, 251, 244, 0.8);
    border-bottom: 1px solid rgba(177, 140, 79, 0.12);
    box-shadow: 0 10px 28px rgba(116, 91, 53, 0.05);
}
.navbar {
    padding: 0.15rem 0;
}
.navbar > .container-wide {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 0 1 auto;
}
.navbar-brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    flex: 0 0 auto;
}
.brand-meta {
    display: flex;
    flex-direction: column;
    gap: 0.14rem;
    line-height: 1.02;
}
.brand-meta > span {
    font-size: 1.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.brand-meta small {
    color: rgba(45, 36, 25, 0.52);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.navbar-collapse {
    flex-grow: 0;
}
.navbar-nav {
    margin-left: auto;
}
.navbar-toggler {
    border: 1px solid rgba(177, 140, 79, 0.18);
    color: var(--text);
    padding: 0.45rem 0.7rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
}
.navbar-toggler:focus {
    box-shadow: none;
}
.navbar .nav-link {
    color: rgba(45, 36, 25, 0.85) !important;
    padding: 0.8rem 0.95rem !important;
    font-weight: 700;
    position: relative;
    text-wrap: nowrap;
}
.navbar .nav-link:hover {
    color: var(--gold-3) !important;
    font-weight: 600;
}

.navbar .nav-link.active {
    color: var(--gold-4) !important;
    font-weight: 900;
}
.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-3), transparent);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: scaleX(1);
}
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.84rem 1.15rem !important;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2), var(--gold-3));
    color: #2d2214 !important;
    box-shadow: 0 14px 30px rgba(177, 140, 79, 0.18);
}
.nav-cta::after {
    display: none;
}
.hero-home,
.page-hero {
    position: relative;
    overflow: hidden;
}
.hero-home .container-wide,
.page-hero .container-wide {
    position: relative;
    z-index: 1;
}
.hero-home {
    padding:  0 0 10px 0;
    display: flex;
    align-items: center;
    background-color: linear-gradient(
            100deg,
            rgba(255, 252, 247, 0.97) 0%,
            rgba(255, 247, 237, 0.94) 38%,
            rgba(255, 248, 238, 0.58) 62%,
            rgba(255, 255, 255, 0.08) 100%
        );
    /* background-image: url('./images/banner.webp');  */
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
}

.page-hero {
    padding: 132px 0 68px;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
}
.page-hero.is-about::before {
    background:
        linear-gradient(
            100deg,
            rgba(255, 252, 247, 0.96) 0%,
            rgba(255, 247, 237, 0.9) 48%,
            rgba(255, 247, 237, 0.3) 100%
        ),
        url("images/banner-building.jpg") center/cover no-repeat;
}
.page-hero.is-treasury::before {
    background:
        linear-gradient(
            100deg,
            rgba(41, 31, 20, 0.52) 0%,
            rgba(255, 248, 238, 0.08) 48%,
            rgba(255, 248, 238, 0.04) 100%
        ),
        url("images/treasury-visual.jpg") center/cover no-repeat;
}
.page-hero.is-culture::before {
    background:
        linear-gradient(
            100deg,
            rgba(255, 252, 247, 0.94) 0%,
            rgba(255, 247, 237, 0.82) 44%,
            rgba(255, 247, 237, 0.28) 100%
        ),
        url("images/culture-visual.jpg") center/cover no-repeat;
}
.page-hero.is-pdf::before {
    background:
        linear-gradient(
            100deg,
            rgba(255, 252, 247, 0.96) 0%,
            rgba(255, 247, 237, 0.9) 48%,
            rgba(255, 247, 237, 0.26) 100%
        ),
        url("images/banner-origin.jpg") center/cover no-repeat;
}
.page-hero.is-contact::before {
    background:
        linear-gradient(
            100deg,
            rgba(255, 252, 247, 0.96) 0%,
            rgba(255, 247, 237, 0.9) 48%,
            rgba(255, 247, 237, 0.26) 100%
        ),
        url("images/banner-wall.jpg") center/cover no-repeat;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 2.75rem;
    align-items: center;
}
.hero-copy {
    max-width: 760px;
}
.hero-img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    object-position: center left;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    color: var(--gold-5);
    box-shadow: var(--shadow-sm);
    font-size: 0.84rem;
    letter-spacing: 0.08em;
}
.hero-title {
    margin: 1.35rem 0 1rem;
    font-size: clamp(3rem, 6vw, 3.5em);
    line-height: 1.2;
    letter-spacing: 0.02em;
    font-weight: 900;
}
.hero-title span {
    display: block;
}
.hero-subtitle {
    margin: 0;
    max-width: 780px;
    color: rgba(45, 36, 25, 0.72);
    font-size: 1.08rem;
    line-height: 1.95;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}
.btn-gold,
.btn-outline-gold,
.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.96rem 1.45rem;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2), var(--gold-3));
    color: #2a1f12;
    box-shadow: 0 16px 34px rgba(177, 140, 79, 0.18);
}
.btn-outline-gold {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line-2);
    color: var(--gold-5);
    box-shadow: var(--shadow-sm);
}
.btn-dark {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}
.btn-gold:hover,
.btn-outline-gold:hover,
.btn-dark:hover {
    transform: translateY(-2px);
}
.hero-stats,
.grid-3,
.grid-4,
.grid-5,
.timeline-strip,
.pdf-preview-grid,
.contact-info-grid,
.category-grid {
    display: grid;
    gap: 1rem;
}
.hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 2.3rem;
}
.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}
.grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
}
.timeline-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.contact-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pdf-preview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 1.4rem;
}
.category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.story-grid,
.masonry-grid,
.contact-grid,
.contact-dual-grid {
    display: grid;
    gap: 1.25rem;
}
.story-grid {
    grid-template-columns: 1.15fr 0.85fr;
}
.masonry-grid {
    grid-template-columns: 1.2fr 0.8fr;
}
.contact-grid {
    grid-template-columns: 1.05fr 0.95fr;
}
.contact-dual-grid {
    grid-template-columns: 1fr 1fr;
}
.stat-card,
.icon-card,
.value-card,
.story-card,
.contact-item,
.pdf-card,
.timeline-card,
.category-tile {
    padding: 1.25rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    height: 100%;
}
.stat-card strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.08rem;
}
.stat-card span,
.icon-card p,
.value-card p,
.story-card p,
.contact-item p,
.pdf-card p,
.timeline-card p,
.category-tile p {
    color: var(--muted);
    line-height: 1.78;
    margin: 0;
}
.hero-visual {
    position: relative;
}
.frame-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}
.frame-card img {
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
    object-position: center center;
}
.hero-coin {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 108px;
    height: 108px;
    padding: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow-md);
}
.hero-coin img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.card-premium,
.card-dark,
.gold-panel,
.quote-panel,
.figure-panel,
.immersive-panel,
.pdf-viewer-shell {
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.card-premium {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}
.card-dark {
    background: linear-gradient(160deg, rgba(255, 252, 247, 0.98), rgba(245, 236, 221, 0.94));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}
.gold-panel {
    background: linear-gradient(145deg, rgba(255, 250, 239, 0.98), rgba(246, 233, 205, 0.96));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    position: relative;
}
.gold-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("images/gold-texture.jpg") center/cover no-repeat;
    opacity: 0.1;
    mix-blend-mode: multiply;
}
.quote-panel {
    background: linear-gradient(145deg, rgba(255, 252, 247, 0.98), rgba(248, 239, 223, 0.88));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}
.immersive-panel {
    position: relative;
    min-height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.immersive-panel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.immersive-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(39, 28, 18, 0.74) 0%,
        rgba(39, 28, 18, 0.38) 42%,
        rgba(39, 28, 18, 0.1) 100%
    );
}
.immersive-panel .content {
    position: relative;
    z-index: 1;
    width: min(100% - 3rem, 640px);
    padding: 3rem;
    color: #fffaf1;
}
.immersive-panel .content p {
    color: rgba(255, 248, 236, 0.84);
    line-height: 1.9;
}
.card-premium > .inner,
.card-dark > .inner,
.gold-panel > .inner,
.quote-panel > .inner,
.pdf-card > .inner {
    padding: 2rem;
    position: relative;
    z-index: 1;
}
.icon-card .icon,
.value-card .icon,
.contact-item .icon,
.story-card .icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(245, 231, 196, 0.9), rgba(255, 255, 255, 0.96));
    border: 1px solid var(--line);
    color: var(--gold-4);
    font-size: 1.3rem;
}
.value-card .image {
    width: 100%;
    height: 350px;
    aspect-ratio: 3 / 2;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(245, 231, 196, 0.9), rgba(255, 255, 255, 0.96));
    border: 1px solid var(--line);
}
.value-card .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.icon-card h3,
.value-card h3,
.story-card h3,
.contact-item h3,
.pdf-card h3,
.timeline-card h3,
.category-tile h3 {
    margin: 0 0 0.7rem;
    font-size: 1.16rem;
}
.timeline-card .label {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--gold-4);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    padding: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-tile:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}
.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(34, 26, 18, 0.06) 0%, rgba(34, 26, 18, 0.64) 100%);
    transition: background-color 0.3s ease;
}
.category-tile:hover::after {
    background: linear-gradient(180deg, rgba(34, 26, 18, 0.02) 0%, rgba(34, 26, 18, 0.28) 100%);
}
.category-tile .body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 1.4rem;
    color: #fff9ef;
}
.category-tile .body p {
    color: rgba(255, 248, 236, 0.82);
}
.figure-panel {
    position: relative;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}
.figure-panel img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}
.figure-panel.tall img {
    min-height: 620px;
}
.figure-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
}
.figure-caption strong {
    display: block;
    margin-bottom: 0.35rem;
}
.figure-caption span {
    color: var(--muted);
}
.highlight-band {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
}
.highlight-band > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.highlight-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 252, 247, 0.92) 0%,
        rgba(255, 247, 237, 0.74) 45%,
        rgba(255, 247, 237, 0.18) 100%
    );
}
.highlight-band .content {
    position: relative;
    z-index: 1;
    width: min(100% - 3rem, 760px);
    padding: 3rem;
}
.highlight-band p {
    color: rgba(45, 36, 25, 0.72);
    line-height: 1.9;
    margin: 0;
}
.data-list {
    display: grid;
    gap: 1rem;
}
.data-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid rgba(177, 140, 79, 0.12);
}
.data-row:last-child {
    border-bottom: 0;
}
.data-row dt {
    font-weight: 800;
    color: var(--gold-4);
}
.data-row dd {
    margin: 0;
    color: var(--muted);
    line-height: 1.86;
}
.note-list,
.bullet-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.note-list li,
.bullet-list li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--muted);
    line-height: 1.84;
}
.note-list li + li,
.bullet-list li + li {
    margin-top: 0.82rem;
}
.note-list li::before,
.bullet-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.82rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-2), var(--gold-4));
}
blockquote {
    margin: 0;
    font-size: clamp(1.5rem, 2.3vw, 2.2rem);
    line-height: 1.45;
    font-weight: 800;
    color: var(--text);
}
cite {
    display: block;
    margin-top: 1rem;
    color: var(--muted);
    font-style: normal;
}
.pdf-card .thumb {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 4/3;
    margin-bottom: 1rem;
}
.pdf-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pdf-card .thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.16));
}
.pdf-meta {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.pdf-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: rgba(245, 231, 196, 0.78);
    color: var(--gold-5);
    font-size: 0.82rem;
    font-weight: 700;
}
.pdf-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}
.pdf-preview-card {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.pdf-preview-card img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}
.pdf-preview-card .body {
    padding: 1rem 1rem 1.1rem;
}
.pdf-preview-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.04rem;
}
.pdf-preview-card p {
    margin: 0 0 0.8rem;
    color: var(--muted);
    line-height: 1.72;
    font-size: 0.94rem;
}
.pdf-preview-card .link {
    color: var(--gold-4);
    font-weight: 800;
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}
.contact-stack {
    display: grid;
    gap: 1.25rem;
}
.contact-item small {
    display: block;
    margin-top: 0.55rem;
    color: #8b7a66;
}
.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    flex-wrap: wrap;
    padding: 1.4rem 1.6rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
}
.pdf-viewer-shell {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}
.pdf-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 241, 230, 0.96));
    border-bottom: 1px solid rgba(177, 140, 79, 0.12);
}
.pdf-toolbar .group {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    flex-wrap: wrap;
}
.pdf-toolbar .title {
    font-weight: 800;
}
.pdf-toolbar button,
.pdf-toolbar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.68rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
    font-weight: 700;
}
.pdf-page-info {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.52rem 0.78rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line);
}
.pdf-stage {
    padding: 1.1rem;
    background: linear-gradient(180deg, #f7f1e6, #fffdfa);
}
.pdf-canvas-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 62vh;
    overflow: auto;
    padding: 1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.66));
}
#pdf-canvas {
    display: block;
    max-width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(32, 22, 12, 0.16);
}
.pdf-loading,
.pdf-error {
    padding: 1.2rem 0 0.2rem;
    color: var(--muted);
}
.pdf-native-fallback {
    padding: 1.2rem;
}
.pdf-native-fallback iframe {
    width: 100%;
    min-height: 76vh;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}
.fallback-note {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    color: var(--muted);
}
.map-embed {
    width: 100%;
    min-height: 420px;
    border: 0;
    border-radius: 22px;
}
.footer {
    margin-top: 3rem;
    padding: 30px 0 42px;
    background: linear-gradient(180deg, #fcf8f2, #f5eee2);
    color: var(--muted);
    border-top: 1px solid rgba(177, 140, 79, 0.12);
}
.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    flex-wrap: wrap;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--text);
    font-weight: 800;
}
.footer-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}
.footer-brand small {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(45, 36, 25, 0.48);
}
.footer-links {
    display: flex;
    gap: 1.05rem;
    flex-wrap: wrap;
}
.footer-links a:hover {
    color: var(--gold-5);
}
.footer-bottom {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(177, 140, 79, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
}
.fade-up {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.72s ease,
        transform 0.72s ease;
}
.fade-up.is-visible {
    opacity: 1;
    transform: none;
}
.delay-1 {
    transition-delay: 0.08s;
}
.delay-2 {
    transition-delay: 0.16s;
}
.delay-3 {
    transition-delay: 0.24s;
}
@media (max-width: 1199.98px) {
    .hero-grid,
    .story-grid,
    .masonry-grid,
    .contact-grid,
    .contact-dual-grid {
        grid-template-columns: 1fr;
    }
    .navbar > .container-wide {
        min-height: 74px;
        padding: 0.5rem 0;
        gap: 0.75rem;
    }
    .navbar-brand {
        gap: 0.65rem;
    }
    .navbar-brand img {
        width: 48px;
        height: 48px;
    }
    .brand-meta > span {
        font-size: 1.3rem;
    }
    .brand-meta small {
        font-size: 0.62rem;
    }
    .hero-coin {
        width: 84px;
        height: 84px;
        right: 14px;
        bottom: 14px;
    }
    .frame-card img {
        min-height: 420px;
    }
    .figure-panel img,
    .figure-panel.tall img {
        min-height: 340px;
    }
    .highlight-band .content,
    .immersive-panel .content {
        width: min(100% - 1.5rem, 100%);
        padding: 1.6rem;
    }
    .data-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
    .map-embed {
        min-height: 300px;
    }
    .frame-card img {
        min-height: 540px;
    }
    .immersive-panel {
        min-height: 460px;
    }
}
@media (max-width: 991.98px) {
    .page-hero {
        padding-top: 10px;
    }
    .hero-img {
        min-height: 420px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }
    .navbar > .container-wide {
        min-height: 78px;
        padding: 0.6rem 0;
        flex-wrap: wrap;
        align-items: center;
    }
    .navbar-brand {
        flex: 1 1 auto;
    }
    .navbar-toggler {
        margin-left: auto;
    }
    .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
        margin-top: 0.75rem;
    }
    .navbar-nav {
        width: 100%;
        margin-left: 0;
        align-items: stretch !important;
        gap: 0.35rem;
        padding: 0.9rem;
        border-radius: 22px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 244, 234, 0.98));
        border: 1px solid var(--line);
        box-shadow: 0 18px 40px rgba(120, 96, 55, 0.1);
    }
    .navbar .nav-item,
    .navbar .nav-link,
    .nav-cta {
        width: 100%;
    }
    .navbar .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.95rem 1rem !important;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.72);
    }
    .navbar .nav-link::after {
        left: 1rem;
        right: auto;
        width: 56px;
        bottom: 0.68rem;
    }
    .nav-cta {
        justify-content: center;
        margin-top: 0.15rem;
    }
}
@media (max-width: 767.98px) {
    .section-title {
        font-size: clamp(1.8rem, 8vw, 2.7rem);
    }
    .hero-title {
        font-size: clamp(2.3rem, 10vw, 4rem);
    }
    .hero-img {
        /* object-position: center center; */
    }
    .hero-actions,
    .pdf-actions,
    .footer-links {
        width: 100%;
    }
    .hero-actions a,
    .pdf-actions a,
    .cta-card .btn-gold,
    .cta-card .btn-dark {
        width: 100%;
    }
    .grid-3,
    .grid-4,
    .timeline-strip,
    .contact-info-grid,
    .pdf-preview-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }
    .navbar-brand {
        gap: 0.65rem;
    }
    .navbar-brand img {
        width: 48px;
        height: 48px;
    }
    .brand-meta > span {
        font-size: 1.3rem;
    }
    .brand-meta small {
        font-size: 0.62rem;
    }
    .hero-coin {
        width: 84px;
        height: 84px;
        right: 14px;
        bottom: 14px;
    }
    .frame-card img {
        min-height: 420px;
    }
    .figure-panel img,
    .figure-panel.tall img {
        min-height: 340px;
    }
    .highlight-band .content,
    .immersive-panel .content {
        width: min(100% - 1.5rem, 100%);
        padding: 1.6rem;
    }
    .data-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
    .map-embed {
        min-height: 300px;
    }
}



#portfolio .container-fluid, #portfolio .container-sm, #portfolio .container-md, #portfolio .container-lg, #portfolio .container-xl, #portfolio .container-xxl {
  max-width: 1920px;
}
#portfolio .container-fluid .portfolio-box, #portfolio .container-sm .portfolio-box, #portfolio .container-md .portfolio-box, #portfolio .container-lg .portfolio-box, #portfolio .container-xl .portfolio-box, #portfolio .container-xxl .portfolio-box {
  position: relative;
  display: block;
}
#portfolio .container-fluid .portfolio-box .portfolio-box-caption, #portfolio .container-sm .portfolio-box .portfolio-box-caption, #portfolio .container-md .portfolio-box .portfolio-box-caption, #portfolio .container-lg .portfolio-box .portfolio-box-caption, #portfolio .container-xl .portfolio-box .portfolio-box-caption, #portfolio .container-xxl .portfolio-box .portfolio-box-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: 0;
  text-align: center;
  opacity: 0;
  color: #5d4525;
  background: rgba(246, 224, 177, 0.8);
  transition: opacity 0.25s ease;
  text-align: center;
}

#portfolio .container-fluid .portfolio-box .portfolio-box-caption .project-category, #portfolio .container-sm .portfolio-box .portfolio-box-caption .project-category, #portfolio .container-md .portfolio-box .portfolio-box-caption .project-category, #portfolio .container-lg .portfolio-box .portfolio-box-caption .project-category, #portfolio .container-xl .portfolio-box .portfolio-box-caption .project-category, #portfolio .container-xxl .portfolio-box .portfolio-box-caption .project-category {
  font-family: "Merriweather Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}
#portfolio .container-fluid .portfolio-box .portfolio-box-caption .project-name, #portfolio .container-sm .portfolio-box .portfolio-box-caption .project-name, #portfolio .container-md .portfolio-box .portfolio-box-caption .project-name, #portfolio .container-lg .portfolio-box .portfolio-box-caption .project-name, #portfolio .container-xl .portfolio-box .portfolio-box-caption .project-name, #portfolio .container-xxl .portfolio-box .portfolio-box-caption .project-name {
  font-size: 1.2rem;
}
#portfolio .container-fluid .portfolio-box:hover .portfolio-box-caption, #portfolio .container-sm .portfolio-box:hover .portfolio-box-caption, #portfolio .container-md .portfolio-box:hover .portfolio-box-caption, #portfolio .container-lg .portfolio-box:hover .portfolio-box-caption, #portfolio .container-xl .portfolio-box:hover .portfolio-box-caption, #portfolio .container-xxl .portfolio-box:hover .portfolio-box-caption {
  opacity: 1;
}
