@font-face {
    font-display: swap;
    font-family: "Noto Sans TC";
    font-style: normal;
    font-weight: 400;
    src: url("/fonts/bh-sans-tc-400.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Noto Sans TC";
    font-style: normal;
    font-weight: 700;
    src: url("/fonts/bh-sans-tc-700.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Noto Sans TC";
    font-style: normal;
    font-weight: 900;
    src: url("/fonts/bh-sans-tc-900.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Noto Serif TC";
    font-style: normal;
    font-weight: 400;
    src: url("/fonts/bh-serif-tc-400.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Noto Serif TC";
    font-style: normal;
    font-weight: 500;
    src: url("/fonts/bh-serif-tc-500.woff2") format("woff2");
}

:root {
    --white: #ffffff;
    --ink: #1e252d;
    --glass: rgba(30, 37, 45, 0.73);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body.massively-page {
    margin: 0;
    background: var(--ink);
    color: var(--white);
    font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
    min-width: 0;
    overflow-x: clip;
}

.massively-page a {
    color: inherit;
    text-decoration: none;
}

.title-tail {
    display: inline-block;
    white-space: nowrap;
}

.mobile-title-break {
    display: none;
}

.skip-link {
    left: 1rem;
    padding: 0.65rem 1rem;
    position: fixed;
    top: -5rem;
    z-index: 100;
    background: #fff;
    color: #111 !important;
}

.skip-link:focus {
    top: 1rem;
}

.hero {
    align-items: center;
    background-image: url("/images/hero-concrete-walk-16x9.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    min-height: 100svh;
    overflow: hidden;
    padding: 4rem clamp(1.5rem, 6vw, 7rem) 9.2rem;
    position: relative;
}

.hero-shade {
    background:
        linear-gradient(180deg, rgba(10, 17, 24, 0.49) 0%, rgba(13, 20, 27, 0.38) 42%, rgba(12, 18, 24, 0.7) 100%),
        linear-gradient(90deg, rgba(9, 15, 21, 0.2), rgba(9, 15, 21, 0.08));
    inset: 0;
    position: absolute;
}

.hero-shade::after {
    background: radial-gradient(circle at center, transparent 28%, rgba(9, 13, 18, 0.24) 100%);
    content: "";
    inset: 0;
    position: absolute;
}

.hero-content {
    margin-top: -1vh;
    max-width: 64rem;
    position: relative;
    text-align: center;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
    width: 100%;
    z-index: 2;
}

.hero-kicker {
    font-size: clamp(0.62rem, 0.75vw, 0.78rem);
    font-weight: 800;
    letter-spacing: 0.27em;
    margin: 0 0 1.45rem;
    opacity: 0.82;
}

.hero h1 {
    font-family: "Arial Black", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    font-size: clamp(5.3rem, 10.8vw, 12.7rem);
    font-weight: 900;
    letter-spacing: 0.055em;
    line-height: 0.82;
    margin: 0;
    text-transform: uppercase;
}

.hero h1 span {
    display: block;
    font-size: 0.47em;
    letter-spacing: 0.17em;
    line-height: 1.22;
    padding-left: 0.17em;
}

.hero .brand-hero-title strong {
    display: block;
    font-size: 0.56em;
    letter-spacing: 0.035em;
    line-height: 1.05;
    margin-top: 0.08em;
    white-space: nowrap;
}

.hero .brand-hero-title--personal {
    font-size: clamp(5rem, 9vw, 10.5rem);
    letter-spacing: -0.045em;
}

.hero .brand-hero-title--personal span {
    font-size: 0.46em;
    letter-spacing: 0.035em;
    padding-left: 0;
}

.hero .brand-hero-title--personal strong {
    font-size: 0.58em;
    letter-spacing: -0.045em;
    line-height: 1.08;
    margin-top: 0.18em;
}

.hero-lead {
    font-family: Georgia, "Noto Serif TC", "PMingLiU", serif;
    font-size: clamp(1.05rem, 1.35vw, 1.42rem);
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.035em;
    line-height: 1.95;
    margin: clamp(2rem, 4.5vh, 3.4rem) auto 0;
    max-width: 49rem;
}

.scroll-button {
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 50%;
    display: inline-flex;
    font-family: Arial, sans-serif;
    font-size: 1.8rem;
    height: 5.1rem;
    justify-content: center;
    margin-top: clamp(2rem, 5vh, 3.7rem);
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
    width: 5.1rem;
}

.scroll-button:hover,
.scroll-button:focus-visible {
    background: #fff;
    color: var(--ink);
    transform: translateY(4px);
}

.inner-scroll-button {
    display: flex;
    height: 4.4rem;
    margin: 1.25rem auto 0;
    width: 4.4rem;
}

.preview-nav {
    align-items: stretch;
    background: var(--glass);
    bottom: 2.15rem;
    display: flex;
    height: 5.2rem;
    justify-content: space-between;
    left: clamp(1.5rem, 9.5vw, 11rem);
    position: absolute;
    right: clamp(1.5rem, 9.5vw, 11rem);
    z-index: 3;
    backdrop-filter: blur(7px);
}

.nav-links,
.nav-contact {
    align-items: stretch;
    display: flex;
}

.preview-nav a {
    align-items: center;
    display: flex;
    font-size: clamp(0.62rem, 0.72vw, 0.75rem);
    font-weight: 900;
    letter-spacing: 0.11em;
    padding: 0 clamp(1rem, 1.7vw, 2rem);
    transition: background-color 180ms ease, color 180ms ease;
}

.preview-nav a:hover,
.preview-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}

.preview-nav a.active {
    background: #fff;
    color: var(--ink);
}

.nav-contact a {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.page-frame,
.works-sheet {
    background: #fff;
    color: var(--ink);
    margin: 0 auto;
    max-width: 1540px;
    position: relative;
    width: min(calc(100% - 6rem), 1540px);
}

.massive-feature,
.selected-preview,
.services-preview {
    padding: clamp(5.5rem, 9vw, 10rem) clamp(2rem, 8vw, 9rem);
}

.selected-preview,
.services-preview {
    border-top: 1px solid #d8d8d8;
}

.date-divider {
    align-items: center;
    display: grid;
    gap: 1.6rem;
    grid-template-columns: 1fr auto 1fr;
    margin-bottom: clamp(3.5rem, 6vw, 6rem);
}

.date-divider span {
    background: #d8d8d8;
    height: 1px;
}

.date-divider p,
.section-kicker,
.post-meta {
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    margin: 0;
}

.massive-feature {
    text-align: center;
}

.massive-feature h2,
.section-heading h2,
.contact-preview h2,
.inner-title h1,
.works-post h2,
.works-next h2 {
    font-family: "Arial Black", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 0.98;
    margin: 0;
    text-transform: uppercase;
}

.massive-feature h2 {
    font-size: clamp(3.2rem, 6.4vw, 7.2rem);
    margin: 1.4rem auto 2.2rem;
}

.feature-lead {
    font-family: Georgia, "Noto Serif TC", "PMingLiU", serif;
    font-size: clamp(1.05rem, 1.35vw, 1.35rem);
    font-style: italic;
    line-height: 1.95;
    margin: 0 auto 2.5rem;
    max-width: 53rem;
}

.outline-button {
    align-items: center;
    border: 2px solid var(--ink);
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 900;
    justify-content: center;
    letter-spacing: 0.14em;
    min-height: 3.5rem;
    padding: 0.7rem 1.8rem;
    transition: background-color 180ms ease, color 180ms ease;
}

.outline-button:hover,
.outline-button:focus-visible,
.outline-button.strong {
    background: var(--ink);
    color: #fff;
}

.outline-button.strong:hover,
.outline-button.strong:focus-visible {
    background: #33404b;
}

.profile-facts {
    border-bottom: 1px solid #d8d8d8;
    border-top: 1px solid #d8d8d8;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: clamp(4.5rem, 8vw, 8rem);
    text-align: left;
}

.profile-facts article {
    padding: 2.4rem clamp(1.2rem, 3vw, 3rem);
}

.profile-facts article + article {
    border-left: 1px solid #d8d8d8;
}

.profile-facts strong {
    display: block;
    font-family: "Arial Black", sans-serif;
    font-size: clamp(2.8rem, 4.5vw, 5rem);
    line-height: 1;
}

.profile-facts span {
    display: block;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    margin-top: 0.8rem;
}

.profile-facts p {
    color: #666;
    font-size: 0.88rem;
    margin: 0.45rem 0 0;
}

.section-heading {
    align-items: end;
    display: grid;
    gap: 4rem;
    grid-template-columns: 1.2fr 0.8fr;
    margin-bottom: clamp(4rem, 7vw, 7rem);
}

.section-heading h2 {
    font-size: clamp(4.2rem, 8vw, 9rem);
}

.section-heading > p {
    color: #4f565c;
    font-family: Georgia, "Noto Serif TC", "PMingLiU", serif;
    font-size: 1.03rem;
    font-style: italic;
    line-height: 1.9;
    margin: 0 0 0.65rem;
}

.home-work-grid,
.works-grid {
    border: 1px solid #d8d8d8;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-work-card,
.works-post {
    padding: clamp(2rem, 4vw, 4.5rem);
    text-align: center;
}

.home-work-card + .home-work-card,
.works-post + .works-post {
    border-left: 1px solid #d8d8d8;
}

.home-work-card h3,
.works-post h2 {
    font-family: "Arial Black", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    font-size: clamp(2.2rem, 4vw, 4.8rem);
    letter-spacing: -0.055em;
    line-height: 1.03;
    margin: 1.1rem 0 2.2rem;
}

.work-image {
    background: #e6e6e6;
    display: block;
    overflow: hidden;
}

.work-image img {
    aspect-ratio: auto;
    background: #e6e6e6;
    display: block;
    height: auto;
    object-fit: contain;
    transition: transform 420ms ease;
    width: 100%;
}

.work-image:hover img,
.work-image:focus-visible img {
    transform: scale(1.025);
}

.home-work-card > p:not(.post-meta),
.works-post > p:not(.post-meta) {
    color: #565e65;
    font-size: 0.96rem;
    line-height: 1.85;
    margin: 2rem auto;
    max-width: 34rem;
}

.center-action {
    display: flex;
    justify-content: center;
    margin-top: 3.5rem;
}

.compact-heading {
    margin-bottom: 4.5rem;
}

.service-table {
    border-bottom: 1px solid #d8d8d8;
    border-top: 1px solid #d8d8d8;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.service-summary-card {
    display: block;
    padding: clamp(2rem, 4vw, 4rem) clamp(1.4rem, 3vw, 3.2rem);
    transition: background-color 180ms ease;
}

.service-summary-card + .service-summary-card {
    border-left: 1px solid #d8d8d8;
}

.service-summary-card:hover,
.service-summary-card:focus-visible {
    background: #f0efed;
}

.service-table span {
    font-family: Georgia, serif;
    font-size: 0.82rem;
    font-style: italic;
}

.service-table h3 {
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.35;
    margin: 1.5rem 0 1rem;
}

.service-table p {
    color: #5e656b;
    font-size: 0.93rem;
    line-height: 1.8;
    margin: 0;
}

.service-summary-card b {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    margin-top: 2rem;
}

.contact-preview {
    background: var(--ink);
    color: #fff;
    padding: clamp(5.5rem, 9vw, 10rem) clamp(2rem, 8vw, 9rem);
    text-align: center;
}

.section-kicker.light {
    color: rgba(255, 255, 255, 0.65);
}

.contact-preview h2 {
    font-size: clamp(4.5rem, 9vw, 10rem);
    margin: 1.5rem 0 2rem;
}

.contact-preview > p:not(.section-kicker) {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
    margin: 0 auto 2.6rem;
    max-width: 42rem;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.contact-actions a {
    border: 2px solid rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    padding: 1rem 1.6rem;
    transition: background-color 180ms ease, color 180ms ease;
}

.contact-actions a:hover,
.contact-actions a:focus-visible {
    background: #fff;
    color: var(--ink);
}

.massive-footer {
    align-items: center;
    background: #e8e5e1;
    color: #60686f;
    display: flex;
    font-size: 0.58rem;
    font-weight: 800;
    justify-content: space-between;
    letter-spacing: 0.1em;
    min-height: 6rem;
    padding: 1.5rem clamp(1.5rem, 4vw, 4.5rem);
}

.inner-hero {
    align-items: center;
    background-image: url("/images/hero-concrete-walk-16x9.jpg");
    background-position: center 56%;
    background-size: cover;
    display: flex;
    justify-content: center;
    min-height: 100svh;
    padding: 5rem 2rem 9.5rem;
    position: relative;
}

.inner-hero-shade {
    background: linear-gradient(180deg, rgba(13, 19, 25, 0.75), rgba(13, 19, 25, 0.62));
    inset: 0;
    position: absolute;
}

.inner-nav {
    background: var(--glass);
    display: flex;
    height: 5rem;
    justify-content: space-between;
    left: clamp(1.5rem, 9.5vw, 11rem);
    position: absolute;
    right: clamp(1.5rem, 9.5vw, 11rem);
    bottom: 2.15rem;
    z-index: 3;
    backdrop-filter: blur(7px);
}

.inner-nav a {
    align-items: center;
    display: flex;
    font-size: clamp(0.62rem, 0.72vw, 0.75rem);
    font-weight: 900;
    letter-spacing: 0.11em;
    padding: 0 clamp(1rem, 1.7vw, 2rem);
}

.inner-nav a:hover,
.inner-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}

.inner-nav a.active {
    background: #fff;
    color: var(--ink);
}

.inner-title {
    position: relative;
    text-align: center;
    z-index: 2;
}

.inner-title > p,
.inner-title > span {
    display: block;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.inner-title h1 {
    font-size: clamp(4.5rem, 9vw, 10rem);
    margin: 1.3rem 0 1.6rem;
}

.inner-title > span {
    font-family: Georgia, "Noto Serif TC", serif;
    font-size: clamp(0.9rem, 1vw, 1.05rem);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.works-sheet {
    margin-top: 0;
    padding-top: clamp(5rem, 8vw, 8rem);
}

.works-sheet > .date-divider {
    padding: 0 clamp(2rem, 8vw, 9rem);
}

.works-grid {
    border-left: 0;
    border-right: 0;
}

.works-post h2 {
    margin-top: 1.2rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.project-tags li {
    border: 1px solid #9ea4a8;
    font-size: 0.57rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    padding: 0.42rem 0.6rem;
}

.works-next {
    padding: clamp(5rem, 9vw, 9rem) clamp(2rem, 8vw, 9rem);
    text-align: center;
}

.works-next > span {
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.17em;
}

.works-next h2 {
    font-size: clamp(2.8rem, 5.5vw, 6rem);
    margin: 1.5rem 0 2.5rem;
}

.inner-footer a {
    border-bottom: 1px dotted currentColor;
}

@media (max-width: 980px) {
    .hero,
    .inner-hero,
    .case-detail-hero {
        background-position: 86% center;
    }

    .preview-nav,
    .inner-nav {
        left: 1.5rem;
        right: 1.5rem;
    }

    .nav-contact {
        display: none;
    }

    .page-frame,
    .works-sheet {
        width: calc(100% - 3rem);
    }

    .section-heading {
        gap: 2rem;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .mobile-title-break {
        display: block;
    }

    .hero {
        background-position: 86% center;
        padding: 3.5rem 1.25rem 7rem;
    }

    .hero-shade {
        background:
            linear-gradient(180deg, rgba(10, 17, 24, 0.53) 0%, rgba(13, 20, 27, 0.44) 42%, rgba(12, 18, 24, 0.76) 100%),
            rgba(9, 15, 21, 0.12);
    }

    .hero-content {
        margin-top: -3rem;
    }

    .hero-kicker {
        font-size: 0.56rem;
        letter-spacing: 0.18em;
        margin-bottom: 1.1rem;
    }

    .hero h1 {
        font-size: clamp(4.5rem, 24vw, 7rem);
        letter-spacing: 0.015em;
    }

    .hero .brand-hero-title strong {
        font-size: 0.48em;
        letter-spacing: 0.015em;
    }

    .hero .brand-hero-title--personal {
        font-size: clamp(4rem, 20vw, 6.5rem);
    }

    .hero .brand-hero-title--personal span {
        font-size: 0.48em;
        letter-spacing: 0.025em;
    }

    .hero .brand-hero-title--personal strong {
        font-size: 0.52em;
        letter-spacing: -0.05em;
        line-height: 1.08;
        margin-top: 0.22em;
    }

    .hero-lead {
        font-size: 0.95rem;
        line-height: 1.8;
        max-width: 24rem;
    }

    .hero-lead br {
        display: none;
    }

    .scroll-button {
        font-size: 1.4rem;
        height: 4rem;
        width: 4rem;
    }

    .preview-nav,
    .inner-nav {
        bottom: 1.75rem;
        height: 4rem;
        left: 1rem;
        overflow-x: auto;
        right: 1rem;
        scrollbar-width: none;
    }

    .inner-nav {
        bottom: 1rem;
        top: auto;
    }

    .preview-nav::-webkit-scrollbar,
    .inner-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-links {
        min-width: max-content;
    }

    .preview-nav a,
    .inner-nav a {
        font-size: 0.56rem;
        padding: 0 1rem;
    }

    .page-frame,
    .works-sheet {
        width: calc(100% - 1.5rem);
    }

    .massive-feature,
    .selected-preview,
    .services-preview {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .date-divider {
        gap: 0.75rem;
    }

    .date-divider p {
        font-size: 0.54rem;
        letter-spacing: 0.1em;
    }

    .profile-facts,
    .home-work-grid,
    .works-grid,
    .service-table {
        grid-template-columns: 1fr;
    }

    .profile-facts article + article,
    .home-work-card + .home-work-card,
    .works-post + .works-post,
    .service-summary-card + .service-summary-card {
        border-left: 0;
        border-top: 1px solid #d8d8d8;
    }

    .section-heading h2 {
        font-size: clamp(3.5rem, 18vw, 5.5rem);
    }

    .contact-preview {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .contact-actions {
        flex-direction: column;
    }

    .massive-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.7rem;
    }

    .inner-hero {
        background-position: 86% center;
        min-height: 100svh;
        padding: 3.5rem 1.25rem 6.5rem;
    }

    .inner-title h1 {
        font-size: clamp(4rem, 22vw, 6.5rem);
    }

    .inner-title > span {
        line-height: 1.7;
    }

    .works-sheet > .date-divider {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
