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

.case-detail-shade {
    background:
        linear-gradient(180deg, rgba(12, 17, 22, 0.79), rgba(13, 19, 25, 0.72)),
        radial-gradient(circle at center, transparent 10%, rgba(6, 10, 13, 0.42) 100%);
    inset: 0;
    position: absolute;
}

.case-detail-title {
    max-width: 76rem;
    position: relative;
    text-align: center;
    text-shadow: 0 3px 24px rgba(0, 0, 0, 0.48);
    width: 100%;
    z-index: 2;
}

.case-detail-title > p:first-child,
.case-visit-section > p {
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    margin: 0;
}

.case-detail-title h1,
.case-intro-grid h2,
.case-section-heading h2,
.case-dark-grid h2,
.case-visit-section h2,
.about-profile-copy h2 {
    font-family: "Arial Black", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 0.98;
    margin: 0;
    word-break: keep-all;
}

.case-detail-title h1 {
    font-size: clamp(4.5rem, 8.8vw, 10rem);
    margin: 1.25rem 0 1.7rem;
}

.case-detail-title h1 span {
    display: block;
}

.case-detail-lead {
    font-family: Georgia, "Noto Serif TC", "PMingLiU", serif;
    font-size: clamp(0.95rem, 1.25vw, 1.22rem);
    font-style: italic;
    line-height: 1.9;
    margin: 0 auto 2rem;
    max-width: 46rem;
}

.case-hero-link {
    border: 2px solid rgba(255, 255, 255, 0.82);
    display: inline-flex;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    padding: 1rem 1.35rem;
    transition: background-color 180ms ease, color 180ms ease;
}

.case-hero-link:hover,
.case-hero-link:focus-visible {
    background: #fff;
    color: var(--ink);
    text-shadow: none;
}

.case-sheet,
.about-sheet,
.service-sheet,
.contact-sheet {
    background: #fff;
    color: var(--ink);
    margin: 0 auto;
    max-width: 1540px;
    width: min(calc(100% - 6rem), 1540px);
}

.case-section,
.about-profile-section {
    padding: clamp(5.5rem, 9vw, 9rem) clamp(2rem, 8vw, 9rem);
}

.case-intro-grid {
    display: grid;
    gap: clamp(3rem, 7vw, 8rem);
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
}

.case-intro-grid h2,
.case-section-heading h2 {
    font-size: clamp(2.9rem, 4vw, 4.4rem);
    margin-top: 1.15rem;
}

.case-long-copy {
    align-self: end;
    color: #555d63;
    font-family: Georgia, "Noto Serif TC", "PMingLiU", serif;
    font-size: 1.04rem;
    line-height: 1.95;
}

.case-long-copy p {
    margin: 0;
}

.case-long-copy p + p {
    margin-top: 1.25rem;
}

.case-fact-grid {
    border-bottom: 1px solid #d8d8d8;
    border-top: 1px solid #d8d8d8;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(4rem, 7vw, 7rem);
}

.case-fact-grid article {
    min-height: 8.8rem;
    padding: 1.8rem clamp(1rem, 2.5vw, 2.25rem);
}

.case-fact-grid article + article {
    border-left: 1px solid #d8d8d8;
}

.case-fact-grid span,
.case-desktop-frame figcaption,
.case-mobile-frame figcaption {
    display: block;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.case-fact-grid strong {
    display: block;
    font-size: clamp(0.92rem, 1.3vw, 1.15rem);
    line-height: 1.5;
    margin-top: 1.45rem;
}

.case-rwd-section {
    background: #ebe8e1;
    border-top: 1px solid #d8d8d8;
}

.case-section-heading {
    align-items: end;
    display: grid;
    gap: 3rem;
    grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.75fr);
    margin-bottom: clamp(4rem, 7vw, 7rem);
}

.case-section-heading > p {
    color: #555d63;
    font-family: Georgia, "Noto Serif TC", "PMingLiU", serif;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.85;
    margin: 0 0 0.5rem;
}

.case-section-heading.compact {
    display: block;
}

.case-device-stage {
    --case-frame-ink: #171b20;
    align-items: start;
    column-gap: clamp(1rem, 2.8vw, 2.8rem);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    padding: 1rem 0 clamp(6rem, 10vw, 10rem);
}

.case-device-stage figure {
    margin: 0;
}

.case-desktop-frame {
    background: transparent;
    border: 0;
    box-shadow: none;
    grid-column: 1 / span 10;
    overflow: visible;
    padding: 0;
    position: relative;
}

.case-desktop-frame::before {
    display: none;
}

.case-desktop-frame figcaption,
.case-mobile-frame figcaption {
    color: var(--case-frame-ink);
    margin: 0 0 0.8rem;
    position: static;
}

.case-desktop-frame img,
.case-mobile-frame img {
    border: 1px solid var(--case-frame-ink);
    display: block;
    height: auto;
    width: 100%;
}

.case-desktop-frame img {
    box-shadow: 0 1.4rem 4rem rgba(23, 27, 32, 0.11);
}

.case-mobile-frame {
    align-self: end;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    grid-column: 9 / -1;
    justify-self: stretch;
    margin: 0 0 -4rem;
    max-width: none;
    overflow: visible;
    padding: 0;
    position: relative;
    transform: translateX(0.35rem);
    width: 100%;
    z-index: 2;
}

.case-mobile-frame::before {
    display: none;
}

.case-mobile-frame img {
    border: 2px solid var(--case-frame-ink);
    border-radius: 0.25rem;
    box-shadow: 0 1.8rem 4rem rgba(23, 27, 32, 0.22);
}

.case-screen-gallery {
    display: grid;
    gap: clamp(1.5rem, 3vw, 3rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: clamp(3.5rem, 7vw, 7rem);
}

.case-screen-gallery.single {
    grid-template-columns: 1fr;
}

.case-screen-gallery figure {
    margin: 0;
}

.case-screen-gallery img {
    background: #fff;
    border: 1px solid #171b20;
    box-shadow: 0 1.2rem 3rem rgba(25, 31, 36, 0.11);
    display: block;
    height: auto;
    width: 100%;
}

.case-screen-gallery figcaption {
    color: #555d63;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    margin-top: 0.9rem;
}

.case-dark-section {
    background: var(--ink);
    color: #fff;
    padding: clamp(5.5rem, 9vw, 9rem) clamp(2rem, 8vw, 9rem);
}

.case-dark-grid {
    display: grid;
    gap: clamp(4rem, 9vw, 10rem);
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.85fr);
}

.case-dark-grid h2 {
    font-size: clamp(3.4rem, 6.1vw, 7rem);
    margin-top: 1.4rem;
}

.case-dark-lead {
    color: rgba(255, 255, 255, 0.7);
    font-family: Georgia, "Noto Serif TC", "PMingLiU", serif;
    font-size: 1.08rem;
    line-height: 1.9;
    margin: 0 0 3.5rem;
}

.case-point-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.case-point-list li {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 2rem 1fr;
    padding: 1.35rem 0;
}

.case-point-list span {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.62rem;
    letter-spacing: 0.13em;
}

.case-point-list strong {
    font-size: 0.98rem;
    line-height: 1.55;
}

.case-solution-section {
    border-top: 1px solid #d8d8d8;
}

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

.case-solution-table article {
    min-height: 19rem;
    padding: clamp(2rem, 4vw, 4rem) clamp(1.4rem, 3vw, 3rem);
}

.case-solution-table article + article {
    border-left: 1px solid #d8d8d8;
}

.case-solution-table span {
    font-family: Georgia, serif;
    font-size: 0.8rem;
    font-style: italic;
}

.case-solution-table h3 {
    font-size: clamp(1.5rem, 2.4vw, 2.35rem);
    line-height: 1.3;
    margin: 4.8rem 0 1rem;
}

.case-solution-table p {
    color: #596168;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

.case-visit-section {
    background: #e8e5e1;
    padding: clamp(5rem, 8vw, 8rem) clamp(2rem, 8vw, 9rem);
    text-align: center;
}

.case-visit-section h2 {
    font-size: clamp(3.4rem, 6.8vw, 7.6rem);
    margin: 1.35rem 0 2.5rem;
}

.case-visit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
