/* ═══════════════════════════════════════
   HOME PAGE — PREMIUM REDESIGN
   ═══════════════════════════════════════ */

/* ─── TOKENS ─── */
.hp-kicker {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: hsl(var(--primary));
}

.hp-tag {
    display: inline-block;
    padding: 0.13rem 0.46rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    line-height: 1.4;
}
.hp-tag-blue  { background: hsl(var(--accent-blue) / 0.08); color: hsl(var(--accent-blue)); }
.hp-tag-green { background: hsl(var(--accent-green) / 0.08); color: hsl(var(--accent-green)); }
.hp-tag-purple{ background: hsl(var(--accent-purple) / 0.08); color: hsl(var(--accent-purple)); }
.hp-tag-red   { background: hsl(var(--accent-red) / 0.08); color: hsl(var(--accent-red)); }
.hp-tag-gold  { background: hsl(var(--accent-gold) / 0.08); color: hsl(var(--accent-gold)); }
.hp-tag-new   { background: hsl(var(--muted) / 0.72); color: hsl(var(--muted-foreground)); }

.hp-tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.hp-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: hsl(var(--accent-blue));
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* ─── LAYOUT ─── */
.hp-container {
    width: min(100%, calc(var(--site-content-width) + (var(--site-gutter) * 2)));
    margin: 0 auto;
    padding: 0 var(--site-gutter);
}

.hp-section {
    padding: 1.75rem 0;
}

main {
    display: flex;
    flex-direction: column;
}

main > .hp-section:nth-of-type(2) {
    order: 3;
}

main > .hp-section:nth-of-type(3) {
    order: 2;
}

.hp-section-alt {
    background:
        linear-gradient(180deg, hsl(var(--accent-blue) / 0.015), transparent 42%),
        hsl(var(--background));
    border-top: 1px solid hsl(var(--border));
    border-bottom: 1px solid hsl(var(--border));
}

.hp-section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.hp-see-all {
    font-size: 0.78rem;
    font-weight: 700;
    color: hsl(var(--primary));
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.hp-see-all:hover { text-decoration: underline; }

/* ─── HERO ─── */
.hp-hero-gradient {
    display: block;
    width: fit-content;
    background: linear-gradient(90deg, hsl(var(--primary)) 0%, hsl(var(--primary)) 46%, hsl(var(--accent-blue)) 100%);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes hp-gradient-flow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hp-hero .hp-kicker::before {
    content: "";
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.45rem;
    border-radius: 999px;
    background: hsl(var(--primary));
    box-shadow: 0 0 8px hsl(var(--primary) / 0.5);
    vertical-align: middle;
    animation: hp-pulse 2.5s ease-in-out infinite;
}

.hp-hero .hp-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.13em;
}

@keyframes hp-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px hsl(var(--primary) / 0.5); }
    50% { opacity: 0.55; box-shadow: 0 0 14px hsl(var(--primary) / 0.3); }
}

.hp-hero {
    padding: 5.2rem 0 1.7rem;
    text-align: left;
    background: hsl(var(--background));
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid hsl(var(--border));
}

.hp-hero-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: 
        linear-gradient(135deg, 
            hsl(var(--primary) / 0.24) 0%, 
            hsl(var(--accent-blue) / 0.24) 44%, 
            hsl(var(--accent-green) / 0.11) 100%);
    background-size: 300% 300%;
    animation: hp-bg-flow 11s ease-in-out infinite;
}

[data-theme="dark"] .hp-hero-glow {
    background: 
        linear-gradient(135deg, 
            hsl(var(--primary) / 0.18) 0%, 
            hsl(var(--accent-blue) / 0.15) 35%, 
            hsl(var(--accent-green) / 0.12) 65%, 
            hsl(var(--primary) / 0.18) 100%);
    background-size: 300% 300%;
}

@keyframes hp-bg-flow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: 
        linear-gradient(90deg, 
            hsl(var(--background) / 0.6) 0%, 
            hsl(var(--background) / 0.4) 45%, 
            hsl(var(--background) / 0.1) 100%);
    pointer-events: none;
}

.hp-hero::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    height: 1px;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent-blue)), hsl(var(--accent-green)));
    opacity: 0.75;
}

.hp-hero-visuals {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.56;
}

.hp-hero-visuals img {
    position: absolute;
    width: 22rem;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    filter: blur(0.8px) saturate(110%);
    top: 50%;
    transform: translateY(var(--y-offset)) rotate(var(--tilt));
    box-shadow: 0 22px 46px hsl(var(--foreground) / 0.13);
}

.hp-hero-visuals img:nth-child(1) {
    --tilt: -4deg;
    --y-offset: -55%;
    right: max(15%, calc((100vw - var(--site-content-width)) / 2 + 4rem));
    z-index: 2;
}

.hp-hero-visuals img:nth-child(2) {
    --tilt: 6deg;
    --y-offset: -20%;
    right: max(30%, calc((100vw - var(--site-content-width)) / 2 + 18rem));
    width: 18rem;
    z-index: 1;
}

.hp-hero-visuals img:nth-child(3) {
    --tilt: 3deg;
    --y-offset: -8%;
    right: max(9%, calc((100vw - var(--site-content-width)) / 2 + 0.75rem));
    width: 17rem;
    z-index: 0;
}

.hp-hero-inner {
    width: min(100%, calc(var(--site-content-width) + (var(--site-gutter) * 2)));
    padding: 0 calc(var(--site-gutter) + var(--site-panel-inset));
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) 280px;
    gap: 2.75rem;
    align-items: center;
}

.hp-hero h1 {
    max-width: 720px;
    font-size: 1.78rem;
    font-weight: 800;
    line-height: 1.1;
    color: hsl(var(--foreground));
    margin: 0.45rem 0 0.55rem;
    letter-spacing: 0;
}

.hp-subtitle {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    max-width: 650px;
    margin: 0;
    line-height: 1.48;
}

.hp-hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: 0.65rem;
    margin-top: 1.15rem;
}

.hp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.4rem;
    background: hsl(var(--primary));
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px hsl(var(--primary) / 0.25);
}
.hp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px hsl(var(--primary) / 0.35); }

.hp-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.4rem;
    background: transparent;
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}
.hp-btn-ghost:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); transform: translateY(-2px); }

.hp-hero-stats {
    display: grid;
    gap: 0.72rem;
    margin: 0;
    padding: 0.82rem 0.9rem;
    border-top: 0;
    max-width: none;
    border-left: 2px solid hsl(var(--accent-blue) / 0.45);
    border-radius: 0.6rem;
    background: hsl(var(--card) / 0.62);
    backdrop-filter: blur(16px) saturate(145%);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    box-shadow: 0 10px 26px hsl(var(--foreground) / 0.08);
}

.hp-hero-stats div {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 0.6rem;
    text-align: left;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.hp-hero-stats strong {
    display: block;
    font-size: 1.18rem;
    font-weight: 800;
    color: hsl(var(--accent-blue));
    line-height: 1;
}

.hp-hero-stats span {
    font-size: 0.68rem;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.hp-hero-panel {
    display: grid;
    gap: 0.75rem;
}

.hp-start-path {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.7rem;
}

.hp-start-label {
    color: hsl(var(--foreground));
    font-size: 0.76rem;
    font-weight: 800;
}

.hp-start-path a {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.26rem 0.62rem;
    border: 1px solid hsl(var(--primary) / 0.2);
    border-radius: 999px;
    background: hsl(var(--card) / 0.74);
    color: hsl(var(--primary));
    font-size: 0.74rem;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hp-start-path a:nth-of-type(2) {
    border-color: hsl(var(--accent-blue) / 0.24);
    color: hsl(var(--accent-blue));
}

.hp-start-path a:nth-of-type(3) {
    border-color: hsl(var(--accent-green) / 0.24);
    color: hsl(var(--accent-green));
}

.hp-start-path a:nth-of-type(4) {
    border-color: hsl(var(--accent-purple) / 0.24);
    color: hsl(var(--accent-purple));
}

.hp-start-path a:hover {
    border-color: hsl(var(--primary) / 0.55);
    background: hsl(var(--primary) / 0.12);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.12);
}

/* ─── BENTO GRID ─── */
.hp-bento {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.hp-bento-hero {
    grid-column: auto;
    grid-row: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.95rem 1rem;
    border-radius: 0.65rem;
    border: 1px solid hsl(var(--border));
    background:
        linear-gradient(160deg, hsl(var(--accent-blue) / 0.055), transparent 52%),
        hsl(var(--card));
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 170px;
}
.hp-bento-hero:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }

.hp-bento-hero h2 {
    font-size: 1rem;
    font-weight: 800;
    color: hsl(var(--foreground));
    line-height: 1.2;
    margin: 0.65rem 0 0.4rem;
}

.hp-bento-hero p {
    font-size: 0.78rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.45;
    margin-bottom: 0.85rem;
}

.hp-bento-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: start;
    gap: 0.32rem 0.65rem;
    padding: 0.78rem 0.85rem;
    border-radius: 0.65rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hp-bento-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }

.hp-bento-new {
    border-color: hsl(var(--border));
    background:
        linear-gradient(145deg, hsl(var(--accent-blue) / 0.025), transparent 58%),
        hsl(var(--card));
}

.hp-bento-card h3 {
    grid-column: 1 / -1;
    font-size: 0.9rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    line-height: 1.25;
    margin: 0.34rem 0 0.12rem;
}

.hp-bento-card p {
    grid-column: 1;
    font-size: 0.76rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.4;
    margin: 0;
}

.hp-bento-card .hp-link {
    grid-column: 2;
    align-self: end;
    justify-self: end;
    white-space: nowrap;
    margin-bottom: 0.08rem;
}

/* ─── PILLARS (4-col) ─── */
.hp-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.hp-pillar {
    padding: 1rem;
    border-radius: 0.65rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}
.hp-pillar:hover { transform: translateY(-3px); border-color: hsl(var(--accent) / 0.4); }

.hp-pillar-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border-radius: 0.5rem;
    background: hsl(var(--accent) / 0.1);
    color: hsl(var(--accent));
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.hp-pillar h3 {
    font-size: 1rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.35rem;
}

.hp-pillar p {
    font-size: 0.78rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.45;
    margin-bottom: 0.75rem;
    flex: 1;
}

.hp-pillar-count {
    font-size: 0.72rem;
    font-weight: 800;
    color: hsl(var(--accent));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── SPLIT: Guides + Sidebar ─── */
.hp-split {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 1.5rem;
    align-items: start;
}

.hp-guide-list {
    display: flex;
    flex-direction: column;
}

.hp-guide-row {
    display: grid;
    grid-template-columns: 72px auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.65rem;
    align-items: center;
    padding: 0.62rem 0;
    border-bottom: 1px solid hsl(var(--border));
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}
.hp-guide-row:last-child { border-bottom: none; }
.hp-guide-row:hover { background: hsl(var(--primary) / 0.03); }

.hp-guide-thumb {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 72px;
    height: 52px;
    border-radius: 0.45rem;
    object-fit: cover;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
}

.hp-guide-row .hp-tag {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    writing-mode: horizontal-tb;
    min-width: 70px;
    text-align: center;
}

.hp-guide-row strong {
    grid-column: 3;
    font-size: 0.88rem;
    color: hsl(var(--foreground));
    line-height: 1.3;
}

.hp-meta {
    grid-column: 3;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* ─── SIDEBAR ─── */
.hp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hp-yt-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    padding: 1rem;
    border-radius: 0.7rem;
    border: 1px solid hsl(var(--accent-red) / 0.18);
    background:
        linear-gradient(135deg, hsl(var(--accent-red) / 0.075), transparent 48%),
        linear-gradient(150deg, transparent 54%, hsl(var(--primary) / 0.035)),
        hsl(var(--card));
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 24px hsl(var(--foreground) / 0.055);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hp-video-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 0.68rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0.62rem;
    border-radius: 0.72rem;
    border: 1px solid hsl(var(--accent-red) / 0.18);
    background:
        linear-gradient(135deg, hsl(var(--accent-red) / 0.06), transparent 50%),
        linear-gradient(155deg, transparent 56%, hsl(var(--primary) / 0.03)),
        hsl(var(--card));
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 24px hsl(var(--foreground) / 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hp-video-card:hover {
    transform: translateY(-2px);
    border-color: hsl(var(--accent-red) / 0.45);
    box-shadow: 0 14px 30px hsl(var(--accent-red) / 0.13);
}

.hp-video-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 0.55rem;
    background: hsl(var(--background));
}

.hp-video-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hp-video-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.24));
    color: white;
}

.hp-video-play i {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: hsl(var(--accent-red));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
    font-size: 0.88rem;
}

.hp-video-kicker {
    display: block;
    margin-bottom: 0;
    color: hsl(var(--accent-red));
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hp-yt-card:hover {
    border-color: hsl(var(--accent-red) / 0.45);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px hsl(var(--accent-red) / 0.13);
}

.hp-yt-icon {
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    display: grid;
    place-items: center;
    border-radius: 0.65rem;
    background: hsl(var(--accent-red));
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 10px 22px hsl(var(--accent-red) / 0.22);
}

.hp-yt-body strong {
    display: block;
    margin: 0.05rem 0 0.1rem;
    font-size: 0.9rem;
    line-height: 1.22;
    color: hsl(var(--foreground));
}

.hp-yt-body span {
    display: block;
    font-size: 0.76rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.3;
}

.hp-yt-btn {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.8rem;
    background: hsl(var(--accent-red));
    color: white;
    border-radius: 0.45rem;
    font-size: 0.76rem;
    font-weight: 800;
}

.hp-field-map,
.hp-companies {
    padding: 0.85rem;
    border-radius: 0.6rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
}

.hp-book-picks {
    margin-top: 1rem;
    padding: 0.9rem;
    border-radius: 0.65rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
}

.hp-book-picks .hp-section-label {
    margin-bottom: 0.55rem;
}

.hp-book-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.55rem;
}

.hp-book-card {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0.5rem;
    min-height: 5.3rem;
    padding: 0.62rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.55rem;
    background:
        linear-gradient(140deg, hsl(var(--accent-purple) / 0.08), transparent 58%),
        hsl(var(--background));
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hp-book-card:hover {
    transform: translateY(-1px);
    border-color: hsl(var(--accent-purple) / 0.4);
    box-shadow: 0 8px 18px hsl(var(--accent-purple) / 0.09);
}

.hp-book-icon {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.45rem;
    background: hsl(var(--accent-purple) / 0.12);
    color: hsl(var(--accent-purple));
    font-size: 0.9rem;
}

.hp-book-card strong {
    font-size: 0.78rem;
    line-height: 1.25;
    color: hsl(var(--foreground));
}

.hp-book-card > span:last-child {
    font-size: 0.68rem;
    line-height: 1.3;
    color: hsl(var(--muted-foreground));
}

.hp-field-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.hp-field-tags span {
    padding: 0.25rem 0.55rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    background: hsl(var(--background));
}

.hp-companies p {
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .hp-hero-visuals {
        opacity: 0.24;
    }

    .hp-bento {
        grid-template-columns: 1fr;
    }
    .hp-bento-hero {
        grid-column: auto;
        grid-row: auto;
        min-height: 200px;
    }
    .hp-pillars {
        grid-template-columns: repeat(2, 1fr);
    }
    .hp-split {
        grid-template-columns: 1fr;
    }
    .hp-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .hp-sidebar > * {
        flex: 1 1 250px;
    }

    .hp-video-card {
        grid-template-columns: 116px minmax(0, 1fr);
    }

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

@media (max-width: 600px) {
    .hp-hero::after {
        background:
            linear-gradient(90deg,
                hsl(var(--background) / 0.66) 0%,
                hsl(var(--background) / 0.5) 62%,
                hsl(var(--background) / 0.24) 100%);
    }

    .hp-hero-glow {
        background:
            linear-gradient(135deg,
                hsl(var(--primary) / 0.42) 0%,
                hsl(var(--accent-blue) / 0.34) 54%,
                hsl(var(--primary) / 0.18) 100%);
    }

    .hp-hero-visuals img {
        width: 16rem;
        filter: blur(1.8px) saturate(105%);
    }

    .hp-hero-visuals img:nth-child(1) {
        right: -4rem;
        top: 50%;
        --y-offset: -50%;
    }

    .hp-hero-visuals img:nth-child(2),
    .hp-hero-visuals img:nth-child(3) {
        display: none;
    }

    .hp-hero {
        text-align: left;
    }

    .hp-hero h1 {
        font-size: 1.65rem;
    }
    .hp-subtitle {
        font-size: 0.9rem;
    }
    .hp-hero-stats {
        gap: 0.55rem;
    }
    .hp-hero-stats strong {
        font-size: 1.3rem;
    }
    .hp-pillars {
        grid-template-columns: 1fr;
    }
    .hp-bento {
        grid-template-columns: 1fr;
    }
    .hp-bento-card {
        grid-template-columns: 1fr;
    }
    .hp-bento-card .hp-link {
        grid-column: 1;
        justify-self: start;
        margin-top: 0.2rem;
    }
    .hp-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hp-btn-primary,
    .hp-btn-ghost {
        justify-content: center;
        text-align: center;
    }

    .hp-video-card {
        grid-template-columns: 1fr;
    }
    .hp-book-strip {
        grid-template-columns: 1fr;
    }
    .hp-guide-row {
        grid-template-columns: 64px 1fr;
    }
    .hp-guide-thumb {
        width: 64px;
        height: 48px;
    }
    .hp-guide-row .hp-tag {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        min-width: auto;
    }
    .hp-guide-row strong,
    .hp-meta {
        grid-column: 1 / -1;
    }
    .hp-guide-row strong {
        margin-top: 0.25rem;
    }
}

@media (max-width: 900px) {
    .hp-hero-inner {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .hp-hero-panel {
        max-width: 520px;
    }
}

/* Final homepage type scale */
.hp-hero h1 {
    font-size: clamp(1.46rem, 1.92vw, 1.64rem);
    line-height: 1.14;
}

.hp-subtitle {
    font-size: 0.94rem;
    line-height: 1.58;
}

.hp-section-label .hp-kicker {
    font-size: 0.82rem;
}

.hp-bento-card h3,
.hp-bento-hero h2,
.hp-pillar h3,
.hp-guide-row strong,
.hp-book-card strong,
.hp-video-card strong {
    font-size: clamp(0.92rem, 1vw, 1.02rem);
    line-height: 1.3;
}

.hp-bento-card p,
.hp-bento-hero p,
.hp-pillar p,
.hp-guide-row .hp-meta,
.hp-book-card > span:last-child,
.hp-companies p,
.hp-yt-body span {
    font-size: 0.82rem;
    line-height: 1.52;
}

.hp-tag,
.hp-link,
.hp-start-path a,
.hp-pillar-count {
    font-size: 0.74rem;
}

/* Featured learning routes polish */
.hp-bento-featured {
    gap: 0.78rem;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.hp-bento-featured .hp-bento-card {
    --route-accent: var(--accent-blue);
    min-height: 126px;
    padding: 0.92rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-color: hsl(var(--route-accent) / 0.14);
    background:
        linear-gradient(135deg, hsl(var(--route-accent) / 0.045), transparent 48%),
        linear-gradient(155deg, transparent 50%, hsl(var(--primary) / 0.02)),
        hsl(var(--card));
    box-shadow: 0 10px 26px hsl(var(--foreground) / 0.035);
}

.hp-bento-featured .hp-bento-card:nth-child(1) { --route-accent: var(--accent-purple); }
.hp-bento-featured .hp-bento-card:nth-child(2) { --route-accent: var(--accent-green); }
.hp-bento-featured .hp-bento-card:nth-child(3) { --route-accent: var(--accent-blue); }
.hp-bento-featured .hp-bento-card:nth-child(4) { --route-accent: var(--primary); }

.hp-bento-featured .hp-bento-card:hover {
    border-color: hsl(var(--route-accent) / 0.36);
    background:
        linear-gradient(135deg, hsl(var(--route-accent) / 0.065), transparent 48%),
        linear-gradient(155deg, transparent 50%, hsl(var(--primary) / 0.026)),
        hsl(var(--card));
}

.hp-bento-featured .hp-tag-row,
.hp-bento-featured .hp-bento-card h3 {
    width: 100%;
}

.hp-bento-featured .hp-bento-card p {
    max-width: 58ch;
    margin-top: 0.35rem;
    color: hsl(var(--muted-foreground));
}

.hp-bento-featured .hp-link {
    margin-top: auto;
    align-self: flex-end;
    font-size: 0.8rem;
}

.hp-pillars,
.hp-book-strip {
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.hp-pillar,
.hp-book-card {
    height: 100%;
}
