/* ============================================================================
   Software Technologies, LLC  —  site.css
   Modern design system: CSS custom properties, light/dark themes,
   responsive layout, no framework dependencies.
   ============================================================================ */

/* ----------------------------------------------------------------- Tokens -- */
:root {
    /* Brand */
    --primary: #c81e3a;          /* crimson, derived & brightened from the maroon mark */
    --primary-strong: #a5172f;
    --primary-soft: #f6dde1;
    --maroon: #8b1420;           /* original logo maroon, used in gradients */
    --grad: linear-gradient(135deg, #e23048 0%, #c81e3a 45%, #8b1420 100%);

    /* Neutrals (light) */
    --bg: #ffffff;
    --bg-alt: #f5f6f8;
    --surface: #ffffff;
    --surface-2: #fbfbfc;
    --text: #15171c;
    --text-muted: #5a6472;
    --border: #e6e8ec;
    --border-strong: #d6dae0;
    --shadow-sm: 0 1px 2px rgba(16, 18, 24, .06), 0 1px 3px rgba(16, 18, 24, .05);
    --shadow-md: 0 6px 20px rgba(16, 18, 24, .08), 0 2px 6px rgba(16, 18, 24, .05);
    --shadow-lg: 0 18px 50px rgba(16, 18, 24, .14);

    /* Type */
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: "Space Grotesk", var(--font-sans);

    /* Layout */
    --container: 1140px;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --space: clamp(4rem, 8vw, 7rem);
    --header-h: 68px;

    --ring: 0 0 0 3px rgba(200, 30, 58, .28);
}

:root[data-theme="dark"] {
    --primary: #ff5169;
    --primary-strong: #ff7083;
    --primary-soft: #3a1b22;
    --grad: linear-gradient(135deg, #ff6178 0%, #e23048 50%, #a5172f 100%);

    --bg: #0c0e13;
    --bg-alt: #11141b;
    --surface: #161a22;
    --surface-2: #1a1f29;
    --text: #eef1f6;
    --text-muted: #9aa4b2;
    --border: #262c38;
    --border-strong: #333b49;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
    --shadow-lg: 0 22px 60px rgba(0, 0, 0, .55);
    --ring: 0 0 0 3px rgba(255, 81, 105, .32);
}

/* --------------------------------------------------------------- Base ----- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 .5em;
    color: var(--text);
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.28rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin: 0 0 1rem; }

a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary-strong); }

code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: .88em;
    background: var(--primary-soft);
    color: var(--primary-strong);
    padding: .1em .4em;
    border-radius: 6px;
}
:root[data-theme="dark"] code { color: var(--primary); }

img, svg { max-width: 100%; display: block; }

:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: 6px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 32px);
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    background: var(--primary);
    color: #fff;
    padding: .6rem 1rem;
    border-radius: 8px;
    transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* --------------------------------------------------------------- Buttons -- */
.btn {
    --h: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: var(--h);
    padding: 0 1.5rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: .98rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { --h: 42px; padding: 0 1.1rem; font-size: .9rem; }

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 6px 18px rgba(200, 30, 58, .32);
}
.btn-primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(200, 30, 58, .42); transform: translateY(-1px); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-ghost:hover { color: var(--text); border-color: var(--primary); background: var(--surface-2); }

/* --------------------------------------------------------------- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.1rem;
}
.brand:hover { color: var(--text); }
.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    color: #fff;
    background: var(--grad);
    box-shadow: 0 4px 12px rgba(200, 30, 58, .35);
    flex: none;
}
.brand-llc { color: var(--text-muted); font-weight: 500; }

.primary-nav { margin-left: auto; }
.primary-nav ul {
    display: flex;
    gap: .35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.primary-nav a {
    display: inline-block;
    padding: .5rem .85rem;
    border-radius: 9px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: .96rem;
}
.primary-nav a:hover { color: var(--text); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: .6rem; }

.theme-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
.theme-toggle:hover { border-color: var(--primary); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    cursor: pointer;
}
.nav-burger span {
    display: block;
    width: 18px;
    height: 2px;
    margin-inline: auto;
    background: var(--text);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: none;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: .5rem clamp(16px, 4vw, 32px) 1rem; }
.mobile-nav a {
    display: block;
    padding: .85rem .4rem;
    color: var(--text);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}
.mobile-nav li:last-child a { border-bottom: none; }

/* --------------------------------------------------------------- Hero ----- */
.hero {
    position: relative;
    padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 55% at 78% 8%, rgba(226, 48, 72, .16), transparent 60%),
        radial-gradient(45% 45% at 8% 20%, rgba(139, 20, 32, .12), transparent 60%);
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 75%);
    opacity: .5;
}
.hero-inner { max-width: 880px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .86rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: .4rem .85rem;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 0 rgba(200, 30, 58, .55);
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(200, 30, 58, .5); }
    70% { box-shadow: 0 0 0 10px rgba(200, 30, 58, 0); }
    100% { box-shadow: 0 0 0 0 rgba(200, 30, 58, 0); }
}

.hero h1 { margin: 1.1rem 0 .3rem; }
.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub {
    font-size: clamp(1.05rem, 1.8vw, 1.28rem);
    color: var(--text-muted);
    max-width: 680px;
    margin-top: 1rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 3rem 0 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.hero-stats div { margin: 0; }
.hero-stats dt {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 700;
    color: var(--text);
}
.hero-stats dd { margin: .15rem 0 0; font-size: .92rem; color: var(--text-muted); }

/* ----------------------------------------------------------- Tech strip --- */
.techstrip {
    border-block: 1px solid var(--border);
    background: var(--surface-2);
    overflow: hidden;
    padding: .9rem 0;
}
.techstrip-track {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    width: max-content;
    animation: marquee 34s linear infinite;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .98rem;
    letter-spacing: .01em;
}
.techstrip:hover .techstrip-track { animation-play-state: paused; }
.techstrip-track i { color: var(--primary); font-style: normal; }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------- Sections - */
.section { padding: var(--space) 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin: 0 auto clamp(2.2rem, 4vw, 3.2rem); text-align: center; }
.kicker, .eyebrow.kicker {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 .6rem;
}
.section-lead { color: var(--text-muted); font-size: 1.08rem; margin-top: .4rem; }

.grid { display: grid; gap: 1.25rem; }

/* --------------------------------------------------------------- Cards ---- */
.cards { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--text-muted); margin: 0; font-size: .98rem; }
.card-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 1rem;
    color: var(--primary);
    background: var(--primary-soft);
}
:root[data-theme="dark"] .card-icon { background: color-mix(in srgb, var(--primary) 16%, transparent); }
.card-accent {
    border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        var(--grad) border-box;
    border: 1px solid transparent;
}
.card-accent .card-icon { color: #fff; background: var(--grad); }

/* ----------------------------------------------------------- Technology --- */
.tech-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: start; }
.tech-feature {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.tech-feature::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--grad);
}
.tag {
    display: inline-block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-soft);
    padding: .3rem .7rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
:root[data-theme="dark"] .tag { background: color-mix(in srgb, var(--primary) 16%, transparent); }
.tech-feature p { color: var(--text-muted); }

.checklist { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .6rem; }
.checklist li {
    position: relative;
    padding-left: 1.9rem;
    color: var(--text);
    font-size: .98rem;
}
.checklist li::before {
    content: "";
    position: absolute;
    left: 0; top: 2px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--grad);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5 10 17l9-10'/%3E%3C/svg%3E") center / 72% no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5 10 17l9-10'/%3E%3C/svg%3E") center / 72% no-repeat;
}

.tech-stack { display: grid; gap: 1rem; }
.stack-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.3rem;
    transition: border-color .2s ease, transform .18s ease;
}
.stack-item:hover { border-color: var(--border-strong); transform: translateX(3px); }
.stack-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .35rem; }
.stack-top h4 { font-size: 1.1rem; margin: 0; }
.stack-item p { margin: 0; color: var(--text-muted); font-size: .95rem; }
.pill {
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: .22rem .6rem;
    border-radius: 999px;
    white-space: nowrap;
}
.pill-accent { color: #fff; background: var(--grad); border-color: transparent; }

/* --------------------------------------------------------------- Work ----- */
.work-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.work-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.work-top { margin-bottom: .9rem; }
.work-badge {
    display: inline-block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: .3rem .7rem;
    border-radius: 999px;
}
.badge-ai { color: #fff; background: var(--grad); border-color: transparent; }
.work-card h3 { margin-bottom: .5rem; }
.work-card > p { color: var(--text-muted); font-size: .97rem; }
.work-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: .4rem 0 1.1rem;
    padding: 0;
}
.work-tags li {
    font-size: .76rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: .2rem .55rem;
    border-radius: 7px;
}
.work-link { margin-top: auto; font-weight: 600; font-size: .95rem; }

/* --------------------------------------------------------------- Steps ---- */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    counter-reset: step;
}
.steps li {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    box-shadow: var(--shadow-sm);
}
.step-n {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-block;
    margin-bottom: .6rem;
    background: var(--primary-soft);
    width: 42px; height: 42px;
    line-height: 42px;
    text-align: center;
    border-radius: 11px;
}
:root[data-theme="dark"] .step-n { background: color-mix(in srgb, var(--primary) 16%, transparent); }
.steps h3 { margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--text-muted); font-size: .95rem; }

/* --------------------------------------------------------------- About ---- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.about-lead { font-size: 1.12rem; }
.about-grid p { color: var(--text-muted); }
.about-lead strong, .about-grid p strong { color: var(--text); }
.about-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.about-badges span {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: .4rem .8rem;
    border-radius: 999px;
}
.about-facts {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.7rem;
    box-shadow: var(--shadow-md);
}
.fact { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.fact:last-child { border-bottom: none; padding-bottom: 0; }
.fact:first-child { padding-top: 0; }
.fact dt { color: var(--text-muted); font-size: .9rem; }
.fact dd { margin: 0; font-weight: 600; text-align: right; }

/* --------------------------------------------------------------- Contact -- */
.section-contact {
    background:
        radial-gradient(60% 80% at 85% 10%, rgba(226, 48, 72, .12), transparent 60%),
        var(--bg-alt);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start; }
.contact-intro p { color: var(--text-muted); font-size: 1.06rem; }
.contact-details { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-details li { display: flex; align-items: center; gap: .9rem; color: var(--text); }
.contact-details a { color: var(--text); font-weight: 500; }
.contact-details a:hover { color: var(--primary); }
.ci {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    flex: none;
    border-radius: 11px;
    color: var(--primary);
    background: var(--primary-soft);
}
:root[data-theme="dark"] .ci { background: color-mix(in srgb, var(--primary) 16%, transparent); }

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .4rem; }
.field .opt { color: var(--text-muted); font-weight: 400; }
.field input,
.field textarea {
    width: 100%;
    font: inherit;
    font-size: .98rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: .75rem .9rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus { border-color: var(--primary); box-shadow: var(--ring); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:user-invalid { border-color: var(--primary); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .4rem; }
.form-status { margin: 0; font-size: .92rem; font-weight: 500; }
.form-status.ok { color: #1a8a4a; }
.form-status.err { color: var(--primary); }
:root[data-theme="dark"] .form-status.ok { color: #46d586; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* Blazor form validation */
.field input.invalid,
.field textarea.invalid { border-color: var(--primary); }
.validation-message { color: var(--primary); font-size: .85rem; margin-top: .35rem; }

/* --------------------------------------------------------------- Footer --- */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding-top: clamp(2.5rem, 5vw, 4rem);
}
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand .brand { margin-bottom: .8rem; }
.footer-brand p { color: var(--text-muted); font-size: .95rem; max-width: 320px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-links h4 { color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; margin-bottom: .9rem; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-links a { color: var(--text); font-size: .94rem; }
.footer-links a:hover { color: var(--primary); }
.footer-links li { color: var(--text-muted); font-size: .94rem; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    padding-block: 1.3rem;
    border-top: 1px solid var(--border);
}
.footer-bottom p { margin: 0; color: var(--text-muted); font-size: .88rem; }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--primary); }

/* --------------------------------------------------------- Reveal anim ---- */
/* Content is visible by default; only hidden-for-reveal when JS set .js-reveal. */
.js-reveal .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
    will-change: opacity, transform;
}
.reveal.is-visible,
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------- Responsive ----- */
@media (max-width: 960px) {
    .tech-layout { grid-template-columns: 1fr; }
    .tech-feature { position: static; }
    .about-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 820px) {
    .primary-nav { display: none; }
    .nav-cta { display: none; }
    .nav-burger { display: flex; }
    .nav { gap: .5rem; }
    .brand { margin-right: auto; }
}

@media (max-width: 680px) {
    body { font-size: 16px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
    .field-row { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr 1fr; }
    .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 420px) {
    .footer-links { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------- Preferences ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .js-reveal .reveal { opacity: 1; transform: none; }
}

@media print {
    .site-header, .techstrip, .nav-actions, .hero-cta, .contact-form, .theme-toggle { display: none !important; }
    body { color: #000; background: #fff; }
}
