/* ============================================
   GridGhost.Dev — Professional Portfolio
   ============================================ */

:root {
    /* Dark palette with vibrant accent */
    --slate-50:  #f8fafc;
    --slate-100: #e2e8f0;
    --slate-200: rgba(255,255,255,.08);
    --slate-300: rgba(255,255,255,.14);
    --slate-400: #94a3b8;
    --slate-500: #a8b2d1;
    --slate-600: #ccd6f6;
    --slate-700: #e2e8f0;
    --slate-800: #111118;
    --slate-900: #fafafa;
    --slate-950: #09090b;

    --surface-0: #09090b;
    --surface-1: #111118;
    --surface-2: #19191f;
    --surface-3: #222228;

    --border: rgba(255,255,255,.08);
    --border-hover: rgba(255,255,255,.15);

    --accent:       #bd93f9;
    --accent-hover:  #a77eda;
    --accent-muted:  #d4b5ff;
    --accent-subtle: rgba(189,147,249,.12);
    
    --accent-2:     #bd93f9;
    --accent-2-hover: #a77eda;
    --accent-2-subtle: rgba(189,147,249,.12);

    --white: #fafafa;

    /* Typography */
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-mono:    'Space Mono', 'Fira Code', monospace;

    /* Layout */
    --container: 1600px;
    --gutter: 2rem;
    --section-py: 7rem;

    /* Shadows — more pronounced on dark */
    --shadow-xs:  0 1px 2px rgb(0 0 0 / .3);
    --shadow-sm:  0 2px 4px rgb(0 0 0 / .3);
    --shadow-md:  0 4px 12px rgb(0 0 0 / .4);
    --shadow-lg:  0 8px 24px rgb(0 0 0 / .5);
    --shadow-xl:  0 16px 48px rgb(0 0 0 / .6);

    /* Radii */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 20px;
    --r-full: 9999px;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--white);
    background: var(--surface-0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---- Section primitives ---- */
.text-accent { color: var(--accent); }
.text-gradient {
    background: linear-gradient(135deg, var(--white) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: var(--section-py) 0;
    background: 
        radial-gradient(ellipse 80% 40% at 50% 0%, rgba(189,147,249,.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 30% at 50% 100%, rgba(189,147,249,.04) 0%, transparent 60%),
        var(--surface-1);
    position: relative;
    border-top: 1px solid var(--border);
}
.section:not(.section-alt):not(.section-contact)::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
}
.section-alt {
    background: 
        radial-gradient(ellipse 80% 40% at 50% 0%, rgba(189,147,249,.09) 0%, transparent 60%),
        radial-gradient(ellipse 60% 30% at 50% 100%, rgba(189,147,249,.05) 0%, transparent 60%),
        var(--surface-0);
    position: relative;
    border-top: 1px solid rgba(189,147,249,.12);
}
.section-alt::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}
.section > .container,
.section-alt > .container {
    position: relative;
    z-index: 1;
}

.section-intro {
    max-width: 1000px;
    margin-bottom: 4rem;
}
.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.section-description {
    font-size: 1.125rem;
    color: var(--white);
    line-height: 1.75;
}

/* ==========================
   Lucide icon helpers
   ========================== */
.icon-inline { width: 18px; height: 18px; flex-shrink: 0; }
.icon-sm     { width: 16px; height: 16px; flex-shrink: 0; }
.icon-check  { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.icon-check-accent { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* ==========================
   Buttons
   ========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--r-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--surface-0);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}
.btn-accent::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
    opacity: 0;
    transition: opacity .3s ease;
}
.btn-accent:hover::before {
    opacity: 1;
}
.btn-accent:hover {
    box-shadow: 0 4px 24px rgba(189,147,249,.4);
    transform: translateY(-1px);
}
.btn-accent span,
.btn-accent i {
    position: relative;
    z-index: 1;
}
.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,.35);
}
.btn-ghost:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.6);
}
.btn-full {
    width: 100%;
    justify-content: center;
}

/* ==========================
   Navbar
   ========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,.05);
    border-radius: 0;
    transform: translateY(0) scale(1);
    transform-origin: top center;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: none;
}
.navbar.scrolled {
    background: rgba(17,17,24,.85);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 2rem;
    transform: translateY(1rem) scale(1.02);
    width: calc(100% - 2.5rem);
    margin: 0 1.25rem;
    box-shadow: 
        0 20px 60px rgba(0,0,0,.5),
        0 0 0 1px rgba(255,255,255,.04) inset,
        0 0 100px -30px rgba(189,147,249,.2);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    padding: 0 1rem 0 2rem;
    max-width: none;
}

.hero-clients-label {
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray);
    margin-bottom: 1rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex: 1;
}
.logo-image {
    height: 48px;
    width: auto;
    object-fit: contain;
}
.logo-mark { color: var(--accent); flex-shrink: 0; }
.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--white);
    letter-spacing: -0.02em;
}
.logo-dot { color: var(--accent); }

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.nav-cta-wrap {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
.nav-links > a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    transition: color .2s ease;
    letter-spacing: 0.01em;
}
.nav-links > a:hover { color: var(--accent); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1.125rem;
    background: transparent;
    color: var(--white) !important;
    border: 1.5px solid var(--white);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all .3s ease;
}
.nav-cta:hover {
    background: var(--white);
    color: var(--surface-0) !important;
    box-shadow: 0 4px 20px rgba(255,255,255,.3);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    padding: 0.5rem;
    flex-shrink: 0;
}
.nav-cta-mobile {
    display: none !important;
}

/* ==========================
   Hero
   ========================== */
.hero {
    position: relative;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-1);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.4;
    filter: brightness(0.6) contrast(1.1);
}
/* Hero background image */
.hero-bg-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&q=80') center/cover no-repeat;
    opacity: 0.08;
}

/* Hero video background */
.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.hero-video-reversed {
    opacity: 0;
}

/* Hero background — bold animated gradient */
.hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(139,92,246,0.5) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 70% 10%, rgba(189,147,249,0.4) 0%, transparent 50%),
        radial-gradient(ellipse 50% 60% at 25% 15%, rgba(124,58,237,0.3) 0%, transparent 50%);
    animation: hero-gradient-shift 10s ease-in-out infinite alternate;
}
@keyframes hero-gradient-shift {
    0% {
        background: 
            radial-gradient(ellipse 80% 50% at 50% 0%, rgba(139,92,246,0.5) 0%, transparent 60%),
            radial-gradient(ellipse 60% 40% at 70% 10%, rgba(189,147,249,0.4) 0%, transparent 50%),
            radial-gradient(ellipse 50% 60% at 25% 15%, rgba(124,58,237,0.3) 0%, transparent 50%);
    }
    50% {
        background: 
            radial-gradient(ellipse 70% 55% at 40% 5%, rgba(167,139,250,0.5) 0%, transparent 60%),
            radial-gradient(ellipse 50% 50% at 80% 20%, rgba(139,92,246,0.35) 0%, transparent 50%),
            radial-gradient(ellipse 60% 40% at 15% 10%, rgba(189,147,249,0.4) 0%, transparent 50%);
    }
    100% {
        background: 
            radial-gradient(ellipse 90% 45% at 55% 0%, rgba(124,58,237,0.45) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 60% 15%, rgba(189,147,249,0.45) 0%, transparent 50%),
            radial-gradient(ellipse 45% 55% at 35% 20%, rgba(139,92,246,0.35) 0%, transparent 50%);
    }
}

/* Hero dot grid */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 90%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 90%);
}

/* Hero floating particles */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}
.particle {
    position: absolute;
    bottom: -5%;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(189,147,249,0.4);
    animation: particle-rise linear infinite;
    opacity: 0;
}
@keyframes particle-rise {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}
.particle:nth-child(1)  { left: 5%;  animation-duration: 18s; animation-delay: 0s; width: 2px; height: 2px; }
.particle:nth-child(2)  { left: 12%; animation-duration: 22s; animation-delay: 2s; width: 3px; height: 3px; background: rgba(167,139,250,0.3); }
.particle:nth-child(3)  { left: 20%; animation-duration: 15s; animation-delay: 4s; width: 2px; height: 2px; }
.particle:nth-child(4)  { left: 28%; animation-duration: 25s; animation-delay: 1s; width: 1px; height: 1px; background: rgba(255,255,255,0.2); }
.particle:nth-child(5)  { left: 35%; animation-duration: 20s; animation-delay: 6s; width: 2px; height: 2px; }
.particle:nth-child(6)  { left: 42%; animation-duration: 17s; animation-delay: 3s; width: 3px; height: 3px; background: rgba(167,139,250,0.35); }
.particle:nth-child(7)  { left: 50%; animation-duration: 23s; animation-delay: 5s; width: 2px; height: 2px; }
.particle:nth-child(8)  { left: 55%; animation-duration: 19s; animation-delay: 0.5s; width: 1px; height: 1px; background: rgba(255,255,255,0.15); }
.particle:nth-child(9)  { left: 62%; animation-duration: 16s; animation-delay: 7s; width: 2px; height: 2px; }
.particle:nth-child(10) { left: 68%; animation-duration: 21s; animation-delay: 2.5s; width: 3px; height: 3px; background: rgba(189,147,249,0.3); }
.particle:nth-child(11) { left: 75%; animation-duration: 24s; animation-delay: 4.5s; width: 2px; height: 2px; }
.particle:nth-child(12) { left: 82%; animation-duration: 18s; animation-delay: 1.5s; width: 1px; height: 1px; background: rgba(255,255,255,0.2); }
.particle:nth-child(13) { left: 88%; animation-duration: 20s; animation-delay: 6.5s; width: 2px; height: 2px; }
.particle:nth-child(14) { left: 93%; animation-duration: 16s; animation-delay: 3.5s; width: 2px; height: 2px; background: rgba(167,139,250,0.3); }
.particle:nth-child(15) { left: 8%;  animation-duration: 26s; animation-delay: 8s; width: 1px; height: 1px; background: rgba(255,255,255,0.15); }
.particle:nth-child(16) { left: 32%; animation-duration: 19s; animation-delay: 5.5s; width: 2px; height: 2px; }
.particle:nth-child(17) { left: 47%; animation-duration: 22s; animation-delay: 9s; width: 3px; height: 3px; background: rgba(189,147,249,0.25); }
.particle:nth-child(18) { left: 58%; animation-duration: 17s; animation-delay: 7.5s; width: 1px; height: 1px; background: rgba(255,255,255,0.2); }
.particle:nth-child(19) { left: 72%; animation-duration: 21s; animation-delay: 10s; width: 2px; height: 2px; }
.particle:nth-child(20) { left: 85%; animation-duration: 15s; animation-delay: 0.5s; width: 2px; height: 2px; background: rgba(167,139,250,0.35); }

/* Hero bottom fade */
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    z-index: 2;
    background: linear-gradient(to bottom, transparent, var(--surface-1));
    pointer-events: none;
}

/* Side navigation */
.side-nav {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.side-nav-trail {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: rgba(189,147,249,0.12);
    transform: translateX(-50%);
    z-index: -1;
}
.side-nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(189,147,249,0.3);
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
}
.side-nav-dot:hover,
.side-nav-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(189,147,249,0.4);
}
.side-nav-dot span {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease, color 0.2s ease;
    pointer-events: none;
}
.side-nav-dot:hover span,
.side-nav-dot.active span {
    opacity: 1;
    color: var(--accent);
}

/* Section trail line */
.section-trail {
    position: fixed;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 20px;
    z-index: 99;
    pointer-events: none;
    display: none;
}
.trail-line {
    width: 100%;
    height: 100%;
}
.hero-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: center;
}
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}
.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 3rem;
}
.hero-location {
    color: var(--accent);
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 0.9;
    color: var(--white);
    margin-bottom: 2rem;
    letter-spacing: -0.05em;
}
.hero-title em {
    font-style: italic;
    color: var(--accent);
    display: inline-block;
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--white);
    max-width: 900px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat-value {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-tech {
    margin-top: 2rem;
}

.hero-tech-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.hero-tech-icons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-tech-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-tech-icon:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* ==========================
   Stats Bar
   ========================== */
.stats-bar {
    padding: 3rem 0;
    background: var(--surface-0);
    border-bottom: 1px solid var(--border);
}
.stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.clients-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
    min-width: 100%;
    animation: ticker 50s linear infinite;
    will-change: transform;
}

@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65px;
    opacity: 0.4;
    transition: opacity 0.2s ease, transform 0.2s ease;
    filter: brightness(0) invert(1);
}

.client-logo-no-filter {
    filter: none;
}

.client-logo:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.client-logo img {
    height: 100%;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.stat-number {
    font-family: var(--font-mono);
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.02em;
}
.stat-text {
    font-size: 0.8125rem;
    color: var(--white);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tech logos (inside stats bar) */
.tech-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.tech-logo {
    color: rgba(255,255,255,.2);
    transition: color 0.2s ease;
    font-size: 1.35rem;
}
.tech-logo:hover {
    color: var(--accent);
}

/* ==========================
   Pillars (Why section)
   ========================== */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.pillar {
    padding: 2rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: box-shadow .25s ease, border-color .25s ease;
}
.pillar:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}
.pillar-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-2-subtle);
    border-radius: 8px;
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 1.5rem;
}
.pillar-icon svg { width: 28px; height: 28px; }
.pillar h3 {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.625rem;
}
.pillar p {
    font-size: 0.9375rem;
    color: var(--white);
    line-height: 1.7;
}

/* ==========================
   Services
   ========================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.service-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: box-shadow .3s ease, transform .3s ease;
}
.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--border-hover);
}
.service-img-wrap {
    aspect-ratio: 16 / 7;
    overflow: hidden;
}
.service-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.service-card:hover .service-img-wrap img {
    transform: scale(1.04);
}
.service-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-2-subtle);
    border-radius: 8px;
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 1.5rem;
}
.service-icon svg { width: 24px; height: 24px; }
.service-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.625rem;
}
.service-body > p {
    font-size: 0.9375rem;
    color: var(--white);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/* Check list */
.check-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-top: auto;
}
.check-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white);
}

/* ==========================
   Case Studies
   ========================== */
#work > .container {
    max-width: 1720px;
}
.case-studies {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}
.case-study {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
.case-study-reverse {
    direction: rtl;
}
.case-study-reverse > * {
    direction: ltr;
}
.case-study-media {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transition: box-shadow .3s ease, transform .3s ease;
}
.case-study-media:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}
.case-study-media img {
    width: 100%;
    height: auto;
    display: block;
}
.case-study-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 2;
}
.case-study-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(8px);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--r-full);
}
.case-study-content h3 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.case-study-content > p {
    font-size: 1rem;
    color: var(--white);
    line-height: 1.75;
    margin-bottom: 2rem;
}
.case-study-metrics {
    display: flex;
    gap: 2.5rem;
}
.metric { display: flex; flex-direction: column; }
.metric-value {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.metric-label {
    font-size: 0.75rem;
    color: var(--white);
    margin-top: 0.25rem;
    font-weight: 500;
    opacity: 0.8;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ==========================
   Testimonial
   ========================== */
.section-testimonial {
    padding: 6rem 0;
    background: var(--surface-0);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.section-testimonial::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}
.stats-bar {
    background: var(--surface-1);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    overflow: hidden;
    width: 100%;
}
.ticker-track {
    display: flex;
    width: 100%;
    overflow: hidden;
}
.section-testimonial::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(189,147,249,.08), transparent);
    pointer-events: none;
}
.testimonial-card {
    display: flex;
    gap: 3rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 3rem;
    text-align: left;
    flex-direction: column;
}
.testimonial-left { flex-shrink: 0; }
.testimonial-icon {
    width: 56px;
    height: 56px;
    color: var(--accent);
    opacity: .5;
}
.testimonial-right blockquote p {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
    color: var(--white);
    margin-bottom: 2rem;
    text-align: center;
}
.testimonial-attribution {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    justify-content: flex-start;
    margin: 0 auto;
    width: fit-content;
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--white);
}
.testimonial-avatar svg { width: 20px; height: 20px; }
.testimonial-attribution strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--white);
}
.testimonial-attribution span {
    font-size: 0.8125rem;
    color: var(--white);
}

/* ==========================
   Process Timeline
   ========================== */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.process-step {
    position: relative;
    padding: 0 1.5rem;
}
.process-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}
.process-num {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: var(--surface-0);
    position: relative;
    z-index: 2;
}
.process-line {
    position: absolute;
    top: 22px;
    left: calc(50% + 22px);
    right: calc(-100% + 50% - 22px);
    height: 2px;
    background: var(--border);
    z-index: 1;
}
.process-step:last-child .process-line { display: none; }

.pillar-icon,
.service-icon,
.location-icon,
.process-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: var(--r-md);
    color: var(--accent);
}
.process-icon {
    margin: 0 auto 1rem;
}
.process-icon svg { width: 20px; height: 20px; }
.process-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.625rem;
}
.process-content p {
    font-size: 0.9375rem;
    color: var(--white);
    line-height: 1.7;
}

/* ==========================
   Locations
   ========================== */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.location-card {
    padding: 2rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}
.location-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: var(--r-sm);
    color: var(--accent);
}
.location-icon svg { width: 20px; height: 20px; }
.location-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--white);
}
.location-card p {
    font-size: 0.9375rem;
    color: var(--white);
    line-height: 1.6;
}
.location-card-cta {
    border-color: rgba(189,147,249,.25);
    background: rgba(189,147,249,.04);
}

/* ==========================
   FAQ
   ========================== */
.faq-list,
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.faq-item {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0 1.5rem;
    transition: border-color .2s ease;
}
.faq-item[open] {
    border-color: rgba(189,147,249,.25);
}
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    list-style: none;
    transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
    display: inline-block;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-item summary:hover { color: var(--accent); }
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
    overflow: hidden;
}
.faq-item[open] .faq-answer {
    grid-template-rows: 1fr;
}
.faq-answer > * {
    overflow: hidden;
    padding-bottom: 1.5rem;
}
.faq-answer p {
    font-size: 1rem;
    color: var(--white);
    line-height: 1.75;
}
.faq-answer a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.faq-answer a:hover { color: var(--accent-muted); }

/* ==========================
   Tech Stack Box
   ========================== */
.tech-stack-box {
    position: relative;
    margin-top: 4rem;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--surface-1);
    border: 1px solid var(--border);
}

.tech-stack-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=1400&q=80&auto=format');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.tech-stack-content {
    position: relative;
    padding: 4rem;
    text-align: center;
}

.tech-stack-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.tech-stack-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tech-stack-icons {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tech-stack-icon {
    font-size: 2.5rem;
    color: var(--white);
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tech-stack-icon:hover {
    opacity: 1;
    transform: translateY(-4px);
}

/* ==========================
   CTA Banner
   ========================== */
.cta-banner {
    padding: 6rem 0;
    background:
        radial-gradient(ellipse 100% 160% at 50% 120%, rgba(189,147,249,.22) 0%, transparent 55%),
        radial-gradient(ellipse 60% 80% at 20% 50%, rgba(189,147,249,.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 80% 50%, rgba(189,147,249,.08) 0%, transparent 50%),
        var(--surface-0);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(189,147,249,.25);
    box-shadow: inset 0 1px 0 rgba(189,147,249,.15);
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}
.cta-banner::after {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(189,147,249,.18) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: cta-pulse 4s ease-in-out infinite alternate;
}
@keyframes cta-pulse {
    from { opacity: .6; transform: translateX(-50%) scale(1); }
    to   { opacity: 1;  transform: translateX(-50%) scale(1.12); }
}
.cta-banner-inner {
    position: relative;
    z-index: 1;
}
.cta-banner h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.cta-banner p {
    font-size: 1.125rem;
    color: rgba(255,255,255,.7);
    max-width: 540px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
}
.cta-banner-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================
   Contact
   ========================== */
.section-contact {
    background: var(--surface-0);
    position: relative;
}
.section-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}
.section-contact > .container {
    position: relative;
    z-index: 1;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 4rem;
    align-items: start;
}
.contact-title {
    margin-bottom: 1.25rem !important;
}
.contact-description {
    font-size: 1.0625rem;
    color: var(--white);
    line-height: 1.75;
    margin-bottom: 2.5rem;
}
.value-props {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.value-props li {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}
.value-props li strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--white);
}
.value-props li span {
    font-size: 0.875rem;
    color: var(--white);
    line-height: 1.55;
}

/* Contact form */
.contact-form-card {
    background: var(--surface-2);
    padding: 2.5rem;
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.form-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.01em;
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--white);
    background: var(--surface-0);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,.25);
}
.form-group select {
    color: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(189,147,249,.15);
    color: var(--white);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--white);
    margin-top: 0.25rem;
}

/* ==========================
   Footer
   ========================== */
.footer {
    background: var(--surface-0);
    color: var(--white);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}
.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}
.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: rgba(255,255,255,.65);
    line-height: 1.6;
}
.footer-locations {
    font-size: 0.875rem !important;
    color: rgba(255,255,255,.45) !important;
}
.footer-locations a {
    color: var(--accent);
    text-decoration: none;
}
.footer-locations a:hover { text-decoration: underline; }
.logo-footer { margin-bottom: 0.5rem; }
.logo-footer .logo-image {
    height: 32px;
    width: auto;
    object-fit: contain;
}
.logo-footer .logo-mark { color: var(--white); }
.logo-footer .logo-text { color: var(--white); }

.footer-nav {
    display: flex;
    gap: 4rem;
    justify-content: flex-end;
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,.4);
    margin-bottom: 0.25rem;
}
.footer-col a {
    font-size: 0.9375rem;
    color: rgba(255,255,255,.4);
    transition: color .15s ease;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
}
.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--white);
}
.footer-legal { color: rgba(255,255,255,.3); }

/* ==========================
   Page Hero (subpages)
   ========================== */
.page-hero {
    padding: 10rem 0 4rem;
    text-align: center;
    background: var(--surface-0);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.07;
    pointer-events: none;
}
.page-hero .hero-gradient {
    opacity: 0.5;
}
.page-hero .hero-grid-bg {
    opacity: 0.5;
}
.page-hero .container {
    position: relative;
    z-index: 1;
}
.page-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin: 1rem 0 1.5rem;
}
.page-hero-subtitle {
    font-size: 1.125rem;
    color: var(--white);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================
   Services page hero
   ========================== */
.svc-hero {
    text-align: center;
    padding: 10rem 0 5rem;
}
.svc-hero .container {
    max-width: var(--max-w);
    position: relative;
    z-index: 2;
}
.svc-hero-bg,
.about-hero-bg,
.work-hero-bg,
.clients-hero-bg,
.blog-hero-bg,
.faq-hero-bg,
.estimate-hero-bg,
.service-areas-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.45;
    pointer-events: none;
}
.svc-hero-bg {
    background-image: url('images/image.png');
}
.about-hero-bg {
    background-image: url('images/7fc4ffa2-174c-4bb4-b943-2425d6b7f526.png');
}
.work-hero-bg {
    background-image: url('images/hero-work.png');
}
.clients-hero-bg {
    background-image: url('images/hero-clients.png');
}
.blog-hero-bg {
    background-image: url('images/hero-blog.png');
}
.faq-hero-bg {
    background-image: url('images/hero-faq.png');
}
.estimate-hero-bg {
    background-image: url('images/hero-estimate.png');
}
.service-areas-hero-bg {
    background-image: url('images/hero-service-areas.png');
}
.svc-hero .hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.svc-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(9,9,11,.55) 0%,
        rgba(9,9,11,.5) 60%,
        rgba(9,9,11,.82) 100%
    );
    pointer-events: none;
}
.svc-hero-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.svc-hero-subtitle {
    text-align: center;
    margin: 0 auto 2rem;
    max-width: 40rem;
}
.svc-hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================
   About page layout
   ========================== */
.about-headshot-wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.about-headshot-img-wrap {
    position: relative;
    flex-shrink: 0;
}
.about-headshot {
    width: 220px;
    height: 220px;
    object-fit: cover;
    object-position: top;
    border-radius: 1rem;
    border: 2px solid rgba(189,147,249,.25);
    display: block;
}
.about-headshot-label {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    transform: rotate(-3deg);
    text-shadow: 0 1px 6px rgba(0,0,0,.6);
    pointer-events: none;
    line-height: 1;
}
.about-headshot-greeting {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.about-greeting-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
}
.about-greeting-title {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.02em;
}
.about-greeting-location {
    font-size: 0.875rem;
    color: rgba(255,255,255,.5);
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.about-greeting-facts {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.about-greeting-facts li {
    font-size: 0.875rem;
    color: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.about-greeting-facts .icon-inline {
    color: var(--accent);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.greeting-text {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.about-headshot-greeting p {
    font-size: 0.9375rem;
    color: rgba(255,255,255,.65);
    line-height: 1.5;
    margin: 0;
}
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}
.about-text p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--white);
    margin-bottom: 1.5rem;
}
.about-text p:first-of-type {
    color: var(--white);
}
.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.highlight-card {
    padding: 1.5rem;
    background: var(--surface-1);
    border: 1px solid var(--border);
    transition: border-color .2s ease, transform .2s ease;
}
.highlight-card:hover {
    border-color: rgba(189,147,249,.3);
    transform: translateY(-2px);
    border-radius: 0.75rem;
}
.highlight-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(189,147,249,.1);
    color: var(--accent);
    margin-bottom: 1rem;
}
.highlight-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}
.highlight-card p {
    font-size: 0.9375rem;
    color: var(--white);
    line-height: 1.6;
}
.about-lead {
    font-size: 1.1875rem;
    line-height: 1.8;
    color: var(--white);
    border-left: 3px solid var(--accent);
    padding-left: 1.25rem;
    margin-bottom: 2rem !important;
}
.about-subheading {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 2rem 0 1rem;
}
.about-values-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.about-values-list li {
    font-size: 0.9375rem;
    color: var(--white);
    line-height: 1.6;
    padding: 0.875rem 1rem 0.875rem 1.25rem;
    border-left: 2px solid rgba(189,147,249,.3);
    background: rgba(189,147,249,.03);
    border-radius: 0 0.5rem 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transition: border-color .2s ease;
}
.about-values-list li:hover {
    border-left-color: var(--accent);
}
.about-values-list li strong {
    color: var(--white);
    font-size: 1rem;
}
.about-values-list li span {
    color: rgba(255,255,255,.6);
    font-size: 0.875rem;
}

/* ==========================
   Skills grid
   ========================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.skill-group {
    padding: 1.5rem;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
}
.skill-group h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.skill-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--white);
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 2rem;
    transition: all .15s ease;
}
.skill-tag:hover {
    color: var(--accent);
    border-color: rgba(189,147,249,.3);
    background: rgba(189,147,249,.06);
}

/* About stats bar */
.about-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 2rem 0;
}
.about-stat {
    text-align: center;
}
.about-stat-value {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 2.25rem;
    text-shadow: 0 0 20px rgba(189,147,249,.4);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.about-stat-label {
    font-size: 0.8125rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .skills-grid { grid-template-columns: 1fr; }
    .about-stats { flex-wrap: wrap; gap: 2rem; }
    .about-stat { flex: 1 1 40%; }
}

/* ==========================
   Services detail page
   ========================== */
.services-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.legal-page-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.locations-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.service-detail-block {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    padding: 3rem;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 1rem;
}
.service-detail-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgba(189,147,249,.08);
}
.service-detail-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}
.service-detail-content > p {
    font-size: 1.0625rem;
    color: var(--white);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 40rem;
}
.service-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.service-feature {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: var(--white);
}
.service-feature .icon-check {
    width: 1rem;
    height: 1rem;
    color: var(--accent);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .service-detail-block { grid-template-columns: 1fr; padding: 2rem; }
    .service-features { grid-template-columns: 1fr; }
}

/* ==========================
   Service cards (rebuilt services page)
   ========================== */
.svc-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.svc-card:hover {
    border-color: rgba(189,147,249,.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.svc-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.svc-card-icon {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(189,147,249,.1);
    border-radius: 0.75rem;
    color: var(--accent);
    font-size: 1.25rem;
}
.svc-card-icon svg { width: 1.25rem; height: 1.25rem; }
.svc-card-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.2rem;
}
.svc-card-sub {
    font-size: 0.8125rem;
    color: var(--accent);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}
.svc-card-desc {
    font-size: 0.9375rem;
    color: rgba(255,255,255,.7);
    line-height: 1.7;
}
.svc-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}
.svc-list li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--white);
}
.svc-list .icon-check {
    width: 0.9rem;
    height: 0.9rem;
    color: var(--accent);
    flex-shrink: 0;
}
.svc-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    transition: gap .2s ease, color .2s ease;
}
.svc-card-cta:hover { gap: 0.625rem; color: var(--accent-muted); }
.svc-card-cta svg { width: 0.875rem; height: 0.875rem; }

.svc-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.svc-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (max-width: 1024px) {
    .svc-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .svc-grid-3 { grid-template-columns: 1fr; }
    .svc-grid-2 { grid-template-columns: 1fr; }
    .svc-card { padding: 1.5rem; }
}

/* ==========================
   Work page — project grid
   ========================== */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.work-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.work-card:hover {
    border-color: rgba(189,147,249,.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.work-card-media {
    position: relative;
    overflow: hidden;
    background: var(--surface-0);
}
.work-card-media img {
    width: 100%;
    display: block;
    transition: transform .3s ease;
}
.work-card:hover .work-card-media img {
    transform: scale(1.03);
}
.work-card-overlay {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
}
.work-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}
.work-card-body h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
    letter-spacing: -0.01em;
}
.work-card-body p {
    font-size: 0.9375rem;
    color: var(--white);
    line-height: 1.6;
    flex: 1;
    opacity: 0.9;
}
.work-card-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--white);
    flex-wrap: wrap;
}
.work-card-meta span {
    padding: 0.375rem 0.875rem;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.work-card-metrics {
    display: flex;
    gap: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.work-card-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.01em;
}

@media (max-width: 768px) {
    .work-grid { grid-template-columns: 1fr; }
}

/* ==========================
   Blog page
   ========================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.service-card-full {
    grid-column: 1 / -1;
}

.tech-stack-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    justify-content: center;
    align-items: center;
}

.tech-stack-icon {
    font-size: 1.3rem;
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 0.4rem;
}

.tech-stack-icon:hover {
    opacity: 1;
    transform: translateY(-2px);
}
.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}
.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-card-content {
    padding: 1.5rem;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.blog-card-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
}
.blog-card-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.blog-card-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}
.blog-card-title a:hover {
    color: var(--accent);
}
.blog-card-excerpt {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}
.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}
.blog-card-link:hover {
    color: var(--text);
}
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* Article page styles */
.article-hero {
    padding: 6rem 0;
    position: relative;
}
.article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
    z-index: 10;
    position: relative;
    font-weight: 500;
}
.article-back:hover {
    color: var(--accent);
}
.article-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 1rem;
    z-index: 10;
    position: relative;
}
.article-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    z-index: 10;
    position: relative;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #ffffff;
    font-size: 0.875rem;
    z-index: 10;
    position: relative;
    font-weight: 400;
}
.article-content {
    padding: 4rem 0;
}
.article-content-inner {
    max-width: 800px;
    margin: 0 auto;
}
.article-intro {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    color: var(--text-muted);
}
.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}
.article-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.article-content p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.article-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}
.article-content pre {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}
.article-content code {
    font-family: 'Space Mono', monospace;
    font-size: 0.875rem;
}
.article-conclusion {
    margin-top: 4rem;
    padding: 2rem;
    background: var(--card-bg);
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
}

/* ==========================
   Case study detail page
   ========================== */
.cs-hero {
    padding: 10rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--surface-0);
    border-bottom: 1px solid var(--border);
}
.cs-hero .hero-gradient { opacity: 0.5; }
.cs-hero .hero-grid-bg { opacity: 0.5; }
.cs-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    opacity: 0.06;
    pointer-events: none;
}
.cs-hero .container {
    position: relative;
    z-index: 1;
}
.cs-back {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color .15s ease;
}
.cs-back:hover { color: var(--accent); }
.cs-hero-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.8125rem;
    color: var(--white);
    margin-bottom: 1rem;
}
.cs-hero-meta strong {
    color: var(--white);
    font-weight: 600;
}

/* Metrics bar */
.cs-metrics-bar {
    background: var(--surface-1);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}
.cs-metrics {
    display: flex;
    justify-content: center;
    gap: 4rem;
}
.cs-metric {
    text-align: center;
}
.cs-metric-value {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.375rem;
}
.cs-metric-label {
    font-size: 0.75rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

/* Two-column challenge/solution */
.cs-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.cs-col p {
    font-size: 1.0625rem;
    color: var(--white);
    line-height: 1.8;
    margin-top: 1rem;
}

/* Features list */
.cs-features {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.cs-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--white);
    line-height: 1.6;
    padding: 1rem 1.25rem;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}
.cs-features .icon-check {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* Screenshot */
.cs-screenshot {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 8px 40px rgba(0,0,0,.3);
}
.cs-screenshot img {
    width: 100%;
    display: block;
}

@media (max-width: 768px) {
    .cs-hero { padding: 8rem 0 3rem; }
    .cs-two-col { grid-template-columns: 1fr; gap: 2rem; }
    .cs-features { grid-template-columns: 1fr; }
    .cs-metrics { flex-wrap: wrap; gap: 2rem; }
    .cs-metric { flex: 1 1 40%; }
}

/* ==========================
   Estimate page
   ========================== */
.estimate-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
}
.estimate-form-wrap {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2.5rem;
}
.estimate-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
}
.form-group .required {
    color: var(--accent);
}
.form-group .optional {
    color: var(--white);
    font-weight: 400;
    font-size: 0.8125rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-family: 'Inter', sans-serif;
    color: var(--white);
    transition: border-color .15s ease, box-shadow .15s ease;
    outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--white);
    opacity: 0.6;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(189,147,249,.15);
}
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' 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 1rem center;
    padding-right: 2.5rem;
}
.form-group select option {
    background: var(--surface-0);
    color: var(--white);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
/* Form estimate summary */
.form-estimate-summary {
    background: rgba(189,147,249,.06);
    border: 1px solid rgba(189,147,249,.2);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 0.25rem;
}
.form-estimate-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.form-estimate-header svg {
    width: 1rem;
    height: 1rem;
    color: var(--accent);
}
.form-estimate-header strong {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}
.form-estimate-range {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.375rem;
}
.form-estimate-details {
    font-size: 0.8125rem;
    color: var(--white);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}
.form-estimate-edit {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.form-estimate-edit:hover {
    color: var(--white);
}

.btn-submit {
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
}

/* Sidebar */
.estimate-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 6rem;
}
.estimate-sidebar-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.75rem;
}
.estimate-sidebar-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.25rem;
}
.estimate-steps {
    list-style: none;
    padding: 0;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.estimate-steps li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.step-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: rgba(189,147,249,.1);
    border: 1px solid rgba(189,147,249,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.step-icon svg {
    width: 1rem;
    height: 1rem;
    color: var(--accent);
}
.estimate-steps li strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.125rem;
}
.estimate-steps li p {
    font-size: 0.8125rem;
    color: var(--white);
    line-height: 1.5;
}

/* Contact links */
.estimate-contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.estimate-contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1rem;
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    transition: border-color .15s ease, color .15s ease;
}
.estimate-contact-link:hover {
    border-color: rgba(189,147,249,.3);
    color: var(--accent);
}
.estimate-contact-link svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Trust items */
.estimate-sidebar-trust {
    padding: 1.25rem 1.75rem;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--white);
    padding: 0.5rem 0;
}
.trust-item svg {
    width: 0.875rem;
    height: 0.875rem;
    color: var(--accent);
    flex-shrink: 0;
}

/* Estimate calculator options (matches form inputs) */
.calc-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.calc-option {
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    color: var(--white);
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, color .15s ease, background .15s ease;
    outline: none;
}
.calc-option:hover {
    border-color: rgba(189,147,249,.3);
    color: var(--white);
}
.calc-option:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(189,147,249,.15);
}
.calc-option.active {
    background: var(--surface-0);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(189,147,249,.15);
    color: var(--accent);
    font-weight: 500;
}
.calc-result-card {
    border-color: rgba(189,147,249,.25);
    background: rgba(189,147,249,.04);
    text-align: center;
}
.calc-result-range {
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin: 1rem 0;
    line-height: 1.2;
}
.calc-result-note {
    font-size: 0.8125rem;
    color: var(--white);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}
.calc-result-badge {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
    font-size: 0.8125rem;
    line-height: 1.5;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}
.calc-result-badge strong {
    display: block;
    margin-bottom: 0.125rem;
}
.calc-result-badge .badge-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.calc-badge-friendly {
    background: rgba(52,211,153,.08);
    border: 1px solid rgba(52,211,153,.2);
    color: rgba(52,211,153,.9);
}
.calc-badge-friendly strong {
    color: #34d399;
}
.calc-badge-neutral {
    background: rgba(189,147,249,.08);
    border: 1px solid rgba(189,147,249,.2);
    color: var(--white);
}
.calc-badge-neutral strong {
    color: var(--accent);
}
@media (max-width: 1024px) {
    .estimate-layout { grid-template-columns: 1fr; }
    .estimate-sidebar { position: static; }
}
@media (max-width: 768px) {
    .estimate-form-wrap { padding: 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
}

/* Small button variant */
.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    margin-top: 1.5rem;
    display: inline-flex;
}

/* Case study meta (work page) */
.case-study-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.case-study-meta-item {
    font-size: 0.8125rem;
    color: var(--white);
}
.case-study-meta-item strong {
    color: var(--white);
    font-weight: 600;
}

/* Active nav link */
.nav-links a.active {
    color: var(--accent);
}

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .page-hero { padding: 8rem 0 3rem; }
}

/* ==========================
   Clients page
   ========================== */
.client-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.client-logo-tile {
    position: relative;
    display: block;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 3/2;
    text-decoration: none;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.client-logo-tile:hover {
    border-color: rgba(189,147,249,.4);
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.client-logo-tile-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: opacity .25s ease;
}
.client-logo-tile-inner img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .7;
    transition: opacity .25s ease;
}
.client-logo-tile:hover .client-logo-tile-inner {
    opacity: 0;
}
.client-logo-tile-hover {
    position: absolute;
    inset: 0;
    background: rgba(189,147,249,.08);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.5rem;
    text-align: center;
    opacity: 0;
    transition: opacity .25s ease;
}
.client-logo-tile:hover .client-logo-tile-hover {
    opacity: 1;
}
.client-logo-tile-hover strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}
.client-logo-tile-hover span {
    font-size: 0.8125rem;
    color: rgba(255,255,255,.6);
}
.client-logo-tile-loc {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem !important;
    color: rgba(255,255,255,.45) !important;
}
.client-logo-tile-cta {
    margin-top: 0.5rem;
    font-size: 0.8125rem !important;
    font-weight: 600;
    color: var(--accent) !important;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
@media (max-width: 768px) {
    .client-logo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .client-logo-grid { grid-template-columns: 1fr; }
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.client-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.client-card:hover {
    border-color: rgba(189,147,249,.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.client-card-img {
    background: var(--surface-0);
    overflow: hidden;
}
.client-card-img img {
    width: 100%;
    display: block;
    transition: transform .3s ease;
}
.client-card:hover .client-card-img img {
    transform: scale(1.02);
}
.client-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.client-card-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}
.client-industry {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}
.client-card-body p {
    font-size: 0.9375rem;
    color: var(--white);
    line-height: 1.6;
    flex: 1;
}
.client-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--white);
    margin-top: 0.25rem;
}
.client-location svg {
    width: 0.75rem;
    height: 0.75rem;
}

/* Industries grid */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.industry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.75rem 1rem;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    text-align: center;
    transition: border-color .2s ease;
}
.industry-item:hover {
    border-color: rgba(189,147,249,.3);
}
.industry-item svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--accent);
}
.industry-item span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.testimonial-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.testimonial-card p {
    font-size: 1rem;
    color: var(--white);
    line-height: 1.65;
    flex: 1;
    font-style: italic;
    opacity: 0.9;
}
.testimonial-card cite {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    text-align: left;
}
.testimonial-card cite strong {
    font-size: 0.9375rem;
    color: var(--white);
}
.testimonial-card cite span {
    font-size: 0.8125rem;
    color: var(--white);
}

@media (max-width: 1024px) {
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .clients-grid { grid-template-columns: 1fr; }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================
   Legal pages (Privacy, Terms)
   ========================== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}
.legal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.legal-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin: 1.75rem 0 0.75rem;
}
.legal-content p,
.legal-content li {
    font-size: 1rem;
    color: var(--white);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}
.legal-content ul {
    margin: 1rem 0 1.5rem 1.25rem;
    color: var(--white);
}
.legal-content ul li::marker {
    color: var(--accent);
}
.legal-content a {
    color: var(--accent);
    text-decoration: underline;
}
.legal-content a:hover {
    color: var(--accent-light);
}

/* ==========================
   Locations page
   ========================== */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.location-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: border-color .2s ease;
}
.location-card:hover {
    border-color: rgba(189,147,249,.3);
}
.location-featured {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    background: rgba(189,147,249,.04);
    border-color: rgba(189,147,249,.2);
}
.location-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(189,147,249,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.location-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--accent);
}
.location-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}
.location-type {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.location-card p {
    font-size: 0.9375rem;
    color: var(--white);
    line-height: 1.6;
}
.location-card-desc {
    font-size: 0.875rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}
.location-link {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s ease;
}
.location-link:hover {
    color: var(--white);
}
.location-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.location-list li {
    font-size: 0.9375rem;
    color: var(--white);
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--border);
}
.location-list li:last-child {
    border-bottom: none;
}

.remote-work {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 2rem 0;
}
.remote-content {
    text-align: left;
}
.remote-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: rgba(189,147,249,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1.5rem 0;
}
.remote-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}
.remote-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--accent);
}
.remote-work h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}
.remote-work p {
    font-size: 1rem;
    color: var(--white);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.remote-clients {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.remote-label {
    font-size: 0.875rem;
    color: var(--white);
    display: block;
    margin-bottom: 0.75rem;
}
.remote-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}
.remote-tag {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--white);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 2rem;
}

/* ==========================
   Features grid (for locations page)
   ========================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.feature-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color .2s ease;
}
.feature-card:hover {
    border-color: rgba(189,147,249,.3);
}
.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: rgba(189,147,249,.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--accent);
}
.feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
}
.feature-card p {
    font-size: 0.9375rem;
    color: var(--white);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* ==========================
   404 Error page
   ========================== */
.error-page {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.error-code {
    font-family: 'Space Mono', monospace;
    font-size: 8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.8;
}
.error-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}
.error-message {
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 2rem;
}
.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}
.error-suggestions {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    text-align: left;
}
.error-suggestions p {
    font-size: 0.9375rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-align: center;
}
.error-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.error-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--white);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background .15s ease, color .15s ease;
}
.error-links a:hover {
    background: rgba(189,147,249,.08);
    color: var(--accent);
}
.error-links svg {
    width: 1rem;
    height: 1rem;
    color: var(--accent);
}
.error-contact {
    margin-top: 2rem;
    font-size: 0.9375rem;
    color: var(--white);
}
.error-contact a {
    color: var(--accent);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .locations-grid { grid-template-columns: repeat(2, 1fr); }
    .location-featured { grid-column: span 2; }
    .remote-work { grid-template-columns: 1fr; gap: 2rem; }
    .error-code { font-size: 5rem; }
    .error-actions { flex-direction: column; }
    .error-links { grid-template-columns: 1fr; }
}

/* ==========================
   Scroll-reveal animation
   ========================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================
   Mobile nav active state
   ========================== */
.nav-links.active {
    display: flex;
}

/* ==========================
   Responsive
   ========================== */
/* ==========================
   Tablet (max 1024px)
   ========================== */
@media (max-width: 1024px) {
    .side-nav { display: none; }
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .process-timeline { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .process-line { display: none; }
    .case-study { grid-template-columns: 1fr; gap: 2rem; }
    .case-study-reverse { direction: ltr; }
    .contact-grid { grid-template-columns: 1fr; }
    .faq-list, .faq-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-headshot { width: 160px; height: 160px; }
    .estimate-layout { grid-template-columns: 1fr; }
    .service-detail-block { grid-template-columns: 1fr; }
    .svc-hero-title { font-size: clamp(2rem, 5vw, 3rem); }
    .client-logo-grid { grid-template-columns: repeat(4, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }

    /* Nav → hamburger at tablet */
    .navbar {
        width: calc(100% - 2rem);
        left: 1rem;
        top: 0.5rem;
        border-radius: 1.25rem;
        background: rgba(17,17,24,.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255,255,255,.08);
        transform: none;
        margin: 0;
        box-shadow: 0 8px 32px rgba(0,0,0,.4);
        transition: box-shadow 0.3s ease, background 0.3s ease;
    }
    .navbar.scrolled {
        width: calc(100% - 2rem);
        left: 1rem;
        top: 0.5rem;
        border-radius: 1.25rem;
        transform: none;
        margin: 0;
    }
    .navbar-inner { height: 58px; padding: 0 1rem; }
    .logo { flex: unset; }
    .nav-cta-wrap { display: none; }
    .mobile-toggle { display: flex; align-items: center; justify-content: center; margin-left: auto; }
    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        padding: 1rem;
        background: rgba(17,17,24,.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 1rem;
        box-shadow: 0 8px 40px rgba(0,0,0,.5);
        gap: 0.25rem;
        z-index: 999;
    }
    .nav-links.active { display: flex; }
    .nav-links > a {
        padding: 0.75rem 1rem;
        border-radius: 0.5rem;
        font-size: 1rem;
        transition: background .15s ease, color .15s ease;
    }
    .nav-links > a:hover, .nav-links > a.active { background: rgba(189,147,249,.08); color: var(--accent); }
    .nav-cta-mobile {
        display: flex !important;
        margin-top: 0.5rem;
        background: var(--accent) !important;
        color: var(--surface-0) !important;
        border-color: var(--accent) !important;
        justify-content: center;
        border-radius: 0.75rem;
        padding: 0.875rem 1rem;
    }
}

/* ==========================
   Mobile (max 768px)
   ========================== */
@media (max-width: 768px) {
    :root { --section-py: 4rem; --gutter: 1.25rem; }

    /* Nav */
    .navbar {
        width: calc(100% - 2rem);
        left: 1rem;
        top: 0.5rem;
        border-radius: 1.25rem;
        background: rgba(17,17,24,.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255,255,255,.08);
        transform: none;
        margin: 0;
        box-shadow: 0 8px 32px rgba(0,0,0,.4);
        transition: box-shadow 0.3s ease, background 0.3s ease;
    }
    .navbar.scrolled {
        width: calc(100% - 2rem);
        left: 1rem;
        top: 0.5rem;
        border-radius: 1.25rem;
        transform: none;
        margin: 0;
    }
    .navbar-inner { height: 58px; padding: 0 1rem; }
    .logo-image { height: 34px; }
    .logo-text { font-size: 1.2rem; }
    .logo { flex: unset; }
    .nav-cta-wrap { display: none; }
    .mobile-toggle { display: flex; align-items: center; justify-content: center; margin-left: auto; }
    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        padding: 1rem;
        background: rgba(17,17,24,.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 1rem;
        box-shadow: 0 8px 40px rgba(0,0,0,.5);
        gap: 0.25rem;
        z-index: 999;
    }
    .nav-links.active { display: flex; }
    .nav-links > a {
        padding: 0.75rem 1rem;
        border-radius: 0.5rem;
        font-size: 1rem;
        transition: background .15s ease, color .15s ease;
    }
    .nav-links > a:hover, .nav-links > a.active { background: rgba(189,147,249,.08); color: var(--accent); }
    .nav-cta-mobile {
        display: flex !important;
        margin-top: 0.5rem;
        background: var(--accent) !important;
        color: var(--surface-0) !important;
        border-color: var(--accent) !important;
        justify-content: center;
        border-radius: 0.75rem;
        padding: 0.875rem 1rem;
    }

    /* Hero */
    .side-nav { display: none; }
    .hero { min-height: auto; padding: 7rem 0 4rem; }
    .hero-title { font-size: clamp(2.2rem, 10vw, 3.5rem); line-height: 1.1; margin-bottom: 1.5rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 1.5rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-stats { flex-direction: column; gap: 1.5rem; }
    .stat-value { font-size: 2rem; }
    .btn { width: 100%; justify-content: center; }

    /* Disable parallax on mobile - fixes Firefox animation compositing */
    .svc-hero-bg,
    .about-hero-bg,
    .work-hero-bg,
    .clients-hero-bg,
    .blog-hero-bg,
    .faq-hero-bg,
    .estimate-hero-bg,
    .service-areas-hero-bg {
        background-attachment: scroll;
    }

    /* Page heroes */
    .page-hero { padding: 7rem 0 3rem; }
    .svc-hero-title { font-size: clamp(1.8rem, 8vw, 2.8rem); }
    .svc-hero-subtitle { font-size: 0.9375rem; }
    .svc-hero-actions { flex-direction: column; align-items: center; }
    .svc-hero-actions .btn { width: 100%; max-width: 320px; }

    /* Grids - all to single column */
    .pillars-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .locations-grid { grid-template-columns: 1fr; }
    .process-timeline { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .estimate-layout { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .client-logo-grid { grid-template-columns: repeat(2, 1fr); }
    .faq-list, .faq-grid { grid-template-columns: 1fr; }
    .service-detail-block { grid-template-columns: 1fr; padding: 1.5rem; }
    .service-features { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .cs-two-col { grid-template-columns: 1fr; gap: 1.5rem; }
    .cs-features { grid-template-columns: 1fr; }

    /* About page */
    .about-headshot-wrap { flex-direction: column; align-items: flex-start; }
    .about-headshot { width: 100%; height: 240px; }
    .about-headshot-img-wrap { width: 100%; }

    /* Testimonial */
    .testimonial-card { flex-direction: column; gap: 1.5rem; padding: 2rem 1.5rem; }
    .testimonial-right blockquote p { font-size: 1.2rem; }

    /* Case studies */
    .case-study { grid-template-columns: 1fr; gap: 1.5rem; }
    .case-study-reverse { direction: ltr; }
    .case-study-metrics { gap: 1rem; flex-wrap: wrap; }
    .case-study-metric { min-width: calc(50% - 0.5rem); }

    /* Stats bar */
    .stats-bar-inner { flex-wrap: wrap; gap: 1rem; justify-content: center; }

    /* Section intros */
    .section-title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
    .section-intro { margin-bottom: 2.5rem; }

    /* CTA banner */
    .cta-banner { padding: 4rem 0; }
    .cta-banner h2 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
    .cta-banner-actions { flex-direction: column; align-items: center; }
    .cta-banner-actions .btn { width: 100%; max-width: 320px; }

    /* Footer */
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .footer-nav { justify-content: flex-start; gap: 2rem; flex-wrap: wrap; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

    /* Error page */
    .error-code { font-size: 5rem; }
    .error-actions { flex-direction: column; align-items: center; }
    .error-links { grid-template-columns: 1fr; }
}

/* ==========================
   Small mobile (max 480px)
   ========================== */
@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .client-logo-grid { grid-template-columns: 1fr; }
    .highlight-card { padding: 1.25rem; }
    .faq-item { padding: 0 1rem; }
    .about-headshot { height: 200px; }
    .testimonial-card { padding: 1.5rem 1rem; }
    .error-code { font-size: 4rem; }
    .pillar { padding: 1.5rem; }
    .service-card { border-radius: 0.75rem; }
    .process-step { padding: 1.5rem; }
}
