:root {
    --hub-black: #050505;
    --hub-ink: #111111;
    --hub-paper: #eee9df;
    --hub-white: #fffdf8;
    --hub-red: #c52f22;
    --hub-rail-width: 116px;
    --hub-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
    --hub-sans: "Inter Tight", Inter, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", sans-serif;
    --hub-ease: cubic-bezier(0.2, 0.75, 0.25, 1);
    --hub-row-height: clamp(164px, calc((100vw - var(--hub-rail-width)) * 0.132), 210px);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body.hub-page {
    margin: 0;
    background: var(--hub-paper);
    color: var(--hub-ink);
    font-family: var(--hub-sans);
    font-size: 16px;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.hub-page *,
body.hub-page *::before,
body.hub-page *::after {
    box-sizing: border-box;
}

body.hub-page a {
    color: inherit;
}

body.hub-page img {
    display: block;
    max-width: 100%;
}

.hub-skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: calc(var(--hub-rail-width) + 16px);
    padding: 10px 14px;
    background: var(--hub-white);
    color: var(--hub-ink);
    border: 2px solid var(--hub-ink);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-160%);
}

.hub-skip-link:focus {
    transform: translateY(0);
}

.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-style: normal;
    font-weight: 400;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}

/* Fixed studio rail */
.hub-rail {
    position: fixed;
    z-index: 90;
    inset: 0 auto 0 0;
    width: var(--hub-rail-width);
    background: var(--hub-paper);
    border-right: 1px solid var(--hub-ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 24px 14px 20px;
}

.hub-rail-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-decoration: none;
}

.hub-rail-brand span {
    color: var(--hub-ink);
    font-size: 2.55rem;
    font-weight: 900;
    letter-spacing: -0.065em;
    line-height: 1;
}

.hub-rail-brand small {
    color: var(--hub-ink);
    font-family: var(--hub-mono);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.hub-rail-meta {
    width: 100%;
    display: grid;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--hub-ink);
    color: var(--hub-ink);
    font-family: var(--hub-mono);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.45;
}

.admin-bar .hub-rail {
    top: 32px;
}

.hub-main {
    min-width: 0;
    margin-left: var(--hub-rail-width);
}

/* Navigation */
.hub-topbar {
    position: sticky;
    z-index: 70;
    top: 0;
    height: 76px;
    padding: 0 42px;
    background: var(--hub-black);
    color: var(--hub-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.admin-bar .hub-topbar {
    top: 32px;
}

.hub-topbar-kicker {
    font-family: var(--hub-mono);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.hub-topbar-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
}

.hub-topbar-nav a {
    position: relative;
    color: var(--hub-white);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.hub-topbar-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.hub-topbar-nav a:hover::after,
.hub-topbar-nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hero */
.hub-hero {
    min-height: calc(100vh - 76px);
    padding: 48px 0 54px 48px;
    background: var(--hub-black);
    color: var(--hub-white);
    display: grid;
    grid-template-columns: minmax(350px, 0.78fr) minmax(0, 1.42fr);
    align-items: center;
    gap: clamp(32px, 4vw, 72px);
    overflow: hidden;
}

.hub-hero-copy {
    max-width: 520px;
    padding-right: 28px;
}

.hub-eyebrow,
.hub-section-label,
.hub-showcase-label,
.hub-footer-label,
.hub-studio-label {
    font-family: var(--hub-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.hub-eyebrow {
    margin-bottom: 28px;
    color: rgba(255, 253, 248, 0.64);
}

.hub-hero h1 {
    margin: 0;
    color: var(--hub-white);
    font-size: clamp(3.5rem, 5.45vw, 5.8rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hub-hero-lead {
    max-width: 440px;
    margin: 28px 0 0;
    color: var(--hub-white);
    font-size: clamp(1rem, 1.45vw, 1.3rem);
    font-weight: 500;
    line-height: 1.6;
}

.hub-hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 0;
    margin-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 13px 0;
    color: rgba(255, 253, 248, 0.72);
    font-family: var(--hub-mono);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.hub-hero-facts span {
    display: inline-flex;
    align-items: center;
}

.hub-hero-facts span:not(:last-child)::after {
    content: "/";
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.38);
}

.hub-hero-jump {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    color: var(--hub-white);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 5px;
}

.hub-hero-jump .material-symbols-outlined {
    font-size: 20px;
    transition: transform 180ms ease;
}

.hub-hero-jump:hover .material-symbols-outlined,
.hub-hero-jump:focus-visible .material-symbols-outlined {
    transform: translateY(4px);
}

.hub-showcase {
    min-width: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hub-showcase-header {
    min-height: 44px;
    padding-right: 34px;
    margin-bottom: 14px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.hub-showcase-header > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 18px;
}

.hub-showcase-help {
    color: rgba(255, 253, 248, 0.55);
    font-size: 0.72rem;
    font-weight: 500;
}

.hub-showcase-controls {
    display: flex;
    gap: 6px;
}

.hub-showcase-controls button {
    min-width: 62px;
    min-height: 36px;
    padding: 7px 10px;
    appearance: none;
    background: transparent;
    color: var(--hub-white);
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 0;
    font: 600 0.62rem/1 var(--hub-mono);
    letter-spacing: 0.04em;
    cursor: pointer;
}

.hub-showcase-controls button:hover,
.hub-showcase-controls button:focus-visible {
    background: var(--hub-white);
    color: var(--hub-black);
}

.hub-showcase-controls button:disabled {
    opacity: 0.3;
    cursor: default;
}

.hub-showcase-track {
    display: flex;
    gap: 14px;
    min-width: 0;
    padding: 0 34px 16px 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-x pan-y;
}

.hub-showcase-track::-webkit-scrollbar {
    display: none;
}

.hub-showcase-track:focus-visible {
    outline: 2px solid var(--hub-white);
    outline-offset: 4px;
}

.hub-showcase-track.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.hub-showcase-card {
    flex: 0 0 clamp(238px, 22vw, 330px);
    scroll-snap-align: start;
    color: var(--hub-white);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: #111111;
    transition: border-color 180ms ease, transform 240ms var(--hub-ease);
}

.hub-showcase-card:hover,
.hub-showcase-card:focus-visible {
    border-color: var(--hub-white);
    transform: translateY(-5px);
}

.hub-showcase-card:focus-visible {
    outline: 3px solid var(--hub-white);
    outline-offset: -6px;
}

.hub-showcase-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    object-position: var(--showcase-x, 50%) var(--showcase-y, 50%);
    background: var(--hub-paper);
    -webkit-user-drag: none;
    user-select: none;
}

.hub-showcase-caption {
    min-height: 42px;
    padding: 0 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.42);
    display: flex;
    align-items: center;
    gap: 13px;
    font-family: var(--hub-mono);
    font-size: 0.65rem;
}

.hub-showcase-caption strong {
    overflow: hidden;
    font-family: var(--hub-sans);
    font-size: 0.86rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Equal-height app catalog */
.hub-catalog {
    background: var(--hub-paper);
}

.hub-catalog-header {
    min-height: 132px;
    padding: 32px 42px;
    border-top: 1px solid var(--hub-ink);
    border-bottom: 1px solid var(--hub-ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.hub-catalog-header h2 {
    margin: 6px 0 0;
    font-size: clamp(2.1rem, 4vw, 4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.055em;
}

.hub-catalog-header p {
    max-width: 330px;
    margin: 0;
    font-size: 0.84rem;
    font-weight: 600;
}

.hub-app-list {
    display: grid;
}

.hub-app-row {
    position: relative;
    height: var(--hub-row-height);
    display: grid;
    grid-template-columns: minmax(0, 46%) minmax(0, 54%);
    color: var(--row-text, var(--hub-ink));
    background: var(--row-bg, var(--hub-white));
    border-bottom: 1px solid var(--row-border, var(--hub-ink));
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
}

body.hub-page a.hub-app-row {
    color: var(--row-text, var(--hub-ink));
}

.hub-app-row:focus-visible {
    z-index: 2;
    outline: 4px solid currentColor;
    outline-offset: -8px;
}

.hub-app-info {
    position: relative;
    z-index: 2;
    min-width: 0;
    padding: clamp(20px, 2.5vw, 44px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hub-app-heading {
    min-width: 0;
    display: grid;
    grid-template-columns: auto clamp(44px, 4vw, 60px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(10px, 1.2vw, 18px);
}

.hub-app-number {
    color: var(--row-number, var(--row-text, currentColor));
    font-family: var(--hub-mono);
    font-size: clamp(1.35rem, 2vw, 2.35rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.05em;
}

.hub-app-icon {
    width: clamp(44px, 4vw, 60px);
    height: clamp(44px, 4vw, 60px);
    border: 1px solid var(--icon-border, rgba(0, 0, 0, 0.14));
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.hub-app-heading h3 {
    margin: 0;
    color: var(--row-accent, currentColor);
    font-size: clamp(1.55rem, 2.4vw, 3rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.06em;
}

.hub-app-platforms {
    display: block;
    margin-top: 7px;
    color: var(--row-muted, currentColor);
    font-family: var(--hub-mono);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    opacity: 1;
}

.hub-app-tagline {
    max-width: 510px;
    margin: clamp(12px, 1.45vw, 24px) 0 0;
    color: inherit;
    font-size: clamp(1.15rem, 1.7vw, 2.2rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.hub-app-desc {
    display: none;
}

.hub-app-visual {
    position: relative;
    z-index: 1;
    min-width: 0;
    width: 108%;
    margin-left: -8%;
    overflow: hidden;
    border-left: 1px solid var(--row-border, var(--hub-ink));
    background: var(--hub-black);
    clip-path: polygon(10% 0, 100% 0, 96% 100%, 0 100%);
}

.hub-app-visual picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hub-app-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--image-x, 50%) var(--image-y, 34%);
    transition: transform 520ms var(--hub-ease);
}

@media (min-width: 521px) {
    .hub-app-visual img {
        object-position: var(--desktop-image-x, 50%) var(--desktop-image-y, 50%);
    }
}

.hub-app-row:hover .hub-app-visual img,
.hub-app-row:focus-visible .hub-app-visual img {
    transform: scale(1.025);
}

.hub-app-arrow {
    position: absolute;
    z-index: 3;
    inset: 0 0 0 auto;
    width: clamp(54px, 5.5vw, 84px);
    background: var(--arrow-bg, var(--row-bg, var(--hub-white)));
    border-left: 1px solid var(--row-border, var(--hub-ink));
    display: grid;
    place-items: center;
    color: inherit;
}

.hub-app-arrow .material-symbols-outlined {
    font-size: clamp(2rem, 3.2vw, 3.5rem);
    transition: transform 220ms var(--hub-ease);
}

.hub-app-row:hover .hub-app-arrow .material-symbols-outlined,
.hub-app-row:focus-visible .hub-app-arrow .material-symbols-outlined {
    transform: translateX(8px);
}

/* Per-app colors and crop positions are supplied by data/portfolio-apps.json. */

/* Studio statement */
.hub-studio {
    min-height: 450px;
    padding: clamp(56px, 7vw, 96px) 42px;
    background: #121212;
    color: var(--hub-white);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    display: grid;
    grid-template-columns: minmax(110px, 0.35fr) minmax(320px, 1.15fr) minmax(240px, 0.7fr);
    gap: clamp(32px, 6vw, 90px);
    align-items: start;
}

.hub-studio-label {
    padding-top: 8px;
    color: rgba(255, 253, 248, 0.54);
}

.hub-studio-copy h2 {
    max-width: 780px;
    margin: 0;
    color: var(--hub-white);
    font-size: clamp(2.35rem, 5vw, 5.2rem);
    font-weight: 900;
    line-height: 1.03;
    letter-spacing: -0.065em;
}

.hub-studio-copy p {
    max-width: 670px;
    margin: 30px 0 0;
    color: rgba(255, 253, 248, 0.72);
    font-size: 1rem;
    line-height: 1.85;
}

.hub-studio-copy a {
    display: inline-block;
    margin-top: 28px;
    color: var(--hub-white);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.hub-studio-facts {
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.32);
}

.hub-studio-facts div {
    padding: 17px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

.hub-studio-facts dt {
    color: rgba(255, 253, 248, 0.48);
    font-family: var(--hub-mono);
    font-size: 0.58rem;
    letter-spacing: 0.08em;
}

.hub-studio-facts dd {
    margin: 7px 0 0;
    color: var(--hub-white);
    font-family: var(--hub-mono);
    font-size: 0.76rem;
    font-weight: 600;
}

/* Structured footer */
.hub-footer {
    padding: 42px;
    background: var(--hub-paper);
    color: var(--hub-ink);
    border-top: 1px solid var(--hub-ink);
}

.hub-footer-grid {
    display: grid;
    grid-template-columns: minmax(200px, 1.35fr) repeat(3, minmax(120px, 0.65fr));
    gap: 0;
    border-top: 1px solid var(--hub-ink);
    border-bottom: 1px solid var(--hub-ink);
}

.hub-footer-grid > div {
    min-height: 180px;
    padding: 24px;
    border-right: 1px solid var(--hub-ink);
}

.hub-footer-grid > div:first-child {
    padding-left: 0;
}

.hub-footer-grid > div:last-child {
    border-right: 0;
    padding-right: 0;
}

.hub-footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hub-footer-brand strong {
    font-size: clamp(2rem, 4vw, 4.4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.07em;
}

.hub-footer-brand span {
    font-family: var(--hub-mono);
    font-size: 0.64rem;
    font-weight: 600;
}

.hub-footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.hub-footer-label {
    margin-bottom: 10px;
    color: rgba(17, 17, 17, 0.52);
}

.hub-footer-column a {
    color: var(--hub-ink);
    font-size: 0.84rem;
    font-weight: 650;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.hub-footer-column a:hover,
.hub-footer-column a:focus-visible {
    color: var(--hub-red);
}

.hub-footer-bottom {
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: rgba(17, 17, 17, 0.66);
    font-family: var(--hub-mono);
    font-size: 0.57rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

@media (max-width: 1100px) {
    :root {
        --hub-rail-width: 92px;
        --hub-row-height: clamp(150px, 15vw, 170px);
    }

    .hub-rail-brand span {
        font-size: 2.1rem;
    }

    .hub-hero {
        padding-left: 34px;
        grid-template-columns: minmax(310px, 0.78fr) minmax(0, 1.35fr);
        gap: 28px;
    }

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

    .hub-app-info {
        padding: 22px;
    }

    .hub-app-heading {
        grid-template-columns: auto 52px minmax(0, 1fr);
        gap: 13px;
    }

    .hub-app-icon {
        width: 52px;
        height: 52px;
        border-radius: 12px;
    }

    .hub-footer {
        padding: 34px;
    }
}

@media (max-width: 820px) {
    :root {
        --hub-rail-width: 0px;
    }

    html {
        scroll-padding-top: 124px;
    }

    .hub-skip-link {
        left: 12px;
    }

    .hub-rail,
    .admin-bar .hub-rail {
        position: fixed;
        inset: 0 0 auto;
        width: 100%;
        height: 64px;
        padding: 0 20px;
        border-right: 0;
        border-bottom: 1px solid var(--hub-ink);
        flex-direction: row;
        justify-content: flex-start;
    }

    .admin-bar .hub-rail {
        top: 46px;
    }

    .hub-rail-brand {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        writing-mode: horizontal-tb;
    }

    .hub-rail-brand span {
        font-size: 1.45rem;
        letter-spacing: -0.05em;
    }

    .hub-rail-brand small {
        font-size: 0.54rem;
    }

    .hub-rail-meta {
        display: none;
    }

    .hub-main {
        margin-left: 0;
        padding-top: 64px;
    }

    .hub-topbar,
    .admin-bar .hub-topbar {
        top: 64px;
        height: 58px;
        padding: 0 20px;
    }

    .admin-bar .hub-topbar {
        top: 110px;
    }

    .hub-topbar-kicker {
        display: none;
    }

    .hub-topbar-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 24px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .hub-topbar-nav::-webkit-scrollbar {
        display: none;
    }

    .hub-topbar-nav a {
        flex: 0 0 auto;
        font-size: 0.75rem;
    }

    .hub-hero {
        min-height: auto;
        padding: 54px 0 56px 24px;
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .hub-hero-copy {
        max-width: 620px;
        padding-right: 24px;
    }

    .hub-hero h1 {
        font-size: clamp(3.4rem, 13vw, 5rem);
    }

    .hub-showcase-header {
        padding-right: 24px;
    }

    .hub-showcase-header > div:first-child {
        display: grid;
        gap: 5px;
    }

    .hub-showcase-help {
        font-size: 0.66rem;
    }

    .hub-showcase-card {
        flex-basis: min(67vw, 280px);
    }

    .hub-catalog-header {
        padding: 28px 24px;
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .hub-catalog-header h2 {
        font-size: clamp(2.3rem, 10vw, 3.6rem);
    }

    .hub-catalog-header p {
        max-width: none;
    }

    .hub-app-row {
        height: clamp(132px, 18vw, 148px);
        grid-template-columns: minmax(0, 48%) minmax(0, 52%);
        grid-template-rows: 1fr;
    }

    .hub-app-info {
        padding: 14px 20px;
    }

    .hub-app-heading {
        grid-template-columns: auto 40px minmax(0, 1fr);
        gap: 9px;
    }

    .hub-app-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .hub-app-number {
        font-size: 1.15rem;
    }

    .hub-app-heading h3 {
        font-size: clamp(1.2rem, 3.6vw, 1.75rem);
    }

    .hub-app-tagline {
        margin-top: 10px;
        font-size: clamp(0.96rem, 2.8vw, 1.35rem);
    }

    .hub-app-visual {
        grid-row: auto;
        border-top: 0;
        border-left: 1px solid var(--row-border, var(--hub-ink));
    }

    .hub-app-visual img {
        object-position: center var(--image-y, 28%);
    }

    .hub-app-arrow {
        width: 52px;
        height: 100%;
        border-left: 1px solid var(--row-border, var(--hub-ink));
        border-bottom: 0;
    }

    .hub-app-arrow .material-symbols-outlined {
        font-size: 2rem;
    }

    .hub-studio {
        min-height: auto;
        padding: 64px 24px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hub-studio-copy h2 {
        font-size: clamp(2.6rem, 11vw, 4.4rem);
    }

    .hub-studio-facts {
        margin-top: 10px;
    }

    .hub-footer {
        padding: 30px 24px;
    }

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

    .hub-footer-grid > div,
    .hub-footer-grid > div:first-child,
    .hub-footer-grid > div:last-child {
        min-height: 152px;
        padding: 20px;
        border-right: 1px solid var(--hub-ink);
        border-bottom: 1px solid var(--hub-ink);
    }

    .hub-footer-grid > div:nth-child(3) {
        border-right: 0;
    }

    .hub-footer-grid > div:last-child {
        grid-column: 1 / -1;
        border-right: 0;
        border-bottom: 0;
    }

    .hub-footer-grid > div:first-child {
        grid-column: 1 / -1;
        border-right: 0;
    }

    .hub-footer-brand strong {
        font-size: 3.6rem;
    }
}

@media (max-width: 520px) {
    .hub-topbar-nav {
        gap: 20px;
    }

    .hub-eyebrow {
        font-size: 0.57rem;
    }

    .hub-hero h1 {
        font-size: clamp(3.15rem, 15vw, 4.2rem);
    }

    .hub-hero-facts {
        display: grid;
        gap: 7px;
    }

    .hub-hero-facts span:not(:last-child)::after {
        display: none;
    }

    .hub-showcase-controls button {
        min-width: 54px;
        padding-inline: 7px;
    }

    .hub-app-row {
        height: clamp(360px, 96vw, 400px);
        grid-template-columns: 1fr;
        grid-template-rows: 160px minmax(0, 1fr);
    }

    .hub-app-heading {
        grid-template-columns: auto 48px minmax(0, 1fr);
        gap: 11px;
    }

    .hub-app-icon {
        width: 48px;
        height: 48px;
        border-radius: 11px;
    }

    .hub-app-number {
        font-size: 1.35rem;
    }

    .hub-app-desc {
        display: none;
    }

    .hub-app-info {
        padding: 22px 64px 20px 22px;
    }

    .hub-app-heading h3 {
        font-size: clamp(1.6rem, 8vw, 2.15rem);
    }

    .hub-app-tagline {
        margin-top: 18px;
        font-size: clamp(1.3rem, 6vw, 1.75rem);
    }

    .hub-app-visual {
        grid-row: 2;
        width: 100%;
        margin-left: 0;
        border-top: 1px solid var(--row-border, var(--hub-ink));
        border-left: 0;
        clip-path: none;
    }

    .hub-app-arrow {
        top: 0;
        right: 0;
        bottom: auto;
        width: 58px;
        height: 58px;
        border-bottom: 1px solid var(--row-border, var(--hub-ink));
    }

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

    .hub-footer-grid > div,
    .hub-footer-grid > div:first-child,
    .hub-footer-grid > div:last-child,
    .hub-footer-grid > div:nth-child(2n),
    .hub-footer-grid > div:nth-last-child(-n + 2) {
        grid-column: auto;
        min-height: auto;
        padding: 22px 0;
        border-right: 0;
        border-bottom: 1px solid var(--hub-ink);
    }

    .hub-footer-grid > div:last-child {
        border-bottom: 0;
    }

    .hub-footer-brand {
        min-height: 130px !important;
    }

    .hub-footer-bottom {
        flex-direction: column;
    }
}

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

    .hub-showcase-card,
    .hub-app-visual img,
    .hub-app-arrow .material-symbols-outlined,
    .hub-hero-jump .material-symbols-outlined,
    .hub-topbar-nav a::after {
        transition: none;
    }
}
