/* ============================================================
   KMT Services Privé — V2 « attraction par besoin » (RTL)
   ============================================================ */
:root {
    --navy-900: #0b1730;
    --navy-800: #143059;
    --navy-600: #2d385d;
    --gold: #f7c051;
    --gold-700: #a17120;
    --paper: #f6f7fb;
    --card: #ffffff;
    --ink: #101a30;
    --muted: #5b6478;
    --line: #e6e9f2;
    --wa: #25d366;
    --radius: 20px;
    --container: 1180px;
    --shadow-sm: 0 6px 20px -10px rgba(11, 23, 48, 0.25);
    --shadow-lg: 0 34px 70px -34px rgba(11, 23, 48, 0.55);
    --font-body: 'Tajawal', system-ui, sans-serif;
    --font-head: 'Cairo', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.8; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.22; margin: 0; font-weight: 800; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(18px, 5vw, 40px); }

/* Progress */
.scroll-progress { position: fixed; inset-block-start: 0; inset-inline-start: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-700)); z-index: 200; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 1rem; padding: 0.72em 1.4em; border: 0; border-radius: 999px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s; white-space: nowrap; }
.btn--gold { background: linear-gradient(180deg, var(--gold), #eab038); color: var(--navy-900); box-shadow: 0 16px 34px -14px rgba(161, 113, 32, 0.8); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -16px rgba(161, 113, 32, 0.9); }
.btn--sm { padding: 0.55em 1.05em; font-size: 0.9rem; }
.btn--lg { padding: 0.9em 1.8em; font-size: 1.1rem; }

/* Eyebrow + heads */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em; color: var(--gold-700); text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--gold-700), var(--gold)); }
.eyebrow--light { color: var(--gold); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tint { background: linear-gradient(180deg, #eef1f8, var(--paper)); }
.section--dark { background: radial-gradient(120% 100% at 15% 0%, var(--navy-600), var(--navy-800) 55%, var(--navy-900)); color: #fff; }
.section__head { max-width: 660px; margin-inline: auto; text-align: center; margin-bottom: clamp(40px, 6vw, 64px); padding-inline: 20px; }
.section__title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900; color: var(--navy-900); }
.section__title--light { color: #fff; }
.section__lead { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }
.section__lead--light { color: rgba(255, 255, 255, 0.75); }

/* Glass */
.glass { background: rgba(255, 255, 255, 0.07); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 26px; box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.6); }

/* Nav */
.nav { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100; padding-block: 18px; transition: padding-block 0.35s, background-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s; }
.nav.scrolled { padding-block: 10px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -18px rgba(11, 23, 48, 0.35); }
.nav__inner { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); }
.brand__text { font-family: var(--font-head); font-weight: 900; font-size: 1.2rem; line-height: 1; color: #fff; transition: color 0.3s; }
.brand__text small { display: block; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.nav.scrolled .brand__text { color: var(--navy-900); }
.nav__links { margin-inline-start: auto; display: flex; align-items: center; gap: 24px; }
.nav__links > a:not(.btn) { font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; color: rgba(255, 255, 255, 0.9); position: relative; padding-block: 6px; }
.nav__links > a:not(.btn)::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-700)); transition: width 0.28s; }
.nav__links > a:not(.btn):hover::after { width: 100%; }
@media (min-width: 821px) { .nav.scrolled .nav__links > a:not(.btn) { color: var(--navy-800); } }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.2s, background-color 0.3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0.3); }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav.scrolled .nav__toggle span { background: var(--navy-900); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: #fff; isolation: isolate; padding-block: 90px; }
.hero__bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(125% 120% at 82% 8%, var(--navy-600), var(--navy-800) 45%, var(--navy-900)); }
.hero__fx { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.orb--1 { width: 500px; height: 500px; background: rgba(247, 192, 81, 0.4); inset-block-start: -140px; inset-inline-end: -90px; }
.orb--2 { width: 440px; height: 440px; background: rgba(45, 56, 93, 0.9); inset-block-end: -160px; inset-inline-start: -120px; }
.grid-overlay { position: absolute; inset: 0; opacity: 0.4; background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(100% 100% at 50% 0%, #000, transparent 78%); mask-image: radial-gradient(100% 100% at 50% 0%, #000, transparent 78%); }
.hero__content { position: relative; z-index: 2; width: 100%; }
.hero__title { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 900; margin-top: 18px; letter-spacing: -0.01em; max-width: 16ch; }
.hero__title .word { display: inline-block; }
.hero__sub { margin-top: 20px; font-size: clamp(1.02rem, 1.6vw, 1.24rem); color: rgba(255, 255, 255, 0.82); max-width: 54ch; }
.scroll-cue { position: absolute; inset-block-end: 22px; inset-inline-start: 50%; transform: translateX(50%); width: 24px; height: 40px; border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 14px; z-index: 2; }
html[dir="rtl"] .scroll-cue { transform: translateX(-50%); }
.scroll-cue span { position: absolute; inset-block-start: 8px; inset-inline-start: 50%; transform: translateX(-50%); width: 3px; height: 8px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%, 100% { opacity: 0.3; transform: translate(-50%, 0); } 50% { opacity: 1; transform: translate(-50%, 10px); } }

/* Need selector */
.needs { margin-top: 32px; padding: clamp(20px, 3vw, 30px); max-width: 780px; }
.needs__q { font-family: var(--font-head); font-weight: 800; color: #fff; margin-bottom: 16px; font-size: 1.12rem; }
.needs__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.pill { font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 0.55em 1.1em; cursor: pointer; transition: 0.25s; }
.pill:hover { border-color: var(--gold); color: #fff; }
.pill.is-active { background: linear-gradient(180deg, var(--gold), #eab038); color: var(--navy-900); border-color: transparent; box-shadow: 0 12px 26px -10px rgba(247, 192, 81, 0.7); }
.needs__stage { position: relative; min-height: 210px; }
.need-panel { display: none; }
.need-panel.is-active { display: block; }
.need-panel h3 { color: #fff; font-size: 1.4rem; }
.need-panel > p { color: rgba(255, 255, 255, 0.82); margin-top: 8px; }
.need-panel ul { margin: 16px 0 20px; display: grid; gap: 8px; }
.need-panel li { color: rgba(255, 255, 255, 0.92); padding-inline-start: 26px; position: relative; }
.need-panel li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--gold); font-weight: 900; }

/* Stats */
.stats { position: relative; z-index: 5; margin-block-start: -70px; }
.stats__grid { background: var(--card); border-radius: 26px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.stat { padding: clamp(24px, 4vw, 40px) 18px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; inset-block: 24%; inset-inline-start: 0; width: 1px; background: var(--line); }
.stat__num { font-family: var(--font-head); font-weight: 900; font-size: clamp(2rem, 4vw, 2.9rem); color: var(--navy-800); }
.stat__label { margin-top: 6px; color: var(--muted); font-weight: 500; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; overflow: hidden; transition: box-shadow 0.3s; }
.card::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-700)); transform: scaleX(0); transform-origin: inline-start; transition: transform 0.35s; }
.card:hover { box-shadow: var(--shadow-lg); }
.card:hover::before { transform: scaleX(1); }
.card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(160deg, var(--navy-600), var(--navy-800)); color: var(--gold); margin-bottom: 18px; }
.card__icon svg { width: 27px; height: 27px; }
.card__need { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; color: var(--gold-700); background: rgba(247, 192, 81, 0.16); padding: 3px 12px; border-radius: 999px; margin-bottom: 10px; }
.card__title { font-size: 1.24rem; color: var(--navy-900); }
.card__text { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
.card__link { display: inline-block; margin-top: 16px; font-family: var(--font-head); font-weight: 700; color: var(--gold-700); }
.card__link:hover { color: var(--navy-800); }
.tilt { transform-style: preserve-3d; will-change: transform; }

/* Mini (why) */
.mini { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center; box-shadow: var(--shadow-sm); }
.mini__ic { font-size: 2rem; display: block; margin-bottom: 12px; }
.mini h3 { color: var(--navy-900); font-size: 1.15rem; }
.mini p { color: var(--muted); margin-top: 8px; }

/* Wizard */
.wizard { max-width: 720px; margin-inline: auto; padding: clamp(24px, 4vw, 38px); position: relative; }
.wizard__bar { height: 5px; background: rgba(255, 255, 255, 0.12); border-radius: 99px; overflow: hidden; margin-bottom: 28px; }
.wizard__bar span { display: block; height: 100%; width: 33%; background: linear-gradient(90deg, var(--gold), var(--gold-700)); transition: width 0.4s ease; }
.wizard__step { display: none; }
.wizard__step.is-active { display: block; }
.wizard__q { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.28rem; margin-bottom: 22px; text-align: center; }
.wizard__opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.opt { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: #fff; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 16px; padding: 16px 18px; cursor: pointer; transition: 0.25s; text-align: start; }
.opt:hover { border-color: var(--gold); background: rgba(247, 192, 81, 0.12); transform: translateY(-2px); }
.wizard__back, .wizard__restart { display: block; margin: 20px auto 0; background: none; border: 0; color: rgba(255, 255, 255, 0.6); cursor: pointer; font-family: var(--font-body); font-size: 0.95rem; }
.wizard__back:hover, .wizard__restart:hover { color: var(--gold); }
.wizard__result { text-align: center; }
.wizard__result h3 { color: #fff; font-size: 1.6rem; margin: 12px 0; }
.wizard__result p { color: rgba(255, 255, 255, 0.82); max-width: 46ch; margin: 0 auto 22px; }

/* Steps */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step-line { position: absolute; inset-block-start: 28px; inset-inline: 40px; height: 2px; background: linear-gradient(90deg, rgba(247, 192, 81, 0.6), rgba(247, 192, 81, 0.15)); }
.step { position: relative; text-align: center; }
.step__num { width: 58px; height: 58px; margin-inline: auto; border-radius: 50%; background: var(--navy-900); color: var(--gold); display: grid; place-items: center; font-family: var(--font-head); font-weight: 900; font-size: 1.4rem; position: relative; z-index: 1; box-shadow: 0 12px 24px -12px rgba(11, 23, 48, 0.6); }
.step h3 { margin-top: 18px; color: var(--navy-900); font-size: 1.12rem; }
.step p { margin-top: 8px; color: var(--muted); font-size: 0.96rem; }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-800); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; min-height: 300px; }
.work-card img { width: 100%; height: 210px; object-fit: cover; transition: transform 0.6s; }
.work-card:hover img { transform: scale(1.07); }
.work-card__body { padding: 22px; color: #fff; }
.work-card__body h3 { font-size: 1.24rem; margin-top: 6px; }
.work-card__body p { color: rgba(255, 255, 255, 0.72); margin-top: 8px; font-size: 0.94rem; }
.tag { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--gold); background: rgba(247, 192, 81, 0.14); padding: 4px 12px; border-radius: 999px; }
.work-card--cta { background: linear-gradient(160deg, var(--gold), var(--gold-700)); color: var(--navy-900); align-items: flex-start; justify-content: center; }
.work-card--cta .work-card__body { color: var(--navy-900); }
.work-card--cta h3 { color: var(--navy-900); font-size: 1.5rem; }
.work-card--cta p { color: rgba(16, 26, 48, 0.8); margin-block: 8px 18px; }

/* Quote */
.quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); position: relative; }
.quote::before { content: "\201D"; font-family: Georgia, serif; font-size: 3.6rem; line-height: 1; color: var(--gold); position: absolute; inset-block-start: 8px; inset-inline-end: 20px; opacity: 0.5; }
.quote p { color: var(--ink); font-size: 1.02rem; }
.quote footer { margin-top: 14px; font-family: var(--font-head); font-weight: 700; color: var(--gold-700); }

/* CTA */
.cta-band { background: linear-gradient(120deg, var(--navy-800), var(--navy-600)); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: clamp(48px, 7vw, 80px); flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; }
.cta-band p { margin-top: 10px; color: rgba(255, 255, 255, 0.82); max-width: 46ch; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact__list { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.contact__list li, .contact__list li a { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.contact__ic { flex: none; width: 46px; height: 46px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; font-size: 1.3rem; }
.contact__list small { display: block; color: var(--muted); font-size: 0.8rem; }
.contact__list span { font-family: var(--font-head); font-weight: 700; }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.contact__map iframe { width: 100%; height: 340px; border: 0; display: block; }

/* Footer */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.72); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 36px; padding-block: 56px; }
.brand--light .brand__text { color: #fff; }
.footer__slogan { margin-top: 16px; font-family: var(--font-head); color: var(--gold); font-weight: 700; }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a:hover, .footer__contact a:hover { color: var(--gold); }
.footer__contact { display: flex; flex-direction: column; gap: 12px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-block: 20px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.5); }

/* FAB + toTop */
.fab-wa { position: fixed; inset-block-end: 22px; inset-inline-start: 22px; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.6); z-index: 120; transition: transform 0.25s; }
.fab-wa svg { width: 32px; height: 32px; }
.fab-wa:hover { transform: scale(1.08); }
.fab-wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.to-top { position: fixed; inset-block-end: 22px; inset-inline-end: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--navy-800); color: #fff; font-size: 1.3rem; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(12px); transition: 0.3s; z-index: 120; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .scroll-cue span, .fab-wa::after { animation: none; } }

/* Responsive */
@media (max-width: 980px) {
    .cards, .cards--3 { grid-template-columns: repeat(2, 1fr); }
    .work-grid { grid-template-columns: repeat(2, 1fr); }
    .contact { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .nav__toggle { display: flex; margin-inline-start: auto; }
    /* The panel is a positioned child of the header, which is a stacking
       context; without this the brand and the toggle are painted underneath it
       (that is why the hamburger itself used to be unreachable). */
    .brand, .nav__toggle { position: relative; z-index: 2; }

    /* Full-screen panel revealed along the block axis only. No inline direction
       is involved, so nothing has to be mirrored for RTL. Sized with
       inset-block-start/inset-inline rather than `inset: 0` because
       .nav.scrolled carries backdrop-filter, which makes the header the
       containing block for fixed descendants once the page is scrolled. */
    .nav__links {
        position: fixed; inset-block-start: 0; inset-inline: 0; height: 100dvh; z-index: 1;
        flex-direction: column; align-items: flex-start; justify-content: center;
        gap: 0; margin: 0;
        padding-block: 92px calc(132px + env(safe-area-inset-bottom, 0px));
        padding-inline: clamp(20px, 5vw, 48px);
        background: var(--navy-900);
        overflow-y: auto; overscroll-behavior: contain;
        visibility: hidden;
        clip-path: inset(0 0 100% 0);
        transition: clip-path 0.34s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s linear 0.34s;
    }
    .nav__links.open {
        visibility: visible;
        clip-path: inset(0 0 0 0);
        transition: clip-path 0.52s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s linear 0s;
    }

    .nav__links > a:not(.btn) {
        font-weight: 900;
        font-size: clamp(1.9rem, min(11vw, 8.5vh), 4.2rem);
        line-height: 1.1;
        color: rgba(255, 255, 255, 0.58);
        padding-block: 0.1em;
        opacity: 0; transform: translateY(16px);
        transition: color 0.25s, opacity 0.001s, transform 0.001s;
    }
    .nav__links > a:not(.btn)::after { display: none; }
    .nav__links > a:not(.btn):hover, .nav__links > a:not(.btn):focus-visible { color: #fff; }
    .nav__links.open > a:not(.btn) { opacity: 1; transform: translateY(0); transition: color 0.25s, opacity 0.42s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1); }
    .nav__links.open > a:nth-child(1) { transition-delay: 0s, 0.15s, 0.15s; }
    .nav__links.open > a:nth-child(2) { transition-delay: 0s, 0.19s, 0.19s; }
    .nav__links.open > a:nth-child(3) { transition-delay: 0s, 0.23s, 0.23s; }
    .nav__links.open > a:nth-child(4) { transition-delay: 0s, 0.27s, 0.27s; }

    /* Gold on the glyphs rather than an underline; the gradient runs vertically
       so it reads the same whichever way the text runs. */
    @supports ((-webkit-background-clip: text) or (background-clip: text)) {
        .nav__links > a:not(.btn):hover, .nav__links > a:not(.btn):focus-visible {
            background-image: linear-gradient(to bottom, var(--gold), #e2a232);
            -webkit-background-clip: text; background-clip: text;
            -webkit-text-fill-color: transparent;
        }
    }

    /* The WhatsApp button already lived in the nav; it becomes the panel CTA */
    .nav__links > .btn {
        position: absolute;
        inset-inline-start: clamp(20px, 5vw, 48px);
        inset-block-end: calc(30px + env(safe-area-inset-bottom, 0px));
        font-size: 1rem; padding: 0.8em 1.8em;
        opacity: 0; transition: opacity 0.3s;
    }
    .nav__links.open > .btn { opacity: 1; transition: opacity 0.4s ease 0.3s; }

    /* The header stays above the panel, so its chrome has to read on navy */
    html.menu-open .nav.scrolled { background: transparent; backdrop-filter: none; box-shadow: none; }
    html.menu-open .brand__text, html.menu-open .nav.scrolled .brand__text { color: #fff; }
    html.menu-open .nav__toggle span, html.menu-open .nav.scrolled .nav__toggle span { background: #fff; }
    html.menu-open .fab-wa, html.menu-open .to-top { opacity: 0; pointer-events: none; }
    html.menu-open, html.menu-open body { overflow: hidden; }

    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2)::before, .stat:nth-child(4)::before { display: none; }
    .steps { grid-template-columns: repeat(2, 1fr); gap: 34px; }
    .step-line { display: none; }
    .cta-band__inner { flex-direction: column; text-align: center; align-items: center; }
}
@media (max-width: 620px) {
    body { font-size: 16px; }
    .cards, .cards--3, .work-grid { grid-template-columns: 1fr; }
    .wizard__opts { grid-template-columns: 1fr; }
    .stats { margin-block-start: -40px; }
}


/* The menu reveal is the one orchestrated moment here; it still has to be opt-out */
@media (prefers-reduced-motion: reduce) {
    .nav__links, .nav__links.open { transition: visibility 0s; }
    .nav__links > a:not(.btn), .nav__links.open > a:not(.btn) { opacity: 1; transform: none; transition: color 0.2s; transition-delay: 0s; }
    .nav__links > .btn, .nav__links.open > .btn { opacity: 1; transition: none; }
    .nav__toggle span { transition: none; }
}
