/* =====================================================================
   NexFrameAI — Design System
   ---------------------------------------------------------------------
   Mobile-first, custom (no CSS framework), single stylesheet.
   Sections:
     01  Reset
     02  Design tokens
     03  Base typography
     04  Layout primitives
     05  Buttons
     06  Badges, chips, pills
     07  Cards
     08  Header & navigation
     09  Hero
     10  Section headers
     11  Services grid
     12  Technology grid
     13  Video section
     14  Portfolio grid
     15  Process timeline
     16  Why-us grid
     17  Pricing
     18  Testimonials
     19  Forms
     20  Contact page
     21  CTA band
     22  Footer
     23  Breadcrumbs & page hero
     24  Prose (legal pages)
     25  Accordion / FAQ
     26  Motion
     27  Utilities & accessibility
   ===================================================================== */

/* =====================================================================
   01  RESET
   ===================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* Offset anchor targets so a fixed header never covers a heading. */
    scroll-padding-top: 96px;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol {
    margin: 0;
}

ul[class], ol[class] {
    padding: 0;
    list-style: none;
}

img, picture, video, svg, canvas {
    display: block;
    max-width: 100%;
}

img { height: auto; }

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button { background: none; border: 0; }

a { color: inherit; }

table { border-collapse: collapse; width: 100%; }

/* =====================================================================
   02  DESIGN TOKENS
   ===================================================================== */
:root {
    /* --- Brand ------------------------------------------------------ */
    --brand-50:  #f0efff;
    --brand-100: #e2e0ff;
    --brand-200: #c7c2ff;
    --brand-300: #a49bfa;
    --brand-400: #8375f2;
    --brand-500: #6354e6;
    --brand-600: #4c3ccc;
    --brand-700: #3c2ea3;

    /* Secondary accent, used sparingly for technical/AI cues */
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;

    /* Tertiary accent, reserved for video/production content */
    --coral-400: #fb7185;
    --coral-500: #f43f5e;

    /* --- Ink (dark surfaces) --------------------------------------- */
    --ink-950: #070910;
    --ink-900: #0b0e16;
    --ink-850: #10141f;
    --ink-800: #161b28;
    --ink-700: #1f2536;
    --ink-600: #2b3346;

    /* --- Neutrals (light surfaces) --------------------------------- */
    --n-0:   #ffffff;
    --n-25:  #fbfcfd;
    --n-50:  #f6f7fa;
    --n-100: #eff1f5;
    --n-200: #e2e5ec;
    --n-300: #cdd2dc;
    --n-400: #a7aebc;
    --n-500: #7d8595;
    --n-600: #5c6373;
    --n-700: #414755;
    --n-800: #2a2f3b;
    --n-900: #171b24;

    /* --- Semantic --------------------------------------------------- */
    --success-50:  #ecfdf3;
    --success-500: #12b76a;
    --success-700: #027a48;
    --danger-50:   #fef3f2;
    --danger-500:  #f04438;
    --danger-700:  #b42318;
    --warning-50:  #fffaeb;
    --warning-500: #f79009;
    --warning-700: #b54708;

    /* --- Applied roles --------------------------------------------- */
    --bg:            var(--n-0);
    --bg-subtle:     var(--n-50);
    --bg-muted:      var(--n-100);
    --surface:       var(--n-0);
    --border:        var(--n-200);
    --border-strong: var(--n-300);
    --text:          var(--n-900);
    --text-muted:    var(--n-600);
    --text-subtle:   var(--n-500);
    --link:          var(--brand-600);

    /* --- Typography ------------------------------------------------- */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
                 Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
                 "Apple Color Emoji", "Segoe UI Emoji";
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
                 "Liberation Mono", monospace;

    /* Fluid type scale — clamp keeps 320px readable and desktop generous. */
    --fs-xs:   0.75rem;
    --fs-sm:   0.8125rem;
    --fs-base: 0.9375rem;
    --fs-md:   1rem;
    --fs-lg:   clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
    --fs-xl:   clamp(1.1875rem, 0.6vw + 1.05rem, 1.375rem);
    --fs-2xl:  clamp(1.375rem, 1vw + 1.15rem, 1.75rem);
    --fs-3xl:  clamp(1.625rem, 1.8vw + 1.2rem, 2.25rem);
    --fs-4xl:  clamp(1.9375rem, 3vw + 1.25rem, 3rem);
    --fs-5xl:  clamp(2.25rem, 4.6vw + 1.15rem, 3.9rem);

    --lh-tight:   1.12;
    --lh-snug:    1.28;
    --lh-normal:  1.55;
    --lh-relaxed: 1.72;

    --tracking-tight:  -0.022em;
    --tracking-tighter: -0.032em;
    --tracking-wide:    0.02em;
    --tracking-caps:    0.09em;

    /* --- Space ------------------------------------------------------ */
    --sp-1:  0.25rem;
    --sp-2:  0.5rem;
    --sp-3:  0.75rem;
    --sp-4:  1rem;
    --sp-5:  1.25rem;
    --sp-6:  1.5rem;
    --sp-7:  1.75rem;
    --sp-8:  2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-20: 5rem;
    --sp-24: 6rem;

    /* Vertical rhythm for full-width sections */
    --section-y: clamp(3.5rem, 7vw, 6.5rem);

    /* --- Radii ------------------------------------------------------ */
    --r-sm:   6px;
    --r-md:   10px;
    --r-lg:   14px;
    --r-xl:   20px;
    --r-2xl:  28px;
    --r-full: 999px;

    /* --- Elevation -------------------------------------------------- */
    --sh-xs: 0 1px 2px rgba(16, 20, 31, 0.05);
    --sh-sm: 0 1px 3px rgba(16, 20, 31, 0.07), 0 1px 2px rgba(16, 20, 31, 0.04);
    --sh-md: 0 4px 12px rgba(16, 20, 31, 0.07), 0 2px 4px rgba(16, 20, 31, 0.04);
    --sh-lg: 0 12px 30px rgba(16, 20, 31, 0.09), 0 4px 8px rgba(16, 20, 31, 0.04);
    --sh-xl: 0 24px 56px rgba(16, 20, 31, 0.13), 0 8px 16px rgba(16, 20, 31, 0.05);
    --sh-brand: 0 10px 28px rgba(99, 84, 230, 0.28);

    /* --- Layout ----------------------------------------------------- */
    --container: 1200px;
    --container-narrow: 860px;
    --header-h: 68px;

    /* --- Motion ----------------------------------------------------- */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 140ms;
    --t-base: 220ms;
    --t-slow: 420ms;
}

/* =====================================================================
   03  BASE TYPOGRAPHY
   ===================================================================== */
body {
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevents any wide child (table, code block) from scrolling the page. */
    overflow-x: hidden;
}

@media (min-width: 768px) {
    body { font-size: var(--fs-md); }
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: var(--lh-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--text);
    text-wrap: balance;
}

h1 { font-size: var(--fs-5xl); letter-spacing: var(--tracking-tighter); }
h2 { font-size: var(--fs-4xl); letter-spacing: var(--tracking-tighter); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); line-height: var(--lh-snug); }
h5 { font-size: var(--fs-lg); line-height: var(--lh-snug); }

p { text-wrap: pretty; }

a {
    color: var(--link);
    text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent);
    text-underline-offset: 0.18em;
    transition: color var(--t-fast) var(--ease);
}

a:hover { color: var(--brand-500); }

strong { font-weight: 650; }

code, kbd, samp {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--bg-muted);
    padding: 0.15em 0.4em;
    border-radius: var(--r-sm);
}

/* Consistent, visible focus for keyboard users on every interactive element */
:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

/* Mouse users don't get the ring, keyboard users always do */
:focus:not(:focus-visible) { outline: none; }

::selection {
    background: var(--brand-200);
    color: var(--ink-900);
}

/* =====================================================================
   04  LAYOUT PRIMITIVES
   ===================================================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--sp-5);
}

@media (min-width: 640px) { .container { padding-inline: var(--sp-6); } }
@media (min-width: 1024px) { .container { padding-inline: var(--sp-8); } }

.container--narrow { max-width: var(--container-narrow); }

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

.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--subtle { background: var(--bg-subtle); }
.section--muted { background: var(--bg-muted); }

/* Dark section: inverts the applied text/border roles for its subtree */
.section--dark {
    background: var(--ink-900);
    --text: #f4f5f8;
    --text-muted: #a8b0c2;
    --text-subtle: #7f889c;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);
    --surface: var(--ink-850);
    --link: var(--brand-300);
    color: var(--text);
}

.section--dark h1, .section--dark h2,
.section--dark h3, .section--dark h4, .section--dark h5 { color: var(--text); }

/* Faint grid texture for dark bands — adds depth without a background image */
.section--dark.has-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 75%);
    pointer-events: none;
}

.section > .container { position: relative; z-index: 1; }

/* --- Grid ---------------------------------------------------------- */
.grid { display: grid; gap: var(--sp-5); }

@media (min-width: 600px) {
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid { gap: var(--sp-6); }
}

@media (min-width: 960px) {
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Two-column content split, stacked below 900px */
.split {
    display: grid;
    gap: var(--sp-8);
    align-items: center;
}

@media (min-width: 900px) {
    .split {
        grid-template-columns: 1fr 1fr;
        gap: clamp(2.5rem, 5vw, 4.5rem);
    }
    .split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
    .split--wide-right { grid-template-columns: 0.85fr 1.15fr; }
}

.stack > * + * { margin-top: var(--sp-4); }
.stack--lg > * + * { margin-top: var(--sp-6); }

.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    align-items: center;
}

/* =====================================================================
   05  BUTTONS
   ===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: 0.72rem 1.35rem;
    font-size: var(--fs-base);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.005em;
    border-radius: var(--r-full);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--t-base) var(--ease),
                border-color var(--t-base) var(--ease),
                color var(--t-base) var(--ease),
                box-shadow var(--t-base) var(--ease),
                transform var(--t-fast) var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* Icon nudges right on hover — a small directional cue, not decoration */
.btn .icon-arrow { transition: transform var(--t-base) var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }

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

.btn--primary:hover {
    background: var(--brand-600);
    color: #fff;
    box-shadow: 0 14px 32px rgba(99, 84, 230, 0.34);
}

.btn--secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
    box-shadow: var(--sh-xs);
}

.btn--secondary:hover {
    background: var(--bg-subtle);
    border-color: var(--brand-300);
    color: var(--brand-600);
}

.section--dark .btn--secondary {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.section--dark .btn--secondary:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    padding-inline: 0.9rem;
}

.btn--ghost:hover { background: var(--bg-muted); color: var(--brand-600); }

.btn--dark {
    background: var(--ink-900);
    color: #fff;
    box-shadow: var(--sh-md);
}

.btn--dark:hover { background: var(--ink-800); color: #fff; }

.btn--light {
    background: #fff;
    color: var(--ink-900);
}

.btn--light:hover { background: var(--n-100); color: var(--ink-900); }

.btn--sm { padding: 0.5rem 1rem; font-size: var(--fs-sm); }
.btn--lg { padding: 0.9rem 1.75rem; font-size: var(--fs-lg); }
.btn--block { width: 100%; }

.btn[disabled],
.btn[aria-disabled="true"] {
    opacity: 0.62;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading state: swaps the label for a spinner without changing width */
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }

.btn.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 1.05em;
    height: 1.05em;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    color: #fff;
    animation: spin 640ms linear infinite;
}

.btn--secondary.is-loading::after,
.btn--light.is-loading::after { color: var(--brand-600); }

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

/* Text link with a trailing arrow — the "Learn more" affordance */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-weight: 600;
    font-size: var(--fs-base);
    color: var(--brand-600);
    text-decoration: none;
}

.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform var(--t-base) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--brand-300); }

/* =====================================================================
   06  BADGES, CHIPS, PILLS
   ===================================================================== */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
    color: var(--brand-600);
}

.section--dark .eyebrow { color: var(--brand-300); }

.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.55;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.3rem 0.7rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    line-height: 1.35;
    border-radius: var(--r-full);
    background: var(--bg-muted);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.badge--brand {
    background: var(--brand-50);
    color: var(--brand-700);
    border-color: var(--brand-100);
}

.badge--teal { background: #e6fbf8; color: var(--teal-600); border-color: #c3f3ec; }
.badge--coral { background: #fff1f3; color: #be123c; border-color: #ffdbe1; }
.badge--success { background: var(--success-50); color: var(--success-700); border-color: #b9f0d3; }
.badge--warning { background: var(--warning-50); color: var(--warning-700); border-color: #fce4b3; }
.badge--danger { background: var(--danger-50); color: var(--danger-700); border-color: #fbd3cf; }

.section--dark .badge {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.13);
    color: var(--text-muted);
}

/* Announcement pill used above the hero headline */
.pill {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 0.4rem 0.9rem 0.4rem 0.5rem;
    font-size: var(--fs-sm);
    font-weight: 550;
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e8eaf2;
    backdrop-filter: blur(8px);
}

.pill__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal-400);
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.18);
    margin-inline: 0.25rem;
}

/* Technology badge */
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    padding: 0.5rem 0.9rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    border-radius: var(--r-md);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: border-color var(--t-base) var(--ease),
                color var(--t-base) var(--ease),
                transform var(--t-base) var(--ease);
}

.tech-badge:hover {
    border-color: var(--brand-300);
    color: var(--brand-600);
    transform: translateY(-2px);
}

.section--dark .tech-badge {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cdd3e2;
}

.section--dark .tech-badge:hover {
    border-color: rgba(164, 155, 250, 0.5);
    color: #fff;
}

/* =====================================================================
   07  CARDS
   ===================================================================== */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--sp-6);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-xs);
    transition: transform var(--t-base) var(--ease),
                box-shadow var(--t-base) var(--ease),
                border-color var(--t-base) var(--ease);
}

@media (min-width: 768px) { .card { padding: var(--sp-8); } }

.card--hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-lg);
    border-color: var(--brand-200);
}

.section--dark .card {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: none;
}

.section--dark .card--hover:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(164, 155, 250, 0.35);
}

.card--flat { box-shadow: none; }
.card--tight { padding: var(--sp-5); }

.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: var(--sp-5);
    border-radius: var(--r-md);
    background: linear-gradient(140deg, var(--brand-50), #fff);
    border: 1px solid var(--brand-100);
    color: var(--brand-600);
    flex: none;
}

.card__icon svg { width: 22px; height: 22px; }

.section--dark .card__icon {
    background: rgba(131, 117, 242, 0.14);
    border-color: rgba(131, 117, 242, 0.28);
    color: var(--brand-300);
}

.card__title {
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--sp-2);
}

.card__text {
    color: var(--text-muted);
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--sp-4);
}

/* Pushes the card's action to the bottom so a row of cards aligns */
.card__footer { margin-top: auto; padding-top: var(--sp-2); }

/* Whole card is clickable via a stretched overlay link */
.card__link-overlay {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 1;
}

.card--numbered .card__number {
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--brand-500);
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--sp-3);
}

/* Feature list inside a card */
.check-list {
    display: grid;
    gap: var(--sp-3);
    font-size: var(--fs-base);
    color: var(--text-muted);
}

.check-list li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: var(--sp-3);
    align-items: start;
    line-height: var(--lh-normal);
}

.check-list svg {
    width: 16px;
    height: 16px;
    margin-top: 0.28em;
    color: var(--success-500);
    stroke-width: 2.4;
    flex: none;
}

.check-list--brand svg { color: var(--brand-500); }

/* Two-column list on wider screens for long feature sets */
@media (min-width: 700px) {
    .check-list--split { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-6); }
}

/* =====================================================================
   08  HEADER & NAVIGATION
   ===================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-base) var(--ease),
                box-shadow var(--t-base) var(--ease),
                background-color var(--t-base) var(--ease);
}

.site-header.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--sh-sm);
}

/* Transparent over a dark hero until the page scrolls */
.site-header--over-dark {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.site-header--over-dark .nav__link,
.site-header--over-dark .brand__name { color: #eef0f6; }
.site-header--over-dark .brand__tagline { color: rgba(238, 240, 246, 0.6); }
.site-header--over-dark .nav__link:hover { color: #fff; }
.site-header--over-dark .nav__toggle { color: #fff; }

.site-header--over-dark.is-scrolled {
    background: rgba(11, 14, 22, 0.88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    min-height: var(--header-h);
}

/* --- Brand --------------------------------------------------------- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex: none;
}

.brand__mark {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700) 65%, var(--ink-900));
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: -0.03em;
    box-shadow: 0 4px 12px rgba(76, 60, 204, 0.32);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }

.brand__name {
    font-size: 1.0625rem;
    font-weight: 750;
    letter-spacing: -0.028em;
    color: var(--text);
}

.brand__tagline {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.015em;
    color: var(--text-subtle);
}

@media (max-width: 420px) {
    .brand__tagline { display: none; }
}

/* --- Desktop nav --------------------------------------------------- */
.nav { display: flex; align-items: center; gap: var(--sp-1); }

.nav__list {
    display: none;
    align-items: center;
    gap: 0.15rem;
}

@media (min-width: 1024px) { .nav__list { display: flex; } }

.nav__link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: var(--fs-base);
    font-weight: 550;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--r-md);
    transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.nav__link:hover { color: var(--text); background: var(--bg-muted); }

.site-header--over-dark .nav__link:hover { background: rgba(255, 255, 255, 0.1); }

.nav__link[aria-current="page"] {
    color: var(--brand-600);
    font-weight: 650;
}

.site-header--over-dark .nav__link[aria-current="page"] { color: #fff; }

.nav__cta { display: none; }
@media (min-width: 1024px) { .nav__cta { display: inline-flex; margin-left: var(--sp-3); } }

/* Header phone link — visible from tablet up */
.header__phone {
    display: none;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.4rem 0.6rem;
    border-radius: var(--r-md);
}

.header__phone svg { width: 15px; height: 15px; }
.header__phone:hover { color: var(--brand-600); background: var(--bg-muted); }

@media (min-width: 760px) { .header__phone { display: inline-flex; } }
@media (min-width: 1024px) and (max-width: 1140px) { .header__phone { display: none; } }

/* --- Hamburger ----------------------------------------------------- */
.nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--r-md);
    color: var(--text);
    cursor: pointer;
    transition: background-color var(--t-fast) var(--ease);
}

.nav__toggle:hover { background: var(--bg-muted); }

@media (min-width: 1024px) { .nav__toggle { display: none; } }

.nav__toggle-bars {
    position: relative;
    width: 20px;
    height: 14px;
}

.nav__toggle-bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform var(--t-base) var(--ease), opacity var(--t-fast) var(--ease);
}

.nav__toggle-bars span:nth-child(1) { top: 0; }
.nav__toggle-bars span:nth-child(2) { top: 6px; }
.nav__toggle-bars span:nth-child(3) { top: 12px; }

.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Mobile drawer ------------------------------------------------- */
.mobile-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding: var(--sp-5) var(--sp-5) var(--sp-8);
    background: var(--n-0);
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Hidden by default: not just invisible, also non-interactive */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--t-base) var(--ease),
                transform var(--t-base) var(--ease),
                visibility var(--t-base) linear;
}

.mobile-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 1024px) { .mobile-nav { display: none; } }

.mobile-nav__list { display: grid; gap: 2px; }

.mobile-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.75rem;
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--r-md);
    border-bottom: 1px solid var(--border);
}

.mobile-nav__link svg { width: 16px; height: 16px; color: var(--text-subtle); }
.mobile-nav__link:hover { background: var(--bg-subtle); color: var(--brand-600); }
.mobile-nav__link[aria-current="page"] { color: var(--brand-600); }

.mobile-nav__footer {
    margin-top: var(--sp-8);
    display: grid;
    gap: var(--sp-3);
}

.mobile-nav__contact {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: 0.75rem 0.9rem;
    border-radius: var(--r-md);
    background: var(--bg-subtle);
    color: var(--text);
    font-weight: 600;
    font-size: var(--fs-base);
    text-decoration: none;
    border: 1px solid var(--border);
}

.mobile-nav__contact svg { width: 18px; height: 18px; color: var(--brand-500); }

/* Locks background scroll while the drawer is open */
body.nav-open { overflow: hidden; }

/* Skip link — first tab stop on every page */
.skip-link {
    position: absolute;
    top: -100px;
    left: var(--sp-4);
    z-index: 200;
    padding: 0.7rem 1.1rem;
    background: var(--ink-900);
    color: #fff;
    font-weight: 600;
    font-size: var(--fs-sm);
    border-radius: var(--r-md);
    text-decoration: none;
    transition: top var(--t-base) var(--ease);
}

.skip-link:focus { top: var(--sp-3); color: #fff; }

/* =====================================================================
   09  HERO
   ===================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--ink-900);
    color: #fff;
    padding-block: clamp(4.5rem, 11vw, 8.5rem) clamp(3.5rem, 8vw, 6rem);
    /* Header sits transparently on top, so pull the hero up under it */
    margin-top: calc(var(--header-h) * -1);
    padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
}

/* Layered ambient glow — pure CSS, no image request */
.hero::before {
    content: "";
    position: absolute;
    top: -30%;
    left: 50%;
    width: min(1100px, 130%);
    aspect-ratio: 1;
    transform: translateX(-50%);
    background:
        radial-gradient(circle at 32% 38%, rgba(99, 84, 230, 0.42), transparent 55%),
        radial-gradient(circle at 70% 30%, rgba(20, 184, 166, 0.20), transparent 50%),
        radial-gradient(circle at 52% 72%, rgba(244, 63, 94, 0.14), transparent 55%);
    filter: blur(10px);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 20%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 20%, transparent 72%);
    pointer-events: none;
}

.hero__inner { position: relative; z-index: 2; }

.hero__grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }

@media (min-width: 980px) {
    .hero__grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
}

.hero__title {
    font-size: var(--fs-5xl);
    font-weight: 780;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: #fff;
    margin-block: var(--sp-5) var(--sp-5);
}

/* Gradient emphasis on the final clause of the headline */
.hero__title em {
    font-style: normal;
    background: linear-gradient(100deg, var(--brand-300) 8%, var(--teal-400) 55%, var(--brand-200));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Fallback for engines that ignore background-clip:text */
    -webkit-text-fill-color: transparent;
}

.hero__lead {
    font-size: var(--fs-lg);
    line-height: var(--lh-relaxed);
    color: #b6bdcf;
    max-width: 54ch;
    margin-bottom: var(--sp-8);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-bottom: var(--sp-8);
}

@media (max-width: 420px) {
    .hero__actions .btn { width: 100%; }
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3) var(--sp-6);
    padding-top: var(--sp-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-sm);
    font-weight: 550;
    color: #9aa3b8;
}

.hero__meta-item svg { width: 15px; height: 15px; color: var(--teal-400); flex: none; }

/* --- Hero visual: a stylised "capability stack" ------------------- */
.hero__visual { position: relative; }

.hero-panel {
    position: relative;
    border-radius: var(--r-2xl);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.13);
    padding: var(--sp-5);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
}

.hero-panel__bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-bottom: var(--sp-4);
    margin-bottom: var(--sp-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-panel__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.hero-panel__dot:first-child { background: rgba(244, 63, 94, 0.6); }
.hero-panel__dot:nth-child(2) { background: rgba(247, 144, 9, 0.6); }
.hero-panel__dot:nth-child(3) { background: rgba(45, 212, 191, 0.6); }

.hero-panel__label {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: var(--tracking-wide);
}

.hero-rows { display: grid; gap: var(--sp-3); }

.hero-row {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: var(--sp-3);
    padding: 0.8rem;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-row__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: rgba(99, 84, 230, 0.18);
    border: 1px solid rgba(131, 117, 242, 0.28);
    color: var(--brand-300);
}

.hero-row__icon svg { width: 18px; height: 18px; }
.hero-row--teal .hero-row__icon { background: rgba(20, 184, 166, 0.15); border-color: rgba(45, 212, 191, 0.3); color: var(--teal-400); }
.hero-row--coral .hero-row__icon { background: rgba(244, 63, 94, 0.13); border-color: rgba(251, 113, 133, 0.3); color: var(--coral-400); }

.hero-row__title { font-size: var(--fs-base); font-weight: 620; color: #eef0f6; line-height: 1.3; }
.hero-row__sub { font-size: var(--fs-xs); color: #8d95a9; margin-top: 2px; }

.hero-row__status {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--teal-400);
    letter-spacing: var(--tracking-wide);
}

/* Floating stat card overlapping the panel */
.hero-float {
    position: absolute;
    right: -8px;
    bottom: -22px;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: 0.75rem 1rem;
    border-radius: var(--r-lg);
    background: #fff;
    color: var(--ink-900);
    box-shadow: var(--sh-xl);
    max-width: 240px;
}

.hero-float__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--brand-50);
    color: var(--brand-600);
    flex: none;
}

.hero-float__icon svg { width: 17px; height: 17px; }
.hero-float__title { font-size: var(--fs-sm); font-weight: 700; line-height: 1.25; }
.hero-float__text { font-size: var(--fs-xs); color: var(--n-600); line-height: 1.35; }

@media (max-width: 979px) {
    .hero-float { position: static; margin-top: var(--sp-5); max-width: none; }
}

/* =====================================================================
   10  SECTION HEADERS
   ===================================================================== */
.section-head {
    max-width: 60ch;
    margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

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

.section-head__title {
    font-size: var(--fs-4xl);
    margin-block: var(--sp-4) var(--sp-4);
}

.section-head__lead {
    font-size: var(--fs-lg);
    line-height: var(--lh-relaxed);
    color: var(--text-muted);
}

/* Header row with a trailing action on wide screens */
.section-head-row {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 860px) {
    .section-head-row {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
    .section-head-row .section-head { margin-bottom: 0; }
}

/* =====================================================================
   11  SERVICES GRID
   ===================================================================== */
.service-card { overflow: hidden; }

/* Accent line that draws in on hover */
.service-card::after {
    content: "";
    position: absolute;
    left: var(--sp-6);
    right: var(--sp-6);
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-500), var(--teal-500));
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-slow) var(--ease-out);
}

.service-card:hover::after { transform: scaleX(1); }

.service-card .card__footer { position: relative; z-index: 2; }

/* =====================================================================
   12  TECHNOLOGY GRID
   ===================================================================== */
.tech-group + .tech-group { margin-top: var(--sp-8); }

.tech-group__label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    color: var(--text-subtle);
    margin-bottom: var(--sp-4);
}

.tech-list { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.tech-columns { display: grid; gap: var(--sp-8); }

@media (min-width: 700px) {
    .tech-columns { grid-template-columns: repeat(2, 1fr); column-gap: var(--sp-10); }
    .tech-group + .tech-group { margin-top: 0; }
}

@media (min-width: 1024px) {
    .tech-columns { grid-template-columns: repeat(3, 1fr); }
}

/* =====================================================================
   13  VIDEO SECTION
   ===================================================================== */
/* Workflow chain: shoot -> edit -> grade -> ... */
.workflow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2);
    margin-block: var(--sp-8);
}

.workflow__step {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    font-size: var(--fs-sm);
    font-weight: 620;
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.11);
    color: #e4e7f0;
}

.workflow__step-index {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--teal-400);
}

.workflow__arrow {
    color: rgba(255, 255, 255, 0.28);
    flex: none;
}

.workflow__arrow svg { width: 16px; height: 16px; }

/* Video category tiles with a 16:9 placeholder */
.video-grid {
    display: grid;
    gap: var(--sp-4);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}

.video-tile {
    position: relative;
    display: block;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--ink-800);
    border: 1px solid rgba(255, 255, 255, 0.09);
    text-decoration: none;
    transition: transform var(--t-base) var(--ease),
                border-color var(--t-base) var(--ease);
}

.video-tile:hover { transform: translateY(-3px); border-color: rgba(251, 113, 133, 0.4); }

.video-tile__media {
    position: relative;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 25%, rgba(99, 84, 230, 0.3), transparent 60%),
        radial-gradient(circle at 75% 70%, rgba(244, 63, 94, 0.22), transparent 60%),
        var(--ink-850);
}

.video-tile__media img,
.video-tile__media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-tile__play {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    backdrop-filter: blur(4px);
    transition: transform var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}

.video-tile__play svg { width: 22px; height: 22px; }
.video-tile:hover .video-tile__play { transform: scale(1.08); background: rgba(255, 255, 255, 0.22); }

.video-tile__body { padding: var(--sp-4); }

.video-tile__title {
    font-size: var(--fs-base);
    font-weight: 650;
    color: #eef0f6;
    line-height: 1.3;
}

.video-tile__meta {
    font-size: var(--fs-xs);
    color: #8d95a9;
    margin-top: 3px;
}

/* Small note explaining that tiles are placeholders until real work lands */
.placeholder-note {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    margin-top: var(--sp-6);
    padding: var(--sp-4);
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    font-size: var(--fs-sm);
    color: #9aa3b8;
    line-height: var(--lh-normal);
}

.placeholder-note svg { width: 16px; height: 16px; flex: none; margin-top: 0.15em; color: var(--teal-400); }

/* =====================================================================
   14  PORTFOLIO GRID
   ===================================================================== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-bottom: var(--sp-8);
}

/* Horizontal scroll on narrow screens rather than a wrapping pile */
@media (max-width: 560px) {
    .filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: var(--sp-2);
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    .filter-bar::-webkit-scrollbar { height: 4px; }
    .filter-bar::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--t-base) var(--ease);
}

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

.filter-btn[aria-pressed="true"] {
    background: var(--ink-900);
    border-color: var(--ink-900);
    color: #fff;
}

.filter-btn__count {
    font-size: var(--fs-xs);
    font-weight: 600;
    opacity: 0.6;
}

.portfolio-grid {
    display: grid;
    gap: var(--sp-5);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    /* Smooth height changes when the filter swaps content */
    transition: opacity var(--t-base) var(--ease);
}

.portfolio-grid.is-loading { opacity: 0.45; pointer-events: none; }

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-xs);
    transition: transform var(--t-base) var(--ease),
                box-shadow var(--t-base) var(--ease),
                border-color var(--t-base) var(--ease);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-lg);
    border-color: var(--brand-200);
}

.project-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background:
        linear-gradient(135deg, var(--brand-50), var(--n-100) 60%, #fff);
    display: grid;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.project-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow) var(--ease-out);
}

.project-card:hover .project-card__media img { transform: scale(1.04); }

/* Monogram shown when a project has no image yet */
.project-card__placeholder {
    display: grid;
    place-items: center;
    gap: var(--sp-2);
    color: var(--brand-400);
    text-align: center;
    padding: var(--sp-4);
}

.project-card__placeholder svg { width: 28px; height: 28px; }

.project-card__placeholder span {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
    color: var(--brand-500);
    opacity: 0.75;
}

.project-card__cat {
    position: absolute;
    top: var(--sp-3);
    left: var(--sp-3);
    z-index: 2;
    padding: 0.28rem 0.65rem;
    font-size: var(--fs-xs);
    font-weight: 650;
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink-900);
    backdrop-filter: blur(6px);
    box-shadow: var(--sh-xs);
}

.project-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--sp-5);
}

.project-card__title {
    font-size: var(--fs-lg);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    line-height: 1.3;
    margin-bottom: var(--sp-2);
}

.project-card__summary {
    font-size: var(--fs-base);
    color: var(--text-muted);
    line-height: var(--lh-normal);
    margin-bottom: var(--sp-4);
}

.project-card__tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: auto;
}

.project-card__tech span {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: var(--r-sm);
    background: var(--bg-muted);
    color: var(--text-subtle);
}

.project-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: var(--sp-4);
    font-size: var(--fs-sm);
    font-weight: 650;
    color: var(--brand-600);
    text-decoration: none;
}

.project-card__link svg { width: 14px; height: 14px; }

/* Empty and error states for the AJAX grid */
.grid-state {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    gap: var(--sp-3);
    padding: clamp(2.5rem, 6vw, 4.5rem) var(--sp-5);
    text-align: center;
    border: 1px dashed var(--border-strong);
    border-radius: var(--r-xl);
    background: var(--bg-subtle);
    color: var(--text-muted);
}

.grid-state svg { width: 26px; height: 26px; color: var(--text-subtle); }
.grid-state__title { font-size: var(--fs-lg); font-weight: 650; color: var(--text); }
.grid-state__text { font-size: var(--fs-base); max-width: 44ch; }

/* Skeleton cards shown while a filter request is in flight */
.skeleton-card {
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--surface);
}

.skeleton-card__media { aspect-ratio: 16 / 10; }
.skeleton-card__body { padding: var(--sp-5); display: grid; gap: var(--sp-3); }
.skeleton-line { height: 12px; border-radius: var(--r-sm); }
.skeleton-line--sm { width: 45%; height: 10px; }
.skeleton-line--lg { width: 75%; height: 16px; }

.skeleton-card__media,
.skeleton-line {
    background: linear-gradient(90deg, var(--n-100) 25%, var(--n-200) 37%, var(--n-100) 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes shimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

/* =====================================================================
   15  PROCESS TIMELINE
   ===================================================================== */
.process { display: grid; gap: var(--sp-5); counter-reset: step; }

@media (min-width: 700px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .process { grid-template-columns: repeat(3, 1fr); } }

.process-step {
    position: relative;
    padding: var(--sp-6);
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}

.process-step:hover { border-color: var(--brand-200); transform: translateY(-3px); }

.process-step__num {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--brand-500);
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--sp-3);
}

.process-step__num::after {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--brand-200);
}

.process-step__title {
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: var(--sp-2);
}

.process-step__text {
    font-size: var(--fs-base);
    color: var(--text-muted);
    line-height: var(--lh-relaxed);
}

.section--dark .process-step {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.09);
}

.section--dark .process-step__num { color: var(--brand-300); }
.section--dark .process-step__num::after { background: rgba(164, 155, 250, 0.35); }

/* =====================================================================
   16  WHY-US GRID
   ===================================================================== */
.reason-grid {
    display: grid;
    gap: var(--sp-5);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

.reason {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: var(--sp-4);
    align-items: start;
}

.reason__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    color: var(--brand-600);
    flex: none;
}

.reason__icon svg { width: 19px; height: 19px; }

.reason__title { font-size: var(--fs-md); font-weight: 680; margin-bottom: 4px; line-height: 1.3; }
.reason__text { font-size: var(--fs-base); color: var(--text-muted); line-height: var(--lh-normal); }

.section--dark .reason__icon {
    background: rgba(131, 117, 242, 0.14);
    border-color: rgba(131, 117, 242, 0.26);
    color: var(--brand-300);
}

/* =====================================================================
   17  PRICING
   ===================================================================== */
.pricing-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-1);
    padding: var(--sp-1);
    margin-inline: auto;
    margin-bottom: var(--sp-8);
    width: fit-content;
    max-width: 100%;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
}

@media (max-width: 560px) {
    .pricing-tabs { width: 100%; justify-content: center; border-radius: var(--r-lg); }
}

.pricing-tab {
    padding: 0.5rem 1.1rem;
    font-size: var(--fs-sm);
    font-weight: 620;
    color: var(--text-muted);
    border-radius: var(--r-full);
    cursor: pointer;
    transition: all var(--t-base) var(--ease);
}

.pricing-tab:hover { color: var(--text); }

.pricing-tab[aria-selected="true"] {
    background: var(--n-0);
    color: var(--brand-600);
    box-shadow: var(--sh-sm);
}

.pricing-grid {
    display: grid;
    gap: var(--sp-5);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    align-items: start;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--sp-6);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-xs);
    transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.plan:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }

.plan--popular {
    border-color: var(--brand-400);
    box-shadow: 0 0 0 1px var(--brand-400), var(--sh-lg);
}

.plan__flag {
    position: absolute;
    top: -11px;
    left: var(--sp-6);
    padding: 0.22rem 0.7rem;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    border-radius: var(--r-full);
    background: var(--brand-500);
    color: #fff;
    box-shadow: var(--sh-sm);
}

.plan__name { font-size: var(--fs-xl); font-weight: 720; letter-spacing: var(--tracking-tight); }
.plan__subtitle { font-size: var(--fs-base); color: var(--text-muted); margin-top: var(--sp-2); line-height: var(--lh-normal); }

.plan__price-block {
    margin-block: var(--sp-5);
    padding-bottom: var(--sp-5);
    border-bottom: 1px solid var(--border);
}

.plan__price-prefix {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 620;
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    color: var(--text-subtle);
    margin-bottom: var(--sp-2);
}

.plan__price {
    font-size: var(--fs-3xl);
    font-weight: 760;
    letter-spacing: -0.03em;
    line-height: 1;
}

.plan__cycle { font-size: var(--fs-sm); color: var(--text-subtle); font-weight: 550; margin-left: 0.3rem; }

.plan__features { margin-bottom: var(--sp-6); }
.plan__cta { margin-top: auto; }

.pricing-note {
    margin-top: var(--sp-8);
    padding: var(--sp-5);
    border-radius: var(--r-lg);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    font-size: var(--fs-base);
    color: var(--text-muted);
    line-height: var(--lh-relaxed);
}

.pricing-note strong { color: var(--text); }

/* =====================================================================
   18  TESTIMONIALS
   ===================================================================== */
.testimonial-grid {
    display: grid;
    gap: var(--sp-5);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.testimonial { display: flex; flex-direction: column; }

.testimonial__stars {
    display: flex;
    gap: 2px;
    margin-bottom: var(--sp-4);
    color: var(--warning-500);
}

.testimonial__stars svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }

.testimonial__quote {
    font-size: var(--fs-lg);
    line-height: var(--lh-relaxed);
    color: var(--text);
    margin-bottom: var(--sp-6);
    flex: 1;
}

.testimonial__author { display: flex; align-items: center; gap: var(--sp-3); }

.testimonial__avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand-100);
    color: var(--brand-700);
    font-weight: 700;
    font-size: var(--fs-sm);
    flex: none;
    overflow: hidden;
}

.testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial__name { font-size: var(--fs-base); font-weight: 660; line-height: 1.3; }
.testimonial__role { font-size: var(--fs-sm); color: var(--text-subtle); }

/* =====================================================================
   19  FORMS
   ===================================================================== */
.form { display: grid; gap: var(--sp-5); }

.form-grid { display: grid; gap: var(--sp-5); }

@media (min-width: 640px) {
    .form-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

.field { display: grid; gap: 0.4rem; }

.field__label {
    font-size: var(--fs-sm);
    font-weight: 620;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.field__required { color: var(--danger-500); font-weight: 700; }

.field__optional {
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--text-subtle);
    margin-left: auto;
}

.input,
.select,
.textarea {
    width: 100%;
    padding: 0.72rem 0.9rem;
    font-size: var(--fs-base);
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    transition: border-color var(--t-fast) var(--ease),
                box-shadow var(--t-fast) var(--ease),
                background-color var(--t-fast) var(--ease);
    /* iOS zooms in on focus when font-size < 16px */
    -webkit-appearance: none;
    appearance: none;
}

@media (max-width: 767px) {
    .input, .select, .textarea { font-size: 1rem; }
}

.input::placeholder,
.textarea::placeholder { color: var(--n-400); }

.input:hover,
.select:hover,
.textarea:hover { border-color: var(--n-400); }

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(99, 84, 230, 0.16);
}

.textarea { min-height: 130px; resize: vertical; line-height: var(--lh-normal); }

.select {
    /* Custom chevron via data URI keeps the control on-brand with zero requests */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d8595' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 17px;
    padding-right: 2.4rem;
    cursor: pointer;
}

/* Invalid state, applied by the client-side validator and the server response */
.input.is-invalid,
.select.is-invalid,
.textarea.is-invalid {
    border-color: var(--danger-500);
    background-color: var(--danger-50);
}

.input.is-invalid:focus,
.select.is-invalid:focus,
.textarea.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.15);
}

.field__error {
    display: none;
    font-size: var(--fs-sm);
    font-weight: 550;
    color: var(--danger-700);
}

.field__error.is-visible { display: block; }

.field__hint { font-size: var(--fs-sm); color: var(--text-subtle); }

/* Honeypot: off-screen, never displayed, never announced */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Consent row */
.checkbox-row {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: var(--sp-3);
    align-items: start;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: var(--lh-normal);
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0.15em;
    accent-color: var(--brand-500);
    cursor: pointer;
}

/* --- Alerts -------------------------------------------------------- */
.alert {
    display: none;
    align-items: flex-start;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5);
    border-radius: var(--r-md);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    border: 1px solid transparent;
}

.alert.is-visible { display: flex; }

.alert svg { width: 18px; height: 18px; flex: none; margin-top: 0.1em; }

.alert--success {
    background: var(--success-50);
    border-color: #b9f0d3;
    color: var(--success-700);
}

.alert--error {
    background: var(--danger-50);
    border-color: #fbd3cf;
    color: var(--danger-700);
}

.alert--info {
    background: var(--brand-50);
    border-color: var(--brand-100);
    color: var(--brand-700);
}

.alert--warning {
    background: var(--warning-50);
    border-color: #fce4b3;
    color: var(--warning-700);
}

.alert__title { font-weight: 680; margin-bottom: 2px; }

/* Form card wrapper used on the contact page */
.form-card {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-md);
}

/* =====================================================================
   20  CONTACT PAGE
   ===================================================================== */
.contact-layout { display: grid; gap: var(--sp-8); }

@media (min-width: 960px) {
    .contact-layout {
        grid-template-columns: 1fr 1.15fr;
        gap: clamp(2.5rem, 5vw, 4rem);
        align-items: start;
    }
}

.contact-method {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: var(--sp-4);
    align-items: start;
    padding: var(--sp-4) 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: transform var(--t-base) var(--ease);
}

.contact-method:last-child { border-bottom: 0; }
a.contact-method:hover { transform: translateX(3px); }

.contact-method__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    color: var(--brand-600);
    flex: none;
}

.contact-method__icon svg { width: 20px; height: 20px; }

.contact-method__label {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    color: var(--text-subtle);
    margin-bottom: 3px;
}

.contact-method__value {
    font-size: var(--fs-lg);
    font-weight: 660;
    letter-spacing: var(--tracking-tight);
    color: var(--text);
    line-height: 1.3;
}

a.contact-method:hover .contact-method__value { color: var(--brand-600); }

.contact-method__note { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 3px; }

/* Map / embed placeholder */
.map-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-muted);
}

.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.map-embed__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: var(--sp-2);
    text-align: center;
    padding: var(--sp-5);
    color: var(--text-subtle);
    font-size: var(--fs-sm);
}

.map-embed__placeholder svg { width: 26px; height: 26px; }

/* Social links row */
.social-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    border-radius: var(--r-full);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--t-base) var(--ease);
}

.social-link:hover { border-color: var(--brand-300); color: var(--brand-600); }
.social-link svg { width: 14px; height: 14px; }

/* WhatsApp CTA */
.whatsapp-cta {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-5);
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, #e8f9ef, #f4fdf7);
    border: 1px solid #c3ecd3;
    text-decoration: none;
    color: inherit;
    transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.whatsapp-cta:hover { transform: translateY(-2px); box-shadow: var(--sh-md); color: inherit; }

.whatsapp-cta__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    background: #128c7e;
    color: #fff;
    flex: none;
}

.whatsapp-cta__icon svg { width: 22px; height: 22px; }
.whatsapp-cta__title { font-size: var(--fs-md); font-weight: 680; }
.whatsapp-cta__text { font-size: var(--fs-sm); color: var(--n-600); }

/* =====================================================================
   21  CTA BAND
   ===================================================================== */
.cta-band {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3rem, 7vw, 5.5rem);
    background: var(--ink-900);
    color: #fff;
}

.cta-band::before {
    content: "";
    position: absolute;
    top: -40%;
    left: 50%;
    width: min(900px, 120%);
    aspect-ratio: 1;
    transform: translateX(-50%);
    background:
        radial-gradient(circle at 40% 45%, rgba(99, 84, 230, 0.4), transparent 58%),
        radial-gradient(circle at 68% 55%, rgba(20, 184, 166, 0.2), transparent 55%);
    pointer-events: none;
}

.cta-band__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: var(--sp-6);
    text-align: center;
    justify-items: center;
    max-width: 68ch;
    margin-inline: auto;
}

.cta-band__title {
    font-size: var(--fs-4xl);
    color: #fff;
    letter-spacing: -0.03em;
}

.cta-band__text { font-size: var(--fs-lg); color: #b6bdcf; line-height: var(--lh-relaxed); }

.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }

@media (max-width: 420px) {
    .cta-band__actions .btn { width: 100%; }
}

.cta-band__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-5);
    justify-content: center;
    font-size: var(--fs-sm);
    color: #8d95a9;
}

.cta-band__meta a { color: #cdd3e2; font-weight: 600; text-decoration: none; }
.cta-band__meta a:hover { color: #fff; }

/* =====================================================================
   22  FOOTER
   ===================================================================== */
.site-footer {
    background: var(--ink-950);
    color: #9aa3b8;
    padding-top: clamp(3rem, 6vw, 4.5rem);
    font-size: var(--fs-base);
}

.footer__grid { display: grid; gap: var(--sp-8); }

@media (min-width: 640px) {
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--sp-10); }
}

.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__tagline { color: rgba(255, 255, 255, 0.5); }

.footer__about {
    margin-top: var(--sp-4);
    max-width: 42ch;
    line-height: var(--lh-relaxed);
    color: #8d95a9;
}

.footer__heading {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    color: #fff;
    margin-bottom: var(--sp-4);
}

.footer__list { display: grid; gap: 0.6rem; }

.footer__list a {
    color: #9aa3b8;
    text-decoration: none;
    font-size: var(--fs-base);
    transition: color var(--t-fast) var(--ease);
}

.footer__list a:hover { color: #fff; }

.footer__contact { display: grid; gap: var(--sp-4); }

.footer__contact-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: var(--sp-3);
    align-items: start;
    color: #9aa3b8;
    text-decoration: none;
    line-height: var(--lh-normal);
}

.footer__contact-item svg { width: 17px; height: 17px; margin-top: 0.15em; color: var(--brand-300); }
a.footer__contact-item:hover { color: #fff; }

.footer__bottom {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-block: var(--sp-5);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    align-items: center;
    text-align: center;
    font-size: var(--fs-sm);
    color: #6f778a;
}

@media (min-width: 700px) {
    .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); justify-content: center; }
.footer__legal a { color: #8d95a9; text-decoration: none; }
.footer__legal a:hover { color: #fff; }

/* =====================================================================
   23  BREADCRUMBS & PAGE HERO
   ===================================================================== */
.page-hero {
    position: relative;
    overflow: hidden;
    background: var(--ink-900);
    color: #fff;
    margin-top: calc(var(--header-h) * -1);
    padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem));
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.page-hero::before {
    content: "";
    position: absolute;
    top: -60%;
    left: 50%;
    width: min(900px, 130%);
    aspect-ratio: 1;
    transform: translateX(-50%);
    background:
        radial-gradient(circle at 45% 55%, rgba(99, 84, 230, 0.34), transparent 58%),
        radial-gradient(circle at 68% 42%, rgba(20, 184, 166, 0.16), transparent 55%);
    pointer-events: none;
}

.page-hero__inner { position: relative; z-index: 1; max-width: 68ch; }

.page-hero__title {
    font-size: var(--fs-4xl);
    color: #fff;
    letter-spacing: -0.032em;
    margin-block: var(--sp-4) var(--sp-4);
}

.page-hero__lead {
    font-size: var(--fs-lg);
    line-height: var(--lh-relaxed);
    color: #b6bdcf;
}

.page-hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-7, 1.75rem); }

.breadcrumbs { font-size: var(--fs-sm); }

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    list-style: none;
}

.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.35rem; }

.breadcrumbs a { color: rgba(255, 255, 255, 0.62); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs [aria-current="page"] { color: rgba(255, 255, 255, 0.95); font-weight: 550; }

.breadcrumbs__sep { color: rgba(255, 255, 255, 0.3); }
.breadcrumbs__sep svg { width: 13px; height: 13px; }

/* =====================================================================
   24  PROSE (legal pages)
   ===================================================================== */
.prose { max-width: 72ch; color: var(--text-muted); }

.prose > * + * { margin-top: var(--sp-4); }

.prose h2 {
    font-size: var(--fs-2xl);
    color: var(--text);
    margin-top: var(--sp-10);
    margin-bottom: var(--sp-3);
    padding-top: var(--sp-2);
}

.prose h3 {
    font-size: var(--fs-lg);
    color: var(--text);
    margin-top: var(--sp-6);
    margin-bottom: var(--sp-2);
}

.prose p, .prose li { line-height: var(--lh-relaxed); }

.prose ul, .prose ol {
    padding-left: 1.35rem;
    display: grid;
    gap: var(--sp-2);
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--brand-400); }
.prose strong { color: var(--text); }

.prose a { font-weight: 550; }

.prose__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--r-full);
    background: var(--bg-muted);
    border: 1px solid var(--border);
    font-size: var(--fs-sm);
    color: var(--text-subtle);
    margin-bottom: var(--sp-6);
}

.prose__meta svg { width: 14px; height: 14px; }

/* =====================================================================
   25  ACCORDION / FAQ
   ===================================================================== */
.accordion { display: grid; gap: var(--sp-3); max-width: 74ch; }

.accordion__item {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface);
    overflow: hidden;
    transition: border-color var(--t-base) var(--ease);
}

.accordion__item.is-open { border-color: var(--brand-200); }

.accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    width: 100%;
    padding: var(--sp-5);
    font-size: var(--fs-md);
    font-weight: 650;
    line-height: var(--lh-snug);
    text-align: left;
    color: var(--text);
    cursor: pointer;
}

.accordion__trigger:hover { color: var(--brand-600); }

.accordion__icon {
    flex: none;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    color: var(--brand-500);
    transition: transform var(--t-base) var(--ease);
}

.accordion__icon svg { width: 16px; height: 16px; }
.accordion__item.is-open .accordion__icon { transform: rotate(90deg); }

.accordion__panel {
    /* Height is animated by JS via max-height; hidden state is height 0 */
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-slow) var(--ease-out);
}

.accordion__body {
    padding: 0 var(--sp-5) var(--sp-5);
    font-size: var(--fs-base);
    color: var(--text-muted);
    line-height: var(--lh-relaxed);
}

/* =====================================================================
   26  MOTION
   ===================================================================== */
/* Scroll reveal — starts hidden only when JS is available (see .js class) */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
    will-change: opacity, transform;
}

.js [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

/* Staggered children, capped at 6 steps to avoid long waits */
.js [data-reveal-delay="1"] { transition-delay: 60ms; }
.js [data-reveal-delay="2"] { transition-delay: 120ms; }
.js [data-reveal-delay="3"] { transition-delay: 180ms; }
.js [data-reveal-delay="4"] { transition-delay: 240ms; }
.js [data-reveal-delay="5"] { transition-delay: 300ms; }
.js [data-reveal-delay="6"] { transition-delay: 360ms; }

/* Respect the user's motion preference across the whole site */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .js [data-reveal] { opacity: 1; transform: none; }
    .btn:hover, .card--hover:hover, .project-card:hover { transform: none; }
}

/* =====================================================================
   27  UTILITIES & ACCESSIBILITY
   ===================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-lead { font-size: var(--fs-lg); line-height: var(--lh-relaxed); color: var(--text-muted); }
.text-balance { text-wrap: balance; }
.mono { font-family: var(--font-mono); }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mt-10 { margin-top: var(--sp-10); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }

.hide { display: none !important; }
@media (max-width: 599px) { .hide-sm { display: none !important; } }
@media (min-width: 1024px) { .hide-lg { display: none !important; } }

.divider {
    height: 1px;
    background: var(--border);
    border: 0;
    margin-block: var(--sp-8);
}

/* Anything that must not shrink below the smallest supported width */
.overflow-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Print: drop chrome, keep content readable */
@media print {
    .site-header, .mobile-nav, .cta-band, .site-footer,
    .filter-bar, .btn, .skip-link { display: none !important; }

    body { background: #fff; color: #000; font-size: 11pt; }
    .hero, .page-hero, .section--dark { background: #fff !important; color: #000 !important; }
    .hero__title, .page-hero__title, .section--dark h2 { color: #000 !important; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
