/* JindraWebDev accessibility and interaction guardrails. */
:focus-visible {
    outline: 3px solid #516b57;
    outline-offset: 4px;
}

summary:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* JWD_MOBILE_EXPERIENCE_V2_20260901_START */
:root {
    --jwd-mobile-ink: #2f302f;
    --jwd-mobile-muted: #62655f;
    --jwd-mobile-sage: #667665;
    --jwd-mobile-sage-dark: #52604f;
    --jwd-mobile-cream: #fbfaf7;
    --jwd-mobile-line: #dfe2dc;
}

html { overflow-x: clip; }
body { overflow-x: hidden; }
body.jwd-menu-open { overflow: hidden; touch-action: none; }

/* Preserve the accessible brand utilities outside <main>, including the
   shared header and footer. */
.bg-brand-dark { background-color: var(--jwd-mobile-sage) !important; }
.text-brand-dark { color: var(--jwd-mobile-sage) !important; }
.hover\:bg-brand-charcoal:hover { background-color: #333333 !important; }
.text-brand-charcoal\/50,
.text-brand-charcoal\/60 { color: #666864 !important; }
.text-white\/55,
.text-white\/60,
.text-white\/65,
.text-white\/70,
.text-white\/75 { color: #ffffff !important; }

.jwd-mobile-page {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}
.jwd-mobile-page *,
.jwd-mobile-page *::before,
.jwd-mobile-page *::after { box-sizing: border-box; min-width: 0; }
.jwd-mobile-page img,
.jwd-mobile-page video,
.jwd-mobile-page svg { max-width: 100%; }
.jwd-mobile-page :where(h1, h2, h3, p, a, li) { overflow-wrap: break-word; }
.jwd-mobile-page p.uppercase {
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* The public brand palette passes WCAG AA for normal text on white and cream. */
.jwd-mobile-page .text-brand-dark { color: var(--jwd-mobile-sage-dark) !important; }
.jwd-mobile-page .text-brand-charcoal\/50,
.jwd-mobile-page .text-brand-charcoal\/60,
.jwd-mobile-page .text-brand-charcoal\/70,
.jwd-mobile-page .text-brand-charcoal\/72,
.jwd-mobile-page .text-brand-charcoal\/75 { color: var(--jwd-mobile-muted) !important; }
.jwd-mobile-page .bg-brand-dark { background-color: var(--jwd-mobile-sage) !important; }

/* Secondary qualification questions stay available without making the
   inquiry form feel intimidating on first view. */
.jwd-contact-optional-fields {
    border-top: 1px solid var(--jwd-mobile-line);
    border-bottom: 1px solid var(--jwd-mobile-line);
}
.jwd-contact-optional-fields > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    color: var(--jwd-mobile-ink);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.jwd-contact-optional-fields > summary::-webkit-details-marker { display: none; }
.jwd-contact-optional-fields > summary span {
    color: var(--jwd-mobile-muted);
    font-size: .82rem;
    font-weight: 500;
}
.jwd-contact-optional-fields > summary::after {
    content: '+';
    flex: 0 0 auto;
    color: var(--jwd-mobile-sage-dark);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1;
}
.jwd-contact-optional-fields[open] > summary::after { content: '−'; }
.jwd-contact-optional-fields__body { padding: .2rem 0 1.25rem; }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--jwd-mobile-sage-dark) !important;
    outline-offset: 3px !important;
}
.bg-brand-charcoal :where(a, button, summary, input, select, textarea):focus-visible,
.bg-brand-dark :where(a, button, summary, input, select, textarea):focus-visible,
:where(a, button, summary).bg-brand-charcoal:focus-visible,
:where(a, button, summary).bg-brand-dark:focus-visible {
    outline-color: #ffffff !important;
}

.jwd-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    border: 0;
    background: rgba(25, 27, 25, .48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .24s ease, visibility .24s ease;
}
.jwd-mobile-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 1023px) {
    header nav[aria-label="Main navigation"] {
        min-height: 68px;
        padding: .65rem 1.25rem !important;
    }
    header nav[aria-label="Main navigation"] > a[aria-label="JindraWebDev home"] {
        width: clamp(8.7rem, 38vw, 10rem) !important;
        height: 2.9rem !important;
        overflow: visible !important;
    }
    header nav[aria-label="Main navigation"] > a[aria-label="JindraWebDev home"] img {
        position: static !important;
        display: block !important;
        width: auto !important;
        height: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: left center !important;
        transform: none !important;
    }
    .jwd-desktop-nav,
    .jwd-desktop-actions { display: none !important; }
    .jwd-mobile-toggle {
        z-index: 95;
        display: inline-flex !important;
        min-width: 92px;
        min-height: 46px;
        padding: .7rem .95rem !important;
    }
    body.jwd-menu-open .jwd-mobile-toggle {
        position: fixed;
        top: 11px;
        right: 20px;
    }
    #mobile-menu.jwd-mobile-menu {
        position: fixed !important;
        inset: 0 0 0 auto !important;
        z-index: 80 !important;
        display: block !important;
        width: min(88vw, 360px) !important;
        height: 100vh !important;
        height: 100dvh !important;
        padding-top: 70px;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 0 !important;
        border-left: 1px solid var(--jwd-mobile-line) !important;
        background: var(--jwd-mobile-cream) !important;
        box-shadow: -24px 0 60px rgba(32, 35, 31, .18) !important;
        transform: translateX(104%);
        visibility: hidden;
        pointer-events: none;
        transition: transform .26s ease, visibility .26s ease;
    }
    #mobile-menu.jwd-mobile-menu.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }
    #mobile-menu > nav {
        display: grid;
        gap: .2rem !important;
        padding: 1rem 1.25rem 2rem !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
    }
    #mobile-menu > nav > a {
        min-height: 48px;
        padding: .8rem .9rem !important;
        border: 0 !important;
        border-bottom: 1px solid var(--jwd-mobile-line) !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--jwd-mobile-ink) !important;
        font-size: 1.08rem;
        line-height: 1.35;
        text-align: left !important;
    }
    #mobile-menu > nav > a[aria-current="page"] {
        color: var(--jwd-mobile-sage-dark) !important;
        font-weight: 800;
    }
    #mobile-menu > nav > a[href*="#contact-form"] {
        margin-top: 1rem;
        border: 0 !important;
        border-radius: 999px !important;
        background: var(--jwd-mobile-sage) !important;
        color: #fff !important;
        text-align: center !important;
    }
    #mobile-menu > nav > a[href^="tel:"] {
        border: 1px solid var(--jwd-mobile-line) !important;
        border-radius: 999px !important;
        background: #fff !important;
        text-align: center !important;
    }
}

@media (min-width: 1024px) {
    .jwd-mobile-page h1[class~="lg:text-7xl"] {
        font-size: 3.55rem !important;
        line-height: 1.14 !important;
    }
    .jwd-mobile-page h1[class~="lg:text-6xl"] {
        font-size: 3.25rem !important;
        line-height: 1.16 !important;
    }
    .jwd-mobile-page h2[class~="md:text-6xl"] {
        font-size: 2.75rem !important;
        line-height: 1.2 !important;
    }
    .jwd-mobile-page h2[class~="md:text-5xl"] {
        font-size: 2.5rem !important;
        line-height: 1.22 !important;
    }
    .jwd-home-page .jwd-home-hero-grid {
        align-items: flex-start !important;
        padding-top: 3.5rem !important;
        padding-bottom: 4.5rem !important;
    }
    .jwd-home-page .jwd-home-hero-grid > div:last-child { align-self: flex-start !important; }
    .jwd-home-page > section:nth-of-type(n+3) {
        padding-top: 4.5rem !important;
        padding-bottom: 4.5rem !important;
    }
    .jwd-home-page h1 {
        font-size: 3.5rem !important;
        line-height: 1.14 !important;
    }
    .jwd-home-page h2[class~="text-4xl"] {
        font-size: 2.5rem !important;
        line-height: 1.22 !important;
    }
    .jwd-desktop-nav,
    .jwd-desktop-actions { display: flex !important; }
    .jwd-mobile-toggle,
    #mobile-menu,
    .jwd-mobile-backdrop { display: none !important; }
}

@media (max-width: 767px) {
    .jwd-mobile-page :where(h1) {
        max-width: 18ch;
        margin-bottom: 1.1rem !important;
        font-size: clamp(2.15rem, 10.1vw, 2.62rem) !important;
        line-height: 1.08 !important;
        letter-spacing: -.026em !important;
    }
    .jwd-mobile-page :where(h2) {
        max-width: 24ch;
        margin-bottom: .9rem !important;
        font-size: clamp(1.75rem, 7.7vw, 2.08rem) !important;
        line-height: 1.16 !important;
        letter-spacing: -.018em !important;
    }
    .jwd-mobile-page :where(h3) {
        font-size: clamp(1.18rem, 5.7vw, 1.48rem) !important;
        line-height: 1.24 !important;
    }
    .jwd-mobile-page :where(p, li) {
        line-height: 1.58 !important;
    }
    .jwd-mobile-page :where(p.text-lg, p.md\:text-xl) {
        font-size: 1rem !important;
        line-height: 1.58 !important;
    }
    .jwd-mobile-page section.py-20,
    .jwd-mobile-page section.py-16,
    .jwd-mobile-page section.py-14,
    .jwd-mobile-page section.pt-14 {
        padding-top: 3rem !important;
    }
    .jwd-mobile-page section.py-20,
    .jwd-mobile-page section.py-16,
    .jwd-mobile-page section.py-14,
    .jwd-mobile-page section.pb-12 {
        padding-bottom: 3rem !important;
    }
    .jwd-mobile-page [class*="max-w-"][class*="mx-auto"][class*="px-5"] {
        padding-right: 1.25rem !important;
        padding-left: 1.25rem !important;
    }
    .jwd-mobile-page a[class*="rounded-full"],
    .jwd-mobile-page button,
    .jwd-mobile-page summary {
        min-height: 44px;
    }
    .jwd-mobile-page :where(input, select, textarea) {
        max-width: 100%;
        font-size: 16px !important;
    }
    .jwd-mobile-page :where(table, pre) {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

    /* Homepage: shorter hero, natural image flow, and simpler content lists. */
    .jwd-home-page .jwd-home-hero-grid {
        gap: 1.75rem !important;
        padding-top: 2.6rem !important;
        padding-bottom: 3rem !important;
    }
    .jwd-home-page .jwd-home-hero-grid h1 { max-width: 15ch; }
    .jwd-home-page .jwd-home-hero-grid > div:first-child > p { max-width: 36rem; margin-bottom: 1.5rem !important; }
    .jwd-home-page .jwd-home-hero-grid .flex.flex-col { gap: .7rem !important; margin-bottom: 1.6rem !important; }
    .jwd-home-page .jwd-home-hero-grid .flex.flex-col a { width: 100%; padding: .85rem 1rem !important; }
    .jwd-home-page .jwd-home-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: .75rem 1.1rem !important;
        text-align: left !important;
    }
    .jwd-home-page .jwd-home-stats > div {
        padding-top: .8rem;
        border-top: 1px solid var(--jwd-mobile-line);
    }
    .jwd-home-page .jwd-home-stats > div:last-child { grid-column: 1 / -1; }
    .jwd-home-page .jwd-home-stats p:first-child { font-size: 1.45rem !important; }
    .jwd-home-page .jwd-home-hero-grid > div:last-child > div:first-child {
        padding: .45rem !important;
        border-radius: 1.1rem !important;
        box-shadow: none !important;
    }
    .jwd-home-page .jwd-home-hero-grid > div:last-child [class*="aspect-"] {
        aspect-ratio: 4 / 3 !important;
        border-radius: .8rem !important;
    }
    .jwd-home-page .jwd-home-hero-grid > div:last-child [class*="aspect-"] img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center 42% !important;
    }
    .jwd-home-page .jwd-home-hero-grid > div:last-child > div:last-child {
        position: static !important;
        max-width: none !important;
        margin: .9rem 0 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .jwd-home-page .jwd-logo-strip { padding-block: 2.15rem !important; }
    .jwd-home-page .jwd-logo-strip > div > p {
        margin-bottom: 1.2rem !important;
        color: var(--jwd-mobile-muted) !important;
        font-size: .9rem !important;
        text-align: left !important;
    }
    .jwd-home-page .jwd-logo-strip .grid {
        display: grid !important;
        grid-auto-flow: column !important;
        grid-auto-columns: 8.5rem !important;
        grid-template-columns: none !important;
        gap: .6rem !important;
        padding-bottom: .7rem;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline mandatory;
        scrollbar-width: thin;
    }
    .jwd-home-page .jwd-logo-strip a {
        height: 4.6rem !important;
        padding: .6rem !important;
        border-color: var(--jwd-mobile-line) !important;
        border-radius: .8rem !important;
        box-shadow: none !important;
        scroll-snap-align: start;
    }
    .jwd-home-page .jwd-positioning-section > div { gap: 1.6rem !important; }
    .jwd-home-page .jwd-positioning-section .space-y-4 > div,
    .jwd-home-page #services article,
    .jwd-home-page #process .grid > div {
        padding: 1.05rem 0 !important;
        border: 0 !important;
        border-top: 1px solid var(--jwd-mobile-line) !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .jwd-home-page .jwd-positioning-section .space-y-4 > div > div:first-child { display: none !important; }
    .jwd-home-page #services .grid,
    .jwd-home-page #process .grid { gap: 0 !important; }
    .jwd-home-page .jwd-positioning-visual { display: none !important; }
    .jwd-home-page .jwd-featured-work-grid {
        display: grid !important;
        grid-auto-flow: column !important;
        grid-auto-columns: 84% !important;
        grid-template-columns: none !important;
        gap: 1rem !important;
        padding-bottom: .75rem;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline mandatory;
        scrollbar-width: thin;
    }
    .jwd-home-page .jwd-featured-work-grid > a {
        border-radius: 1rem !important;
        box-shadow: none !important;
        scroll-snap-align: start;
    }
    .jwd-home-page .jwd-featured-work-grid > a > div:first-child { aspect-ratio: 16 / 10 !important; }
    .jwd-home-page .jwd-featured-work-grid > a > div:last-child { padding: 1.15rem !important; }
    .jwd-home-page .jwd-home-about [class*="aspect-"] { aspect-ratio: 4 / 3 !important; }

    /* Contact: keep the portrait and personal note in the document flow. */
    .jwd-contact-page .jwd-contact-hero > div { padding-top: 2.8rem !important; padding-bottom: 3.25rem !important; }
    .jwd-contact-page .jwd-contact-hero .grid,
    .jwd-contact-page .jwd-contact-intro > div,
    .jwd-contact-page .jwd-contact-methods > div,
    .jwd-contact-page .jwd-contact-process .grid,
    .jwd-contact-page .jwd-contact-form > div { gap: 1.8rem !important; }
    .jwd-contact-page .jwd-contact-photo-frame {
        padding: .45rem !important;
        border-radius: 1rem !important;
        box-shadow: none !important;
    }
    .jwd-contact-page .jwd-contact-photo-frame > div {
        aspect-ratio: 4 / 3 !important;
        border-radius: .72rem !important;
    }
    .jwd-contact-page .jwd-contact-photo-frame img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center 30% !important;
    }
    .jwd-contact-page .jwd-contact-photo-note {
        position: static !important;
        max-width: none !important;
        margin-top: .85rem !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: var(--jwd-mobile-ink) !important;
        box-shadow: none !important;
    }
    .jwd-contact-page .jwd-contact-photo-note p { color: var(--jwd-mobile-muted) !important; }
    .jwd-contact-page .jwd-contact-photo-note p:first-child { color: var(--jwd-mobile-ink) !important; }
    .jwd-contact-page .jwd-contact-intro .grid.sm\:grid-cols-2,
    .jwd-contact-page .jwd-contact-methods .grid,
    .jwd-contact-page .jwd-contact-process .grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    .jwd-contact-page .jwd-contact-intro .grid.sm\:grid-cols-2 > div,
    .jwd-contact-page .jwd-contact-methods .grid > a,
    .jwd-contact-page .jwd-contact-process .grid > article {
        padding: 1.05rem 0 !important;
        border: 0 !important;
        border-top: 1px solid var(--jwd-mobile-line) !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .jwd-contact-page .jwd-contact-process .grid > article { border-color: rgba(255,255,255,.26) !important; }
    /* The hero, main form, menu, and footer already expose these paths. Hiding
       the repeated channel cards and service recap removes two mobile screens
       without removing any unique inquiry fields or desktop content. */
    .jwd-contact-page .jwd-contact-intro .grid.sm\:grid-cols-2,
    .jwd-contact-page .jwd-contact-methods,
    .jwd-contact-page .jwd-contact-form aside { display: none !important; }
    .jwd-contact-page .jwd-contact-hero .grid > div:last-child { display: none !important; }
    .jwd-contact-page .jwd-contact-process .grid {
        display: grid !important;
        grid-auto-flow: column !important;
        grid-auto-columns: 84% !important;
        grid-template-columns: none !important;
        gap: .85rem !important;
        padding-bottom: .75rem;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline mandatory;
        scrollbar-width: thin;
    }
    .jwd-contact-page .jwd-contact-process .grid > article {
        padding: 1rem !important;
        border: 1px solid rgba(255,255,255,.26) !important;
        border-radius: .9rem !important;
        scroll-snap-align: start;
    }

    /* About: one clear hero image and fewer card-inside-card treatments. */
    .jwd-about-page .jwd-about-hero > div { padding-top: 2.8rem !important; padding-bottom: 3.2rem !important; }
    .jwd-about-page .jwd-about-hero .grid:first-of-type { gap: 1.8rem !important; }
    .jwd-about-page .jwd-about-hero-gallery {
        grid-template-columns: 1fr !important;
        gap: .8rem !important;
    }
    .jwd-about-page .jwd-about-hero-gallery > div:nth-child(2) { display: none !important; }
    .jwd-about-page .jwd-about-hero-gallery > div:first-child { display: grid; gap: .8rem; }
    .jwd-about-page .jwd-about-hero-gallery > div:first-child > div:first-child { padding: .45rem !important; border-radius: 1rem !important; }
    .jwd-about-page .jwd-about-hero-gallery [class*="aspect-"] { aspect-ratio: 4 / 3 !important; }
    .jwd-about-page .jwd-about-hero-gallery img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center 30% !important;
    }
    .jwd-about-page .jwd-about-hero-gallery > div:first-child > div:last-child {
        padding: .8rem 0 0 !important;
        border: 0 !important;
        background: transparent !important;
    }
    .jwd-about-page .jwd-about-capability > div > .grid { gap: 1.8rem !important; }
    .jwd-about-page .jwd-about-capability .grid.sm\:grid-cols-2 {
        display: grid !important;
        grid-auto-flow: column !important;
        grid-auto-columns: 84% !important;
        grid-template-columns: none !important;
        gap: .85rem !important;
        padding-bottom: .75rem;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline mandatory;
        scrollbar-width: thin;
    }
    .jwd-about-page .jwd-about-capability article {
        padding: 1.05rem !important;
        border: 1px solid var(--jwd-mobile-line) !important;
        border-radius: .9rem !important;
        background: var(--jwd-mobile-cream) !important;
        scroll-snap-align: start;
    }
    .jwd-about-page .jwd-about-capability .mt-10 {
        margin-top: 1.4rem !important;
        padding: 1.4rem !important;
        border-radius: 1rem !important;
    }
    .jwd-about-page .jwd-about-story > div { gap: 1.8rem !important; }
    .jwd-about-page .jwd-about-story aside { position: static !important; }
    .jwd-about-page .jwd-about-story .space-y-8 { gap: 1.5rem !important; }
    .jwd-about-page .jwd-about-story .space-y-8 > .bg-white {
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .jwd-about-page .jwd-about-story .grid > div { border-radius: 1rem !important; box-shadow: none !important; }
    .jwd-about-page .jwd-about-story [class*="aspect-"] { aspect-ratio: 4 / 3 !important; }
    .jwd-about-page .jwd-about-story [class*="aspect-"] img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center 30% !important;
    }
    .jwd-about-page .jwd-computer-callout {
        min-height: clamp(26rem, 58svh, 34rem) !important;
    }
    .jwd-about-page .jwd-computer-callout > div:last-child { padding-top: 2.4rem !important; padding-bottom: 2.4rem !important; }
    .jwd-about-page .jwd-about-personal [class*="min-h-"] {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        min-height: 0 !important;
        gap: .75rem !important;
    }
    .jwd-about-page .jwd-about-personal [class*="min-h-"] > div {
        position: static !important;
        width: 100% !important;
        transform: none !important;
    }
    .jwd-about-page .jwd-about-personal [class*="min-h-"] > div:nth-child(-n+2) {
        padding: .35rem !important;
        border-radius: .85rem !important;
        box-shadow: none !important;
    }
    .jwd-about-page .jwd-about-personal [class*="min-h-"] > div:nth-child(-n+2) [class*="aspect-"] {
        aspect-ratio: 4 / 3 !important;
        border-radius: .6rem !important;
    }
    .jwd-about-page .jwd-about-personal [class*="min-h-"] > div:nth-child(-n+2) img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .jwd-about-page .jwd-about-personal [class*="min-h-"] > div:nth-child(3) {
        grid-column: 1 / -1 !important;
        padding: 1.15rem !important;
        border-radius: 1rem !important;
        box-shadow: none !important;
    }

    /* Services and Work keep their own visual identities but share the same
       mobile rhythm, readable type scale, and image rules. */
    .sv3-page .sv3-shell,
    .work-page .work-shell { width: min(calc(100% - 40px), 1216px) !important; }
    .sv3-page .sv3-hero,
    .work-page .work-hero { padding-block: 2.8rem 3.2rem !important; }
    .sv3-page .sv3-hero__grid,
    .sv3-page .sv3-services__layout,
    .sv3-page .sv3-technical__grid,
    .sv3-page .sv3-faq__grid,
    .work-page .work-hero__grid,
    .work-page .work-project {
        grid-template-columns: 1fr !important;
        gap: 1.8rem !important;
    }
    .sv3-page .sv3-section,
    .work-page .work-section { padding-block: 3.2rem !important; }
    .sv3-page .sv3-heading,
    .work-page .work-heading {
        max-width: 23ch;
        font-size: clamp(1.75rem, 7.7vw, 2.08rem) !important;
        line-height: 1.16 !important;
    }
    .sv3-page .sv3-hero__media {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
        border-width: 6px !important;
        border-radius: 1rem !important;
    }
    .work-page .work-hero__media { aspect-ratio: 4 / 3 !important; border-radius: 1rem !important; }
    .work-page .work-project__media {
        position: relative !important;
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
        padding: .6rem !important;
        border-radius: 1rem !important;
        background: #fff !important;
    }
    .work-page .work-project__media:not(.work-device-stage) > img {
        position: absolute !important;
        inset: .6rem !important;
        width: calc(100% - 1.2rem) !important;
        height: calc(100% - 1.2rem) !important;
        object-fit: contain !important;
    }
    .work-page .work-device-stage img {
        width: 42% !important;
        height: auto !important;
        max-height: 100% !important;
        flex: 0 1 42%;
        object-fit: contain !important;
    }
    .work-page .work-device-stage img:last-child { transform: none !important; }
    .work-page .work-logo-panel img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }
    .work-page .work-secondary__grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
    .work-page .work-logo-panel { min-height: 10rem !important; padding: 1rem !important; background: #fff !important; }

    /* Blog cards stay visual, while metadata becomes plain sentence case. */
    .jwd-blog-page > section:first-child > div { padding-top: 2.8rem !important; padding-bottom: 3.2rem !important; }
    .jwd-blog-page #blog-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
    .jwd-blog-page .blog-card { border-radius: 1rem !important; box-shadow: none !important; }
    .jwd-blog-page .blog-card > div:first-child { aspect-ratio: 16 / 10 !important; }
    .jwd-blog-page .blog-card > div:first-child img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
    .jwd-blog-page .blog-card > div:last-child { padding: 1.15rem !important; }
    .jwd-blog-page .blog-card > div:last-child > p:first-child,
    .jwd-blog-page .blog-card > div:last-child > p:last-child {
        text-transform: none !important;
        letter-spacing: 0 !important;
    }
    .jwd-blog-page #blog-filters { gap: .45rem !important; }
    .jwd-blog-page .filter-pill { padding: .6rem .8rem !important; text-transform: none !important; letter-spacing: 0 !important; }

    .jwd-service-page section,
    .jwd-project-page section,
    .jwd-article-page section,
    .jwd-legal-page section,
    .jwd-community-page section { max-width: 100%; }
}

/* These custom page sections use their own color tokens instead of Tailwind's
   opacity utilities. Opaque white keeps small copy above WCAG AA on sage. */
.sv3-page .sv3-technical .sv3-intro,
.sv3-page .sv3-capability-row dd,
.sv3-page .sv3-cta p,
.work-page .work-cta p { color: #ffffff !important; }

@media (prefers-reduced-motion: reduce) {
    #mobile-menu.jwd-mobile-menu,
    .jwd-mobile-backdrop { transition: none !important; }
}
/* JWD_MOBILE_EXPERIENCE_V2_20260901_END */
