.hero-3d__topline span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.hero-3d__topline i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6ee0b8;
    box-shadow: 0 0 14px #6ee0b8;
    animation: hero3dSignal 2s ease-in-out infinite;
}

.hero-3d__label {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(9, 18, 14, 0.66);
    color: rgba(255, 248, 239, 0.82);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    animation: hero3dLabel 5s ease-in-out infinite;
}

.hero-3d__label::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f3a16f;
    box-shadow: 0 0 8px #f3a16f;
}

.hero-3d__label--learn {
    top: 27%;
    left: 7%;
}

.hero-3d__label--play {
    top: 21%;
    right: 7%;
    animation-delay: -1.7s;
}

.hero-3d__label--create {
    right: 8%;
    bottom: 30%;
    animation-delay: -3.2s;
}

.hero-3d__caption {
    left: 1.35rem;
    right: 1.35rem;
    bottom: 1.25rem;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: 0.5rem 0.8rem;
}

.hero-3d--boost .hero-3d__reticle {
    animation: hero3dReticlePulse 2.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-3d--boost .hero-3d__pulse-icon {
    animation: hero3dButtonPulse 0.72s ease-out 3;
}

.hero-3d__caption .hero-cinematic__tag {
    grid-column: 1 / -1;
    width: fit-content;
}

.hero-3d__caption strong {
    max-width: 11ch;
    color: #fff;
    font-family: 'Fraunces', serif;
    font-size: clamp(1.55rem, 3vw, 2.4rem);
    line-height: 1;
}

.hero-3d__caption a {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-3d__caption a i {
    transition: transform 0.25s ease;
}

.hero-3d__caption a:hover i {
    transform: translateX(4px);
}

.hero-3d__quicklinks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.hero-3d__quicklinks a,
.hero-3d__quicklinks button {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 52px;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 250, 242, 0.11), rgba(255, 250, 242, 0.045));
    color: #fff;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    backdrop-filter: blur(16px);
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.hero-3d__quicklinks a::after,
.hero-3d__quicklinks button::after {
    content: '↗';
    margin-left: auto;
    color: rgba(255, 255, 255, 0.36);
    font-size: 0.8rem;
    transition: transform 0.25s ease, color 0.25s ease;
}

.hero-3d__quicklinks a:hover::after,
.hero-3d__quicklinks button:hover::after {
    color: #f3a16f;
    transform: translate(2px, -2px);
}

.hero-3d__quicklinks a:hover,
.hero-3d__quicklinks button:hover {
    transform: translateY(-3px);
    border-color: rgba(244, 161, 111, 0.48);
    background: rgba(255, 250, 242, 0.14);
}

.hero-3d__quicklinks span {
    color: #f3a16f;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
}

@keyframes hero3dCore {
    0%, 100% { transform: rotate(18deg) translateY(0) scale(1); }
    50% { transform: rotate(38deg) translateY(-10px) scale(1.04); }
}

@keyframes hero3dRing {
    to { rotate: 360deg; }
}

@keyframes hero3dSignal {
    50% { opacity: 0.42; transform: scale(0.72); }
}

@keyframes hero3dLabel {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes hero3dReticle {
    to { transform: rotate(360deg); }
}

@keyframes hero3dReticlePulse {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    42% { opacity: 0.1; transform: translate(-50%, -50%) scale(1.85); }
    43% { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes hero3dButtonPulse {
    60% { box-shadow: 0 0 0 12px rgba(243, 161, 111, 0); border-color: #ffd3b5; }
}

.hero-cinematic__video {
    filter: saturate(0.82) contrast(1.06) brightness(0.46) blur(1.5px);
    transform: scale(1.065);
}

.hero-cinematic__veil {
    background:
        radial-gradient(circle at 72% 42%, rgba(236, 124, 68, 0.1), transparent 0 24%),
        radial-gradient(circle at 16% 24%, rgba(var(--theme-spark-alt-rgb), 0.2), transparent 26%),
        linear-gradient(105deg, rgba(7, 13, 10, 0.88) 0%, rgba(7, 13, 10, 0.66) 45%, rgba(5, 10, 8, 0.86) 100%);
}

@media (max-width: 1180px) {
    .hero-cinematic__stack--3d {
        min-height: 650px;
    }
}

@media (max-width: 767px) {
    .hero-cinematic__stack--3d {
        order: -1;
        min-height: 430px;
        grid-template-rows: minmax(0, 1fr);
        margin-bottom: 0.5rem;
    }

    .hero-3d {
        border-radius: 26px;
    }

    .hero-3d__pulse,
    .hero-3d__coordinates,
    .hero-3d__label--play,
    .hero-3d__label--create {
        display: none;
    }

    .hero-3d__label--learn {
        top: 25%;
        left: 5%;
    }

    .hero-3d__label--play {
        top: 20%;
        right: 5%;
    }

    .hero-3d__quicklinks {
        display: none;
    }

    .hero-3d__caption {
        grid-template-columns: 1fr;
    }

    .hero-3d__caption a {
        justify-self: start;
    }
}

/* Hub des studios métier : uniquement des outils réellement disponibles. */
.expert-studios {
    position: relative;
}

.expert-studios__heading {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: end;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.expert-studios__heading h2 {
    max-width: 760px;
    margin: .7rem 0 0;
    color: #07182d;
    font: 700 clamp(2.1rem, 4.6vw, 4.5rem)/.98 "Fraunces", serif;
    letter-spacing: -.045em;
}

.expert-studios__heading > p {
    margin: 0;
    color: #516176;
    font-size: 1rem;
    line-height: 1.8;
}

.expert-studios__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.expert-studio-card {
    grid-column: span 2;
    min-height: 390px;
    padding: clamp(1.4rem, 2.6vw, 2rem);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    color: #eaf4ff;
    text-decoration: none;
    border: 1px solid rgba(133, 188, 255, .2);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0, rgba(68, 193, 255, .2), transparent 42%),
        linear-gradient(145deg, #07182e, #0b2842);
    box-shadow: 0 24px 60px rgba(5, 22, 42, .14);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.expert-studio-card--wide {
    grid-column: span 3;
}

.expert-studio-card::after {
    content: "";
    width: 180px;
    height: 180px;
    position: absolute;
    right: -90px;
    bottom: -90px;
    border-radius: 50%;
    border: 1px solid rgba(118, 214, 255, .24);
    box-shadow: 0 0 0 34px rgba(118, 214, 255, .035), 0 0 0 68px rgba(118, 214, 255, .025);
}

.expert-studio-card:hover,
.expert-studio-card:focus-visible {
    color: #fff;
    transform: translateY(-6px);
    border-color: rgba(117, 215, 255, .65);
    box-shadow: 0 30px 75px rgba(5, 22, 42, .22);
}

.expert-studio-card:focus-visible {
    outline: 3px solid #6ee7ff;
    outline-offset: 4px;
}

.expert-studio-card__status {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .38rem .7rem;
    color: #a8f5d7;
    border: 1px solid rgba(93, 232, 174, .28);
    border-radius: 999px;
    background: rgba(38, 175, 124, .09);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.expert-studio-card__status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5de8ae;
    box-shadow: 0 0 0 5px rgba(93, 232, 174, .12);
}

.expert-studio-card__icon {
    width: 54px;
    height: 54px;
    margin: 1.6rem 0 1.2rem;
    display: grid;
    place-items: center;
    color: #8edcff;
    border: 1px solid rgba(141, 220, 255, .2);
    border-radius: 16px;
    background: rgba(103, 202, 255, .08);
    font-size: 1.35rem;
}

.expert-studio-card__domain {
    margin-bottom: .45rem;
    color: #8edcff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.expert-studio-card > strong {
    color: #fff;
    font: 700 clamp(1.45rem, 2.3vw, 2rem)/1.08 "Fraunces", serif;
}

.expert-studio-card > p {
    max-width: 540px;
    margin: .8rem 0 1.1rem;
    color: #b5c7d9;
    line-height: 1.65;
}

.expert-studio-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 1.5rem;
}

.expert-studio-card__features b {
    padding: .34rem .58rem;
    color: #ccecff;
    border-radius: 7px;
    background: rgba(132, 209, 255, .09);
    font-size: .7rem;
    font-weight: 700;
}

.expert-studio-card__cta {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin-top: auto;
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.expert-studio-card__cta i {
    transition: transform .2s ease;
}

.expert-studio-card:hover .expert-studio-card__cta i {
    transform: translateX(5px);
}

.expert-studios__note {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 1rem 0 0;
    padding: 1rem 1.2rem;
    color: #355069;
    border: 1px solid #dce8f1;
    border-radius: 14px;
    background: #f6fafc;
    font-size: .86rem;
    line-height: 1.55;
}

.expert-studios__note i {
    color: #138b69;
}

@media (max-width: 980px) {
    .expert-studios__heading {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .expert-studio-card,
    .expert-studio-card--wide {
        grid-column: span 3;
    }
}

@media (max-width: 640px) {
    .expert-studios__grid {
        grid-template-columns: 1fr;
    }

    .expert-studio-card,
    .expert-studio-card--wide {
        grid-column: 1;
        min-height: 360px;
    }

    .expert-studios__note {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-cinematic__stack--3d {
        min-height: 390px;
    }

    .hero-3d__topline {
        top: 1rem;
        left: 1rem;
        right: 1rem;
    }

    .hero-3d__caption {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .hero-3d__caption strong {
        font-size: 1.45rem;
    }

    .hero-3d__caption a {
        font-size: 0.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-3d__fallback-core,
    .hero-3d__fallback-ring,
    .hero-3d__label,
    .hero-3d__topline i,
    .hero-3d__reticle span {
        animation: none !important;
    }
}

/* Navigation 2026: clearer hierarchy and a compact tools directory. */
.navbar {
    width: min(calc(100% - 36px), 1380px);
    min-height: 76px;
    padding: 0.7rem 0.8rem;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.7fr);
    border-radius: 22px;
    background:
        linear-gradient(120deg, rgba(18, 27, 23, 0.9), rgba(8, 16, 13, 0.82));
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 18px 50px rgba(5, 10, 8, 0.22), inset 0 1px rgba(255, 255, 255, 0.08);
}

.navbar-brand {
    grid-column: 1;
    justify-self: start;
    padding: 0.25rem 0.4rem;
    border-radius: 15px;
    text-decoration: none;
}

.logo-mark-wrap {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px rgba(255,255,255,.12);
}

.logo .logo-mark {
    width: 42px;
    height: 42px;
}

.logo-name {
    font-size: 0.98rem;
    letter-spacing: -0.02em;
}

.logo-text small {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
}

.nav-rail {
    grid-column: 2;
    width: auto;
    display: flex;
    justify-content: flex-end;
    gap: clamp(0.75rem, 1.5vw, 1.5rem);
}

.nav-links {
    gap: 0.25rem;
}

.nav-actions {
    gap: 0.45rem;
}

.nav-item,
.dropbtn {
    position: relative;
    min-height: 44px;
    padding: 0.62rem 0.85rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.84rem;
    transition: color 180ms ease, background 180ms ease;
}

.nav-item:hover,
.dropbtn:hover,
.nav-item.is-active,
.dropbtn.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.nav-item.is-active::after,
.dropbtn.is-active::after {
    content: "";
    position: absolute;
    right: 0.85rem;
    bottom: 0.32rem;
    left: 0.85rem;
    height: 2px;
    border-radius: 999px;
    background: #f0ba87;
}

.btn.nav-cta,
.btn.nav-ghost {
    min-height: 44px;
    padding: 0.7rem 1rem;
    border-radius: 13px;
    font-size: 0.8rem;
}

.btn.nav-cta {
    background: #f7eee3;
    color: #17211d;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.nav-tools-menu {
    left: 50%;
    width: min(680px, calc(100vw - 48px));
    min-width: 680px;
    max-height: min(70vh, 570px);
    padding: 0.65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
    overflow-y: auto;
    transform: translateX(-50%);
    border-radius: 22px;
    background: rgba(13, 22, 18, 0.97);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.dropdown:hover .nav-tools-menu,
.dropdown.is-open .nav-tools-menu {
    display: grid;
}

.nav-tools-menu a {
    position: relative;
    min-height: 48px;
    padding: 0.8rem 0.9rem 0.8rem 2.65rem;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.84rem;
}

.nav-tools-menu a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0.85rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8de5d6;
    box-shadow: 0 0 0 5px rgba(141, 229, 214, 0.09);
    transform: translateY(-50%);
}

.nav-tools-menu a:first-child {
    grid-column: 1 / -1;
    min-height: 56px;
    padding-left: 3rem;
    background: linear-gradient(100deg, rgba(141, 229, 214, 0.14), rgba(240, 186, 135, 0.08));
    border-color: rgba(141, 229, 214, 0.16);
    font-weight: 800;
}

.nav-tools-menu a:first-child::before {
    width: 12px;
    height: 12px;
    background: #f0ba87;
    box-shadow: 0 0 0 6px rgba(240, 186, 135, 0.1);
}

.nav-tools-menu a:hover,
.nav-tools-menu a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Tools page: stronger editorial rhythm and more useful overview cards. */
.tools-summary-section {
    display: grid;
    gap: clamp(1.4rem, 3vw, 2.4rem);
}

.tools-summary__heading,
.tools-showcase__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 2rem;
    align-items: end;
}

.tools-summary__heading h2 {
    margin: 0.35rem 0 0;
    max-width: 720px;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.tools-summary__heading > p,
.tools-showcase__intro > p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.tools-showcase__intro > .eyebrow {
    grid-column: 1;
    align-self: end;
}

.tools-showcase__intro > .section-title {
    grid-column: 1;
    margin-top: -1.5rem;
}

.tools-showcase__intro > .section-description {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
}

.tools-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.tools-summary__card {
    position: relative;
    min-height: 210px;
    padding: 1.35rem;
    overflow: hidden;
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0, rgba(141, 229, 214, 0.17), transparent 40%),
        rgba(252, 246, 238, 0.9);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.tools-summary__card::after {
    content: counter(tool-card, decimal-leading-zero);
    position: absolute;
    right: 1rem;
    bottom: 0.55rem;
    color: rgba(23, 33, 29, 0.07);
    font: 700 3.6rem/1 "Fraunces", serif;
}

.tools-summary {
    counter-reset: tool-card;
}

.tools-summary__card {
    counter-increment: tool-card;
}

.tools-summary__card:hover {
    z-index: 1;
    transform: translateY(-5px);
    border-color: rgba(23, 33, 29, 0.16);
    box-shadow: 0 22px 48px rgba(26, 39, 31, 0.13);
}

.tools-summary__card strong {
    max-width: 21ch;
    font-size: 1.12rem;
    line-height: 1.25;
}

.tools-summary__card p {
    position: relative;
    z-index: 1;
    font-size: 0.88rem;
    line-height: 1.6;
}

.tools-showcase {
    gap: 1.5rem;
}

.tools-showcase__intro {
    max-width: none;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
}

.tools-showcase__grid {
    gap: 1.2rem;
}

.tool-card {
    position: relative;
    border-radius: 26px;
    box-shadow: 0 14px 34px rgba(26, 39, 31, 0.09);
}

.tool-card::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 1rem;
    left: 1rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #8de5d6;
    box-shadow: 0 0 0 6px rgba(10, 20, 16, 0.25);
    pointer-events: none;
}

.tool-card img {
    transition: transform 500ms cubic-bezier(.2,.8,.2,1), filter 300ms ease;
}

.tool-card:hover img {
    transform: scale(1.025);
    filter: saturate(1.05);
}

.tool-card__content {
    padding: 1.35rem;
}

.tool-card .card-link {
    align-self: flex-start;
    padding: 0.68rem 0.9rem;
    border-radius: 12px;
    background: rgba(23, 33, 29, 0.07);
    color: var(--ink);
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.tool-card .card-link:hover {
    color: #fff;
    background: var(--accent-strong);
    transform: translateX(3px);
}

.pop-culture-notice {
    position: fixed;
    z-index: 10050;
    left: 50%;
    bottom: max(1.5rem, env(safe-area-inset-bottom));
    width: min(calc(100% - 2rem), 520px);
    padding: 1rem 1.2rem;
    border: 1px solid rgba(141, 229, 214, .34);
    border-radius: 18px;
    color: #f8fff9;
    background: rgba(8, 20, 16, .94);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
    text-align: center;
    font-weight: 800;
    transform: translateX(-50%);
    animation: pop-culture-arrival 420ms cubic-bezier(.2, .8, .2, 1) both;
}

.pop-culture-overdrive::after {
    position: fixed;
    z-index: 10040;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: .12;
    background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(141, 229, 214, .35) 4px);
    animation: pop-culture-scan 900ms steps(2) infinite;
}

@keyframes pop-culture-arrival {
    from { opacity: 0; transform: translate(-50%, 18px) scale(.96); }
    to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes pop-culture-scan {
    50% { opacity: .06; }
}

@media (prefers-reduced-motion: reduce) {
    .pop-culture-notice,
    .pop-culture-overdrive::after { animation: none; }
}

@media (max-width: 1120px) {
    .navbar {
        grid-template-columns: minmax(190px, 0.65fr) minmax(0, 1.7fr);
    }

    .logo-text small {
        display: none;
    }

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

@media (max-width: 920px) {
    .navbar {
        display: flex;
        min-height: 70px;
        padding: 0.65rem;
    }

    .navbar-brand {
        margin-right: auto;
    }

    .hamburger {
        display: inline-flex;
        flex: 0 0 46px;
        margin-left: auto;
        border-color: rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.1);
    }

    .hamburger span {
        width: 100%;
        transition: transform 180ms ease, opacity 180ms ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .logo-text small {
        display: block;
    }

    .nav-rail {
        display: none;
        width: 100%;
        max-height: calc(100svh - 110px);
        margin-top: 0.5rem;
        padding: 0.6rem;
        overflow-y: auto;
        background: rgba(8, 15, 12, 0.94);
    }

    .nav-rail.is-open {
        display: flex;
    }

    .nav-tools-menu {
        position: static;
        width: 100%;
        min-width: 0;
        max-height: none;
        margin-top: 0.35rem;
        transform: none;
        grid-template-columns: 1fr;
        background: rgba(255, 255, 255, 0.04);
        box-shadow: none;
    }

    .nav-tools-menu a:first-child {
        grid-column: auto;
    }

    .nav-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .tools-summary__heading,
    .tools-showcase__intro {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        align-items: start;
    }

    .tools-showcase__intro > .eyebrow,
    .tools-showcase__intro > .section-title,
    .tools-showcase__intro > .section-description {
        grid-column: 1;
        grid-row: auto;
        margin-top: 0;
    }
}

@media (max-width: 680px) {
    .navbar {
        width: calc(100% - 20px);
        border-radius: 18px;
    }

    .logo-mark-wrap {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .logo .logo-mark {
        width: 37px;
        height: 37px;
    }

    .logo-text small {
        display: none;
    }

    .tools-summary {
        grid-template-columns: 1fr;
    }

    .tools-summary__card {
        min-height: 170px;
    }

    .tool-card img,
    .tool-card--feature img {
        height: 230px;
    }
}

/* Unified navigation inspired by the bold glass capsule used on gaming portfolios. */
#navbar-container {
    padding-top: 24px;
}

.navbar {
    width: min(calc(100% - 64px), 1460px);
    min-height: 84px;
    padding: 0.65rem 0.75rem 0.65rem 1.25rem;
    grid-template-columns: minmax(230px, auto) minmax(0, 1fr);
    border: 1.5px solid rgba(255, 255, 255, 0.34);
    border-radius: 27px;
    background: linear-gradient(110deg, rgba(19, 29, 23, 0.94), rgba(10, 17, 13, 0.88));
    box-shadow: 0 18px 54px rgba(5, 10, 7, 0.3), inset 0 1px rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(24px) saturate(1.12);
    -webkit-backdrop-filter: blur(24px) saturate(1.12);
}

.navbar-brand {
    grid-column: 1;
    justify-self: start;
    padding: 0.25rem 1.55rem 0.25rem 0;
}

.navbar-brand::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.42);
    transform: translateY(-50%);
}

.logo-mark-wrap {
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

.logo-name {
    font-size: 1rem;
    letter-spacing: -0.025em;
}

.nav-rail {
    grid-column: 2;
    width: auto;
    justify-content: flex-end;
    gap: clamp(0.7rem, 1.4vw, 1.4rem);
}

.nav-links {
    gap: 0.2rem;
}

.nav-item,
.dropbtn {
    min-height: 46px;
    padding: 0.68rem 0.95rem;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-item:hover,
.dropbtn:hover,
.nav-item.is-active,
.dropbtn.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-item.is-active::after,
.dropbtn.is-active::after {
    display: none;
}

.nav-actions {
    gap: 0.45rem;
}

.btn.nav-cta,
.btn.nav-ghost {
    min-height: 54px;
    padding: 0.78rem 1.1rem;
    border-radius: 14px;
    font-size: 0.76rem;
    letter-spacing: 0.025em;
}

.btn.nav-ghost {
    color: rgba(255, 255, 255, 0.78);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.16);
}

.btn.nav-cta {
    min-width: 190px;
    justify-content: space-between;
    gap: 1.1rem;
    padding-left: 1.35rem;
    color: #fff;
    background: linear-gradient(135deg, var(--warm), var(--warm-deep));
    box-shadow: 0 12px 28px rgba(155, 78, 34, 0.3);
}

.btn.nav-cta i {
    display: grid;
    width: 32px;
    height: 28px;
    place-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.55);
    transition: transform 180ms ease;
}

.btn.nav-cta:hover {
    color: #fff;
    background: linear-gradient(135deg, #d77a40, #aa5629);
    box-shadow: 0 15px 34px rgba(155, 78, 34, 0.4);
}

.btn.nav-cta:hover i {
    transform: translateX(3px);
}

.dropdown-content {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(14, 23, 18, 0.98);
    box-shadow: 0 24px 60px rgba(4, 10, 6, 0.38);
}

.dropdown-content a {
    font-size: 0.8rem;
}

.dropdown-content a:hover,
.dropdown-content a.is-active {
    background: rgba(255, 255, 255, 0.1);
}

.nav-tools-menu {
    background: rgba(14, 23, 18, 0.98);
}

.nav-tools-menu a::before {
    background: var(--warm);
    box-shadow: 0 0 0 5px rgba(197, 109, 54, 0.12);
}

.nav-tools-menu a:first-child {
    background: linear-gradient(100deg, rgba(197, 109, 54, 0.18), rgba(255, 255, 255, 0.04));
    border-color: rgba(197, 109, 54, 0.26);
}

.nav-tools-menu a:first-child::before {
    background: #e49a67;
    box-shadow: 0 0 0 6px rgba(228, 154, 103, 0.12);
}

@media (max-width: 1120px) {
    .navbar {
        grid-template-columns: minmax(190px, auto) minmax(0, 1fr);
    }

    .btn.nav-cta {
        min-width: 164px;
    }

    .btn.nav-ghost {
        display: none;
    }
}

@media (max-width: 920px) {
    #navbar-container {
        padding-top: 14px;
    }

    .navbar {
        display: flex;
        width: calc(100% - 28px);
        min-height: 70px;
        padding: 0.65rem 0.75rem;
        border-radius: 22px;
    }

    .navbar-brand {
        margin-right: auto;
        padding-right: 0.5rem;
    }

    .navbar-brand::after {
        display: none;
    }

    .nav-rail {
        display: none;
        width: 100%;
        max-height: calc(100svh - 105px);
        background: rgba(14, 23, 18, 0.98);
    }

    .nav-rail.is-open {
        display: flex;
    }

    .nav-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .nav-actions .btn.nav-ghost {
        display: inline-flex;
    }

    .nav-actions .btn.nav-cta {
        min-width: 0;
    }

    .nav-tools-menu {
        background: rgba(255, 255, 255, 0.04);
    }
}

@media (max-width: 520px) {
    .navbar {
        width: calc(100% - 20px);
        border-radius: 18px;
    }

    .nav-actions {
        grid-template-columns: 1fr;
    }

    .btn.nav-cta {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .contact-overlay {
        padding:
            max(0.5rem, env(safe-area-inset-top))
            max(0.5rem, env(safe-area-inset-right))
            max(0.5rem, env(safe-area-inset-bottom))
            max(0.5rem, env(safe-area-inset-left));
    }

    .contact-modal,
    .contact-modal.contact-modal--apply {
        width: 100%;
        min-height: 0;
        margin: 0 auto;
        padding: 1.1rem;
        border-radius: 22px;
    }

    .contact-modal__grid,
    .contact-metrics,
    .contact-form__row,
    .contact-cta-grid {
        grid-template-columns: minmax(0, 1fr);
    }

}
