:root {
    --paper: #f4f1e8;
    --paper-deep: #e6e0d3;
    --ink: #183a32;
    --ink-soft: #46665d;
    --sage: #659287;
    --sage-deep: #315b50;
    --stage: #12382f;
    --stage-light: #245246;
    --coral: #bb563f;
    --gold: #efb56f;
    --cream: #fffaf0;
    --line: rgba(24, 58, 50, 0.16);
    --mouse-x: 50%;
    --mouse-y: 36%;
}

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

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

p,
h1 {
    margin: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--stage);
    color: var(--cream);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 180ms ease;
}

.skip-link:focus {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    transform: translateY(0);
}

.ambient {
    position: fixed;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.ambient::before {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 400px at var(--mouse-x) var(--mouse-y), rgba(255, 250, 240, 0.92), transparent 72%),
        linear-gradient(115deg, rgba(101, 146, 135, 0.07), transparent 48%);
    content: "";
    transition: background-position 160ms ease-out;
}

.ambient__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.42;
}

.ambient__orb--one {
    width: min(46vw, 620px);
    aspect-ratio: 1;
    top: -28vw;
    right: -8vw;
    background: rgba(239, 181, 111, 0.22);
}

.ambient__orb--two {
    width: min(34vw, 460px);
    aspect-ratio: 1;
    bottom: -20vw;
    left: -10vw;
    background: rgba(101, 146, 135, 0.2);
}

.ambient__grain {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

.page-shell {
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: min(100% - 48px, 1200px);
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    padding:
        max(24px, env(safe-area-inset-top))
        max(0px, env(safe-area-inset-right))
        max(20px, env(safe-area-inset-bottom))
        max(0px, env(safe-area-inset-left));
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header {
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand__logo {
    width: 46px;
    height: 46px;
}

.brand__type {
    display: grid;
    gap: 1px;
}

.brand__type strong {
    font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
    font-size: 1.05rem;
    letter-spacing: -0.025em;
}

.brand__type span {
    color: var(--ink-soft);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.site-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    background: rgba(255, 250, 240, 0.44);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.site-status__dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--coral);
}

.site-status__dot::after {
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(187, 86, 63, 0.45);
    border-radius: inherit;
    content: "";
    animation: status-pulse 2.2s ease-out infinite;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: clamp(48px, 8vw, 112px);
    padding: clamp(58px, 8vh, 104px) 0;
}

.hero__copy {
    max-width: 680px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--sage-deep);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow span {
    width: 34px;
    height: 1px;
    background: currentColor;
}

h1 {
    max-width: 8.6em;
    font-family: Georgia, "Times New Roman", "Noto Serif TC", "Songti TC", "PMingLiU", serif;
    font-size: clamp(3.4rem, 7.1vw, 6.75rem);
    font-weight: 600;
    letter-spacing: -0.075em;
    line-height: 0.98;
}

h1 > span {
    display: block;
}

.title-accent {
    margin-top: 0.08em;
    color: var(--coral);
    font-style: italic;
}

.hero__intro {
    max-width: 34rem;
    margin-top: clamp(28px, 4vh, 42px);
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.9;
}

.loading {
    width: min(100%, 390px);
    margin-top: 34px;
}

.loading__track {
    position: relative;
    width: 100%;
    height: 9px;
}

.loading__rail,
.loading__runner {
    position: absolute;
    top: 3px;
    left: 0;
    height: 3px;
    border-radius: 999px;
}

.loading__rail {
    right: 0;
    background: rgba(24, 58, 50, 0.13);
}

.loading__runner {
    width: 32%;
    background: linear-gradient(90deg, var(--sage-deep), var(--gold));
    box-shadow: 0 0 18px rgba(239, 181, 111, 0.45);
    animation: loading-run 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate;
}

.loading__tick {
    position: absolute;
    top: 1px;
    width: 7px;
    height: 7px;
    border: 2px solid var(--paper);
    border-radius: 50%;
    background: var(--sage);
}

.loading__tick--one {
    left: 0;
}

.loading__tick--two {
    left: 50%;
    transform: translateX(-50%);
}

.loading__tick--three {
    right: 0;
}

.loading__label {
    min-height: 1.5em;
    margin-top: 10px;
    color: var(--ink);
    font-size: 0.83rem;
    font-weight: 750;
    letter-spacing: 0.04em;
}

[data-loading-message] {
    display: inline-block;
    transition: opacity 160ms ease, transform 160ms ease;
}

[data-loading-message].is-changing {
    opacity: 0;
    transform: translateY(4px);
}

.hero__english {
    margin-top: 30px;
    color: var(--sage-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.92rem;
    font-style: italic;
}

.stage-preview {
    width: min(100%, 420px);
    justify-self: end;
}

.stage-preview__shell {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    padding: 30px 30px 25px;
    border: 1px solid rgba(255, 250, 240, 0.14);
    border-radius: 220px 220px 34px 34px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 38%),
        var(--stage);
    box-shadow:
        0 32px 70px rgba(18, 56, 47, 0.18),
        inset 0 0 0 8px rgba(255, 250, 240, 0.025);
    color: var(--cream);
}

.stage-preview__shell::after {
    position: absolute;
    inset: 11px;
    border: 1px solid rgba(255, 250, 240, 0.08);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.stage-preview__label {
    position: relative;
    z-index: 3;
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-align: center;
    text-transform: uppercase;
}

.stage-preview__scene {
    position: absolute;
    inset: 62px 20px 76px;
    overflow: hidden;
    border-radius: 190px 190px 12px 12px;
}

.stage-preview__scene::after {
    position: absolute;
    z-index: 1;
    right: 12%;
    bottom: 0;
    left: 12%;
    height: 18%;
    border-radius: 50%;
    background: rgba(239, 181, 111, 0.12);
    filter: blur(12px);
    content: "";
}

.stage-preview__beam {
    position: absolute;
    z-index: 0;
    top: -10%;
    left: 50%;
    width: 88%;
    height: 115%;
    background: linear-gradient(180deg, rgba(255, 241, 196, 0.32), rgba(239, 181, 111, 0.02) 72%);
    clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
    filter: blur(3px);
    transform: translateX(-50%) rotate(0.001deg);
    transform-origin: 50% 0;
    animation: beam-sway 6s ease-in-out infinite alternate;
}

.stage-preview__curtain {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    width: 54%;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 10px, transparent 10px 24px),
        linear-gradient(90deg, #9e4636, #bb563f 62%, #7d3429);
    opacity: 0.68;
}

.stage-preview__curtain--left {
    left: -42%;
    border-radius: 0 0 100% 0;
    transform: rotate(4deg);
}

.stage-preview__curtain--right {
    right: -42%;
    border-radius: 0 0 0 100%;
    transform: rotate(-4deg);
}

.stage-preview__arch {
    position: absolute;
    z-index: 3;
    border-style: solid;
    border-color: rgba(239, 181, 111, 0.46);
    border-bottom-color: transparent;
    border-radius: 190px 190px 0 0;
}

.stage-preview__arch--outer {
    inset: 5% 6% 0;
    border-width: 1px;
}

.stage-preview__arch--inner {
    inset: 14% 15% 0;
    border-width: 1px;
    border-color: rgba(255, 250, 240, 0.19);
    border-bottom-color: transparent;
}

.stage-preview__logo-wrap {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    display: grid;
    width: 132px;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(255, 250, 240, 0.4);
    border-radius: 50%;
    background: rgba(255, 250, 240, 0.96);
    box-shadow: 0 20px 50px rgba(5, 28, 23, 0.28);
    transform: translate(-50%, -44%);
    animation: logo-float 4s ease-in-out infinite;
}

.stage-preview__logo-wrap img {
    width: 86%;
    height: 86%;
}

.stage-preview__meta {
    position: absolute;
    z-index: 3;
    right: 30px;
    bottom: 24px;
    left: 30px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    color: rgba(255, 250, 240, 0.64);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.stage-preview__meta b {
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 400;
}

.site-footer {
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.site-footer p:last-child {
    text-align: right;
}

.site-footer p:last-child span {
    margin: 0 5px;
    color: var(--sage);
}

.noscript-note {
    position: fixed;
    z-index: 10;
    right: 16px;
    bottom: 16px;
    max-width: 340px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--stage);
    color: var(--cream);
    font-size: 0.8rem;
    line-height: 1.5;
}

.has-js .reveal {
    opacity: 0;
    animation: reveal-in 760ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.has-js .reveal--header {
    animation-delay: 80ms;
}

.has-js .reveal--copy {
    animation-delay: 160ms;
}

.has-js .reveal--stage {
    animation-delay: 280ms;
}

.has-js .reveal--footer {
    animation-delay: 400ms;
}

@keyframes reveal-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes status-pulse {
    0% {
        opacity: 0.7;
        transform: scale(0.65);
    }

    75%,
    100% {
        opacity: 0;
        transform: scale(1.45);
    }
}

@keyframes loading-run {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(212%);
    }
}

@keyframes beam-sway {
    from {
        transform: translateX(-50%) rotate(-4deg);
    }

    to {
        transform: translateX(-50%) rotate(4deg);
    }
}

@keyframes logo-float {
    0%,
    100% {
        transform: translate(-50%, -44%);
    }

    50% {
        transform: translate(-50%, -49%);
    }
}

@media (max-width: 860px) {
    .page-shell {
        width: min(100% - 36px, 680px);
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 64px;
        padding: 72px 0 80px;
    }

    .hero__copy {
        max-width: 620px;
    }

    .stage-preview {
        width: min(84vw, 390px);
        justify-self: center;
    }
}

@media (max-width: 520px) {
    .page-shell {
        width: min(100% - 28px, 680px);
        padding-top: max(17px, env(safe-area-inset-top));
    }

    .brand__logo {
        width: 40px;
        height: 40px;
    }

    .brand__type span {
        display: none;
    }

    .site-status {
        padding: 8px 10px;
        font-size: 0.68rem;
        letter-spacing: 0.04em;
    }

    .hero {
        gap: 54px;
        padding: 58px 0 68px;
    }

    .eyebrow {
        margin-bottom: 19px;
        font-size: 0.64rem;
        letter-spacing: 0.14em;
    }

    h1 {
        font-size: clamp(3.05rem, 16vw, 4.5rem);
    }

    .hero__intro {
        margin-top: 26px;
        font-size: 0.98rem;
        line-height: 1.8;
    }

    .loading {
        margin-top: 28px;
    }

    .stage-preview {
        width: min(92vw, 360px);
    }

    .stage-preview__shell {
        padding-right: 24px;
        padding-left: 24px;
    }

    .stage-preview__logo-wrap {
        width: 112px;
    }

    .site-footer {
        align-items: flex-start;
        font-size: 0.62rem;
    }
}

@media (min-width: 861px) and (max-height: 760px) {
    .hero {
        padding: 34px 0;
    }

    .stage-preview {
        width: min(48vh, 380px);
    }

    h1 {
        font-size: clamp(3.2rem, 6.2vw, 5.9rem);
    }

    .hero__intro {
        margin-top: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .has-js .reveal {
        opacity: 1;
        transform: none;
    }
}
