/*
 * KOREBASE — Custom Software Development
 * San Antonio, TX
 * Modern archetype: asymmetric split hero, alternating service rows, connection-graph signature
 * Palette: forest-tinted dark + coral accent
 */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --color-primary: #0C1A14;
    --color-secondary: #162920;
    --color-accent: #FF6B5A;
    --color-accent-rgb: 255, 107, 90;
    --color-bg: #080F0B;
    --color-text: #D4E0D9;
    --color-text-bright: #EFF5F1;
    --font-h: 'Bricolage Grotesque', sans-serif;
    --font-b: 'Figtree', sans-serif;
    --radius-sm: 6px;
    --radius-lg: 8px;
    --shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.12), 0 12px 24px rgba(0,0,0,0.06);
    --speed: 0.25s;
    --section-pad: clamp(4rem, 8vw, 7rem);
    --container-w: 1100px;
    --border-weight: 1px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}
body {
    font-family: var(--font-b);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 {
    font-family: var(--font-h);
    color: var(--color-text-bright);
    line-height: 1.15;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    padding: 0.5rem 1rem;
    background: var(--color-accent);
    color: var(--color-bg);
    font-weight: 600;
    font-family: var(--font-h);
    z-index: 100;
    border-radius: var(--radius-sm);
    text-decoration: none;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================================
   FOCUS STATES
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* ============================================================
   HEADER — Sticky, dark, backdrop blur
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 15, 11, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 224, 217, 0.06);
    padding: 0.75rem 0;
    transition: box-shadow var(--speed);
}
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo {
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text-bright);
    text-decoration: none;
    letter-spacing: -0.01em;
}
.header-logo span {
    color: var(--color-accent);
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.header-nav a {
    font-size: 0.875rem;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color var(--speed);
}
.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease, left 0.3s ease;
}
.header-nav a:hover {
    color: var(--color-text-bright);
}
.header-nav a:hover::after {
    width: 100%;
    left: 0;
}
.header-email {
    font-family: var(--font-h);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity var(--speed);
}
.header-email:hover {
    opacity: 0.8;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-bright);
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   HERO — Split layout from css_blueprints.hero_css
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(255,107,90,0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 15% 85%, rgba(22,41,32,0.8) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(22,41,32,0.4) 0%, transparent 70%),
        linear-gradient(155deg, #080F0B 0%, #0C1A14 40%, #122218 100%);
    color: var(--color-text);
}
/* Dot-grid texture overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(212,224,217,0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}
/* Coral glow orb upper-right */
.hero::after {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,90,0.06) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 58% 42%;
    gap: 3rem;
    align-items: center;
}
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: clamp(2rem, 4vw, 4rem) 0;
}
.hero-eyebrow {
    font-family: var(--font-h);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.25rem;
}
.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    max-width: 18ch;
    color: var(--color-text-bright);
}
/* Gradient text on em — Modern archetype */
.hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--color-accent), #FF9A8B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 48ch;
    margin-bottom: 2rem;
    color: var(--color-text);
}
.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================================
   CONNECTION GRAPH — Signature element from css_blueprints
   ============================================================ */
.connection-graph {
    position: relative;
    min-height: 360px;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    overflow: hidden;
}
.connection-graph__node {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,107,90,0.35);
}
.connection-graph__node--lg {
    width: 10px;
    height: 10px;
    background: rgba(255,107,90,0.2);
    box-shadow: 0 0 20px rgba(255,107,90,0.1);
}
.connection-graph__node:nth-child(1) { top: 18%; right: 12%; }
.connection-graph__node:nth-child(2) { top: 35%; right: 28%; }
.connection-graph__node:nth-child(3) { top: 55%; right: 8%; }
.connection-graph__node:nth-child(4) { top: 72%; right: 22%; }
.connection-graph__node:nth-child(5) { top: 28%; right: 42%; }
.connection-graph__node:nth-child(6) { top: 48%; right: 35%; }
.connection-graph__line {
    position: absolute;
    background: rgba(255,107,90,0.08);
    transform-origin: 0 0;
    height: 1px;
}
.connection-graph__pulse {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0;
}
.connection-graph__label {
    position: absolute;
    font-family: var(--font-h);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(212, 224, 217, 0.15);
    pointer-events: none;
}
.connection-graph__label:nth-of-type(1) { top: 14%; right: 8%; }
.connection-graph__label:nth-of-type(2) { top: 32%; right: 44%; }
.connection-graph__label:nth-of-type(3) { top: 68%; right: 18%; }
.connection-graph__label:nth-of-type(4) { top: 50%; right: 5%; }

@media (prefers-reduced-motion: no-preference) {
    @keyframes pulse-travel {
        0%, 100% { opacity: 0; }
        15% { opacity: 0.6; }
        85% { opacity: 0.6; }
        100% { opacity: 0; }
    }
    .connection-graph__pulse {
        animation: pulse-travel 4s ease-in-out infinite;
    }
    .connection-graph__pulse:nth-child(2) {
        animation-delay: 1.5s;
    }
    @keyframes node-glow {
        0%, 100% { box-shadow: 0 0 6px rgba(255,107,90,0.1); }
        50% { box-shadow: 0 0 16px rgba(255,107,90,0.25); }
    }
    .connection-graph__node--lg {
        animation: node-glow 3s ease-in-out infinite;
    }
}

/* ============================================================
   SECTION DIVIDERS — from css_blueprints.section_divider_css
   ============================================================ */
.section-fade {
    position: relative;
}
.section-fade::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,107,90,0.2), rgba(212,224,217,0.08), rgba(255,107,90,0.2), transparent);
    pointer-events: none;
}
.section-glow-line {
    height: 1px;
    border: none;
    margin: 0;
    background: linear-gradient(90deg, transparent 5%, rgba(255,107,90,0.3) 30%, rgba(255,107,90,0.1) 50%, rgba(255,107,90,0.3) 70%, transparent 95%);
}

/* ============================================================
   BUTTONS — from css_blueprints.button_css
   ============================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-accent);
    color: #080F0B;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-h);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    min-height: 44px;
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s cubic-bezier(0.4,0,0.2,1);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(255,107,90,0.15), 0 8px 24px rgba(255,107,90,0.2);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--color-accent);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-h);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255,107,90,0.4);
    cursor: pointer;
    text-decoration: none;
    min-height: 44px;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-secondary:hover {
    background: rgba(255,107,90,0.1);
    border-color: var(--color-accent);
}

/* ============================================================
   SECTION LABEL — Coral eyebrow text
   ============================================================ */
.section-label {
    font-family: var(--font-h);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

/* ============================================================
   SERVICES — Alternating rows from css_blueprints.card_css
   ============================================================ */
.services {
    padding: var(--section-pad) 0;
    background: var(--color-primary);
    position: relative;
}
.services-header {
    margin-bottom: 3rem;
}
.services-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.services-header p {
    max-width: 50ch;
    font-size: 1.05rem;
    line-height: 1.7;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(212,224,217,0.06);
}
.service-row:last-child {
    border-bottom: none;
}
.service-row:nth-child(even) {
    direction: rtl;
}
.service-row:nth-child(even) > * {
    direction: ltr;
}
.service-row__content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.service-row__visual {
    position: relative;
    min-height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-secondary);
    border: 1px solid rgba(212,224,217,0.06);
}
.service-row__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.service-row__icon {
    width: 48px;
    height: 48px;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.service-row:hover .service-row__icon {
    transform: translateX(4px);
}
.service-row__title {
    font-family: var(--font-h);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-bright);
}
.service-row__desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    max-width: 45ch;
}

/* Unique visual panels per service */
/* ERP: grid/table pattern */
.service-visual--erp::before {
    background:
        repeating-linear-gradient(0deg, rgba(212,224,217,0.03) 0px, rgba(212,224,217,0.03) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(90deg, rgba(212,224,217,0.03) 0px, rgba(212,224,217,0.03) 1px, transparent 1px, transparent 40px),
        radial-gradient(ellipse at 50% 50%, rgba(255,107,90,0.04) 0%, transparent 70%);
}
/* Automation: flowing diagonal lines */
.service-visual--auto::before {
    background:
        repeating-linear-gradient(
            -30deg,
            rgba(255,107,90,0.04) 0px,
            rgba(255,107,90,0.04) 1px,
            transparent 1px,
            transparent 20px
        ),
        radial-gradient(ellipse at 30% 70%, rgba(255,107,90,0.05) 0%, transparent 60%);
}
/* Web Apps: layered rectangles */
.service-visual--web::before {
    background: radial-gradient(ellipse at 50% 50%, rgba(255,107,90,0.05) 0%, transparent 70%);
}
.service-visual--web::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 20%;
    width: 60%;
    height: 40%;
    border: 1px solid rgba(212,224,217,0.06);
    border-radius: 4px;
    pointer-events: none;
}
.service-visual--web .visual-layer {
    position: absolute;
    border: 1px solid rgba(212,224,217,0.04);
    border-radius: 4px;
    pointer-events: none;
}
.service-visual--web .visual-layer:nth-child(1) {
    top: 22%;
    left: 15%;
    width: 50%;
    height: 35%;
}
.service-visual--web .visual-layer:nth-child(2) {
    top: 38%;
    left: 30%;
    width: 50%;
    height: 35%;
    background: rgba(255,107,90,0.02);
}
/* Mobile: rounded rectangle phone shape */
.service-visual--mobile::before {
    background: radial-gradient(ellipse at 50% 50%, rgba(255,107,90,0.04) 0%, transparent 65%);
}
.service-visual--mobile .visual-phone {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 140px;
    border: 1.5px solid rgba(212,224,217,0.08);
    border-radius: 16px;
    pointer-events: none;
}
.service-visual--mobile .visual-phone::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    border-radius: 2px;
    background: rgba(212,224,217,0.06);
}
/* API: connection dots echoing signature */
.service-visual--api::before {
    background: radial-gradient(ellipse at 40% 60%, rgba(255,107,90,0.05) 0%, transparent 60%);
}
.service-visual--api .visual-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,107,90,0.25);
    pointer-events: none;
}
.service-visual--api .visual-dot:nth-child(1) { top: 30%; left: 25%; }
.service-visual--api .visual-dot:nth-child(2) { top: 50%; left: 55%; }
.service-visual--api .visual-dot:nth-child(3) { top: 35%; left: 70%; }
.service-visual--api .visual-dot:nth-child(4) { top: 65%; left: 35%; }
.service-visual--api .visual-dot:nth-child(5) { top: 55%; left: 80%; }
.service-visual--api .visual-line {
    position: absolute;
    height: 1px;
    background: rgba(255,107,90,0.08);
    transform-origin: 0 0;
    pointer-events: none;
}

/* ============================================================
   MID-PAGE CTA
   ============================================================ */
.mid-cta {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background: var(--color-bg);
    text-align: center;
    position: relative;
}
.mid-cta h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

/* ============================================================
   APPROACH — 3 columns, distinct background
   ============================================================ */
.approach {
    padding: var(--section-pad) 0;
    background: var(--color-secondary);
    position: relative;
    overflow: hidden;
}
/* Faint dot texture on approach */
.approach::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(212,224,217,0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}
.approach .container {
    position: relative;
    z-index: 1;
}
.approach-header {
    margin-bottom: 3.5rem;
}
.approach-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    letter-spacing: -0.01em;
}
.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}
.approach-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.approach-number {
    font-family: var(--font-h);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    letter-spacing: -0.02em;
}
.approach-col h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-bright);
}
.approach-col p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    max-width: 38ch;
}

/* ============================================================
   ABOUT — Dark bg with coral accent stripe
   ============================================================ */
.about {
    padding: var(--section-pad) 0;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}
/* Accent stripe left edge */
.about::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 4px;
    background: linear-gradient(180deg, transparent, var(--color-accent), transparent);
    pointer-events: none;
}
.about-inner {
    max-width: 720px;
    margin-left: auto;
    padding-left: 2rem;
}
.about h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}
.about p {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    max-width: 65ch;
}
.about-quote {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-text-bright);
    border-left: 3px solid var(--color-accent);
    padding-left: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0;
    max-width: 55ch;
    line-height: 1.65;
}

/* ============================================================
   CONTACT — Clean, centered
   ============================================================ */
.contact {
    padding: var(--section-pad) 0;
    background: var(--color-primary);
    text-align: center;
    position: relative;
}
.contact h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}
.contact-email {
    display: inline-block;
    font-family: var(--font-h);
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: opacity var(--speed);
}
.contact-email:hover {
    opacity: 0.8;
}
.contact-location {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 2rem;
}
.contact .btn-primary {
    margin: 0 auto;
}

/* ============================================================
   FOOTER — Minimal, 3 columns
   ============================================================ */
.site-footer {
    padding: 3rem 0 2rem;
    background: var(--color-bg);
    border-top: 1px solid rgba(212, 224, 217, 0.06);
    font-size: 0.875rem;
    color: rgba(212, 224, 217, 0.5);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h4 {
    font-family: var(--font-h);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(212, 224, 217, 0.3);
    margin-bottom: 0.75rem;
}
.footer-col p {
    line-height: 1.7;
}
.footer-col a {
    color: rgba(212, 224, 217, 0.5);
    text-decoration: none;
    transition: color var(--speed);
    display: block;
    line-height: 2;
}
.footer-col a:hover {
    color: var(--color-accent);
}
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 224, 217, 0.04);
    font-size: 0.8rem;
    color: rgba(212, 224, 217, 0.3);
}

/* ============================================================
   ANIMATIONS — Staggered entrance
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
    @keyframes fadeUp {
        from { opacity: 0; transform: translateY(24px); }
        to { opacity: 1; transform: translateY(0); }
    }
    @keyframes slideInLeft {
        from { opacity: 0; transform: translateX(-20px); }
        to { opacity: 1; transform: translateX(0); }
    }

    .hero-anim-1 { animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0ms; }
    .hero-anim-2 { animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 150ms; }
    .hero-anim-3 { animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 300ms; }
    .hero-anim-4 { animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 450ms; }

    /* Connection graph nodes stagger in */
    @keyframes nodeIn {
        from { opacity: 0; transform: scale(0); }
        to { opacity: 1; transform: scale(1); }
    }
    .connection-graph__node {
        opacity: 0;
    }
    .connection-graph__node:nth-child(1) { animation: nodeIn 0.4s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 500ms; }
    .connection-graph__node:nth-child(2) { animation: nodeIn 0.4s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 600ms; }
    .connection-graph__node:nth-child(3) { animation: nodeIn 0.4s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 700ms; }
    .connection-graph__node:nth-child(4) { animation: nodeIn 0.4s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 800ms; }
    .connection-graph__node:nth-child(5) { animation: nodeIn 0.4s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 900ms; }
    .connection-graph__node:nth-child(6) { animation: nodeIn 0.4s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 1000ms; }

    .connection-graph__line {
        opacity: 0;
        animation: fadeUp 0.5s ease both;
        animation-delay: 1100ms;
    }

    /* Scroll reveal */
    .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-stagger-1 { transition-delay: 0ms; }
    .reveal-stagger-2 { transition-delay: 150ms; }
    .reveal-stagger-3 { transition-delay: 300ms; }
}

/* When reduced motion is preferred, show everything */
@media (prefers-reduced-motion: reduce) {
    .connection-graph__node {
        opacity: 1;
    }
    .connection-graph__line {
        opacity: 1;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 49;
    background: rgba(8, 15, 11, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-nav.active {
    display: flex;
    opacity: 1;
}
.mobile-nav a {
    font-family: var(--font-h);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-bright);
    text-decoration: none;
    transition: color var(--speed);
    min-height: 44px;
    display: flex;
    align-items: center;
}
.mobile-nav a:hover {
    color: var(--color-accent);
}

/* ============================================================
   RESPONSIVE — Mobile first, breakpoints at 768 and 1024
   ============================================================ */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    .connection-graph {
        min-height: 200px;
        opacity: 0.3;
    }
    .hero-content {
        padding: 2rem 0;
    }
    .header-nav {
        display: none;
    }
    .header-email {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
    .service-row,
    .service-row:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 1.5rem;
    }
    .service-row__visual {
        min-height: 140px;
    }
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .about-inner {
        margin-left: 0;
        padding-left: 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .hero h1 {
        max-width: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-inner {
        margin-left: 2rem;
    }
}

@media (min-width: 1025px) {
    .about-inner {
        margin-left: auto;
        margin-right: 0;
    }
}
