/* Always use the bundled typefaces instead of operating-system fallbacks. */
.massively-page h1,
.massively-page h2,
.massively-page h3 {
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

.hero-lead,
.inner-title > span,
.case-detail-lead,
.feature-lead {
    font-family: "Noto Serif TC", Georgia, serif;
}

/* -------------------------------------------------------------------------- */
/* B&H STUDIO homepage — selected hybrid                                      */
/* A cinematic hero keeps the personal image prominent; the content uses the  */
/* warm editorial palette and bundled magazine type pairing from prototype D. */
/* -------------------------------------------------------------------------- */
@font-face {
    font-display: swap;
    font-family: "BH 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: "BH 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: "BH 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: "BH Serif TC";
    font-style: normal;
    font-weight: 400;
    src: url("/fonts/bh-serif-tc-400.woff2") format("woff2");
}


.bh-home {
    background: #080808 !important;
    color: var(--bh-ink) !important;
    font-family: var(--bh-sans) !important;
}

.bh-home a,
.bh-home button {
    font-family: var(--bh-sans);
}

.bh-hero :where(h1, h2, h3, p),
.bh-profile :where(h1, h2, h3, p),
.bh-work :where(h1, h2, h3, p),
.bh-services :where(h1, h2, h3, p),
.bh-contact :where(h1, h2, h3, p) {
    margin: 0;
}

.bh-home h1,
.bh-home h2 {
    font-family: var(--bh-serif) !important;
    font-weight: 400 !important;
}

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

.bh-home .skip-link {
    background: #fff;
    color: var(--bh-ink) !important;
    font-family: var(--bh-sans);
    font-weight: 700;
}

.bh-home-shell {
    width: 100%;
    margin: 0 0 90px;
    overflow: clip;
    background: var(--bh-paper);
}

.bh-hero {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
}

.bh-hero__image {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none !important;
    object-fit: cover;
    /* Keep the person on the right so the left side remains available for copy. */
    object-position: right center;
}

/* Draw link arrows in CSS so mobile browsers never replace them with emoji. */
.bh-arrow-link::after {
    content: "";
    display: inline-block;
    width: 0.88em;
    height: 0.88em;
    margin-inline-start: 0.42em;
    background: currentColor;
    vertical-align: -0.08em;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12 12 4M6 4h6v6' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12 12 4M6 4h6v6' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bh-hero__shade {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 10, 12, 0.78) 0%, rgba(8, 10, 12, 0.37) 50%, rgba(8, 10, 12, 0.08) 82%),
        linear-gradient(0deg, rgba(8, 10, 12, 0.46), transparent 52%);
}

.bh-hero__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    width: min(1500px, calc(100% - 8vw));
    margin: 0 auto;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.34);
}

.bh-wordmark {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    width: max-content;
    color: var(--bh-ink);
    font-family: var(--bh-serif) !important;
    font-size: 24px;
    line-height: 1;
    letter-spacing: -0.06em;
}

.bh-wordmark span {
    font-family: var(--bh-serif);
}

.bh-wordmark small {
    margin-top: 3px;
    font-family: var(--bh-sans);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.3em;
}

.bh-wordmark--light {
    color: #fff;
}

.bh-hero__nav,
.bh-mag-nav nav {
    display: flex;
    justify-content: center;
    gap: clamp(18px, 3vw, 50px);
}

.bh-hero__nav a,
.bh-line-link,
.bh-mag-nav nav a,
.bh-talk-link {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.bh-hero__nav a,
.bh-line-link {
    color: #fff;
}

.bh-hero__nav a,
.bh-mag-nav nav a,
.bh-line-link,
.bh-talk-link,
.bh-text-link,
.bh-actions a,
.bh-services__grid a,
.bh-footer a {
    transition: opacity 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.bh-hero__nav a:hover,
.bh-hero__nav a:focus-visible,
.bh-mag-nav nav a:hover,
.bh-mag-nav nav a:focus-visible,
.bh-footer a:hover,
.bh-footer a:focus-visible {
    opacity: 0.62;
}

.bh-line-link,
.bh-talk-link {
    justify-self: end;
    padding: 12px 16px;
    border: 1px solid currentColor;
    border-radius: 999px;
}

.bh-line-link:hover,
.bh-line-link:focus-visible {
    background: #fff;
    color: var(--bh-ink);
}

.bh-hero__copy {
    position: absolute;
    left: 7vw;
    bottom: 15vh;
    width: min(820px, 72vw);
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.34);
}

.bh-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.21em;
    line-height: 1.5;
    text-transform: uppercase;
}

.bh-hero__copy h1 {
    display: grid;
    gap: 0.04em;
    margin-top: 18px;
    font-size: clamp(60px, 7.2vw, 118px) !important;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.bh-hero__copy h1 span {
    display: block;
    white-space: nowrap;
}

.bh-hero__lead {
    max-width: 720px;
    margin-top: 28px !important;
    font-family: var(--bh-sans);
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.9 !important;
}

.bh-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.bh-actions a,
.bh-action--fill {
    display: inline-flex;
    min-width: 138px;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border: 1px solid currentColor;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
}

.bh-actions a:hover,
.bh-actions a:focus-visible {
    background: rgba(255, 255, 255, 0.16);
}

.bh-actions .bh-action--fill,
.bh-action--fill {
    border-color: #fff;
    background: #fff;
    color: var(--bh-ink);
}

.bh-actions .bh-action--fill:hover,
.bh-actions .bh-action--fill:focus-visible,
.bh-action--fill:hover,
.bh-action--fill:focus-visible {
    background: transparent;
    color: #fff;
}

.bh-scroll-cue {
    position: absolute;
    right: 4vw;
    bottom: 5vh;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border: 1px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 22px;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.bh-mag-nav {
    position: sticky;
    z-index: 20;
    top: 0;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 170px;
    align-items: center;
    gap: 30px;
    padding: 24px 28px;
    border-bottom: 1px solid var(--bh-ink);
    background: rgba(247, 247, 245, 0.96);
    color: var(--bh-ink);
    backdrop-filter: blur(12px);
}

.bh-talk-link {
    color: var(--bh-ink);
}

.bh-talk-link:hover,
.bh-talk-link:focus-visible {
    background: var(--bh-ink);
    color: var(--bh-paper);
}

.bh-magazine {
    background: var(--bh-paper);
    color: var(--bh-ink);
}

.bh-magazine .bh-eyebrow {
    color: var(--bh-accent);
}

.bh-profile,
.bh-work,
.bh-services,
.bh-contact {
    border-top: 1px solid var(--bh-ink);
}

.bh-profile {
    position: relative;
    display: grid;
    grid-template-columns: 0.82fr 1.08fr 0.9fr;
    grid-template-rows: auto auto;
    column-gap: clamp(32px, 4vw, 72px);
    row-gap: clamp(34px, 5vw, 80px);
    padding: clamp(92px, 8vw, 138px) 5vw;
}

.bh-profile::after {
    content: "HUMAN × SYSTEM";
    position: absolute;
    top: clamp(100px, 8vw, 138px);
    right: 5vw;
    color: var(--bh-accent);
    font-family: var(--bh-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.bh-profile__title {
    grid-column: 1 / 3;
}

.bh-profile__title h2 {
    margin-top: 16px !important;
    font-size: clamp(54px, 6.2vw, 96px) !important;
    line-height: 0.96 !important;
    letter-spacing: -0.06em;
}

.bh-profile__title em,
.bh-work__heading em {
    font-family: var(--bh-serif);
    font-style: normal;
}

.bh-bookstore {
    align-self: start;
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    margin: 0;
    width: min(100%, 36rem);
}

.bh-bookstore img {
    display: block;
    height: auto;
    width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
}

.bh-bookstore figcaption {
    margin-top: 8px;
    font-family: var(--bh-serif);
    font-size: 11px;
    line-height: 1.6;
}

.bh-profile__copy {
    align-self: center;
    grid-column: 2 / 4;
    grid-row: 2;
    max-width: 52rem;
    padding: 0 4vw 0 0;
}

.bh-profile__copy p,
.bh-work__copy > p,
.bh-contact > div:last-child > p:not(.bh-eyebrow) {
    color: var(--bh-copy);
    font-family: var(--bh-serif);
    font-size: 17px;
    line-height: 1.85;
}

.bh-profile__copy p + p {
    margin-top: 20px;
}

.bh-text-link {
    display: inline-block;
    margin-top: 26px;
    padding-bottom: 4px;
    border-bottom: 1px solid currentColor;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.bh-text-link:hover,
.bh-text-link:focus-visible {
    color: var(--bh-accent);
    opacity: 1;
}

.bh-work {
    display: grid;
    grid-template-columns: 84px 0.72fr 1.28fr;
    gap: 35px;
    padding: clamp(92px, 8vw, 138px) 5vw;
    background: var(--bh-paper-soft);
}

.bh-work__number {
    color: var(--bh-accent);
    font-family: var(--bh-serif);
    font-size: 46px;
    line-height: 1;
}

.bh-work__heading h2 {
    margin-top: 14px !important;
    font-size: clamp(48px, 5.2vw, 84px) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.055em;
}

.bh-work__heading h3 {
    border-top: 1px solid currentColor;
    font-family: var(--bh-sans);
    font-size: clamp(18px, 1.65vw, 27px) !important;
    font-weight: 650;
    letter-spacing: 0.02em;
    line-height: 1.35 !important;
    margin-top: clamp(24px, 3vw, 46px) !important;
    padding-top: 14px;
}

.bh-work__image {
    position: relative;
    display: block;
    align-self: start;
    overflow: hidden;
    padding: 46px clamp(14px, 1.4vw, 22px) clamp(14px, 1.4vw, 22px);
    border: 1px solid rgba(23, 27, 32, 0.72);
    background: #181d22;
    box-shadow: 0 24px 60px rgba(23, 27, 32, 0.16);
}

.bh-work__image::before {
    content: "LIVE STOREFRONT / DESKTOP";
    position: absolute;
    top: 15px;
    left: 18px;
    color: rgba(255, 255, 255, 0.74);
    font-family: var(--bh-sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.bh-work__image::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 20px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--bh-accent);
    box-shadow: -11px 0 rgba(255, 255, 255, 0.42), -22px 0 rgba(255, 255, 255, 0.2);
}

.bh-work__image img {
    display: block;
    height: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 400ms ease;
}

.bh-work__image:hover img,
.bh-work__image:focus-visible img {
    transform: scale(1.015);
}

.bh-work__copy {
    grid-column: 2 / 4;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
    gap: 30px;
}

.bh-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.bh-tags span {
    padding: 7px 9px;
    border: 1px solid var(--bh-line);
    font-size: 10px;
    letter-spacing: 0.1em;
}

.bh-services {
    padding: clamp(92px, 8vw, 138px) 5vw;
}

.bh-services > header {
    display: grid;
    grid-template-columns: 0.45fr 1.55fr;
    align-items: start;
}

.bh-services > header h2 {
    font-size: clamp(46px, 5vw, 82px) !important;
    line-height: 1 !important;
    letter-spacing: -0.055em;
}

.bh-services__grid {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: clamp(48px, 5vw, 76px);
    border-top: 1px solid var(--bh-ink);
}

.bh-services__grid a {
    display: grid;
    grid-template-columns: 72px minmax(220px, 0.7fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 70px);
    min-height: 116px;
    padding: 24px 18px;
    border-bottom: 1px solid var(--bh-line);
    transition: background-color 180ms ease, padding 180ms ease;
}

.bh-services__grid a:hover,
.bh-services__grid a:focus-visible {
    padding-right: 10px;
    padding-left: 26px;
    background: rgba(201, 121, 91, 0.08);
}

.bh-services__grid a > span:first-child {
    color: var(--bh-accent);
    font-family: var(--bh-serif);
    font-size: 24px;
}

.bh-services__grid h3 {
    margin: 0 !important;
    font-family: var(--bh-sans) !important;
    font-size: 20px;
    font-weight: 700;
}

.bh-services__grid p {
    max-width: 680px;
    margin: 0 !important;
    color: var(--bh-copy);
    font-family: var(--bh-serif);
    font-size: 15px;
    line-height: 1.8;
}

.bh-contact {
    display: grid;
    grid-template-columns: 0.45fr 1.55fr;
    min-height: 70vh;
    padding: 8vw 5vw 10vw;
    background: #181b20;
    color: #fff;
}

.bh-contact__mark span {
    font-size: clamp(70px, 9vw, 150px);
    font-weight: 900;
    letter-spacing: -0.1em;
    line-height: 0.9;
}

.bh-contact__mark p {
    font-size: 11px;
    letter-spacing: 0.45em;
}

.bh-contact h2 {
    margin-top: 20px !important;
    font-size: clamp(58px, 7vw, 108px) !important;
    line-height: 1 !important;
    letter-spacing: -0.06em;
}

.bh-contact > div:last-child > p:not(.bh-eyebrow) {
    max-width: 570px;
    margin: 25px 0 35px;
    color: #c7cbd0;
}

.bh-contact .bh-action--fill {
    width: max-content;
    color: var(--bh-ink);
}

.bh-contact .bh-action--fill:hover,
.bh-contact .bh-action--fill:focus-visible {
    color: #fff;
}

.bh-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 5vw 85px;
    background: #181b20;
    color: #fff;
    font-size: 9px;
    letter-spacing: 0.12em;
}

.bh-footer a {
    color: inherit;
}

/* Keep the portrait at the right edge visible when cover-cropping tablet heroes. */
@media (min-width: 701px) and (max-width: 1100px) {
    .bh-hero__image {
        /* Tablet heroes are tall enough that right-edge alignment pulls the
           portrait back toward the middle. Focus on the person instead. */
        object-position: 87% center;
    }
}

@media (max-width: 980px) {
    .bh-hero__header {
        grid-template-columns: minmax(0, 1fr) auto;
        width: calc(100% - 48px);
    }

    .bh-hero__nav,
    .bh-mag-nav nav {
        gap: 20px;
    }

    .bh-hero__nav a,
    .bh-mag-nav nav a,
    .bh-line-link,
    .bh-talk-link {
        font-size: 10px;
    }

    .bh-mag-nav {
        grid-template-columns: 160px minmax(0, 1fr) 145px;
        gap: 18px;
        padding-inline: 20px;
    }

    .bh-work {
        grid-template-columns: 65px 0.8fr 1.2fr;
    }

    .bh-work__copy {
        grid-template-columns: 1fr auto;
    }

    .bh-work__copy .bh-text-link {
        grid-column: 2;
    }
}

@media (max-width: 700px) {
    .bh-home-shell {
        width: 100%;
        margin: 0 0 80px;
    }

    .bh-hero {
        min-height: 780px;
    }

    .bh-hero__image {
        /* The portrait sits around 80% of the source image. A calibrated focal
           point keeps it in the right third after the tall mobile cover crop. */
        object-position: 83% center;
    }

    .bh-hero__shade {
        background: linear-gradient(0deg, rgba(8, 10, 12, 0.88), rgba(8, 10, 12, 0.08) 75%);
    }

    .bh-hero__header {
        display: flex;
        justify-content: space-between;
        width: calc(100% - 36px);
        padding-top: 34px;
    }

    .bh-hero__nav,
    .bh-line-link {
        display: none;
    }

    .bh-wordmark {
        font-size: 20px;
    }

    .bh-hero__copy {
        right: 20px;
        bottom: 96px;
        left: 20px;
        width: auto;
    }

    .bh-eyebrow {
        font-size: 9px;
    }

    .bh-hero__copy h1 {
        gap: 0;
        margin-top: 14px;
        font-size: clamp(40px, 11.5vw, 52px) !important;
        line-height: 1 !important;
    }

    .bh-hero__copy h1 span {
        white-space: normal;
    }

    .bh-hero__lead {
        margin-top: 20px !important;
        font-size: 15px;
        line-height: 1.75 !important;
    }

    .bh-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 22px;
    }

    .bh-actions a {
        min-width: 0;
        padding-inline: 10px;
    }

    .bh-scroll-cue {
        right: 18px;
        bottom: 20px;
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .bh-mag-nav {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        padding: 18px;
    }

    .bh-mag-nav nav {
        justify-content: flex-end;
        gap: 14px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .bh-mag-nav nav a:nth-child(4) {
        display: none;
    }

    .bh-talk-link {
        display: none;
    }

    .bh-profile {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 90px 18px;
    }

    .bh-profile::after {
        display: none;
    }

    .bh-profile__title,
    .bh-bookstore,
    .bh-profile__copy {
        grid-column: 1;
        grid-row: auto;
    }

    .bh-bookstore {
        width: min(82vw, 31rem);
    }

    .bh-profile__title h2 {
        font-size: 48px !important;
    }

    .bh-profile__copy {
        padding: 15px 0;
    }

    .bh-profile__copy p,
    .bh-work__copy > p,
    .bh-contact > div:last-child > p:not(.bh-eyebrow) {
        font-size: 16px;
    }

    .bh-work {
        grid-template-columns: 48px 1fr;
        gap: 22px;
        padding: 90px 18px;
    }

    .bh-work__number {
        font-size: 30px;
    }

    .bh-work__heading h2 {
        font-size: 46px !important;
    }

    .bh-work__heading h3 {
        font-size: 17px !important;
        margin-top: 24px !important;
        padding-top: 12px;
    }

    .bh-work__image,
    .bh-work__copy {
        grid-column: 1 / 3;
    }

    .bh-work__image {
        padding: 42px 12px 12px;
    }

    .bh-work__image::before {
        top: 14px;
        left: 14px;
        font-size: 8px;
    }

    .bh-work__image::after {
        top: 17px;
        right: 15px;
    }

    .bh-work__copy {
        display: block;
    }

    .bh-work__copy .bh-tags {
        margin-top: 24px;
    }

    .bh-work__copy .bh-text-link {
        margin-top: 26px;
    }

    .bh-services {
        padding: 90px 18px;
    }

    .bh-services > header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bh-services > header h2 {
        font-size: 44px !important;
    }

    .bh-services__grid {
        grid-template-columns: 1fr;
        margin-top: 42px;
    }

    .bh-services__grid a {
        grid-template-columns: 44px minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 8px 16px;
        min-height: auto;
        padding: 24px 0;
    }

    .bh-services__grid a:hover,
    .bh-services__grid a:focus-visible {
        padding-right: 0;
        padding-left: 8px;
    }

    .bh-services__grid a > span:first-child {
        grid-row: 1 / 3;
        align-self: start;
    }

    .bh-services__grid h3 {
        grid-column: 2;
        grid-row: 1;
        margin: 0 !important;
    }

    .bh-services__grid p {
        grid-column: 2;
        grid-row: 2;
    }

    .bh-contact {
        grid-template-columns: 1fr;
        gap: 45px;
        min-height: auto;
        padding: 90px 18px 130px;
    }

    .bh-contact h2 {
        font-size: 52px !important;
    }

    .bh-contact .bh-action--fill {
        width: 100%;
    }

    .bh-footer {
        flex-direction: column;
        gap: 15px;
        padding: 22px 18px 100px;
    }
}

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