* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body-font);
    font-size: var(--base-size);
    line-height: 1.6;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.wrap {
    width: min(calc(100% - 36px), var(--max-width));
    margin-inline: auto;
}

.muted-copy,
.fine {
    color: var(--muted);
}

.announcement {
    padding: 9px 18px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    color: #15100a;
    text-align: center;
    font-weight: 900;
}

.topbar {
    background: color-mix(in srgb, var(--bg) 82%, #000);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: .83rem;
}

.topbar .wrap {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 91%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
    height: 88px;
}

.brand {
    width: 310px;
    max-height: 68px;
    flex: 0 1 310px;
}

.brand img,
img.brand {
    max-height: 68px;
    object-fit: contain;
    object-position: left center;
}

.navlinks {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    min-width: 0;
    font-size: .9rem;
    font-weight: 800;
}

.navlinks a {
    opacity: .9;
    white-space: nowrap;
}

.navlinks a:hover,
.navlinks a:focus-visible {
    color: var(--accent);
    opacity: 1;
}

.mobile-home {
    display: none;
}

.menu-btn {
    display: none;
    margin-left: auto;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: var(--button-size);
    font-weight: 900;
    transition: transform .2s ease, border-color .2s ease, color .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 20%, transparent);
    color: color-mix(in srgb, var(--bg) 88%, #000);
}

.btn-outline {
    border-color: var(--line);
    background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: 680px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(5, 7, 10, .95) 0%, rgba(5, 7, 10, .82) 43%, rgba(5, 7, 10, .2) 76%, rgba(5, 7, 10, .65) 100%),
        var(--hero-image) center / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 75% 40%, transparent, rgba(0, 0, 0, .34));
}

.hero-content {
    max-width: 760px;
    padding: 92px 0;
    color: #f4f6f8;
}

.eyebrow {
    color: var(--accent);
    font-size: .8rem;
    font-weight: 950;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 14px 0 24px;
    font-family: var(--heading-font);
    font-size: clamp(3rem, 6vw, var(--h1-size));
    line-height: .94;
    letter-spacing: -.04em;
    text-transform: uppercase;
}

.hero p {
    max-width: 680px;
    color: #d9e0e6;
    font-size: 1.18rem;
}

.hero-actions,
.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions {
    margin: 30px 0;
}

.hero-metrics {
    margin-top: 32px;
}

.metric {
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    background: rgba(15, 19, 24, .62);
    backdrop-filter: blur(12px);
}

.metric b {
    display: block;
    color: #fff;
}

.metric span {
    color: #c8d0d8;
}

.section {
    padding: 92px 0;
}

.section.alt {
    background: var(--surface);
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 36px;
}

.section-title h2,
.display-heading {
    margin: 8px 0;
    font-family: var(--heading-font);
    font-size: clamp(2rem, 5vw, var(--h2-size));
    line-height: 1;
    text-transform: uppercase;
}

.section-title p {
    max-width: 620px;
    color: var(--muted);
}

.services {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.service {
    min-width: 0;
    min-height: 220px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, var(--surface2), color-mix(in srgb, var(--surface) 78%, #000));
    transition: transform .2s ease, border-color .2s ease;
}

.service:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}

.service .ico {
    color: var(--accent);
    font-size: 2rem;
}

.service h3,
.gallery-meta h3 {
    font-size: var(--h3-size);
}

.service h3 {
    margin: 16px 0 8px;
}

.service p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
}

.split {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 48px;
}

.image-stack {
    position: relative;
    min-width: 0;
    min-height: 520px;
}

.image-stack img {
    position: absolute;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .35);
    object-fit: cover;
}

.image-stack img:first-child {
    top: 0;
    left: 0;
    width: 75%;
    height: 440px;
}

.image-stack img:last-child {
    right: 0;
    bottom: 0;
    width: 56%;
    height: 320px;
    border: 8px solid var(--bg);
}

.feature-list {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.check {
    flex: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
    border-radius: 9px;
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    color: var(--accent);
    font-weight: 900;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 32px;
}

.filter {
    padding: 11px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface2);
    color: var(--text);
    font-weight: 850;
}

.filter.active,
.filter:hover,
.filter:focus-visible {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: color-mix(in srgb, var(--bg) 88%, #000);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.gallery-card {
    position: relative;
    min-width: 0;
    min-height: 300px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface2);
    transition: transform .25s ease, border-color .25s ease;
}

.gallery-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.gallery-card.hide {
    display: none;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    transition: transform .35s ease;
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
    transform: scale(1.045);
}

.gallery-meta {
    position: absolute;
    inset: auto 0 0;
    padding: 50px 18px 18px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .9));
    color: #fff;
}

.gallery-meta small {
    color: var(--accent);
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.gallery-meta h3 {
    margin: 3px 0 0;
}

.compare {
    --position: 50%;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

.compare img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-after {
    clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

.compare-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--position);
    z-index: 3;
    width: 3px;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 0 18px rgba(0, 0, 0, .55);
    pointer-events: none;
}

.compare-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    transform: translate(-50%, -50%);
    border: 3px solid #fff;
    border-radius: 999px;
    background: var(--accent);
    color: #17100a;
    font-size: 1.2rem;
    font-weight: 950;
}

.compare-label {
    position: absolute;
    top: 16px;
    z-index: 4;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .64);
    color: #fff;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
    pointer-events: none;
}

.compare-label-before {
    left: 16px;
}

.compare-label-after {
    right: 16px;
}

.compare-range {
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}

.reviews {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.review {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface2);
}

.stars {
    color: var(--accent);
    letter-spacing: .14em;
}

.review p {
    color: color-mix(in srgb, var(--text) 88%, var(--muted));
}

.areas {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.area {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
}

.faq {
    display: grid;
    gap: 10px;
}

.faq details {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface2);
}

.faq summary {
    cursor: pointer;
    font-weight: 900;
}

.faq p {
    color: var(--muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 34px;
}

.contact-card {
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, var(--surface2), var(--surface));
}

.contact-heading {
    margin: 10px 0 12px;
    font-family: var(--heading-font);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1;
    text-transform: uppercase;
}

.contact-card > h2:not(.contact-heading) {
    margin-top: 6px;
}

.form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    font-size: .9rem;
    font-weight: 850;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
}

.field textarea {
    min-height: 130px;
    resize: vertical;
}

.honeypot {
    position: absolute;
    left: -10000px;
}

.fine {
    font-size: .8rem;
}

.toast {
    margin: 15px 0;
    padding: 14px 16px;
    border: 1px solid #2a7e49;
    border-radius: 12px;
    background: #123321;
    color: #fff;
}

.toast.error {
    border-color: #8b3434;
    background: #351515;
}

.footer {
    padding: 46px 0 110px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.footer .brand {
    width: 260px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: .84rem;
}

.streetwise-credit a {
    color: var(--text);
    font-weight: 900;
}

.streetwise-credit a:hover,
.streetwise-credit a:focus-visible {
    color: var(--accent);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.social-links a {
    color: var(--text);
    font-size: .86rem;
    font-weight: 800;
}

.mobile-dock {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 22px;
    background: rgba(0, 0, 0, .82);
}

.modal.open {
    display: grid;
}

.modal-inner {
    width: min(100%, 1050px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.modal img {
    width: 100%;
    max-height: 70vh;
    background: #06080a;
    object-fit: contain;
}

.modal-copy {
    padding: 18px;
}

.close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-size: 1.4rem;
}

@media (max-width: 1100px) {
    .services,
    .gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .reviews {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .navlinks {
        gap: 13px;
        font-size: .82rem;
    }

    .brand {
        width: 270px;
        flex-basis: 270px;
    }
}

@media (max-width: 900px) {
    .wrap {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .topbar {
        display: none;
    }

    .nav {
        height: 76px;
    }

    .brand {
        width: 245px;
        flex-basis: 245px;
    }

    .menu-btn {
        display: block;
    }

    .navlinks {
        position: absolute;
        top: 76px;
        right: 14px;
        left: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: var(--surface);
        box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
    }

    .navlinks.open {
        display: flex;
    }

    .navlinks .mobile-home {
        display: block;
    }

    .navlinks .btn {
        text-align: center;
    }

    .hero {
        min-height: 620px;
    }

    .split,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .image-stack {
        min-height: 470px;
    }

    .gallery,
    .services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid,
    .footer-bottom {
        flex-direction: column;
    }

    .footer-bottom {
        align-items: flex-start;
    }

    .mobile-dock {
        position: fixed;
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        left: 12px;
        z-index: 80;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: color-mix(in srgb, var(--bg) 94%, transparent);
        box-shadow: 0 15px 45px rgba(0, 0, 0, .45);
        backdrop-filter: blur(18px);
    }

    .mobile-dock a {
        display: grid;
        place-items: center;
        min-width: 0;
        padding: 10px 5px;
        border-radius: 12px;
        background: var(--surface2);
        font-size: .76rem;
        font-weight: 900;
        text-align: center;
    }

    .mobile-dock a:last-child {
        background: linear-gradient(135deg, var(--accent), var(--accent2));
        color: color-mix(in srgb, var(--bg) 88%, #000);
    }
}

@media (max-width: 640px) {
    /* iPhone-only 90% visual-scale pass. iPad/tablet rules above 640px remain untouched. */
    body {
        font-size: calc(var(--base-size) - 2px);
    }

    .wrap {
        width: min(90%, var(--max-width));
        margin-inline: auto;
    }

    .brand {
        width: 205px;
        flex-basis: 205px;
    }

    .hero {
        min-height: 650px;
    }

    .hero .hero-content {
        width: 90%;
        max-width: 90%;
        margin-inline: auto;
        padding: 64px max(2px, env(safe-area-inset-right)) 88px max(2px, env(safe-area-inset-left));
    }

    .eyebrow {
        font-size: .72rem;
        letter-spacing: .18em;
    }

    .hero h1 {
        max-width: 100%;
        margin: 12px 0 18px;
        font-size: clamp(1.95rem, 9.8vw, 3.05rem);
        line-height: 1;
        letter-spacing: -.035em;
        overflow-wrap: normal;
        word-break: normal;
    }

    .hero p {
        max-width: 100%;
        margin-block: 0;
        font-size: .92rem;
        line-height: 1.55;
    }

    .hero-actions {
        margin: 24px 0;
    }

    .hero-actions .btn {
        width: 100%;
        padding: 11px 16px;
        font-size: .88rem;
    }

    .hero-metrics {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 26px auto 0;
        justify-items: stretch;
    }

    .metric {
        min-width: 0;
        width: 100%;
        padding: 11px 10px;
        text-align: center;
    }

    .metric b {
        font-size: .91rem;
        line-height: 1.25;
    }

    .metric span {
        display: block;
        margin-top: 3px;
        font-size: .78rem;
        line-height: 1.35;
    }

    .section-title h2,
    .display-heading {
        font-size: clamp(1.7rem, 8.2vw, 2.65rem);
    }

    .section-title p,
    .service p,
    .review p,
    .faq-body,
    .contact-card p {
        font-size: .9rem;
    }

    .service,
    .gallery-card,
    .review,
    .contact-card {
        width: 100%;
        margin-inline: auto;
    }

    .services,
    .gallery,
    .reviews {
        grid-template-columns: 1fr;
    }

    .gallery-card,
    .gallery-card img {
        min-height: 360px;
    }

    .form {
        grid-template-columns: 1fr;
    }

    .field.full {
        grid-column: auto;
    }

    .section {
        padding: 58px 0;
    }

    .image-stack {
        min-height: 380px;
    }

    .image-stack img:first-child {
        width: 82%;
        height: 320px;
    }

    .image-stack img:last-child {
        width: 58%;
        height: 230px;
    }

    .mobile-dock {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mobile-dock .email-action {
        display: none;
    }
}

@media (max-width: 390px) {
    .brand {
        width: 188px;
        flex-basis: 188px;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .gallery-card,
    .gallery-card img {
        min-height: 315px;
    }
}

/* 2026-08-20 FINAL iPHONE 90% VIEWING PASS
   iPhone only. Tablet/iPad rules intentionally remain unchanged. */
@media (max-width: 640px) {
    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

    body {
        font-size: max(14px, calc(var(--base-size) - 3px));
    }

    /* Keep the normal site centered with equal breathing room on both sides. */
    .wrap {
        width: 90%;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero {
        width: 100%;
        min-height: 620px;
        overflow: hidden;
    }

    .hero .hero-content {
        width: 90%;
        max-width: 90%;
        min-width: 0;
        margin-left: auto;
        margin-right: auto;
        padding: 56px 0 74px;
    }

    .hero .eyebrow {
        max-width: 100%;
        font-size: .64rem;
        line-height: 1.45;
        letter-spacing: .16em;
    }

    .hero h1 {
        width: 100%;
        max-width: 100%;
        margin: 12px 0 18px;
        font-size: clamp(1.85rem, 8.7vw, 2.55rem);
        line-height: 1.02;
        letter-spacing: -.03em;
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: none;
    }

    .hero p {
        width: 100%;
        max-width: 100%;
        font-size: .86rem;
        line-height: 1.55;
    }

    .hero-actions {
        width: 100%;
        max-width: 100%;
        margin: 22px auto 0;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 10px 14px;
        font-size: .82rem;
    }

    .hero-metrics {
        display: grid;
        width: 100%;
        max-width: 100%;
        margin: 24px auto 0;
        grid-template-columns: 1fr;
        gap: 10px;
        align-items: stretch;
        justify-items: stretch;
    }

    .hero-metrics .metric {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 auto;
        padding: 12px 14px;
        text-align: left;
    }

    .hero-metrics .metric b {
        font-size: .88rem;
        line-height: 1.25;
    }

    .hero-metrics .metric span {
        font-size: .76rem;
        line-height: 1.35;
    }

    /* Bring the rest of the iPhone type scale down without affecting iPad. */
    .section-title h2,
    .display-heading {
        font-size: clamp(1.55rem, 7.4vw, 2.25rem);
        line-height: 1.05;
    }

    .section-title p,
    .service p,
    .review p,
    .faq-body,
    .contact-card p,
    .split p {
        font-size: .86rem;
    }

    .service h3,
    .gallery-card h3,
    .contact-card h3 {
        font-size: 1rem;
    }

    .service,
    .gallery-card,
    .review,
    .contact-card,
    .form,
    .split,
    .section-title,
    .services,
    .gallery,
    .reviews {
        max-width: 100%;
        min-width: 0;
    }
}

@media (max-width: 390px) {
    .hero h1 {
        font-size: clamp(1.75rem, 8.4vw, 2.25rem);
    }

    .hero .hero-content,
    .wrap {
        width: 90%;
        max-width: 90%;
    }
}
