.hub-page {
    background: #fffdf7;
}

.hub-page header.container {
    padding: 0 5%;
}

.hub-main {
    overflow: hidden;
}

.hub-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    min-height: 680px;
    background: var(--light-yellow);
}

.hub-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(64px, 8vw, 128px) clamp(32px, 7vw, 110px);
}

.hub-eyebrow {
    margin: 0 0 22px;
    color: var(--primary-brown);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hub-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--primary-dark-brown);
    font-size: clamp(3.5rem, 7vw, 7.4rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hub-hero__lead {
    max-width: 600px;
    margin: clamp(36px, 5vw, 72px) 0 0;
    color: #664936;
    font-size: clamp(0.96rem, 1.2vw, 1.1rem);
    line-height: 2;
}

.hub-hero__visual {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: var(--primary-dark-brown);
}

.visual-collage {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: 100%;
    padding: 8px;
}

.visual-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.45s ease, transform 0.55s ease;
}

.visual-collage img:first-child {
    grid-row: 1 / 3;
}

.visual-collage img:hover {
    filter: saturate(1.08);
    transform: scale(1.015);
}

.web-hero-visual {
    display: grid;
    align-content: space-between;
    height: 100%;
    padding: clamp(42px, 6vw, 88px);
    color: #fff8e8;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        var(--primary-dark-brown);
    background-size: 42px 42px;
}

.web-hero-visual__label {
    color: var(--primary-yellow);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.web-hero-visual__stack {
    display: grid;
    gap: 18px;
    margin: 60px 0;
}

.web-hero-visual__stack span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: clamp(1.35rem, 2.6vw, 2.8rem);
    font-weight: 800;
}

.web-hero-visual__stack span:first-child {
    color: var(--primary-yellow);
}

.web-hero-visual__stack small {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
}

.web-hero-visual__note {
    max-width: 390px;
    margin-left: auto;
    color: rgba(255, 248, 232, 0.68);
    font-size: 0.78rem;
    line-height: 1.8;
    text-align: right;
}

.tools-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.24);
}

.tools-visual>div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(30px, 4vw, 62px);
    color: #fff8e8;
    background: var(--primary-dark-brown);
}

.tools-visual span {
    color: var(--primary-yellow);
    font-size: clamp(2rem, 4vw, 4.5rem);
    font-weight: 900;
}

.tools-visual small {
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hub-jump {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 28px 5%;
    background: #fffdf7;
}

.hub-jump a {
    padding: 9px 18px;
    border: 1px solid rgba(89, 56, 37, 0.22);
    border-radius: var(--radius-pill);
    color: var(--primary-dark-brown);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.hub-jump a:hover,
.hub-jump a:focus-visible {
    color: #fff;
    background: var(--primary-dark-brown);
    transform: translateY(-2px);
}

.hub-section {
    width: min(1240px, 90%);
    margin: 0 auto;
    padding: clamp(90px, 11vw, 160px) 0;
}

.hub-section+.hub-section {
    border-top: 1px solid rgba(89, 56, 37, 0.12);
}

.hub-section--wide {
    width: 100%;
    padding-right: 5%;
    padding-left: 5%;
}

.hub-section--dark {
    color: #fff8e8;
    background: var(--primary-dark-brown);
}

.hub-section--dark+.hub-section {
    border-top: 0;
}

.hub-section__head {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(36px, 8vw, 120px);
    align-items: end;
    margin-bottom: clamp(52px, 7vw, 92px);
}

.hub-section__head h2 {
    margin: 0;
    color: var(--primary-dark-brown);
    font-size: clamp(2.3rem, 4.8vw, 5.6rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.hub-section--dark .hub-section__head h2 {
    color: var(--primary-yellow);
}

.hub-section__head p:last-child {
    max-width: 680px;
    margin: 0;
    color: #765c4b;
    line-height: 2;
}

.hub-section--dark .hub-section__head p:last-child {
    color: rgba(255, 248, 232, 0.68);
}

.capability-strip {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    width: min(1240px, 90%);
    margin: clamp(62px, 8vw, 120px) auto;
    border: 1px solid rgba(89, 56, 37, 0.14);
}

.capability-strip a {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 210px;
    padding: clamp(26px, 4vw, 48px);
    border-right: 1px solid rgba(89, 56, 37, 0.14);
    background: #fff;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.capability-strip a:last-child {
    border-right: 0;
}

.capability-strip a:first-child {
    color: #fff8e8;
    background: var(--primary-dark-brown);
}

.capability-strip span {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    transition: color 0.3s ease;
}

.capability-strip a:first-child span {
    color: var(--primary-yellow);
}

.capability-strip h2 {
    margin: 48px 0 12px;
    font-size: clamp(1.6rem, 2.8vw, 2.9rem);
}

.capability-strip p {
    margin: 0;
    color: var(--dark-gray);
    font-size: 0.82rem;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.capability-strip a:first-child p {
    color: rgba(255, 248, 232, 0.64);
}

.capability-strip a:hover,
.capability-strip a:focus-visible {
    color: #fff8e8;
    background: var(--primary-dark-brown);
    transform: translateY(-4px);
}

.capability-strip a:hover span,
.capability-strip a:focus-visible span {
    color: var(--primary-yellow);
}

.capability-strip a:hover p,
.capability-strip a:focus-visible p {
    color: rgba(255, 248, 232, 0.64);
}

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

.hub-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hub-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(89, 56, 37, 0.14);
    border-radius: var(--radius-card);
    background: #fff;
    box-shadow: 0 10px 32px rgba(89, 56, 37, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hub-card:hover,
.hub-card:focus-within {
    box-shadow: 0 18px 44px rgba(89, 56, 37, 0.12);
    transform: translateY(-7px);
}

.hub-card__media {
    position: relative;
    aspect-ratio: 1920 / 911;
    overflow: hidden;
    background: #ead69d;
}

.hub-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hub-card:hover .hub-card__media img {
    transform: scale(1.025);
}

.hub-card__media--contain img {
    padding: 18px;
    object-fit: contain;
    background: #eee8dc;
}

.hub-card__placeholder {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 28px;
    color: #fff8e8;
    background:
        radial-gradient(circle at 82% 22%, rgba(243, 193, 76, 0.72), transparent 27%),
        var(--primary-dark-brown);
}

.hub-card__placeholder strong {
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1;
}

.hub-card__placeholder span {
    font-size: 0.68rem;
    letter-spacing: 0.15em;
}

.hub-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px;
}

.hub-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    color: var(--primary-brown);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hub-card h3 {
    margin: 0 0 12px;
    color: var(--primary-dark-brown);
    font-size: 1.35rem;
    line-height: 1.45;
}

.hub-card p {
    margin: 0;
    color: var(--dark-gray);
    font-size: 0.86rem;
    line-height: 1.8;
}

.hub-card__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 24px;
    color: var(--primary-brown);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hub-card__link span {
    transition: transform 0.25s ease;
}

.hub-card:hover .hub-card__link span {
    transform: translateX(5px);
}

/* 尚未開放的分類卡片（如 Photography）：不可點擊、字色轉灰 */
.hub-card__link--soon {
    color: var(--dark-gray);
    cursor: default;
}

.hub-section--dark .hub-card {
    border-color: rgba(255, 255, 255, 0.12);
    background: #fffdf7;
}

.hub-more {
    display: flex;
    justify-content: flex-end;
    margin-top: 44px;
}

.hub-more a {
    display: inline-flex;
    gap: 24px;
    align-items: center;
    padding: 13px 22px;
    border: 1px solid rgba(89, 56, 37, 0.26);
    border-radius: var(--radius-pill);
    color: var(--primary-dark-brown);
    font-size: 0.78rem;
    font-weight: 800;
}

.hub-more a:hover,
.hub-more a:focus-visible {
    color: #fff;
    background: var(--primary-dark-brown);
}

.focus-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin: 0 0 clamp(50px, 7vw, 88px);
    background: rgba(255, 255, 255, 0.14);
}

.focus-list div {
    padding: 24px;
    background: var(--primary-dark-brown);
}

.focus-list span {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-yellow);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.focus-list p {
    margin: 0;
    color: rgba(255, 248, 232, 0.72);
    font-size: 0.8rem;
}

.hub-footer {
    padding: 36px 5%;
}

@media (max-width: 1024px) {
    .hub-hero {
        grid-template-columns: 1fr;
    }

    .hub-hero__visual {
        min-height: 620px;
    }

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

    .capability-strip {
        grid-template-columns: 1fr;
    }

    .capability-strip a {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid rgba(89, 56, 37, 0.14);
    }

    .capability-strip a:last-child {
        border-bottom: 0;
    }

    .capability-strip h2 {
        margin-top: 24px;
    }
}

@media (max-width: 720px) {
    .hub-hero {
        min-height: 0;
    }

    .hub-hero__copy {
        padding: 72px 22px;
    }

    .hub-hero h1 {
        font-size: clamp(3.3rem, 17vw, 5.1rem);
    }

    .hub-hero__visual {
        min-height: 520px;
    }

    .visual-collage {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1.25fr 0.75fr;
    }

    .visual-collage img:first-child {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    .hub-jump {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .hub-jump a {
        white-space: nowrap;
    }

    .hub-section {
        width: min(100% - 36px, 1240px);
    }

    .hub-section--wide {
        width: 100%;
        padding-right: 18px;
        padding-left: 18px;
    }

    .hub-section__head {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hub-grid,
    .hub-grid--two {
        grid-template-columns: 1fr;
    }

    .focus-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .tools-visual>div {
        padding: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hub-card,
    .hub-card__media img,
    .visual-collage img,
    .hub-jump a,
    .capability-strip a {
        transition: none;
    }
}