/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    /* Primary palette */
    --primary-50: #e6f6fc;
    --primary-100: #b3e4f7;
    --primary-200: #80d2f1;
    --primary-300: #4dc0ec;
    --primary-400: #26b3e8;
    --primary-color: #00a0e3;
    --primary-600: #0086c0;
    --primary-700: #006b9a;
    --primary-800: #005174;
    --primary-900: #00364e;

    /* Neutrals */
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --secondary-color: #1e293b;
    --neutral-900: #0f172a;

    /* Spacing scale (8px base) */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.5rem;    /* 24px */
    --space-6: 2rem;      /* 32px */
    --space-8: 3rem;      /* 48px */
    --space-10: 4rem;     /* 64px */
    --space-12: 6rem;     /* 96px */

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* ============================================
   BASE STYLES
   ============================================ */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--neutral-700);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    padding: 15px 0;
    background-color: white;
    box-shadow: var(--shadow-md);
}

.navbar-brand img {
    height: 50px;
}

.navbar .nav-link {
    color: var(--secondary-color);
    font-weight: 600;
    margin: 0 10px;
    transition: color 0.3s;
}

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

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Portfolio Hero - Dark background for subpages */
.portfolio-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.portfolio-hero h1 {
    color: white;
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.portfolio-hero p {
    color: rgba(255, 255, 255, 0.9);
}

.portfolio-hero p.lead {
    font-size: 1.125rem;
    max-width: 48ch;
    line-height: 1.5;
}

.portfolio-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0.5rem;
}

.portfolio-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.portfolio-hero .breadcrumb-item a:hover {
    color: white;
}

.portfolio-hero .breadcrumb-item.active {
    color: white;
}

.portfolio-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

/* Industry landing page heroes — dark gradient backgrounds require white text.
   Declared AFTER .hero h1 so these rules win on equal specificity. */
.hero.plumber-hero h1,
.hero.electrician-hero h1,
.hero.hvac-hero h1,
.hero.roofing-hero h1,
.hero.pest-hero h1,
.hero.cleaning-hero h1,
.hero.lawn-hero h1 {
    color: white;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.hero.plumber-hero p,
.hero.electrician-hero p,
.hero.hvac-hero p,
.hero.roofing-hero p,
.hero.pest-hero p,
.hero.cleaning-hero p,
.hero.lawn-hero p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 600px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-600);
    border-color: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 160, 227, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 160, 227, 0.3);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    padding: 100px 0;
}

section h2 {
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* ============================================
   SERVICE CARDS
   ============================================ */

.service-card {
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    height: 100%;
    transition: all 0.3s;
    background-color: white;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: var(--primary-50);
    border-radius: 50%;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

/* ============================================
   CTA BANNER
   ============================================ */

.cta-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: var(--space-10) 0;
}

.cta-banner h2 {
    color: white;
}

.cta-banner h2::after {
    display: none;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
}

.cta-banner .cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    font-size: 2.25rem;
    color: white;
    margin-bottom: var(--space-5);
}

.cta-banner .btn-light {
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s;
}

.cta-banner .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-banner .cta-note {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   STATISTICS
   ============================================ */

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ============================================
   PORTFOLIO
   ============================================ */

.portfolio {
    background-color: var(--neutral-50);
}

.portfolio-item {
    margin-bottom: 30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all 0.3s;
    background-color: white;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 160, 227, 0.9);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 20px;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    font-weight: 600;
    margin-bottom: 10px;
}

/* Always-visible caption below image for all devices */
.portfolio-caption {
    padding: var(--space-3) var(--space-4);
    background-color: white;
}

.portfolio-caption h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 var(--space-1) 0;
}

.portfolio-caption .portfolio-link {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* ============================================
   OUR WORK (COMPLETE PORTFOLIO) PAGE  — v3 (editorial scroll)
   ============================================ */

/* ---- Local tokens scoped to the page via root scope where needed ---- */
:root {
    --ow3-ink: #0A0E1A;
    --ow3-ink-strong: #030712;
    --ow3-ink-mute: #111827;
    --ow3-ink-soft: #4B5563;
    --ow3-ink-faint: #9CA3AF;
    --ow3-line: #E5E7EB;
    --ow3-line-soft: #F1F2F4;
    --ow3-paper: #FAFAF7;   /* warm off-white */
    --ow3-surface: #FFFFFF;
    --ow3-wash: #F7F6F2;    /* editorial cream */
    --ow3-serif: 'Fraunces', 'Times New Roman', Georgia, serif;
    --ow3-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    --ow3-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Ensure page bg is the editorial paper, not white card */
body:has(.ow3-hero) {
    background-color: var(--ow3-paper);
}

/* Sections default inside this page to NO vertical padding — each band owns its height */
main:has(.ow3-hero) > section { padding: 0; }
main:has(.ow3-hero) section h2 { margin-bottom: 0; display: block; }
main:has(.ow3-hero) section h2::after { display: none; }

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.ow3-progress {
    position: fixed;
    top: 80px;               /* slot under the fixed nav */
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    z-index: 1020;
    pointer-events: none;
}
.ow3-progress__bar {
    display: block;
    height: 100%;
    width: 0;
    background: var(--primary-color);
    transition: width 60ms linear;
    box-shadow: 0 0 8px rgba(0, 160, 227, 0.4);
}

/* ============================================================
   HERO  — above-the-fold
   ============================================================ */
.ow3-hero {
    position: relative;
    background: var(--ow3-paper);
    color: var(--ow3-ink);
    min-height: calc(100vh - 80px);
    padding: 64px 0 0 0;
    overflow: hidden;
}

.ow3-hero__inner {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 48px;
    align-items: stretch;
    max-width: 1440px;
    margin: 0 auto;
    padding: 48px 56px 140px 56px;
    min-height: calc(100vh - 80px - 72px);   /* leave room for sieve */
}

.ow3-hero__left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 8px;
}

.ow3-eyebrow {
    font-family: var(--ow3-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ow3-ink-soft);
    margin: 0 0 36px 0;
    font-weight: 500;
}

.ow3-bignum {
    font-family: var(--ow3-serif);
    font-variation-settings: 'opsz' 144, 'SOFT' 0;
    font-size: clamp(14rem, 22vw, 20rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.85;
    color: var(--ow3-ink);
    margin: 0 0 24px 0;
    user-select: none;
}

.ow3-display {
    font-family: var(--ow3-serif);
    font-variation-settings: 'opsz' 144, 'SOFT' 0;
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    line-height: 0.98;
    letter-spacing: -0.025em;
    font-weight: 500;
    color: var(--ow3-ink);
    margin: 0;
    max-width: 15ch;
}
.ow3-display::first-line { font-style: italic; font-weight: 400; }

/* ---- Right: crossfading browser stack ---- */
.ow3-hero__right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    padding-top: 8px;
}

.ow3-browser {
    background: #fff;
    border: 1px solid var(--ow3-line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.8) inset,
        0 20px 40px -20px rgba(10, 14, 26, 0.18),
        0 2px 6px rgba(10, 14, 26, 0.04);
    position: relative;
}

.ow3-browser__chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(to bottom, #fafafa, #f3f3f3);
    border-bottom: 1px solid var(--ow3-line);
}
.ow3-dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    display: inline-block;
}
.ow3-dot--r { background: #ff5f57; }
.ow3-dot--y { background: #febc2e; }
.ow3-dot--g { background: #28c840; }
.ow3-browser__url {
    font-family: var(--ow3-mono);
    font-size: 11px;
    letter-spacing: 0.02em;
    color: var(--ow3-ink-soft);
    margin-left: 14px;
    padding: 2px 12px;
    background: #fff;
    border: 1px solid var(--ow3-line);
    border-radius: 4px;
}

.ow3-browser__viewport {
    position: relative;
    aspect-ratio: 16 / 10;
    width: 100%;
    background: #f9fafb;
    overflow: hidden;
}

.ow3-crossfade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    transform: translateX(0) translateY(0);
    transition: opacity 900ms ease, transform 1400ms ease;
    will-change: opacity, transform;
}
.ow3-crossfade.is-active {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

.ow3-crossfade-label {
    font-family: var(--ow3-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--ow3-ink-soft);
    margin: 0;
    padding-left: 2px;
    text-transform: none;
}
.ow3-crossfade-label__mute {
    color: var(--ow3-ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-right: 6px;
}

/* ---- Sieve (filter chips) flush-left ---- */
.ow3-sieve {
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    padding: 0 56px 24px 56px;
    background: transparent;
    z-index: 5;
    transition: background 250ms ease, backdrop-filter 250ms ease, box-shadow 250ms ease;
}
.ow3-sieve__rule {
    border: 0;
    border-top: 1px solid var(--ow3-line);
    margin: 0 0 16px 0;
    opacity: 1;
}
.ow3-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}
.ow3-chip {
    appearance: none;
    border: 1px solid var(--ow3-line);
    background: var(--ow3-surface);
    color: var(--ow3-ink-soft);
    font-family: var(--ow3-mono);
    font-size: 12px;
    letter-spacing: 0.05em;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 200ms ease;
    font-weight: 500;
}
.ow3-chip:hover {
    color: var(--ow3-ink);
    border-color: var(--ow3-ink-faint);
}
.ow3-chip__count {
    color: var(--ow3-ink-faint);
    margin-left: 4px;
}
.ow3-chip.is-active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px -4px rgba(0, 160, 227, 0.45);
}
.ow3-chip.is-active .ow3-chip__count { color: rgba(255,255,255,0.75); }

/* Sticky-pinned sieve while scrolling past hero */
.ow3-sieve.is-pinned {
    position: fixed;
    top: 82px;            /* below nav + progress */
    bottom: auto;
    background: rgba(250, 250, 247, 0.88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 var(--ow3-line), 0 8px 24px -16px rgba(10, 14, 26, 0.18);
    padding-top: 14px;
    padding-bottom: 14px;
}
.ow3-sieve.is-pinned .ow3-sieve__rule { display: none; }

/* ============================================================
   TIER DELIMITERS
   ============================================================ */
.ow3-tier {
    position: relative;
    margin: 0 56px;
    padding: 64px 0 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 700ms ease, transform 700ms ease;
}
.js-reveal .ow3-tier {
    opacity: 0;
    transform: translateY(12px);
}
.js-reveal .ow3-tier.is-revealed {
    opacity: 1;
    transform: none;
}
.ow3-tier__rule {
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    border: 0;
    border-top: 1px solid var(--ow3-line);
    margin: 0;
    z-index: 0;
}
.ow3-tier__label {
    position: relative;
    z-index: 1;
    background: var(--ow3-paper);
    padding: 0 24px;
    font-family: var(--ow3-mono);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ow3-ink-mute);
    font-weight: 500;
}

/* ============================================================
   PROJECT BANDS
   ============================================================ */
.ow3-band {
    position: relative;
    display: block;
    width: 100%;
    color: var(--ow3-ink);
    text-decoration: none;
    padding: 80px 56px;
    overflow: hidden;
    transition: background-color 350ms ease, opacity 700ms ease, transform 700ms ease;
}
.js-reveal .ow3-band {
    opacity: 0;
    transform: translateY(24px);
}
.js-reveal .ow3-band.is-revealed {
    opacity: 1;
    transform: none;
}
.ow3-band:visited { color: var(--ow3-ink); }
.ow3-band:focus-visible {
    outline: 2px solid var(--project-accent, var(--primary-color));
    outline-offset: -8px;
}

/* Band heights by tier */
.ow3-band--xl { min-height: 100vh; display: flex; align-items: center; }
.ow3-band--lg { min-height: 80vh;  display: flex; align-items: center; }
.ow3-band--sm { min-height: 55vh;  display: flex; align-items: center; }

/* 4px vertical rule at the band's far-left edge */
.ow3-band__rule {
    position: absolute;
    top: 15%;
    bottom: 15%;
    left: 0;
    width: 4px;
    background: var(--project-accent, var(--primary-color));
    opacity: 0.9;
    transition: transform 400ms ease, opacity 250ms ease;
    transform-origin: top;
    transform: scaleY(0.96);
}
.ow3-band.is-revealed .ow3-band__rule { transform: scaleY(1); }

/* Inner grid */
.ow3-band__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 72px;
    align-items: center;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.ow3-band__grid--reverse {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.ow3-band__grid--reverse .ow3-band__text { order: 2; }
.ow3-band__grid--reverse .ow3-band__media { order: 1; }

/* Compressed tier tightens both columns */
.ow3-band--sm .ow3-band__grid { gap: 48px; }

/* ---- Text column ---- */
.ow3-band__text {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}
.ow3-band__index {
    font-family: var(--ow3-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--project-accent, var(--ow3-ink-faint));
    margin: 0 0 -6px 0;
}
.ow3-band__title {
    font-family: var(--ow3-serif);
    font-variation-settings: 'opsz' 144;
    font-size: clamp(3.25rem, 6.2vw, 6rem);
    line-height: 0.92;
    letter-spacing: -0.035em;
    font-weight: 500;
    color: var(--ow3-ink);
    margin: 0;
    position: relative;
    display: block;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: none;
}
/* hover underline animating L -> R in project accent */
.ow3-band__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 100%;
    height: 3px;
    background: var(--project-accent, var(--primary-color));
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ow3-band--sm .ow3-band__title { font-size: clamp(2.5rem, 4.4vw, 3.75rem); }

.ow3-band__tag {
    font-family: var(--ow3-sans);
    font-size: clamp(1.125rem, 1.4vw, 1.35rem);
    line-height: 1.5;
    color: var(--ow3-ink-soft);
    margin: 0;
    max-width: 48ch;
    font-weight: 400;
}
.ow3-band--sm .ow3-band__tag { font-size: 1.0625rem; }

.ow3-band__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    font-family: var(--ow3-mono);
    font-size: 13px;
    letter-spacing: 0.02em;
    color: var(--ow3-ink-faint);
    margin: 6px 0 0 0;
    transition: color 300ms ease;
}
.ow3-band__meta > span { white-space: nowrap; }
.ow3-band__dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--project-accent, var(--ow3-ink-faint));
    opacity: 0.75;
    display: inline-block;
}
.ow3-band__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--project-accent, var(--primary-color)) 14%, transparent);
    color: var(--project-accent, var(--primary-color));
    font-weight: 500;
    letter-spacing: 0.04em;
}
.ow3-band__cta {
    font-family: var(--ow3-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ow3-ink-mute);
    margin-top: 14px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 300ms ease, transform 300ms ease, color 300ms ease;
    font-weight: 500;
}

/* ---- Media column: two treatments ---- */
.ow3-band__media {
    position: relative;
    transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 0;
}
.ow3-band__media .ow3-browser {
    width: 100%;
}
.ow3-band__media .ow3-browser img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
}

/* Floating treatment (screenshot sits on paper with shadow) */
.ow3-band--float .ow3-band__media .ow3-browser {
    box-shadow:
        0 1px 0 rgba(255,255,255,0.8) inset,
        0 30px 60px -24px rgba(10, 14, 26, 0.22),
        0 2px 6px rgba(10, 14, 26, 0.06);
}

/* Washed treatment (tinted band behind media) */
.ow3-band--washed::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 70% 90% at 78% 50%,
            color-mix(in srgb, var(--project-accent, var(--primary-color)) 18%, transparent) 0%,
            color-mix(in srgb, var(--project-accent, var(--primary-color)) 6%, transparent) 45%,
            transparent 80%
        ),
        color-mix(in srgb, var(--project-accent, var(--primary-color)) 5%, var(--ow3-paper));
    z-index: 1;
    transition: background 350ms ease;
}
.ow3-band--washed.ow3-band__grid--reverse::before,
.ow3-band__grid--reverse ~ .ow3-band--washed::before {
    /* no-op placeholder — wash flips via modifier below */
}
/* When reverse (media on left), flip wash focal point */
.ow3-band--washed:has(.ow3-band__grid--reverse)::before {
    background:
        radial-gradient(
            ellipse 70% 90% at 22% 50%,
            color-mix(in srgb, var(--project-accent, var(--primary-color)) 18%, transparent) 0%,
            color-mix(in srgb, var(--project-accent, var(--primary-color)) 6%, transparent) 45%,
            transparent 80%
        ),
        color-mix(in srgb, var(--project-accent, var(--primary-color)) 5%, var(--ow3-paper));
}
.ow3-band--washed .ow3-band__grid { z-index: 2; }
.ow3-band--washed .ow3-band__media .ow3-browser {
    box-shadow:
        0 1px 0 rgba(255,255,255,0.8) inset,
        0 40px 70px -30px rgba(10, 14, 26, 0.30),
        0 6px 16px rgba(10, 14, 26, 0.08);
}

/* Leftover skeleton element stays out of layout. Filters hide bands
   outright rather than replacing their image with an outline. */
.ow3-band__skeleton { display: none; }

/* Filter hides non-matching bands and empty tier headers entirely.
   Matching bands fade/slide back in via the transition on opacity. */
.ow3-band.is-hidden,
.ow3-tier.is-hidden {
    display: none !important;
}

/* ---- Hover state ---- */
@media (hover: hover) {
    .ow3-band:hover {
        background-color: color-mix(in srgb, var(--project-accent, var(--primary-color)) 2.5%, transparent);
    }
    .ow3-band:hover .ow3-band__media {
        transform: translateX(8px);
    }
    .ow3-band:hover .ow3-band__title::after {
        transform: scaleX(1);
    }
    .ow3-band:hover .ow3-band__meta {
        color: var(--ow3-ink-mute);
    }
    .ow3-band:hover .ow3-band__cta {
        opacity: 1;
        transform: translateY(0);
        color: var(--project-accent, var(--primary-color));
    }
    .ow3-band:hover .ow3-band__rule {
        transform: scaleY(1) translateX(1px);
        opacity: 1;
        box-shadow: 0 0 24px -4px var(--project-accent);
    }
}

/* ============================================================
   FOOTER CTA
   ============================================================ */
.ow3-footcta {
    position: relative;
    background: var(--ow3-paper);
    padding: 0 0 120px 0;
    margin-top: 40px;
}
.ow3-footcta .ow3-tier__rule {
    position: relative;
    top: auto;
}
.ow3-footcta__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 56px 0 56px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
}
.ow3-footcta__headline {
    font-family: var(--ow3-serif);
    font-variation-settings: 'opsz' 144;
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    line-height: 1;
    letter-spacing: -0.025em;
    font-weight: 500;
    color: var(--ow3-ink);
    margin: 0;
    max-width: 20ch;
}
.ow3-footcta__headline::first-line { font-style: italic; font-weight: 400; }
.ow3-footcta__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 999px;
    font-family: var(--ow3-sans);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: all 250ms ease;
    box-shadow: 0 10px 24px -10px rgba(0, 160, 227, 0.55);
}
.ow3-footcta__btn:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -12px rgba(0, 160, 227, 0.7);
    color: #fff;
}

/* ============================================================
   RESPONSIVE — tablet
   ============================================================ */
@media (max-width: 1024px) {
    .ow3-hero__inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 40px 32px 120px 32px;
    }
    .ow3-hero__right { order: 2; }
    .ow3-hero__left { order: 1; }
    .ow3-bignum { font-size: clamp(9rem, 28vw, 16rem); }
    .ow3-sieve { padding: 0 32px 20px 32px; }

    .ow3-band { padding: 64px 32px; }
    .ow3-band__grid,
    .ow3-band__grid--reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .ow3-band__grid--reverse .ow3-band__text { order: 1; }
    .ow3-band__grid--reverse .ow3-band__media { order: 2; }
    .ow3-band--xl, .ow3-band--lg, .ow3-band--sm {
        min-height: auto;
    }
    .ow3-band__rule { top: 64px; bottom: 64px; }
    .ow3-tier { margin: 0 32px; }
    .ow3-footcta__inner { padding: 80px 32px 0 32px; }
}

/* ============================================================
   RESPONSIVE — mobile
   ============================================================ */
@media (max-width: 640px) {
    .ow3-progress { top: 72px; }

    .ow3-hero__inner {
        padding: 28px 20px 140px 20px;
        gap: 28px;
    }
    .ow3-eyebrow { margin-bottom: 20px; font-size: 10px; }
    .ow3-bignum {
        font-size: clamp(7rem, 40vw, 11rem);
        margin-bottom: 16px;
    }
    .ow3-display {
        font-size: clamp(2rem, 8vw, 2.6rem);
        line-height: 1.02;
    }
    .ow3-sieve { padding: 0 20px 16px 20px; }
    .ow3-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 6px;
        scrollbar-width: none;
    }
    .ow3-chips::-webkit-scrollbar { display: none; }
    .ow3-chip { flex: 0 0 auto; font-size: 11px; padding: 7px 12px; }

    .ow3-band { padding: 56px 20px; }
    .ow3-band__grid { gap: 28px; }
    .ow3-band__rule { top: 56px; bottom: 56px; width: 3px; }
    .ow3-band__title { font-size: clamp(2.75rem, 14vw, 4rem); }
    .ow3-band--sm .ow3-band__title { font-size: clamp(2.25rem, 11vw, 3rem); }
    .ow3-band__tag { font-size: 1.0625rem; }
    .ow3-band__meta { font-size: 11.5px; gap: 8px 10px; }
    .ow3-band__cta { opacity: 1; transform: none; color: var(--project-accent, var(--primary-color)); }

    .ow3-tier { margin: 0 20px; padding: 44px 0 28px 0; }
    .ow3-tier__label { font-size: 10.5px; padding: 0 14px; letter-spacing: 0.18em; }

    .ow3-footcta__inner { padding: 64px 20px 0 20px; gap: 28px; }
    .ow3-footcta__headline { font-size: clamp(2rem, 8vw, 2.75rem); }
    .ow3-footcta__btn { padding: 14px 24px; font-size: 0.95rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .ow3-band,
    .ow3-band__media,
    .ow3-band__rule,
    .ow3-band__title::after,
    .ow3-crossfade,
    .ow3-tier,
    .ow3-progress__bar {
        transition: none !important;
        animation: none !important;
    }
    .ow3-band { opacity: 1; transform: none; }
    .ow3-tier { opacity: 1; transform: none; }
}


/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
}

.tech-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 15px;
    background-color: white;
    padding: 8px 15px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.tech-item i {
    margin-right: 8px;
    color: var(--primary-color);
}

.tech-item span {
    font-weight: 500;
}

/* ============================================
   TIMELINE
   ============================================ */

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 50px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::after {
    right: -10px;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    background-color: white;
}

.contact-info {
    display: flex;
    margin-bottom: 20px;
}

.contact-icon {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.form-control {
    padding: 12px 15px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid var(--neutral-200);
}

.form-control:focus {
    box-shadow: 0 0 0 3px var(--primary-100);
    border-color: var(--primary-color);
}

.form-label {
    font-weight: 500;
    color: var(--neutral-700);
    margin-bottom: var(--space-1);
}

/* ============================================
   TESTIMONIALS - COMING SOON
   ============================================ */

.testimonials-coming-soon {
    text-align: center;
    padding: var(--space-10) var(--space-4);
}

.testimonials-coming-soon .coming-soon-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    background-color: var(--primary-50);
    border-radius: var(--radius-xl);
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: var(--space-5);
}

.testimonials-coming-soon h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: var(--space-3);
}

.testimonials-coming-soon h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.testimonials-coming-soon p {
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    color: var(--neutral-500);
    font-size: 1.125rem;
    line-height: 1.7;
}

.testimonials-coming-soon .project-highlights {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
    margin-top: var(--space-8);
    margin-bottom: var(--space-8);
}

.testimonials-coming-soon .highlight-item {
    text-align: center;
}

.testimonials-coming-soon .highlight-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.testimonials-coming-soon .highlight-label {
    font-size: 0.875rem;
    color: var(--neutral-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 50px 0 20px;
}

footer .footer-links h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

footer .footer-links ul {
    list-style: none;
    padding: 0;
}

footer .footer-links ul li {
    margin-bottom: 10px;
}

footer .footer-links ul li a {
    color: var(--neutral-400);
    text-decoration: none;
    transition: color 0.3s;
}

footer .footer-links ul li a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: white;
    margin-right: 10px;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: var(--neutral-400);
    text-align: center;
}

/* ============================================
   RESPONSIVE MEDIA QUERIES
   ============================================ */

/* Large tablets and below (991px and down) - Navigation breakpoint */
@media (max-width: 991px) {
    .navbar .nav-link {
        margin: 5px 0;
        padding: 10px 15px;
    }

    .navbar-collapse {
        background-color: white;
        padding: 15px;
        margin-top: 10px;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
    }

    .navbar-toggler {
        padding: 8px 12px;
        border: 2px solid var(--primary-color);
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(0, 160, 227, 0.25);
    }
}

/* Tablet and below (768px and down) */
@media (max-width: 768px) {
    /* Typography Adjustments */
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
        max-width: 100%;
    }

    section h2 {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    /* Spacing Adjustments */
    .hero {
        padding: 60px 0;
    }

    section {
        padding: 60px 0;
    }

    .service-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    /* Layout Adjustments */
    .navbar-brand img {
        height: 45px;
    }

    .portfolio-img {
        height: 200px;
    }

    /* Timeline Mobile Layout - Stack vertically */
    .timeline {
        max-width: 100%;
        padding: 0 15px;
    }

    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 15px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }

    .timeline-item::after {
        left: 10px;
    }

    .left::after,
    .right::after {
        left: 10px;
    }

    .timeline-content {
        padding: 15px 20px;
    }

    /* Footer Adjustments */
    footer {
        text-align: center;
    }

    .footer-links {
        margin-bottom: 30px;
    }

    .social-icons {
        justify-content: center;
    }

    /* Tech Stack */
    .tech-stack {
        justify-content: center;
    }

    /* Testimonials coming soon responsive */
    .testimonials-coming-soon .project-highlights {
        gap: var(--space-5);
    }
}

/* Mobile devices (576px and down) */
@media (max-width: 576px) {
    /* Further Typography Reduction */
    .hero h1 {
        font-size: 1.75rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    /* Tighter Spacing */
    .hero {
        padding: 40px 0;
    }

    section {
        padding: 40px 0;
    }

    .service-card {
        padding: 15px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    /* Image Sizing */
    .portfolio-img {
        height: 180px;
    }

    .hero .col-lg-6 img {
        max-height: 250px;
        width: auto;
        margin: 20px auto;
        display: block;
    }

    /* Contact Info */
    .contact-info {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Very small mobile devices (480px and down) */
@media (max-width: 480px) {
    .navbar-brand img {
        height: 40px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 30px 0;
    }

    section {
        padding: 30px 0;
    }

    .btn-primary,
    .btn-outline-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 40px 0;
    }

    section {
        padding: 50px 0;
    }
}

/* Touch Target Size Improvements */
.social-icons a {
    width: 44px;
    height: 44px;
}

/* Hover Effects - Only on Devices with Hover Capability */
@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg);
    }

    .portfolio-item:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

    .btn-primary:hover {
        background-color: var(--primary-600);
        border-color: var(--primary-600);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 160, 227, 0.3);
    }

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 160, 227, 0.3);
    }

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

    .social-icons a:hover {
        background-color: var(--primary-color);
        transform: translateY(-3px);
    }

    footer .footer-links ul li a:hover {
        color: var(--primary-color);
    }
}

/* Active states for touch devices */
@media (hover: none) {
    .service-card:active,
    .portfolio-item:active {
        transform: scale(0.98);
    }

    .btn-primary:active,
    .btn-outline-primary:active {
        transform: scale(0.97);
    }

    /* Ensure portfolio overlay content is accessible on touch */
    .portfolio-overlay {
        position: static;
        opacity: 1;
        background: transparent;
        color: var(--neutral-700);
        padding: 0;
        height: auto;
        display: none;
    }
}

/* Accessibility Enhancements */
.service-card:focus-within,
.portfolio-item:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Link for Keyboard Navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}
