/**
 * MP Vision - Page d'accueil, direction « systèmes en production »
 * Portée : body.page-home uniquement.
 * Palette : couleurs du logo, violet → bleu. Typo : Geist, Instrument Serif (italique), Geist Mono.
 */

.page-home {
    background: var(--h-bg);
    color: var(--h-text);
}

.page-home .home {
    position: relative;
    z-index: 2;
}

.page-home .home section {
    padding: 0;
}

.h-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Éléments communs ---------- */
.h-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5);
    animation: h-pulse 2.4s infinite;
}

@keyframes h-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.h-eyebrow,
.h-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--h-mono);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: var(--h-muted);
    margin: 0 0 1.25rem;
}



.h-title {
    font-family: var(--h-sans);
    font-weight: 600;
    font-size: clamp(2rem, 3vw, 2.9rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--h-text);
    margin: 0 0 1.75rem;
    text-wrap: balance;
}

.h-title em {
    font-size: 1.08em;
    letter-spacing: -0.02em;
}

.h-lead {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.6;
    color: var(--h-muted);
    max-width: 36rem;
    margin: 0 0 2.25rem;
    text-wrap: pretty;
}

.h-h2 {
    font-family: var(--h-sans);
    font-weight: 600;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--h-text);
    margin: 0 0 1rem;
    text-wrap: balance;
}

.h-sub {
    color: var(--h-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 34rem;
    margin: 0;
}

.h-sub a,
.h-proofs a {
    color: var(--h-text);
    text-decoration: underline;
    text-decoration-color: var(--h-accent);
    text-underline-offset: 4px;
}

.h-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.h-actions--center {
    justify-content: center;
}

.h-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 999px;
    font-family: var(--h-sans);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: transform 0.35s var(--h-ease), background 0.35s var(--h-ease), box-shadow 0.35s var(--h-ease);
}

.h-btn--primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 10px 40px -12px var(--h-accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.h-btn--primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 50px -12px var(--h-accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.h-btn--primary:active {
    transform: translateY(0) scale(0.98);
}

.h-btn__arrow {
    display: inline-grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    transition: transform 0.35s var(--h-ease);
}

.h-btn:hover .h-btn__arrow {
    transform: translateX(3px);
}

.h-link {
    color: var(--h-text);
    font-weight: 500;
    text-decoration: none;
    background-image: var(--h-gradient);
    background-size: 0% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    padding-bottom: 2px;
    transition: background-size 0.4s var(--h-ease), color 0.3s;
}

.h-link:hover {
    color: var(--h-text);
    background-size: 100% 1px;
}

/* ---------- Hero ---------- */
.h-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(8.5rem, 16vh, 11rem) 0 4rem !important;
    border-bottom: 1px solid var(--h-line);
}

.h-hero__glow {
    position: absolute;
    width: 70vw;
    height: 70vw;
    max-width: 980px;
    max-height: 980px;
    right: -18vw;
    top: -28vw;
    background: radial-gradient(circle at center, rgba(124, 92, 246, 0.26), rgba(56, 189, 248, 0.08) 42%, transparent 68%);
    filter: blur(10px);
    pointer-events: none;
}

.h-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--h-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--h-line) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%);
    opacity: 0.55;
    pointer-events: none;
}

.h-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

/* Console « en production » */
.h-console {
    position: relative;
    margin: 0;
    border-radius: var(--h-radius);
    background: linear-gradient(180deg, rgba(28, 26, 22, 0.86), rgba(20, 19, 16, 0.9));
    border: 1px solid var(--h-line-strong);
    box-shadow:
        0 40px 80px -30px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
    backdrop-filter: blur(12px);
    overflow: hidden;
    transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
    transition: transform 0.8s var(--h-ease);
}

.h-console:hover {
    transform: perspective(1400px) rotateY(0) rotateX(0);
}

.h-console__bar {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--h-line);
    font-family: var(--h-mono);
    font-size: 0.75rem;
    color: var(--h-muted);
}

.h-console__dots {
    display: inline-flex;
    gap: 6px;
}

.h-console__dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--h-line-strong);
}

.h-console__name {
    flex: 1;
}

.h-console__live {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #22d3ee;
}

.h-console__live .h-dot {
    width: 6px;
    height: 6px;
}

.h-console__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.9rem 1.1rem 1.1rem;
    border-top: 1px solid var(--h-line);
}

.h-console__foot span {
    font-family: var(--h-mono);
    font-size: 0.7rem;
    color: var(--h-muted);
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--h-line-strong);
    border-radius: 6px;
}

/* Schéma du pipeline IA (hero), sans fenêtre : posé sur la grille du hero */
.h-engine {
    position: relative;
    margin: 0;
}

.h-engine::before {
    content: "";
    position: absolute;
    inset: 10% 15%;
    background: radial-gradient(ellipse at center, rgba(124, 92, 246, 0.18), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
    z-index: -1;
}

.hx {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    padding: 1rem 0.75rem 0.5rem;
    font-family: var(--h-mono);
}

.hx-links path {
    fill: none;
    stroke: url(#hx-grad);
    stroke-width: 1.2;
    stroke-opacity: 0.45;
}

.hx-packets circle {
    fill: #c4b5fd;
}

.hx-packets .hx-packet--out {
    fill: #7dd3fc;
}

.hx-nodes rect {
    fill: #15141e;
    stroke: var(--h-line-strong);
    stroke-width: 1;
}

.hx-nodes text {
    fill: var(--h-text);
    font-size: 12.5px;
    letter-spacing: 0.01em;
}

.hx-nodes--module rect {
    stroke: rgba(139, 124, 248, 0.45);
}

.hx-nodes--out rect {
    stroke: rgba(56, 189, 248, 0.4);
}

.hx-port {
    fill: var(--h-bg);
    stroke: var(--h-accent);
    stroke-width: 1.2;
}

.hx-nodes--out .hx-port {
    stroke: var(--h-accent-2);
}

.hx-small {
    fill: var(--h-muted) !important;
    font-size: 10px !important;
}

.hx-caption {
    fill: var(--h-faint);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hx-caption--gate {
    fill: var(--h-text);
    letter-spacing: 0.06em;
    text-transform: none;
    font-size: 10px;
}

.hx-ring {
    fill: none;
    transform-box: view-box;
    transform-origin: 300px 220px;
}

.hx-ring--outer {
    stroke: url(#hx-grad);
    stroke-width: 1.2;
    stroke-dasharray: 70 6 14 10;
    animation: hx-spin 28s linear infinite;
}

.hx-ring--dash {
    stroke: rgba(196, 181, 253, 0.55);
    stroke-width: 1;
    stroke-dasharray: 2 6;
    animation: hx-spin 18s linear infinite reverse;
}

.hx-ring--inner {
    fill: rgba(18, 17, 28, 0.9);
    stroke: rgba(139, 124, 248, 0.7);
    stroke-width: 1.4;
}

.hx-ticks line {
    stroke: rgba(226, 224, 255, 0.35);
    stroke-width: 1;
}

.hx-core__title {
    fill: var(--h-text);
    font-family: var(--h-sans);
    font-weight: 600;
    font-size: 19px;
    letter-spacing: 0.04em;
}

.hx-core__sub {
    fill: var(--h-muted);
    font-size: 9px;
    letter-spacing: 0.08em;
}

.hx-gate rect {
    fill: #15141e;
    stroke: var(--h-accent-2);
    stroke-width: 1.3;
}

.hx-gate circle {
    fill: var(--h-accent-2);
}

.hx-gate .hx-gate__halo {
    fill: none;
    stroke: rgba(56, 189, 248, 0.5);
    transform-box: fill-box;
    transform-origin: center;
    animation: hx-halo 2.8s var(--h-ease) infinite;
}

@keyframes hx-spin {
    to { transform: rotate(360deg); }
}

@keyframes hx-halo {
    0% { opacity: 0.9; transform: rotate(45deg) scale(1); }
    100% { opacity: 0; transform: rotate(45deg) scale(1.9); }
}

/* Chiffres validés */
.h-proof {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: clamp(3.5rem, 8vh, 5.5rem) 0 0;
    border-top: 1px solid var(--h-line);
}

.h-proof > div {
    padding: 1.6rem 1.5rem 0 0;
}

.h-proof > div + div {
    padding-left: 1.5rem;
    border-left: 1px solid var(--h-line);
}

.h-proof dt {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--h-muted);
    margin-bottom: 0.35rem;
}

.h-proof dt strong {
    display: block;
    font-family: var(--h-sans);
    font-weight: 600;
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--h-text);
    font-variant-numeric: tabular-nums;
}

.h-proof dd {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--h-muted);
    max-width: 15rem;
}

/* ---------- Sections ---------- */
.h-section {
    padding: clamp(5rem, 12vh, 8.5rem) 0 clamp(5.5rem, 13vh, 9rem) !important;
}

.h-section--alt {
    background: var(--h-bg-2);
    border-top: 1px solid var(--h-line);
    border-bottom: 1px solid var(--h-line);
}

.h-head {
    margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.h-head--row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

.h-head--row .h-h2 {
    margin: 0;
}

.h-more {
    margin: 2.5rem 0 0;
}

/* Bento des expertises */
.h-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(15rem, auto);
    gap: 1rem;
}

.h-tile {
    --mx: 50%;
    --my: 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    border-radius: var(--h-radius);
    background: var(--h-bg-2);
    border: 1px solid var(--h-line);
    color: var(--h-muted);
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.5s var(--h-ease), border-color 0.4s;
}



.h-tile:hover {
    color: var(--h-muted);
    border-color: rgba(124, 92, 246, 0.35);
    transform: translateY(-3px);
}



.h-tile h3 {
    font-family: var(--h-sans);
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: -0.025em;
    color: var(--h-text);
    margin: 0 0 0.6rem;
}

.h-tile p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.h-tile__more {
    margin-top: auto;
    padding-top: 1.5rem;
    font-family: var(--h-mono);
    font-size: 0.78rem;
    color: var(--h-text);
}

.h-tile:hover .h-tile__more {
    color: var(--primary-light);
}

.h-tile--feature {
    grid-column: span 2;
    grid-row: span 2;
    padding: 2.25rem;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(124, 92, 246, 0.12), transparent 55%),
        var(--h-bg-3);
}

.h-tile--feature h3 {
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    max-width: 22rem;
}

.h-tile--feature p {
    max-width: 30rem;
    font-size: 1.02rem;
}

.h-tile__tag {
    align-self: flex-start;
    font-family: var(--h-mono);
    font-size: 0.72rem;
    color: var(--primary-light);
    padding: 0.3rem 0.65rem;
    border: 1px solid rgba(124, 92, 246, 0.35);
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.h-map {
    width: 100%;
    height: auto;
    margin: 2rem 0 0;
    overflow: visible;
}

.h-map__path {
    stroke: url(#h-map-gradient);
    stroke-width: 1.5;
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    transition: stroke-dashoffset 2.2s var(--h-ease);
}

.is-visible .h-map__path,
.h-map.is-visible .h-map__path {
    stroke-dashoffset: 0;
}

.h-map__nodes circle {
    fill: var(--h-bg);
    stroke: var(--h-accent);
    stroke-width: 1.5;
}

.h-map__labels text {
    font-family: var(--h-mono);
    font-size: 15px;
    fill: var(--h-muted);
}

/* Méthode */
.h-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}

.h-head--sticky {
    position: sticky;
    top: 7rem;
}

.h-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.h-steps::before {
    content: "";
    position: absolute;
    left: 1.55rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 1px;
    background: var(--h-line-strong);
}

.h-steps::after {
    content: "";
    position: absolute;
    left: 1.55rem;
    top: 0.5rem;
    width: 1px;
    height: calc((100% - 1rem) * var(--progress, 0));
    background: linear-gradient(#a78bfa, #38bdf8);
    transition: height 0.2s linear;
}

.h-step {
    position: relative;
    display: grid;
    grid-template-columns: 3.1rem 1fr;
    gap: 1.5rem;
    padding: 0 0 2.6rem;
}

.h-step:last-child {
    padding-bottom: 0;
}

.h-step__num {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 50%;
    background: var(--h-bg-2);
    border: 1px solid var(--h-line-strong);
    font-family: var(--h-mono);
    font-size: 0.85rem;
    color: var(--h-text);
    transition: border-color 0.4s, color 0.4s, box-shadow 0.4s;
}

.h-step.is-visible .h-step__num {
    border-color: var(--h-accent);
    color: var(--primary-light);
    box-shadow: 0 0 0 6px var(--h-accent-soft);
}

.h-step h3 {
    font-family: var(--h-sans);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.025em;
    color: var(--h-text);
    margin: 0.55rem 0 0.4rem;
}

.h-step p {
    margin: 0;
    color: var(--h-muted);
    line-height: 1.6;
    max-width: 32rem;
}

/* Preuves */
.h-proofs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: clamp(2rem, 5vw, 5rem);
}

.h-proofs li {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1.25rem;
    padding: 2rem 0;
    border-top: 1px solid var(--h-line);
}

.h-proofs__n {
    font-family: var(--h-serif);
    font-style: italic;
    font-size: 1.9rem;
    line-height: 1;
    background: var(--h-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.h-proofs h3 {
    font-family: var(--h-sans);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--h-text);
    margin: 0 0 0.5rem;
}

.h-proofs p {
    margin: 0;
    color: var(--h-muted);
    line-height: 1.6;
}

/* Lignes (réalisations, articles) */
.h-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--h-line);
}

.h-row {
    display: grid;
    grid-template-columns: 9rem 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.6rem 0.5rem;
    border-bottom: 1px solid var(--h-line);
    text-decoration: none;
    color: var(--h-text);
    transition: padding 0.45s var(--h-ease), background 0.45s var(--h-ease);
}

.h-row:hover {
    color: var(--h-text);
    padding-left: 1.25rem;
    background: linear-gradient(90deg, var(--h-accent-soft), transparent 60%);
}

.h-row__tag {
    font-family: var(--h-mono);
    font-size: 0.75rem;
    color: var(--h-muted);
}

.h-row__title {
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.h-row__arrow {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    border: 1px solid var(--h-line-strong);
    color: var(--h-text);
    transition: transform 0.45s var(--h-ease), background 0.45s, color 0.45s, border-color 0.45s;
}

.h-row:hover .h-row__arrow {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    transform: rotate(-45deg);
}

/* Bande freelance */
.h-band {
    position: relative;
    padding: clamp(5rem, 12vh, 8rem) 0 !important;
    background:
        radial-gradient(60% 120% at 0% 100%, rgba(124, 92, 246, 0.18), transparent 60%),
        radial-gradient(50% 100% at 100% 0%, rgba(56, 189, 248, 0.1), transparent 60%),
        var(--h-bg);
    border-bottom: 1px solid var(--h-line);
}

.h-band__title {
    font-family: var(--h-sans);
    font-weight: 600;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--h-text);
    margin: 0 0 1.5rem;
    max-width: 52rem;
    text-wrap: balance;
}

.h-band .h-sub {
    max-width: 44rem;
    margin-bottom: 2.25rem;
}

/* Outils */
.h-tools {
    padding: clamp(4rem, 9vh, 6rem) 0 !important;
    border-top: 1px solid var(--h-line);
}

.h-tools__title {
    font-family: var(--h-mono);
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--h-muted);
    margin: 0 0 2rem;
}

.h-marquee {
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.h-marquee__track {
    display: flex;
    flex-shrink: 0;
    gap: 0.75rem;
    margin: 0;
    padding: 0 0.75rem 0 0;
    list-style: none;
    animation: h-marquee 60s linear infinite;
}

.h-marquee:hover .h-marquee__track {
    animation-play-state: paused;
}

.h-marquee__track li {
    white-space: nowrap;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--h-text);
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--h-line);
    border-radius: 999px;
    background: var(--h-bg-2);
}

@keyframes h-marquee {
    to { transform: translateX(-100%); }
}

/* CTA finale */
.h-final {
    position: relative;
    overflow: hidden;
    padding: clamp(6rem, 16vh, 10rem) 0 !important;
    text-align: center;
    border-top: 1px solid var(--h-line);
}

.h-final__glow {
    position: absolute;
    left: 50%;
    bottom: -40%;
    width: 900px;
    height: 600px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(124, 92, 246, 0.26), rgba(56, 189, 248, 0.08) 55%, transparent);
    pointer-events: none;
}

.h-final__inner {
    position: relative;
}

.h-final__title {
    font-family: var(--h-sans);
    font-weight: 600;
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: var(--h-text);
    margin: 0 0 1.5rem;
}

.h-final .h-lead {
    margin-left: auto;
    margin-right: auto;
}

.h-final__note {
    margin: 2rem 0 0;
    font-family: var(--h-mono);
    font-size: 0.78rem;
    color: var(--h-faint);
}

/* Le titre et le texte du hero restent visibles dès le premier rendu (LCP) */
.js-reveal .h-hero__copy [data-reveal] {
    opacity: 1;
    transform: none;
    animation: h-rise 0.9s var(--h-ease) both;
    animation-delay: var(--delay, 0s);
}

@keyframes h-rise {
    from { transform: translateY(14px); }
    to { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .h-hero__inner,
    .h-split {
        grid-template-columns: 1fr;
    }

    .h-console {
        transform: none;
    }

    .h-head--sticky {
        position: static;
    }

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

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

    .h-proof > div:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .h-proof > div {
        padding-bottom: 1.5rem;
    }

    .page-home #mainNav .navbar-collapse {
        background: rgba(13, 12, 10, 0.96);
        border: 1px solid var(--h-line);
        border-radius: var(--h-radius-sm);
        padding: 1rem;
        margin-top: 0.75rem;
    }
}

@media (max-width: 640px) {
    .h-bento,
    .h-proofs {
        grid-template-columns: 1fr;
    }

    .h-tile--feature {
        grid-column: auto;
        grid-row: auto;
    }

    .h-row {
        grid-template-columns: 1fr auto;
        gap: 0.4rem 1rem;
    }

    .h-row__tag {
        grid-column: 1 / -1;
    }

    .h-row__arrow {
        grid-row: 2;
        grid-column: 2;
    }
}

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

    .hx-packets {
        display: none;
    }

    .h-map__path {
        stroke-dashoffset: 0;
    }
}
