:root {
    --ink: #182323;
    --muted: #607070;
    --line: #d9e2df;
    --paper: #f6f3ec;
    --white: #ffffff;
    --teal: #0d6f73;
    --teal-dark: #0b3f43;
    --amber: #f0ad2c;
    --amber-soft: #ffe1a3;
    --graphite: #1e2b2c;
    --field: #f9fbfa;
    --shadow: 0 18px 48px rgba(24, 35, 35, .12);
    --header-height: 78px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
    line-height: 1.65;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

svg {
    display: block;
    width: 1.15em;
    height: 1.15em;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.sr-only,
.skip-link {
    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:focus {
    z-index: 100;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    clip: auto;
    padding: .7rem 1rem;
    color: var(--white);
    background: var(--teal-dark);
}

.site-header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 clamp(1rem, 4vw, 3rem);
    color: var(--white);
    background: linear-gradient(180deg, rgba(13, 25, 26, .82), rgba(13, 25, 26, .25));
    transition: background .25s ease, box-shadow .25s ease, height .25s ease;
}

.site-header.is-scrolled,
.site-header:has(.site-nav.is-open) {
    height: 68px;
    background: rgba(255, 255, 255, .94);
    color: var(--ink);
    box-shadow: 0 12px 32px rgba(24, 35, 35, .12);
    backdrop-filter: blur(16px);
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 4px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(255, 255, 255, .46);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand strong,
.footer-brand span {
    display: block;
    font-size: 1.03rem;
    letter-spacing: 0;
}

.brand small {
    display: block;
    color: currentColor;
    font-size: .78rem;
    font-weight: 500;
    opacity: .72;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: .45rem .8rem;
    font-size: .94rem;
    font-weight: 650;
    color: currentColor;
}

.site-nav a:hover {
    color: var(--amber);
}

.nav-cta {
    margin-left: .25rem;
    color: var(--ink) !important;
    background: var(--amber);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    color: currentColor;
    background: transparent;
    border: 1px solid currentColor;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: 86vh;
    overflow: hidden;
    color: var(--white);
    background: var(--graphite);
}

.hero-slider,
.hero-slide,
.hero-slide img,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-slide {
    margin: 0;
    opacity: 0;
    transition: opacity 900ms ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(12, 22, 23, .86) 0%, rgba(12, 22, 23, .62) 42%, rgba(12, 22, 23, .22) 78%),
        linear-gradient(0deg, rgba(12, 22, 23, .58), rgba(12, 22, 23, .1) 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 86vh;
    width: min(680px, calc(100% - 2rem));
    padding: calc(var(--header-height) + 3rem) 0 6.5rem;
    margin-left: clamp(1rem, 8vw, 7.5rem);
}

.eyebrow {
    margin: 0 0 .75rem;
    color: var(--teal);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--amber-soft);
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    line-height: 1.18;
}

h1 {
    margin: 0;
    font-size: clamp(3.2rem, 9vw, 6.2rem);
    font-weight: 900;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 900;
}

h3 {
    margin: 0;
    font-size: 1.16rem;
    font-weight: 850;
}

.hero-lede {
    max-width: 620px;
    margin: 1.15rem 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(1.05rem, 2.4vw, 1.38rem);
}

.hero-actions,
.slider-controls,
.captcha-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.hero-actions {
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    padding: .78rem 1.1rem;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover,
.slider-arrow:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: var(--ink);
    background: var(--amber);
    border-color: var(--amber);
}

.button-primary:hover {
    background: #ffbf3e;
}

.button-ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, .48);
    background: rgba(255, 255, 255, .08);
}

.slider-controls {
    position: absolute;
    z-index: 3;
    left: clamp(1rem, 8vw, 7.5rem);
    bottom: 2rem;
    padding: .35rem;
    color: var(--white);
    background: rgba(16, 24, 24, .42);
    backdrop-filter: blur(14px);
}

.slider-arrow,
.slider-dot {
    display: grid;
    place-items: center;
    padding: 0;
    color: currentColor;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .28);
    cursor: pointer;
}

.slider-arrow {
    width: 40px;
    height: 40px;
}

.slider-dots {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.slider-dot.is-active {
    background: var(--amber);
    border-color: var(--amber);
}

.section-inner {
    width: min(1160px, calc(100% - 2rem));
    margin: 0 auto;
}

section:not(.hero) {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.band-light {
    background: var(--paper);
}

.band-dark {
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(13, 111, 115, .24), transparent 46%),
        var(--graphite);
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.intro-grid p:last-child,
.section-heading p,
.contact-copy p {
    color: var(--muted);
    font-size: 1.05rem;
}

.band-dark .section-heading p,
.band-dark .approach-list p {
    color: rgba(255, 255, 255, .76);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.section-heading.align-left {
    margin: 0;
    text-align: left;
}

.section-heading p {
    margin: 1rem 0 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.service-card {
    min-height: 286px;
    padding: 1.35rem;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(24, 35, 35, .06);
}

.service-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 1.25rem;
    color: var(--teal);
    background: #e5f2ee;
}

.service-card p,
.approach-list p,
.scenario-strip p {
    margin: .75rem 0 0;
    color: var(--muted);
}

.approach-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 6vw, 5rem);
}

.approach-list {
    display: grid;
    gap: 1rem;
}

.approach-list article {
    padding: 1.3rem 0 1.3rem 1.25rem;
    border-left: 3px solid var(--amber);
}

.scenario-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.scenario-strip p {
    min-height: 138px;
    padding: 1.15rem;
    color: var(--ink);
    background: #eef6f4;
    border: 1px solid #cce0dc;
    font-weight: 750;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.contact-copy {
    position: sticky;
    top: 96px;
}

.contact-direct {
    display: inline-flex;
    flex-direction: column;
    gap: .2rem;
    margin-top: 1.25rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
}

.contact-direct span {
    color: var(--muted);
    font-size: .86rem;
}

.contact-direct a {
    color: var(--teal-dark);
    font-weight: 850;
}

.contact-form {
    display: grid;
    gap: 1rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.form-row.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

label {
    display: grid;
    gap: .45rem;
}

label span {
    color: var(--ink);
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    color: var(--ink);
    background: var(--field);
    border: 1px solid #cad8d5;
    padding: .78rem .85rem;
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(13, 111, 115, .16);
}

small {
    color: #a23a2d;
    font-weight: 700;
}

.captcha-row {
    align-items: end;
}

.captcha-row label {
    flex: 1 1 240px;
}

.captcha-row .button {
    flex: 0 0 auto;
}

.form-notice {
    display: grid;
    gap: .15rem;
    padding: .9rem 1rem;
    border: 1px solid;
}

.form-notice.success {
    color: #17483f;
    background: #e5f5ef;
    border-color: #a7d8c8;
}

.form-notice.error {
    color: #733024;
    background: #fff0ea;
    border-color: #f1b7a4;
}

.trap-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-footer {
    padding: 2rem 0;
    color: rgba(255, 255, 255, .8);
    background: #101818;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 920px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        inset: 68px 0 auto 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        color: var(--ink);
        background: rgba(255, 255, 255, .97);
        border-top: 1px solid var(--line);
        box-shadow: 0 18px 32px rgba(24, 35, 35, .12);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        min-height: 50px;
        border-bottom: 1px solid var(--line);
    }

    .nav-cta {
        margin: .6rem 0 0;
        justify-content: center;
        border-bottom: 0 !important;
    }

    .hero,
    .hero-content {
        min-height: 78vh;
    }

    .hero-content {
        margin-left: 1rem;
        padding-bottom: 6rem;
    }

    .intro-grid,
    .approach-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-copy {
        position: static;
    }

    .service-grid,
    .scenario-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    :root {
        --header-height: 68px;
    }

    .brand-mark {
        width: 46px;
        height: 46px;
    }

    .brand small {
        display: none;
    }

    h1 {
        font-size: 3rem;
    }

    .hero-lede {
        font-size: 1rem;
    }

    .hero-shade {
        background:
            linear-gradient(90deg, rgba(12, 22, 23, .9), rgba(12, 22, 23, .62)),
            linear-gradient(0deg, rgba(12, 22, 23, .62), rgba(12, 22, 23, .1));
    }

    .hero-actions .button {
        width: 100%;
    }

    .slider-controls {
        left: 1rem;
        right: 1rem;
        justify-content: space-between;
    }

    .service-grid,
    .scenario-strip,
    .form-row.two {
        grid-template-columns: 1fr;
    }

    .service-card,
    .scenario-strip p {
        min-height: auto;
    }

    .captcha-row .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
