:root {
    --bg: #f7fbff;
    --panel: rgba(255, 255, 255, 0.82);
    --panel-strong: #ffffff;
    --text: #102033;
    --muted: #5f6f83;
    --line: rgba(16, 32, 51, 0.12);
    --acid: #2f7df6;
    --cyan: #14c8d8;
    --coral: #ff7a59;
    --shadow: rgba(45, 72, 105, 0.16);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, rgba(47, 125, 246, 0.12), transparent 30rem),
        radial-gradient(circle at 12% 8%, rgba(20, 200, 216, 0.16), transparent 24rem),
        radial-gradient(circle at 88% 12%, rgba(255, 122, 89, 0.12), transparent 22rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

body.menu-open {
    overflow: hidden;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

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

#scene3d {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    opacity: 0.78;
    pointer-events: none;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(47, 125, 246, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 125, 246, 0.045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.site-header,
main,
.site-footer {
    position: relative;
    z-index: 2;
}

.site-header {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 50;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    width: min(1160px, calc(100% - 32px));
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 20px 70px var(--shadow);
    backdrop-filter: blur(22px);
    transform: translateX(-50%);
}

.brand,
.main-nav,
.header-contact {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 6px;
    background: var(--acid);
    color: #ffffff;
    font-size: 0.78rem;
}

.main-nav {
    justify-content: center;
    gap: clamp(14px, 2vw, 32px);
    color: var(--muted);
    font-size: 0.88rem;
}

.main-nav a,
.header-contact {
    transition: color 180ms ease, opacity 180ms ease;
}

.main-nav a:hover,
.main-nav a.active,
.header-contact:hover {
    color: var(--acid);
}

.header-contact {
    min-height: 38px;
    justify-content: center;
    border: 1px solid rgba(47, 125, 246, 0.72);
    border-radius: 6px;
    padding: 0 16px;
    background: var(--acid);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 900;
}

.header-contact:hover {
    color: #ffffff;
    opacity: 0.86;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 3px auto;
    background: currentColor;
    transition: transform 220ms ease, opacity 220ms ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

.section-panel {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(82px, 11vw, 148px) 0;
}

.hero {
    display: block;
    min-height: 225svh;
    padding-top: 0;
    padding-bottom: 0;
}

.eyebrow {
    color: var(--acid);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title {
    max-width: 1120px;
    margin-top: 18px;
    font-size: clamp(3.3rem, 8.35vw, 8.8rem);
    font-weight: 900;
    line-height: 0.88;
    text-transform: uppercase;
    transform-origin: center center;
    will-change: transform, opacity, filter;
}

.section-heading h2 {
    max-width: 980px;
    margin-top: 18px;
    font-size: clamp(3.4rem, 10.5vw, 10.4rem);
    font-weight: 900;
    line-height: 0.85;
    text-transform: uppercase;
}

.hero-copy {
    position: sticky;
    top: 0;
    display: flex;
    height: 100svh;
    flex-direction: column;
    justify-content: center;
    max-width: 1120px;
    perspective: 900px;
    transform-origin: center center;
    will-change: transform, opacity;
}

.hero-text,
.estimator-copy p,
.contact-card p,
.about-copy p,
.faq-item p {
    max-width: 620px;
    margin-top: 28px;
    color: var(--muted);
    font-size: clamp(1rem, 1.45vw, 1.25rem);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.hero-reveal {
    position: absolute;
    top: 42%;
    left: 0;
    max-width: 860px;
    border-left: 4px solid var(--acid);
    border-radius: 0 8px 8px 0;
    padding: 26px 28px 28px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.28));
    box-shadow: 0 24px 90px rgba(45, 72, 105, 0.2);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(42px);
    will-change: transform, opacity;
}

.hero .hero-text {
    max-width: 820px;
    margin-top: 0;
    color: var(--text);
    font-size: clamp(1.25rem, 2vw, 2rem);
    line-height: 1.45;
    text-shadow: 0 2px 24px rgba(255, 255, 255, 0.9);
}

.hero .hero-actions {
    margin-top: 28px;
    gap: 14px;
}

.hero .button {
    min-width: 190px;
    min-height: 54px;
    border-width: 2px;
    color: #ffffff;
    opacity: 1;
    box-shadow: 0 18px 42px rgba(45, 72, 105, 0.2);
}

.hero .button-primary {
    border-color: var(--acid);
    background: var(--acid);
    color: #ffffff;
}

.hero .button-ghost {
    border-color: rgba(16, 32, 51, 0.14);
    background: #ffffff;
    color: var(--text);
}

.hero .button:hover {
    border-color: var(--cyan);
    background: var(--cyan);
    color: #ffffff;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 18px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
    border-color: rgba(47, 125, 246, 0.7);
}

.button-primary {
    border-color: var(--acid);
    background: var(--acid);
    color: #ffffff;
}

.button-ghost {
    background: rgba(255, 255, 255, 0.58);
}

.hero-stats {
    position: absolute;
    right: 0;
    top: calc(100svh - 340px);
    width: min(340px, 28vw);
    display: grid;
    gap: 10px;
    will-change: transform, opacity;
}

.hero-stats div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: var(--panel);
    backdrop-filter: blur(18px);
}

.hero-stats span {
    display: block;
}

.hero-stats span:first-child {
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3.7rem);
    font-weight: 900;
    line-height: 1;
}

.hero-stats span:last-child {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.scroll-cue {
    position: absolute;
    right: 0;
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.scroll-cue span {
    width: 52px;
    height: 1px;
    background: var(--muted);
}

.marquee {
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: var(--acid);
    color: #ffffff;
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 42px;
    padding: 18px 0;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    animation: marquee 22s linear infinite;
}

.marquee-track span {
    font-size: clamp(1rem, 2vw, 1.7rem);
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

.section-heading {
    display: grid;
    gap: 4px;
    margin-bottom: clamp(34px, 7vw, 84px);
}

.work-list {
    display: grid;
    gap: 18px;
}

.work-item {
    display: grid;
    grid-template-columns: minmax(240px, 0.52fr) 1fr;
    min-height: 300px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-strong);
}

.work-link {
    color: inherit;
}

.work-visual {
    position: relative;
    display: grid;
    min-height: 260px;
    place-items: end start;
    padding: 22px;
    isolation: isolate;
}

.work-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-size: 90px 90px, cover;
}

.work-visual img {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92) contrast(0.96);
    transform: scale(1.02);
}

.work-visual:has(img)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(16, 32, 51, 0.42)),
        linear-gradient(90deg, rgba(16, 32, 51, 0.18), transparent);
}

.visual-a::before {
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, 0.16) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.16) 75%),
        linear-gradient(135deg, #ff9a7f, #fff4ee 72%);
}

.visual-medical::before {
    background:
        radial-gradient(circle at 72% 28%, rgba(47, 125, 246, 0.24), transparent 13rem),
        linear-gradient(135deg, #5ddbd3, #efffff 72%);
}

.visual-b::before {
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(135deg, #55d7ff, #eef9ff 76%);
}

.visual-c::before {
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.25) 2px, transparent 3px),
        linear-gradient(135deg, #8fc7ff, #f6fbff 76%);
}

.work-visual span {
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(0, 0, 0, 0.22);
    color: white;
    font-weight: 800;
}

.work-content {
    display: grid;
    align-content: end;
    gap: 16px;
    padding: clamp(24px, 5vw, 56px);
}

.work-content p,
.service-index,
.timeline-step span {
    color: var(--coral);
    font-weight: 900;
}

.work-content h3,
.service-card h3,
.timeline-step h3,
.contact-card h2 {
    font-size: clamp(1.7rem, 4vw, 4.7rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.work-content span,
.service-card p,
.timeline-step p,
.local-seo-card li {
    max-width: 560px;
    color: var(--muted);
    line-height: 1.6;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.service-card {
    min-height: 320px;
    padding: 24px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.66);
}

.service-card h3 {
    margin-top: 52px;
    font-size: clamp(1.35rem, 2.4vw, 2.25rem);
}

.service-card p {
    margin-top: 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 18px;
    align-items: stretch;
}

.about-copy,
.local-seo-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 24px 80px var(--shadow);
    backdrop-filter: blur(18px);
}

.about-copy {
    padding: clamp(24px, 5vw, 54px);
}

.about-copy p:first-child {
    margin-top: 0;
    color: var(--text);
    font-size: clamp(1.12rem, 1.65vw, 1.42rem);
}

.local-seo-card {
    display: grid;
    align-content: end;
    padding: 24px;
}

.local-seo-card h3 {
    margin-top: 54px;
    font-size: clamp(2.2rem, 4.5vw, 4.8rem);
    line-height: 0.9;
    text-transform: uppercase;
}

.local-seo-card ul {
    display: grid;
    gap: 12px;
    margin-top: 28px;
    list-style: none;
}

.local-seo-card li {
    position: relative;
    padding-left: 18px;
}

.local-seo-card li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--acid);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
}

.timeline-step {
    min-height: 280px;
    padding: 24px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.timeline-step:last-child {
    border-right: 1px solid var(--line);
}

.timeline-step h3 {
    margin-top: 56px;
    font-size: clamp(1.4rem, 3vw, 2.6rem);
}

.timeline-step p {
    margin-top: 18px;
}

.estimator {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(28px, 6vw, 80px);
    align-items: start;
}

.price-tool,
.contact-card,
.contact-form,
.faq-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 24px 80px var(--shadow);
    backdrop-filter: blur(18px);
}

.price-tool {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.price-tool label {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 14px;
    color: var(--muted);
    cursor: pointer;
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.price-tool label:has(input:checked) {
    border-color: rgba(47, 125, 246, 0.72);
    background: rgba(47, 125, 246, 0.08);
    color: var(--text);
}

.price-tool input {
    width: 18px;
    height: 18px;
    accent-color: var(--acid);
}

.price-result {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-top: 10px;
    padding: 22px;
    border-radius: 6px;
    background: var(--acid);
    color: #ffffff;
}

.price-result span {
    font-weight: 800;
    text-transform: uppercase;
}

.price-result strong {
    font-size: clamp(2rem, 5vw, 4.4rem);
    line-height: 0.9;
}

.contact {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 18px;
}

.contact-card,
.contact-form {
    padding: clamp(24px, 5vw, 54px);
}

.contact-links {
    display: grid;
    gap: 10px;
    margin-top: 32px;
    color: var(--acid);
    font-weight: 800;
}

.contact-form {
    display: grid;
    gap: 12px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--text);
    padding: 16px;
    outline: none;
    resize: vertical;
    transition: border-color 180ms ease, background 180ms ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--acid);
    background: rgba(47, 125, 246, 0.08);
}

.contact-form select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--acid) 50%),
        linear-gradient(135deg, var(--acid) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 50%,
        calc(100% - 14px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

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

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-item summary {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 22px;
    color: var(--text);
    cursor: pointer;
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    font-weight: 900;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--acid);
}

.faq-item[open] summary::after {
    content: "-";
}

.faq-item p {
    max-width: 850px;
    margin: 0;
    padding: 0 22px 24px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 44px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}
