:root {
    --bg: #05080d;
    --bg-soft: #0b1119;
    --ink: #f8fbff;
    --muted: #9aa8b8;
    --panel: rgba(15, 24, 34, 0.78);
    --panel-solid: #101924;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.2);
    --teal: #35e6d6;
    --teal-soft: rgba(53, 230, 214, 0.15);
    --red: #ef3434;
    --red-soft: rgba(239, 52, 52, 0.16);
    --amber: #f7b94b;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 20% 0%, rgba(53, 230, 214, 0.13), transparent 34rem),
        radial-gradient(circle at 90% 18%, rgba(239, 52, 52, 0.13), transparent 31rem),
        linear-gradient(180deg, #05080d 0%, #0a1017 45%, #05080d 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 72%);
}

a {
    color: inherit;
}

.site-header {
    position: fixed;
    z-index: 20;
    top: 16px;
    left: clamp(16px, 4vw, 48px);
    right: clamp(16px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(7, 12, 18, 0.72);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(22px);
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
    font-weight: 900;
}

.brand-logo {
    display: block;
    width: clamp(142px, 16vw, 218px);
    height: 48px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 12px 24px rgba(239, 52, 52, 0.18));
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dce5ee;
    font-size: 0.92rem;
    font-weight: 800;
}

.site-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 8px;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--teal);
    background: rgba(255, 255, 255, 0.06);
}

.site-nav .nav-cta {
    color: #fff;
    background: var(--red);
}

.site-nav .nav-cta:hover {
    color: #fff;
    background: #c92828;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #fff;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: center;
    overflow: hidden;
    padding: 132px clamp(20px, 5vw, 72px) 72px;
}

.hero-media,
.hero-media img,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.015);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(5, 8, 13, 0.98) 0%, rgba(5, 8, 13, 0.86) 42%, rgba(5, 8, 13, 0.18) 100%),
        linear-gradient(180deg, rgba(5, 8, 13, 0.08) 66%, var(--bg) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(820px, 100%);
}

.hero-logo {
    display: block;
    width: min(520px, 88vw);
    height: auto;
    margin: 0 0 24px;
    filter: drop-shadow(0 22px 44px rgba(239, 52, 52, 0.18));
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--teal);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 22px;
    font-size: clamp(2.7rem, 6.4vw, 6rem);
    line-height: 0.92;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(2.05rem, 4vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.12rem;
}

.hero-copy,
.section-heading p,
.contact-copy p,
.split-copy p {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.72;
}

.hero-copy {
    max-width: 690px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background: var(--red);
    box-shadow: 0 16px 38px rgba(239, 52, 52, 0.3);
}

.btn-primary:hover {
    background: #c92828;
}

.btn-secondary {
    color: #fff;
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.08);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    width: min(620px, 100%);
    margin-top: 34px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}

.hero-metrics div {
    min-height: 94px;
    padding: 18px;
    background: rgba(8, 14, 22, 0.74);
    backdrop-filter: blur(18px);
}

.hero-metrics strong,
.hero-metrics span {
    display: block;
}

.hero-metrics strong {
    margin-bottom: 6px;
    color: #fff;
    font-size: 1.55rem;
    font-weight: 900;
}

.hero-metrics span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.diagnostic-card {
    position: absolute;
    right: clamp(20px, 5vw, 72px);
    bottom: 76px;
    z-index: 3;
    width: min(390px, calc(100% - 40px));
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 14, 22, 0.74);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.card-topline {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pulse {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--teal);
    box-shadow: 0 0 0 0 rgba(53, 230, 214, 0.7);
    animation: pulse 1.8s infinite;
}

.diagnostic-card h2 {
    font-size: 1.55rem;
}

.scan-list {
    display: grid;
    gap: 10px;
}

.scan-list span {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.scan-list b {
    font-size: 0.9rem;
}

.scan-list em {
    color: var(--teal);
    font-style: normal;
    font-weight: 900;
}

.brand-strip {
    width: min(1180px, calc(100% - 40px));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin: 28px auto 0;
}

.brand-card {
    position: relative;
    min-height: 132px;
    display: grid;
    place-items: center;
    gap: 10px;
    overflow: hidden;
    padding: 20px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #dce5ee;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
        rgba(12, 20, 30, 0.86);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.2);
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.brand-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(53, 230, 214, 0.24), transparent 46%),
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.12) 42%, transparent 62%);
    transform: translateX(-28%);
    transition: opacity 0.22s ease, transform 0.38s ease;
}

.brand-card img,
.brand-card span {
    position: relative;
    z-index: 1;
}

.brand-card img {
    width: min(104px, 72%);
    height: 54px;
    object-fit: contain;
    opacity: 0.86;
    transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
}

.brand-card span {
    font-size: 0.98rem;
}

.brand-card:hover {
    transform: translateY(-8px);
    border-color: rgba(53, 230, 214, 0.45);
    background:
        linear-gradient(180deg, rgba(53, 230, 214, 0.12), rgba(239, 52, 52, 0.05)),
        rgba(13, 23, 34, 0.94);
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.34), 0 0 34px rgba(53, 230, 214, 0.08);
}

.brand-card:hover::before {
    opacity: 1;
    transform: translateX(28%);
}

.brand-card:hover img {
    opacity: 1;
    transform: scale(1.08);
    filter: drop-shadow(0 0 12px rgba(53, 230, 214, 0.28));
}

.brand-card:hover span {
    color: #fff;
}

.section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 96px 0;
}

.section-heading {
    max-width: 840px;
    margin-bottom: 40px;
}

.section-heading.compact {
    max-width: 760px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service-card,
.work-grid article,
.contact-form,
.proof-card,
.faq-list details,
.review-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
        var(--panel);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.22);
}

.service-card {
    min-height: 310px;
    display: flex;
    flex-direction: column;
    padding: 26px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.service-card:hover,
.work-grid article:hover,
.proof-card:hover {
    transform: translateY(-4px);
    border-color: rgba(53, 230, 214, 0.34);
}

.service-card p,
.timeline p,
.work-grid p,
.proof-card span,
.faq-list p {
    color: var(--muted);
    line-height: 1.65;
}

.service-card a {
    margin-top: auto;
    color: var(--teal);
    font-weight: 900;
    text-decoration: none;
}

.feature-services {
    padding-top: 0;
}

.feature-carousel {
    position: relative;
}

.carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}

.carousel-button {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.carousel-button span {
    display: block;
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-1px);
}

.carousel-button:hover {
    transform: translateY(-2px);
    border-color: rgba(53, 230, 214, 0.38);
    color: var(--teal);
    background: rgba(53, 230, 214, 0.1);
}

.feature-service-grid {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 18px;
    scroll-behavior: smooth;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-color: rgba(53, 230, 214, 0.44) rgba(255, 255, 255, 0.08);
    scrollbar-width: thin;
}

.feature-service-grid::-webkit-scrollbar {
    height: 8px;
}

.feature-service-grid::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.feature-service-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--red), var(--teal));
}

.feature-service {
    position: relative;
    flex: 0 0 clamp(320px, 32vw, 390px);
    min-height: 278px;
    display: block;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.022)),
        rgba(12, 20, 30, 0.82);
    color: #fff;
    text-decoration: none;
    scroll-snap-align: start;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.feature-service::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 1;
    background:
        linear-gradient(180deg, rgba(5, 8, 13, 0.02) 0%, rgba(5, 8, 13, 0.08) 42%, rgba(5, 8, 13, 0.88) 100%),
        radial-gradient(circle at 16% 0%, rgba(239, 52, 52, 0.08), transparent 34%),
        radial-gradient(circle at 92% 100%, rgba(53, 230, 214, 0.12), transparent 42%);
    transition: opacity 0.22s ease;
}

.feature-photo {
    width: 100%;
    height: 100%;
    min-height: 278px;
    display: block;
    object-fit: cover;
    transition: transform 0.32s ease, filter 0.22s ease;
}

.feature-service strong {
    position: relative;
    z-index: 2;
}

.feature-service strong {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px;
    line-height: 1.25;
}

.feature-service:hover {
    transform: translateY(-6px);
    border-color: rgba(53, 230, 214, 0.42);
    background:
        linear-gradient(180deg, rgba(53, 230, 214, 0.08), rgba(239, 52, 52, 0.04)),
        rgba(13, 23, 34, 0.94);
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.3), 0 0 28px rgba(53, 230, 214, 0.06);
}

.feature-service:hover::before {
    opacity: 0.82;
}

.feature-service:hover .feature-photo {
    transform: scale(1.06);
    filter: saturate(1.08) contrast(1.04);
}

.retrofit-book-section {
    padding-top: 30px;
}

.retrofit-book-panel {
    position: relative;
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    overflow: hidden;
    min-height: 520px;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid rgba(247, 185, 75, 0.22);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(247, 185, 75, 0.13), transparent 34%),
        radial-gradient(circle at 92% 18%, rgba(53, 230, 214, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.022)),
        rgba(10, 16, 24, 0.9);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.retrofit-book-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, rgba(247, 185, 75, 0.08), transparent),
        linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px);
    background-size: 100% 100%, 100% 38px;
}

.retrofit-book-copy,
.retrofit-book-visual {
    position: relative;
    z-index: 1;
}

.retrofit-book-copy h2 {
    max-width: 560px;
}

.retrofit-book-copy p {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.72;
}

.retrofit-book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.retrofit-book-tags span {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 13px;
    border: 1px solid rgba(247, 185, 75, 0.28);
    border-radius: 8px;
    color: #ffdb78;
    background: rgba(247, 185, 75, 0.1);
    font-size: 0.82rem;
    font-weight: 900;
}

.retrofit-book-visual {
    min-height: 430px;
    display: grid;
    place-items: center;
}

.book-card {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: #090d13;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.book-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.book-card-main {
    width: min(100%, 660px);
    aspect-ratio: 1.5 / 1;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: rotate(-4deg) translateY(10px);
}

.book-card-main img {
    object-fit: contain;
    filter: drop-shadow(0 32px 34px rgba(0, 0, 0, 0.42));
}

.icon {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(53, 230, 214, 0.24);
    border-radius: 8px;
    color: var(--teal);
    background: var(--teal-soft);
    font-weight: 900;
}

.split-section {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 42px;
    align-items: start;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.proof-card {
    min-height: 180px;
    padding: 24px;
}

.proof-card strong,
.proof-card span {
    display: block;
}

.proof-card strong {
    margin-bottom: 10px;
}

.process-section {
    background:
        linear-gradient(135deg, rgba(53, 230, 214, 0.1), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
    border-block: 1px solid var(--line);
}

.process-inner {
    padding-block: 96px;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.timeline div {
    min-height: 238px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
}

.timeline span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    margin-bottom: 30px;
    border-radius: 8px;
    background: var(--red);
    font-weight: 900;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.work-grid article {
    min-height: 190px;
    padding: 28px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.reviews-section {
    padding-top: 24px;
}

.review-panel {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 28px;
    align-items: center;
    padding: 32px;
}

.review-panel p {
    max-width: 620px;
    color: var(--muted);
    line-height: 1.65;
}

.review-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}

.review-stats div {
    min-height: 132px;
    display: grid;
    align-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.045);
}

.review-stats strong,
.review-stats span {
    display: block;
}

.review-stats strong {
    margin-bottom: 8px;
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 900;
}

.review-stats span {
    color: var(--muted);
    line-height: 1.45;
}

.faq-section {
    padding-top: 32px;
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-list details {
    padding: 22px 24px;
}

.faq-list summary {
    cursor: pointer;
    color: #fff;
    font-weight: 900;
}

.faq-list p {
    margin: 14px 0 0;
}

.contact-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 44px;
    align-items: start;
}

.contact-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
    font-weight: 900;
}

.contact-list a {
    color: var(--teal);
    text-decoration: none;
}

.contact-form {
    display: grid;
    gap: 18px;
    padding: 28px;
}

.form-status {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid rgba(53, 230, 214, 0.26);
    border-radius: 8px;
    color: #dffdf9;
    background: rgba(53, 230, 214, 0.1);
    line-height: 1.5;
}

.form-status.is-error {
    border-color: rgba(239, 52, 52, 0.34);
    color: #ffe9e9;
    background: rgba(239, 52, 52, 0.12);
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: #eaf0f7;
    font-weight: 900;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 15px 16px;
    color: #f8fbff;
    background: rgba(7, 12, 18, 0.86);
    font: inherit;
    caret-color: var(--teal);
    outline: none;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(248, 251, 255, 0.44);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(53, 230, 214, 0.62);
    background: rgba(10, 16, 24, 0.96);
    box-shadow: 0 0 0 3px rgba(53, 230, 214, 0.13);
}

.contact-form input:-webkit-autofill,
.contact-form textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #0a1018 inset;
    -webkit-text-fill-color: #f8fbff;
}

.contact-form textarea {
    resize: vertical;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 32px clamp(20px, 4vw, 56px);
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.site-footer a {
    color: var(--teal);
    font-weight: 900;
    text-decoration: none;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 10px rgba(53, 230, 214, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(53, 230, 214, 0);
    }
}

@media (max-width: 1100px) {
    .diagnostic-card {
        display: none;
    }
}

@media (max-width: 980px) {
    .brand-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-grid,
    .retrofit-book-panel,
    .timeline,
    .work-grid,
    .contact-section,
    .split-section,
    .review-panel {
        grid-template-columns: 1fr 1fr;
    }

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

    .retrofit-book-visual {
        min-height: 430px;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(5, 8, 13, 0.98) 0%, rgba(5, 8, 13, 0.9) 62%, rgba(5, 8, 13, 0.42) 100%),
            linear-gradient(180deg, rgba(5, 8, 13, 0.08) 66%, var(--bg) 100%);
    }
}

@media (max-width: 720px) {
    .site-header {
        top: 10px;
        left: 10px;
        right: 10px;
    }

    .brand-logo {
        width: min(56vw, 190px);
        height: 42px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(10, 16, 24, 0.98);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        justify-content: center;
    }

    .hero {
        min-height: 900px;
        padding: 118px 16px 56px;
        align-items: start;
    }

    .hero-logo {
        width: min(100%, 420px);
        margin-bottom: 18px;
    }

    .hero-media img {
        object-position: 64% center;
    }

    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(5, 8, 13, 0.98) 0%, rgba(5, 8, 13, 0.92) 58%, rgba(5, 8, 13, 0.48) 100%),
            linear-gradient(180deg, rgba(5, 8, 13, 0.08) 72%, var(--bg) 100%);
    }

    .hero-actions,
    .site-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-metrics,
    .service-grid,
    .retrofit-book-panel,
    .timeline,
    .work-grid,
    .contact-section,
    .split-section,
    .review-panel,
    .review-stats {
        grid-template-columns: 1fr;
    }

    .brand-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .brand-card {
        min-height: 116px;
    }

    .brand-card img {
        height: 44px;
    }

    .carousel-controls {
        justify-content: flex-start;
    }

    .feature-service {
        flex-basis: min(84vw, 360px);
        min-height: 254px;
    }

    .feature-photo {
        min-height: 254px;
    }

    .retrofit-book-panel {
        min-height: auto;
        padding: 24px;
    }

    .retrofit-book-copy p {
        font-size: 1rem;
    }

    .retrofit-book-visual {
        min-height: 360px;
    }

    .book-card-main {
        width: 100%;
        transform: rotate(-4deg);
    }

    .brand-strip,
    .section {
        width: min(100% - 32px, 1180px);
    }

    .section,
    .process-inner {
        padding-block: 68px;
    }
}
