/* ============================================================
   Isekai NextGen — Design System
   ------------------------------------------------------------
   1.  Tokens
   2.  Base & typography
   3.  Layout primitives (container, section, grids)
   4.  Buttons & links
   5.  Navigation
   6.  Hero
   7.  Marquee (tech strip)
   8.  Section headers & eyebrows
   9.  Service cards
   10. Portfolio / work
   11. Stats band
   12. Process
   13. Partners & value blocks
   14. FAQ
   15. Contact & forms
   16. Extensions catalog
   17. Legal prose
   18. CTA band
   19. Footer
   20. Reveal animations
   21. Responsive
   ============================================================ */


/* ============ 1. TOKENS ============ */

:root {
    /* Color */
    --bg: #f6f8fb;
    --bg-card: #ffffff;
    --bg-soft: #edf2f9;
    --ink: #0b1524;
    --ink-2: #41506b;
    --ink-3: #64748f;
    --line: #e3e9f2;
    --line-2: #ccd8e8;

    --brand: #0f63d6;
    --brand-dark: #0b4dae;
    --brand-deep: #093f8f;
    --brand-tint: #e7f0fd;

    --night: #071120;
    --night-2: #0c1c33;
    --night-line: rgba(255, 255, 255, 0.09);
    --night-ink: #eef4fb;
    --night-ink-2: #93a5be;
    --night-accent: #4f97ff;

    --ok: #16a34a;

    /* Type */
    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', monospace;

    /* Shape */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-pill: 999px;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(11, 26, 51, 0.05), 0 4px 12px rgba(11, 26, 51, 0.05);
    --shadow-md: 0 2px 4px rgba(11, 26, 51, 0.05), 0 14px 34px rgba(11, 26, 51, 0.09);
    --shadow-lg: 0 6px 16px rgba(11, 26, 51, 0.07), 0 32px 70px rgba(11, 26, 51, 0.14);
    --shadow-brand: 0 10px 28px rgba(15, 99, 214, 0.32);

    /* Rhythm */
    --container: 1200px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section: clamp(4rem, 9vw, 7.5rem);
    --section-sm: clamp(2.75rem, 6vw, 4.5rem);

    --nav-h: 76px;
    --topbar-h: 40px;

    --z-nav: 100;
    --z-menu: 120;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}


/* ============ 2. BASE & TYPOGRAPHY ============ */

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.022em;
    text-wrap: balance;
}

p {
    color: var(--ink-2);
}

strong {
    color: var(--ink);
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    padding: 0.6rem 1.1rem;
    background: var(--ink);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--r-pill);
    transition: top 200ms var(--ease);
}

.skip-link:focus {
    top: 0.75rem;
}


/* ============ 3. LAYOUT PRIMITIVES ============ */

.container {
    width: min(100% - (2 * var(--gutter)), var(--container));
    margin-inline: auto;
}

.page-main {
    min-height: 40vh;
}

.section {
    padding-block: var(--section);
}

.section-sm {
    padding-block: var(--section-sm);
}

.section-soft {
    background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
    border-block: 1px solid var(--line);
}


/* ============ 4. BUTTONS & LINKS ============ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
    padding: 0.8rem 1.65rem;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: transform 250ms var(--ease), box-shadow 250ms var(--ease),
        background-color 250ms var(--ease), border-color 250ms var(--ease), color 250ms var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn .btn-arrow {
    transition: transform 250ms var(--ease);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
    background: var(--brand-dark);
}

.btn-ghost {
    background: var(--bg-card);
    border-color: var(--line-2);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

.btn-white {
    background: #fff;
    color: var(--night);
}

.btn-white:hover {
    background: #eaf1fb;
}

.btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.btn-outline-light:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
}

.btn-block {
    width: 100%;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--brand-dark);
}

.text-link::after {
    content: '→';
    transition: transform 250ms var(--ease);
}

.text-link:hover::after {
    transform: translateX(4px);
}


/* ============ 5. NAVIGATION ============ */

.site-header {
    position: sticky;
    top: calc(-1 * var(--topbar-h));
    z-index: var(--z-nav);
}

.topbar {
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding-inline: var(--gutter);
    background: var(--night);
    color: var(--night-ink-2);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
}

.topbar strong {
    color: var(--night-accent);
    font-weight: 500;
}

.navbar {
    position: relative;
    height: var(--nav-h);
    background: rgba(246, 248, 251, 0.88);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--line);
}

.nav-shell {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    color: var(--ink);
}

.brand-mark {
    width: 36px;
    height: 36px;
    color: var(--brand);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.08;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.14rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-name em {
    font-style: normal;
    color: var(--brand);
}

.brand-tag {
    font-family: var(--font-mono);
    font-size: 0.53rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    position: relative;
    display: inline-flex;
    padding: 0.5rem 0.85rem;
    font-family: var(--font-display);
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--ink-2);
    border-radius: var(--r-sm);
    transition: color 200ms var(--ease);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 250ms var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--ink);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.nav-cta {
    min-height: 44px;
    padding: 0.55rem 1.25rem;
    font-size: 0.88rem;
}

.menu-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-2);
    background: var(--bg-card);
}

.menu-toggle span {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 250ms var(--ease), opacity 200ms var(--ease);
}

.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }

.menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* ============ 6. HERO ============ */

.hero {
    position: relative;
    padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem);
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(720px 420px at 12% -10%, rgba(15, 99, 214, 0.14), transparent 70%),
        radial-gradient(640px 400px at 92% 18%, rgba(79, 151, 255, 0.1), transparent 72%);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(720px 480px at 50% 0%, rgba(0, 0, 0, 0.5), transparent 78%);
    -webkit-mask-image: radial-gradient(720px 480px at 50% 0%, rgba(0, 0, 0, 0.5), transparent 78%);
}

.hero-inner {
    position: relative;
    max-width: 880px;
    margin-inline: auto;
    text-align: center;
    display: grid;
    justify-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.6rem;
    padding: 0.42rem 0.95rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--line-2);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18); }
    50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.08); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    line-height: 1.0;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    max-width: 16ch;
}

.hero-title .accent {
    background: linear-gradient(100deg, var(--brand) 10%, #4f97ff 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    margin-top: 1.5rem;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.65;
    max-width: 56ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2.2rem;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.4rem 2.75rem;
    margin-top: clamp(2.5rem, 5vw, 3.75rem);
    padding-top: 1.9rem;
    border-top: 1px solid var(--line);
    width: 100%;
}

.proof-item {
    display: grid;
    gap: 0.1rem;
}

.proof-num {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.proof-num small {
    font-size: 0.62em;
    color: var(--brand);
}

.proof-label {
    font-size: 0.82rem;
    color: var(--ink-3);
}

/* Subpage hero variant */

.hero-sub {
    padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
}

.hero-sub .hero-title {
    font-size: clamp(2.2rem, 4.8vw, 3.7rem);
    max-width: 18ch;
}

.hero-sub .hero-lead {
    margin-top: 1.2rem;
}

.proof-item {
    text-align: center;
}


/* ============ 7. MARQUEE (TECH STRIP) ============ */

.marquee-section {
    padding-block: 1.5rem;
    border-block: 1px solid var(--line);
    background: var(--bg-card);
    overflow: hidden;
}

.marquee {
    display: flex;
    gap: 3.5rem;
    width: max-content;
    animation: marquee 36s linear infinite;
}

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

.marquee-group {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    flex-shrink: 0;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ink-3);
    white-space: nowrap;
}

.marquee-item::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--brand);
    opacity: 0.45;
    transform: rotate(45deg);
}

@keyframes marquee {
    to { transform: translateX(calc(-50% - 1.75rem)); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee {
        animation: none;
        flex-wrap: wrap;
        width: auto;
        justify-content: center;
    }

    .marquee-group[aria-hidden="true"] {
        display: none;
    }

    .marquee-group {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.25rem 2rem;
    }
}


/* ============ 8. SECTION HEADERS & EYEBROWS ============ */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand-dark);
}

.eyebrow::before {
    content: '';
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
}

.section-head {
    display: grid;
    gap: 1rem;
    max-width: 760px;
    margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
    justify-items: center;
}

.section-title {
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    letter-spacing: -0.028em;
}

.section-lead {
    font-size: clamp(1rem, 1.3vw, 1.13rem);
    max-width: 62ch;
}

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

.section-foot {
    margin-top: clamp(2rem, 4vw, 3rem);
    text-align: center;
}


/* ============ 9. SERVICE CARDS ============ */

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

.service-card {
    position: relative;
    display: grid;
    gap: 0.9rem;
    align-content: start;
    padding: 1.9rem 1.7rem;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--brand-tint);
    border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
    color: var(--brand-dark);
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-num {
    position: absolute;
    top: 1.5rem;
    right: 1.6rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--line-2);
    letter-spacing: 0.1em;
}

.service-card h3 {
    font-size: 1.22rem;
}

.service-card p {
    font-size: 0.96rem;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pills-center {
    justify-content: center;
}

.pills-center .pill {
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
}

.pill {
    padding: 0.28rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--bg);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink-2);
}

/* Service rows (services page) */

.service-rows {
    display: grid;
    gap: 1rem;
}

.service-row {
    display: grid;
    grid-template-columns: 64px minmax(200px, 0.85fr) minmax(0, 1.15fr);
    gap: 1.5rem;
    align-items: start;
    padding: 1.75rem 1.9rem;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}

.service-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
}

.service-row-num {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--brand);
    padding-top: 0.4rem;
}

.service-row h3 {
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.service-row-body {
    display: grid;
    gap: 0.9rem;
}

.service-row-body p {
    font-size: 0.98rem;
}


/* ============ 10. PORTFOLIO / WORK ============ */

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

.work-card {
    display: grid;
    align-content: start;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms var(--ease);
}

.work-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
}

.browser-frame {
    position: relative;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.9rem;
    background: linear-gradient(180deg, #f2f5fa, #e9eef6);
    border-bottom: 1px solid var(--line);
}

.browser-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--line-2);
}

.browser-dot:nth-child(1) { background: #f87171; }
.browser-dot:nth-child(2) { background: #fbbf24; }
.browser-dot:nth-child(3) { background: #34d399; }

.browser-url {
    flex: 1;
    margin-left: 0.4rem;
    padding: 0.22rem 0.75rem;
    border-radius: var(--r-pill);
    background: #fff;
    border: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--ink-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-body {
    display: grid;
    gap: 0.75rem;
    padding: 1.4rem 1.5rem 1.6rem;
}

.work-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-dark);
}

.work-card h3 {
    font-size: 1.28rem;
}

.work-body p {
    font-size: 0.94rem;
}


/* ============ 11. STATS GRID ============ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 1.5rem;
}

.stat {
    display: grid;
    gap: 0.3rem;
    text-align: center;
}

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1;
    color: #fff;
}

.stat-num small {
    font-size: 0.6em;
    color: var(--night-accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--night-ink-2);
}


/* ============ 13. VALUE BLOCKS ============ */

.split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.value-block {
    display: grid;
    gap: 0.7rem;
    align-content: start;
    padding: 1.9rem 1.8rem;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}

.value-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
}

.value-block h3 {
    font-size: 1.2rem;
}

.value-block p {
    font-size: 0.96rem;
}

/* Numbered principle list (about page) */

.principles-list {
    display: grid;
    gap: 1rem;
    counter-reset: principle;
}

.principle {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}

.principle:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
}

.principle::before {
    counter-increment: principle;
    content: '0' counter(principle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: var(--brand-tint);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--brand-dark);
}

.principle h3 {
    font-size: 1.12rem;
    margin-bottom: 0.3rem;
}

.principle p {
    font-size: 0.95rem;
}


/* ============ 14. FAQ ============ */

.faq-list {
    display: grid;
    gap: 0.75rem;
    max-width: 820px;
    margin-inline: auto;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: border-color 250ms var(--ease);
}

.faq-item[open] {
    border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.4rem;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    list-style: none;
    transition: background-color 200ms var(--ease);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    background: var(--bg);
}

.faq-question::after {
    content: '+';
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--brand-dark);
    transition: transform 250ms var(--ease), background-color 250ms var(--ease);
}

.faq-item[open] .faq-question::after {
    content: '−';
    transform: rotate(180deg);
    background: var(--brand-tint);
}

.faq-answer {
    padding: 0.35rem 1.4rem 1.3rem;
    font-size: 0.96rem;
    color: var(--ink-2);
}


/* ============ 15. CONTACT & FORMS ============ */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.contact-panel {
    display: grid;
    gap: 1.5rem;
}

.contact-lines {
    display: grid;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.contact-line {
    display: grid;
    gap: 0.15rem;
    padding: 1.05rem 1.3rem;
}

.contact-line + .contact-line {
    border-top: 1px solid var(--line);
}

.contact-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.contact-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
}

.contact-value a:hover {
    color: var(--brand-dark);
}

.form-shell {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
}

.form-grid {
    display: grid;
    gap: 1.1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.form-group {
    display: grid;
    gap: 0.4rem;
}

.form-label {
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.78rem 0.95rem;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    background: var(--bg);
    color: var(--ink);
    font-size: 0.96rem;
    transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), background-color 200ms var(--ease);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--ink-3);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 99, 214, 0.12);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-error {
    min-height: 1rem;
    font-size: 0.78rem;
    color: #c0392b;
}

.form-group.error .form-input,
.form-group.error .form-textarea {
    border-color: #dd6b5c;
}

.honeypot-field {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.form-note {
    font-size: 0.82rem;
    color: var(--ink-3);
    text-align: center;
}

.success-message,
.error-message {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--r-sm);
    font-size: 0.92rem;
    font-weight: 500;
}

.success-message {
    border: 1px solid rgba(22, 163, 74, 0.3);
    background: rgba(22, 163, 74, 0.08);
    color: #15803d;
}

.error-message {
    border: 1px solid rgba(192, 57, 43, 0.3);
    background: rgba(192, 57, 43, 0.07);
    color: #b03427;
}


/* ============ 16. EXTENSIONS CATALOG ============ */

.filter-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.25rem;
}

.filter-btn {
    padding: 0.5rem 1.05rem;
    border: 1px solid var(--line-2);
    border-radius: var(--r-pill);
    background: var(--bg-card);
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}

.filter-btn:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

.filter-btn.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.extension-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.extension-row {
    display: grid;
    gap: 0.8rem;
    align-content: start;
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}

.extension-row:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
}

.extension-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.extension-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    object-fit: cover;
    flex-shrink: 0;
}

.extension-name {
    font-size: 1.05rem;
}

.extension-desc {
    font-size: 0.92rem;
}

.extension-purpose {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--ink-3);
}

.extension-links {
    display: flex;
    gap: 1rem;
}

.extension-link {
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--brand-dark);
    border-bottom: 1px solid transparent;
    transition: border-color 200ms var(--ease);
}

.extension-link:hover {
    border-color: var(--brand-dark);
}


/* ============ 17. LEGAL PROSE ============ */

.legal-prose {
    max-width: 720px;
    margin-inline: auto;
    display: grid;
    gap: 1rem;
}

.legal-prose h2 {
    font-size: 1.25rem;
    margin-top: 1rem;
}

.legal-prose ul {
    display: grid;
    gap: 0.45rem;
    padding-left: 1.2rem;
}

.legal-prose li {
    list-style: disc;
    color: var(--ink-2);
}

.legal-updated {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--ink-3);
}


/* ============ 18. CTA BAND ============ */

.cta-band {
    position: relative;
    border-radius: var(--r-lg);
    padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
    text-align: center;
    background:
        radial-gradient(640px 320px at 50% -30%, rgba(79, 151, 255, 0.3), transparent 72%),
        radial-gradient(480px 280px at 12% 130%, rgba(15, 99, 214, 0.25), transparent 70%),
        linear-gradient(150deg, var(--night-2), var(--night));
    border: 1px solid var(--night-line);
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 1.2rem;
    justify-items: center;
    overflow: hidden;
    isolation: isolate;
}

.cta-band::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(560px 320px at 50% 20%, rgba(0, 0, 0, 0.9), transparent 80%);
    -webkit-mask-image: radial-gradient(560px 320px at 50% 20%, rgba(0, 0, 0, 0.9), transparent 80%);
}

.cta-band .eyebrow {
    color: var(--night-accent);
}

.cta-band .eyebrow::before {
    background: var(--night-accent);
}

.cta-band h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    color: #fff;
    max-width: 24ch;
    letter-spacing: -0.028em;
}

.cta-band p {
    color: var(--night-ink-2);
    font-size: clamp(0.98rem, 1.3vw, 1.1rem);
    max-width: 54ch;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
}


/* ============ 19. FOOTER ============ */

.footer {
    margin-top: var(--section-sm);
    background: var(--night);
    color: var(--night-ink);
    border-top: 1px solid var(--night-line);
}

.footer-main {
    padding-block: clamp(2.75rem, 6vw, 4.25rem) clamp(2rem, 4vw, 3rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 2.5rem 2rem;
}

.footer-brand {
    display: grid;
    gap: 1.1rem;
    align-content: start;
    justify-items: start;
}

.footer .brand {
    color: #fff;
}

.footer .brand-mark {
    color: var(--night-accent);
}

.footer .brand-name em {
    color: var(--night-accent);
}

.footer .brand-tag {
    color: var(--night-ink-2);
}

.footer-brand > p {
    color: var(--night-ink-2);
    font-size: 0.93rem;
    max-width: 36ch;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    border: 1px solid var(--night-line);
    color: var(--night-ink-2);
    transition: color 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease);
}

.social-link:hover {
    color: #fff;
    border-color: var(--night-accent);
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-col {
    display: grid;
    gap: 0.85rem;
    align-content: start;
}

.footer-col h3 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--night-ink-2);
}

.footer-links {
    display: grid;
    gap: 0.55rem;
}

.footer-links a {
    font-size: 0.93rem;
    color: var(--night-ink);
    opacity: 0.85;
    transition: opacity 200ms var(--ease), color 200ms var(--ease);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--night-accent);
}

.footer-bottom {
    border-top: 1px solid var(--night-line);
    padding-block: 1.3rem;
}

.footer-bottom-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--night-ink-2);
}

.footer-bottom a {
    color: var(--night-ink);
}

.footer-bottom a:hover {
    color: var(--night-accent);
}


/* ============ 20. REVEAL ANIMATIONS ============ */

/* Hidden state only applies once JS confirms it can reveal (`.js` on <html>) */
.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}

.js .reveal.visible {
    opacity: 1;
    transform: none;
}

/* Stagger children of a revealed group */
.js .reveal-group > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.js .reveal-group.visible > * {
    opacity: 1;
    transform: none;
}

.reveal-group.visible > *:nth-child(2) { transition-delay: 90ms; }
.reveal-group.visible > *:nth-child(3) { transition-delay: 180ms; }
.reveal-group.visible > *:nth-child(4) { transition-delay: 270ms; }
.reveal-group.visible > *:nth-child(5) { transition-delay: 360ms; }
.reveal-group.visible > *:nth-child(6) { transition-delay: 450ms; }
.reveal-group.visible > *:nth-child(7) { transition-delay: 540ms; }
.reveal-group.visible > *:nth-child(8) { transition-delay: 630ms; }
.reveal-group.visible > *:nth-child(9) { transition-delay: 720ms; }

@media (prefers-reduced-motion: reduce) {
    .js .reveal,
    .js .reveal-group > * {
        opacity: 1;
        transform: none;
    }
}


/* ============ 20b. BOLD DISPLAY COMPONENTS ============ */

/* Uppercase display titles (section-level) */
.display {
    text-transform: uppercase;
    letter-spacing: -0.015em;
}

/* Floating hero stickers */
.sticker {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    border: 1.5px solid var(--ink);
    background: #fff;
    box-shadow: 4px 4px 0 rgba(15, 99, 214, 0.28);
    color: var(--brand);
    animation: float 5s ease-in-out infinite;
    pointer-events: none;
}

.sticker svg {
    width: 28px;
    height: 28px;
}

.sticker-1 { top: 4%; left: -9%; transform: rotate(-9deg); }
.sticker-2 { top: 20%; right: -10%; transform: rotate(11deg); animation-delay: 1.2s; }
.sticker-3 { bottom: 34%; left: -13%; transform: rotate(7deg); animation-delay: 2.1s; }

@keyframes float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -9px; }
}

/* Partner wordmark strip */
.logo-strip-section {
    padding-block: clamp(2rem, 4vw, 3rem);
    background: var(--bg-card);
    border-block: 1px solid var(--line);
    text-align: center;
}

.logo-strip-label {
    display: block;
    margin-bottom: 1.4rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.logo-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem 3.5rem;
}

.logo-mark {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink-3);
    opacity: 0.85;
    transition: color 250ms var(--ease), opacity 250ms var(--ease);
}

.logo-mark:hover {
    color: var(--ink);
    opacity: 1;
}

/* Outlined help cards (2x2) */
.help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
    max-width: 980px;
    margin-inline: auto;
}

.help-card {
    display: grid;
    gap: 0.7rem;
    align-content: start;
    justify-items: start;
    padding: 1.9rem 1.8rem;
    border: 1.5px solid var(--ink);
    border-radius: var(--r-md);
    background: #fff;
    box-shadow: 6px 6px 0 rgba(15, 99, 214, 0.22);
    transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}

.help-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 10px 10px 0 rgba(15, 99, 214, 0.3);
}

.help-card .service-icon {
    border: 1.5px solid var(--ink);
    box-shadow: 3px 3px 0 rgba(15, 99, 214, 0.25);
}

.help-card h3 {
    font-size: 1.28rem;
}

.help-card p {
    font-size: 0.96rem;
}

/* Full-width night bands with zigzag edges */
.band {
    position: relative;
    margin-block: 14px;
    padding-block: clamp(3.5rem, 8vw, 6rem);
    background:
        radial-gradient(720px 380px at 80% -20%, rgba(79, 151, 255, 0.2), transparent 70%),
        radial-gradient(520px 300px at 10% 120%, rgba(15, 99, 214, 0.24), transparent 72%),
        var(--night);
    color: var(--night-ink);
    text-align: center;
}

.band::before,
.band::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 14px;
}

.band::before {
    top: -13px;
    background: conic-gradient(from -45deg at 50% 100%, var(--night) 90deg, transparent 0) 50% 100% / 26px 14px repeat-x;
}

.band::after {
    bottom: -13px;
    background: conic-gradient(from 135deg at 50% 0%, var(--night) 90deg, transparent 0) 50% 0 / 26px 14px repeat-x;
}

.band-inner {
    display: grid;
    gap: 1.3rem;
    justify-items: center;
}

.band-title {
    font-size: clamp(2rem, 5vw, 3.7rem);
    line-height: 1.04;
    color: #fff;
    max-width: 22ch;
}

.band p {
    color: var(--night-ink-2);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    max-width: 56ch;
}

.band .eyebrow {
    color: var(--night-accent);
}

.band .eyebrow::before {
    background: var(--night-accent);
}

/* Big results panel */
.results-panel {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, #fff, var(--bg-soft));
    box-shadow: var(--shadow-md);
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.75rem, 4vw, 3rem) 1.5rem;
}

.result {
    text-align: center;
    display: grid;
    gap: 0.35rem;
}

.result-num {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--ink);
}

.result-num small {
    font-size: 0.55em;
    color: var(--brand);
}

.result-label {
    font-size: 0.9rem;
    color: var(--ink-2);
}

/* Tall screenshots that scroll on hover */
.shot-tall {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--bg-soft);
}

.shot-tall img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0%;
    transition: object-position 6s linear;
}

.work-card:hover .shot-tall img,
.gallery-item:hover .shot-tall img,
.gallery-item:focus-within .shot-tall img {
    object-position: 50% 100%;
}

.scroll-hint {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    z-index: 2;
    padding: 0.3rem 0.7rem;
    border-radius: var(--r-pill);
    background: rgba(7, 17, 32, 0.78);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 250ms var(--ease);
    pointer-events: none;
}

.browser-frame {
    position: relative;
}

.work-card:hover .scroll-hint,
.gallery-item:hover .scroll-hint {
    opacity: 1;
}

/* Project gallery (portfolio page) */
.project-block {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.25rem);
}

.project-block + .project-block {
    margin-top: clamp(3.5rem, 7vw, 5.5rem);
    padding-top: clamp(3rem, 6vw, 4.5rem);
    border-top: 1px solid var(--line);
}

.project-head {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) auto;
    gap: 1.5rem 2.5rem;
    align-items: end;
}

.project-head-main {
    display: grid;
    gap: 0.8rem;
    justify-items: start;
}

.project-head h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    letter-spacing: -0.02em;
}

.project-head p {
    font-size: 1rem;
    max-width: 62ch;
}

.work-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}

.gallery-item {
    display: grid;
    gap: 0.55rem;
    align-content: start;
}

.gallery-item .browser-frame {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}

.gallery-item:hover .browser-frame {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
}

.gallery-caption {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-3);
    text-align: center;
}

/* Extensions banner */
.tools-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 3rem);
    border: 1.5px solid var(--ink);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: 8px 8px 0 rgba(15, 99, 214, 0.22);
}

.tools-count {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--brand);
}

.tools-copy {
    display: grid;
    gap: 0.7rem;
    justify-items: start;
}

.tools-copy h2 {
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}

.tools-copy p {
    font-size: 0.96rem;
    max-width: 54ch;
}


/* ============ 21. RESPONSIVE ============ */

@media (prefers-reduced-motion: reduce) {
    .work-card:hover .shot-tall img,
    .gallery-item:hover .shot-tall img,
    .gallery-item:focus-within .shot-tall img {
        object-position: 50% 0%;
    }

    .sticker {
        animation: none;
    }
}

@media (max-width: 1240px) {
    .sticker {
        display: none;
    }
}

@media (max-width: 1024px) {
    .services-grid,
    .work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .tools-banner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .tools-banner > .btn {
        grid-column: 2;
        justify-self: start;
    }

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

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

    .service-row {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .service-row-body {
        grid-column: 2;
    }
}

@media (max-width: 860px) {
    :root {
        --nav-h: 68px;
    }

    .nav-list {
        position: absolute;
        inset-inline: 0;
        top: 100%;
        z-index: var(--z-menu);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        padding: 1rem var(--gutter) 1.4rem;
        background: rgba(246, 248, 251, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
    }

    .nav-list.active {
        display: flex;
    }

    .nav-link {
        padding: 0.85rem 0.9rem;
        font-size: 1rem;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.active {
        background: var(--brand-tint);
        color: var(--brand-dark);
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-cta {
        display: none;
    }

    .brand-tag {
        display: none;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .split-grid {
        grid-template-columns: 1fr;
    }

    .extension-list {
        grid-template-columns: 1fr;
    }

    .section-head-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
}

@media (max-width: 860px) and (min-width: 641px) {
    .help-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .services-grid,
    .work-grid,
    .help-grid,
    .work-gallery {
        grid-template-columns: 1fr;
    }

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

    .result-num {
        font-size: 2.4rem;
    }

    .tools-banner {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .tools-banner > .btn {
        grid-column: 1;
    }

    .project-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .topbar {
        font-size: 0.62rem;
        letter-spacing: 0.08em;
    }

    .stats-grid {
        gap: 1.5rem 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .cta-actions {
        width: 100%;
        flex-direction: column;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-row {
        justify-content: center;
        text-align: center;
    }

    .hero-proof {
        gap: 1.25rem 1.75rem;
    }

    .principle {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .service-row {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .service-row-body {
        grid-column: 1;
    }

    .work-links {
        flex-wrap: wrap;
    }
}
