@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

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

:root {
    --ink: #15130f;
    --paper: #f7f3ea;
    --paper-strong: #fffaf0;
    --muted: #6c655b;
    --line: #d8cdbb;
    --brand: #8a5a31;
    --brand-dark: #4b321d;
    --olive: #626944;
    --white: #ffffff;
    --font-display: "Space Grotesk", "Noto Serif TC", serif;
    --font-body: "Noto Serif TC", serif;
    --shadow: 0 26px 80px rgba(54, 41, 24, 0.14);
    --transition: 180ms ease;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(138, 90, 49, 0.10), transparent 36%),
        linear-gradient(180deg, var(--paper-strong), var(--paper));
    font-family: var(--font-body);
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(21, 19, 15, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 19, 15, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, #000, transparent 72%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.34'/%3E%3C/svg%3E");
    opacity: 0.04;
}

main,
header,
nav,
footer,
section,
.container {
    position: relative;
    z-index: 1;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}

a:focus-visible,
.hamburger:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 4px;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 250, 240, 0.88);
    border-bottom: 1px solid rgba(216, 205, 187, 0.86);
    backdrop-filter: blur(18px);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 32px;
}

.nav-brand a {
    display: inline-flex;
    align-items: center;
}

.logo {
    width: 205px;
    height: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid transparent;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active,
.nav-menu a:focus-visible {
    color: var(--ink);
    background: var(--white);
    border-color: var(--line);
    outline: none;
}

.mobile-nav-link {
    display: none;
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.hamburger span {
    width: 26px;
    height: 2px;
    background: var(--ink);
    transition: transform var(--transition), opacity var(--transition);
}

.hero {
    min-height: 620px;
    padding: 72px 0 64px;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 56px;
    align-items: center;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--brand);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
}

.section-kicker::before {
    content: "";
    width: 34px;
    height: 2px;
    background: currentColor;
}

.hero h1,
.intro-grid h2,
.section-heading h2,
.contact-band h2,
.contact-hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.14;
    overflow-wrap: anywhere;
}

.hero-copy {
    min-width: 0;
}

.hero h1 {
    max-width: 560px;
    margin-bottom: 18px;
    font-size: clamp(2.35rem, 3.7vw, 3.95rem);
}

.hero-copy > p:not(.section-kicker) {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.12rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid var(--ink);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.btn-primary {
    color: var(--white);
    background: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    color: var(--ink);
    background: transparent;
    outline: none;
}

.btn-secondary,
.text-link {
    color: var(--ink);
    background: transparent;
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.text-link:hover,
.text-link:focus-visible {
    color: var(--white);
    background: var(--brand);
    border-color: var(--brand);
    outline: none;
}

.hero-panel {
    position: relative;
    min-height: 390px;
    padding: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 250, 240, 0.92)),
        var(--paper-strong);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(138, 90, 49, 0.28);
}

.hero-mark {
    position: absolute;
    right: -44px;
    top: -42px;
    width: 190px;
    opacity: 0.13;
}

.hero-panel dl {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: end;
    min-height: 324px;
    gap: 20px;
}

.hero-panel div {
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.hero-panel dt,
.contact-card span,
.detail-list span,
.focus-list span {
    color: var(--brand);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-panel dd {
    margin-top: 6px;
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 600;
}

section {
    padding: 76px 0;
}

.intro-section {
    background: var(--ink);
    color: var(--paper-strong);
}

.intro-grid,
.contact-band-inner,
.contact-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.intro-grid > *,
.contact-band-inner > *,
.contact-hero-grid > *,
.focus-list article,
.detail-list article,
.contact-card {
    min-width: 0;
}

.intro-section .section-kicker,
.contact-band .section-kicker {
    color: #d6b28b;
}

.intro-grid h2,
.section-heading h2,
.contact-band h2,
.contact-hero h1 {
    font-size: clamp(1.7rem, 2.5vw, 2.55rem);
}

.intro-copy {
    color: rgba(255, 250, 240, 0.78);
    font-size: 1.06rem;
}

.intro-copy p + p {
    margin-top: 18px;
}

.company-records {
    display: grid;
    gap: 10px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 250, 240, 0.22);
}

.company-records p {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: baseline;
    margin: 0;
}

.company-records span {
    color: rgba(255, 250, 240, 0.62);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
}

.company-records strong {
    color: var(--paper-strong);
    font-family: var(--font-display);
    font-size: 0.95rem;
}

.focus-section {
    background: rgba(255, 255, 255, 0.38);
}

.section-heading {
    max-width: 720px;
}

.focus-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 42px;
}

.focus-list article,
.detail-list article {
    padding: 26px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--line);
}

.focus-list h3,
.detail-list h2 {
    margin: 10px 0 8px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.2;
}

.focus-list p,
.detail-list p,
.contact-card p,
.contact-hero p {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.contact-band {
    color: var(--paper-strong);
    background:
        linear-gradient(120deg, rgba(75, 50, 29, 0.94), rgba(21, 19, 15, 0.98)),
        var(--ink);
}

.contact-card {
    padding: 30px;
    color: var(--ink);
    background: var(--paper-strong);
    border: 1px solid rgba(255, 250, 240, 0.28);
    box-shadow: 0 24px 62px rgba(0, 0, 0, 0.18);
}

.contact-card > a[href^="mailto"] {
    display: inline-block;
    margin: 10px 0 14px;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.3vw, 1.8rem);
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    word-break: break-word;
}

.contact-card .text-link {
    margin-top: 22px;
}

.contact-page {
    min-height: calc(100vh - 76px);
}

.contact-hero {
    padding: 76px 0 68px;
}

.contact-hero h1 {
    margin-bottom: 22px;
}

.contact-hero p:not(.section-kicker) {
    max-width: 640px;
    font-size: 1.06rem;
}

.contact-card-large {
    align-self: stretch;
}

.contact-details {
    padding-top: 0;
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.footer {
    padding: 42px 0 26px;
    color: var(--paper-strong);
    background: var(--ink);
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 36px;
}

.footer-logo {
    width: 180px;
    margin-bottom: 14px;
}

.footer p,
.footer a {
    color: rgba(255, 250, 240, 0.78);
}

.footer-meta {
    margin-top: 6px;
    font-family: var(--font-display);
    font-size: 0.78rem;
}

.footer ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 18px;
    max-width: 520px;
    list-style: none;
}

.footer a {
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.footer a:hover,
.footer a:focus-visible {
    color: var(--white);
    border-bottom-color: currentColor;
    outline: none;
}

.footer-bottom {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 250, 240, 0.18);
    font-family: var(--font-display);
    font-size: 0.82rem;
}

@media (max-width: 920px) {
    .hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-grid,
    .intro-grid,
    .contact-band-inner,
    .contact-hero-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .hero-panel {
        min-height: auto;
    }

    .hero-panel dl {
        min-height: 230px;
    }

    .focus-list,
    .detail-list {
        grid-template-columns: 1fr;
    }

    .footer-content {
        display: grid;
    }

    .footer ul {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 36px, 1160px);
    }

    .navbar .container {
        min-height: 70px;
        gap: 12px;
        position: relative;
    }

    .logo {
        width: 150px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-nav-link {
        display: inline-flex;
        position: absolute;
        top: 17px;
        right: 18px;
        z-index: 2;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        padding: 7px 9px;
        border: 1px solid var(--line);
        color: var(--ink);
        background: var(--white);
        font-family: var(--font-display);
        font-size: 0.84rem;
        font-weight: 700;
        line-height: 1.2;
        text-decoration: none;
    }

    .hamburger {
        display: none;
    }

    .hero,
    .contact-hero {
        padding: 42px 0 52px;
    }

    .hero h1 {
        max-width: 340px;
        font-size: 1.95rem;
        line-height: 1.22;
    }

    .hero-copy > p:not(.section-kicker),
    .intro-copy,
    .contact-hero p:not(.section-kicker) {
        font-size: 1.06rem;
    }

    .hero-actions {
        display: grid;
    }

    .btn,
    .text-link {
        width: 100%;
    }

    .hero-panel,
    .contact-card,
    .focus-list article,
    .detail-list article {
        padding: 20px;
    }

    .contact-card > a[href^="mailto"] {
        font-size: 1.15rem;
    }

    section {
        padding: 56px 0;
    }
}

@media (max-width: 420px) {
    .hero h1 {
        font-size: 1.78rem;
    }

    .intro-grid h2,
    .section-heading h2,
    .contact-band h2,
    .contact-hero h1 {
        font-size: 1.58rem;
        line-height: 1.24;
    }
}
