:root {
    --bg: #09090b;
    --bg-elevated: #111118;
    --bg-card: #16161f;
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --accent: #3b82f6;
    --accent-2: #6366f1;
    --accent-glow: rgba(59, 130, 246, 0.25);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.35);
    --radius: 14px;
    --radius-sm: 10px;
    --font-display: "Archivo", system-ui, sans-serif;
    --font-body: "Space Grotesk", system-ui, sans-serif;
    --container: 1140px;
    --header-h: 72px;
    --transition: 0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.site-body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

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

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(9, 9, 11, 0.82);
    border-bottom: 1px solid var(--border);
}

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

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    transition: opacity var(--transition);
}

.header__logo:hover { opacity: 0.85; }

.logo-img {
    display: block;
    height: 80px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.925rem;
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--text);
}

.nav-link:hover::after { width: 100%; }

.header__toggle { display: none; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.925rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

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

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn--primary:hover {
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--outline {
    border-color: rgba(59, 130, 246, 0.5);
    color: var(--accent);
    background: rgba(59, 130, 246, 0.06);
}

.btn--outline:hover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.12);
}

.btn--ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* Hero */
.hero {
    position: relative;
    padding: 5rem 0 6rem;
}

.hero__grid-bg,
.hero__mesh {
    overflow: hidden;
    pointer-events: none;
}

.hero__grid-bg {
    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: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 75%);
}

.hero__mesh {
    position: absolute;
    inset: -30% -20%;
    background:
        radial-gradient(circle at 15% 25%, rgba(59, 130, 246, 0.12), transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(99, 102, 241, 0.1), transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(59, 130, 246, 0.06), transparent 35%);
    animation: meshDrift 18s ease-in-out infinite alternate;
}

@keyframes meshDrift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(2%, -1.5%) scale(1.03); }
}

.hero__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    min-width: 0;
}

.hero__content {
    min-width: 0;
    width: 100%;
}

.hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    margin: 0;
}

.hero__status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

.hero__status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation: statusPulse 2.5s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    overflow: hidden;
    padding-bottom: 0.15rem;
}

.hero__title-line {
    display: block;
}

.hero__title-word {
    display: inline-block;
    background: linear-gradient(135deg, #fff 30%, rgba(255, 255, 255, 0.75));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    will-change: transform, opacity;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 48ch;
    margin: 0;
    line-height: 1.7;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2.25rem 0 2.5rem;
}

.hero__proof {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.proof-card {
    padding: 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), background var(--transition);
}

.proof-card:hover {
    border-color: var(--border-hover);
    background: rgba(59, 130, 246, 0.04);
}

.proof-card__value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.proof-card__label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Hero terminal */
.hero__visual {
    display: flex;
    justify-content: center;
}

.hero__terminal {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 24px 48px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(59, 130, 246, 0.08);
    transition: transform var(--transition), box-shadow var(--transition);
}

.hero__terminal:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px rgba(59, 130, 246, 0.15),
        0 32px 64px rgba(0, 0, 0, 0.45),
        0 0 100px rgba(59, 130, 246, 0.12);
}

.hero__terminal-bar {
    display: flex;
    gap: 6px;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
}

.hero__terminal-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.hero__terminal-bar span:first-child { background: #ef4444; }
.hero__terminal-bar span:nth-child(2) { background: #eab308; }
.hero__terminal-bar span:nth-child(3) { background: #22c55e; }

.hero__terminal-code {
    margin: 0;
    padding: 1.25rem 1.5rem 1.5rem;
    font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--text-muted);
    overflow-x: auto;
}

.hero__terminal-code code {
    display: block;
    white-space: normal;
}

.terminal-line {
    display: block;
    line-height: 1.35;
    white-space: pre;
}

.code-comment { color: #52525b; }
.code-kw { color: #c084fc; }
.code-type { color: #38bdf8; }
.code-fn { color: #fbbf24; }
.code-str { color: #4ade80; }

.hero__terminal-cursor {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 14px;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent-glow);
    pointer-events: none;
}

/* Sections */
.section { padding: 3rem 0; }

.section--expertise {
    background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.02) 50%, transparent);
}

.section--portfolio-preview {
    padding-top: 3rem;
}

.section-title__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 0.75rem;
}

.section-title__heading {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.section-title__heading::after {
    content: "";
    display: block;
    width: 0;
    height: 3px;
    margin-top: 0.65rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    animation: titleUnderline 0.8s ease forwards;
    animation-delay: 0.4s;
}

@keyframes titleUnderline {
    to { width: 3rem; }
}

.section-title__subtitle {
    color: var(--text-muted);
    max-width: 52ch;
    margin: 0;
    font-size: 1.05rem;
}

.section__cta {
    margin-top: 3.5rem;
    text-align: center;
}

/* Expertise */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.expertise-card {
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.expertise-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.expertise-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    margin-bottom: 1.25rem;
    transition: transform var(--transition), background var(--transition);
}

.expertise-card:hover .expertise-card__icon {
    transform: scale(1.08) rotate(-3deg);
    background: rgba(59, 130, 246, 0.18);
}

.expertise-card__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.6rem;
}

.expertise-card__text {
    color: var(--text-muted);
    font-size: 0.925rem;
    margin: 0;
    line-height: 1.65;
}

/* Portfolio grid */
.grid--projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.project-card {
    position: relative;
    isolation: isolate;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    cursor: pointer;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.project-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.project-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.project-card:hover .project-card__arrow {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent);
    transform: translate(2px, -2px);
}

.project-card__title {
    margin: 0 0 0.6rem;
    font-size: 1.15rem;
}

.project-card__title a {
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    transition: color var(--transition);
}

.project-card__title a:hover { color: var(--accent); }

.project-card__summary {
    color: var(--text-muted);
    font-size: 0.925rem;
    margin: 0;
    line-height: 1.65;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    margin-right: 0.35rem;
    margin-bottom: 0.35rem;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

/* CTA band */
.section--cta { padding-bottom: 6rem; }

.cta-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.06));
    border: 1px solid var(--border-hover);
    border-radius: calc(var(--radius) + 4px);
    position: relative;
    overflow: hidden;
    animation: ctaGlow 4s ease-in-out infinite alternate;
}

@keyframes ctaGlow {
    from { box-shadow: 0 0 0 rgba(59, 130, 246, 0); }
    to { box-shadow: 0 0 40px rgba(59, 130, 246, 0.12); }
}

.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.1), transparent 50%);
    pointer-events: none;
}

.cta-band__content {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.cta-band__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 0 0.6rem;
    letter-spacing: -0.02em;
}

.cta-band__subtitle {
    color: var(--text-muted);
    margin: 0;
    max-width: 42ch;
    font-size: 1.05rem;
}

.cta-band__actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Page hero */
.page-hero {
    padding: 4rem 0 2rem;
}

.page-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 1rem;
}

.page-hero__intro { color: var(--text-muted); max-width: 60ch; }

/* Portfolio filter */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
}

.filter-btn.is-active,
.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.project-card.is-hidden { display: none; }

/* About */
.about-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1.2fr 1fr;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: border-color var(--transition);
}

.value-card:hover { border-color: var(--border-hover); }

.value-card h3 {
    margin-bottom: 0.35rem;
}

.value-card__subtitle {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.value-card__text {
    color: var(--text-muted);
    margin: 0;
}

.skills-list {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
}

.skills-list li {
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.contact-form .help-text {
    display: block;
    margin: -0.5rem 0 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    font-family: var(--font-body);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.contact-form .form-errors,
.contact-form .invalid-feedback,
.contact-form ul li {
    color: #f87171;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.contact-form .form-errors {
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--radius-sm);
}

.contact-form input:invalid,
.contact-form textarea:invalid,
.contact-form select:invalid,
.contact-form .is-invalid {
    border-color: #f87171;
}

.contact-aside {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.text-muted { color: var(--text-muted); }

/* Case study */
.case-study { padding: 3rem 0 4rem; }

.case-study__back {
    color: var(--accent);
    text-decoration: none;
}

.case-study__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.case-study__intro {
    margin-top: 1.5rem;
    max-width: 72ch;
    color: var(--text-muted);
    line-height: 1.7;
}

.case-study__intro p { margin: 0; }

.case-study__section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.case-study__section h2 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.case-study__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-study__feature-list li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.case-study__feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.case-study__section--challenges .case-study__feature-list li::before {
    background: var(--accent-secondary, var(--accent));
}

.stack-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stack-list li {
    padding: 0.35rem 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--border);
}

.stack-list li:last-child { border-bottom: none; }

.results-list li { margin-bottom: 0.5rem; }

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    margin-top: 0;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.footer__nav {
    display: flex;
    gap: 1rem;
}

.footer__nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.footer__nav a:hover { color: var(--text); }

.footer__copy { color: var(--text-muted); font-size: 0.875rem; width: 100%; }

/* Booking modal */
body.modal-open {
    overflow: hidden;
}

.booking-modal {
    width: min(100% - 2rem, 520px);
    max-height: calc(100vh - 2rem);
    margin: auto;
    padding: 0;
    border: 1px solid var(--border-hover);
    border-radius: calc(var(--radius) + 4px);
    background: var(--bg-card);
    color: var(--text);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.booking-modal::backdrop {
    background: rgba(9, 9, 11, 0.75);
    backdrop-filter: blur(4px);
}

.booking-modal__panel {
    position: relative;
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(100vh - 2rem);
}

.booking-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.booking-modal__close:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: rgba(59, 130, 246, 0.08);
}

.booking-modal__close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.booking-modal__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 2.5rem 0.75rem 0;
    letter-spacing: -0.02em;
}

.booking-modal__intro {
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    line-height: 1.65;
}

.booking-modal__steps {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: 1rem;
}

.booking-modal__step {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.booking-modal__step-index {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
}

.booking-modal__step-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
}

.booking-modal__step-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.55;
}

.booking-modal__duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.booking-modal__duration-label {
    color: var(--text-muted);
}

.booking-modal__duration-value {
    font-weight: 600;
    color: var(--accent);
}

.booking-modal__note {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0 0 1.5rem;
    padding: 0.85rem 1rem;
    background: rgba(59, 130, 246, 0.06);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    line-height: 1.55;
}

.booking-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: 520px;
    margin-inline: auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    z-index: 200;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cookie-banner--hidden { display: none !important; }

.cookie-banner__actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }

/* Flash */
.flash {
    padding: 1rem;
    text-align: center;
}

.flash--success { background: rgba(59, 130, 246, 0.12); color: var(--accent); }
.flash--error { background: rgba(239, 68, 68, 0.12); color: #f87171; }

/* Legal */
.legal-page .prose h1 { font-family: var(--font-display); }
.legal-page .prose h2 { margin-top: 2rem; color: var(--accent); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero__mesh,
    .hero__status-dot,
    .section-title__heading::after,
    .cta-band { animation: none; }

    .section-title__heading::after { width: 3rem; }
}

/* Tablet */
@media (max-width: 1024px) {
    .hero__layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero__terminal { max-width: 100%; }

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

/* Mobile */
@media (max-width: 768px) {
    .container {
        width: min(100% - 2.5rem, var(--container));
    }

    .hero { padding: 2.5rem 0 3.5rem; }

    .hero__visual { display: none; }

    .hero__layout { gap: 0; }

    .hero__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .hero__eyebrow {
        letter-spacing: 0.1em;
        font-size: 0.7rem;
    }

    .hero__title {
        font-size: clamp(1.65rem, 7.5vw, 2.25rem);
        line-height: 1.2;
    }

    .hero__subtitle {
        max-width: 100%;
        font-size: 1rem;
    }

    .hero__cta {
        flex-direction: column;
        margin: 1.75rem 0 2rem;
    }

    .hero__cta .btn {
        width: 100%;
    }

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

    .header__toggle {
        display: flex;
        background: none;
        border: none;
        cursor: pointer;
    }
    .burger {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text);
        box-shadow: 0 7px 0 var(--text), 0 -7px 0 var(--text);
    }
    .header__nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        background: var(--bg);
        padding: 1.5rem;
        transform: translateY(-120%);
        transition: transform 0.3s;
        border-bottom: 1px solid var(--border);
    }
    .header__nav.is-open { transform: translateY(0); }

    .cta-band {
        padding: 2rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

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

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

    .booking-modal__panel {
        padding: 1.5rem;
    }

    .booking-modal__actions {
        flex-direction: column;
    }

    .booking-modal__actions .btn {
        width: 100%;
    }

    .about-grid,
    .contact-grid,
    .case-study__grid { grid-template-columns: 1fr; }
}

/* Turbo */
.turbo-progress-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
