* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background: var(--page-bg, var(--paper));
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 18px 0;
    background: var(--nav-bg);
    transition: padding .24s ease, background .24s ease, box-shadow .24s ease, backdrop-filter .24s ease;
}
.site-nav.is-scrolled {
    padding: 12px 0;
    background: var(--nav-scrolled-bg);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 40px var(--nav-scrolled-shadow);
}
.nav-shell,
.section-shell {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 2%;
    padding-right: 2%;
}
.nav-shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo {
    display: block;
    width: min(240px, 42vw);
    height: auto;
    transition: width .24s ease;
}
.site-nav.is-scrolled .brand-logo { width: min(196px, 32vw); }
.nav-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.nav-links a {
    padding: 8px 0;
    font-size: .92rem;
    color: var(--muted);
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }

.mobile-menu-button,
.mobile-menu { display: none; }
.mobile-menu-button {
    border: 0;
    cursor: pointer;
}
.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}
.mobile-menu-button span + span { margin-top: 4px; }
.mobile-menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.panel {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    overflow: clip;
}
.panel-shell {
    width: 100%;
    padding: 54px 0 54px;
}
.panel-home .panel-shell { padding-top: 145px; }
.section-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
    gap: 34px;
    align-items: center;
}
.section-stack { display: grid; gap: 18px; }
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--teal);
}
.panel-contact .kicker { color: rgba(255, 255, 255, .76); }
.kicker::before {
    content: "";
    width: 32px;
    height: 1px;
    background: currentColor;
}
h1, h2, h3 {
    margin: 0 0 14px;
    font-family: "Fraunces", serif;
    line-height: .98;
    letter-spacing: -.04em;
    font-weight: 600;
}
h1 { font-size: clamp(3.2rem, 7.2vw, 6.2rem); max-width: 9ch; }
h2 { font-size: clamp(2.4rem, 5vw, 4.8rem); max-width: 10ch; }
h3 { font-size: 1.4rem; }
.lead,
.body-text { line-height: 1.8; color: var(--muted); }
.panel-contact .lead,
.panel-contact .body-text { color: rgba(255, 255, 255, .8); }
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
    background: linear-gradient(135deg, var(--button-primary-start, var(--accent)), var(--button-primary-end, var(--accent-deep)));
    color: var(--white);
    box-shadow: 0 16px 36px var(--button-primary-shadow, var(--accent-shadow));
}
.button-whatsapp {
    background: linear-gradient(135deg, var(--button-primary-start, var(--accent)), var(--button-primary-end, var(--accent-deep)));
    color: var(--white);
    box-shadow: 0 16px 36px var(--button-primary-shadow, var(--accent-shadow));
}
.button-secondary {
    background: var(--button-secondary-bg);
    border: 1px solid var(--button-secondary-border);
    color: var(--button-secondary-color, inherit);
}
.button-ghost {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    color: var(--white);
}
.landing-blog-heading {
    max-width: none;
}
.landing-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.landing-blog-card {
    display: grid;
    gap: 12px;
    align-content: start;
    min-height: 100%;
    padding: 28px;
    border-radius: 30px;
    border: 1px solid var(--line);
    background: rgba(255, 253, 249, .82);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}
.landing-blog-card h3 {
    margin: 0;
    font-size: clamp(1.6rem, 2vw, 2rem);
    line-height: 1.05;
    letter-spacing: -.03em;
}
.landing-blog-card .body-text {
    margin: 0;
}
.landing-blog-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 22px;
    border: 1px solid var(--line);
}
.landing-blog-meta {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.6;
}
.landing-blog-actions {
    margin-top: 0;
}
.landing-blog-footer-actions {
    justify-content: center;
}
.content-card,
.glass,
.service-card,
.phase-card,
.assessment-summary,
.contact-card {
    border-radius: 30px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.content-card,
.service-card,
.phase-card,
.assessment-summary,
.contact-card {
    background: rgba(255, 253, 249, .82);
    backdrop-filter: blur(18px);
    padding: 28px;
}
.glass {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    background: var(--glass-bg);
    padding: 30px;
}
.glass::before,
.glass::after {
    content: "";
    position: absolute;
    border-radius: 999px;
}
.glass::before {
    width: 240px;
    height: 240px;
    right: -70px;
    top: -60px;
    background: var(--glass-blob-primary);
}
.glass::after {
    width: 190px;
    height: 190px;
    left: -40px;
    bottom: -50px;
    background: var(--glass-blob-secondary);
}
.hero-meter {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
}
.meter-box {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(20, 33, 38, .08);
}
.meter-label,
.service-label,
.phase-label,
.detail-label {
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--soft);
}
.service-label,
.phase-label,
.detail-label { color: var(--highlight); }
.meter-value {
    margin-top: 12px;
    font-family: "Fraunces", serif;
    font-size: clamp(2.6rem, 6vw, 4.3rem);
    line-height: 1;
    color: var(--teal);
}
.three-column-grid,
.two-column-grid { display: grid; gap: 18px; }
.three-column-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-column-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 12px;
}
.list li {
    position: relative;
    padding-left: 18px;
    line-height: 1.75;
    color: var(--muted);
}
.panel-contact .list li { color: rgba(255, 255, 255, .8); }
.list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
}
.service-card:nth-child(2) { transform: translateY(34px); }
.service-card:nth-child(3) { transform: translateY(68px); }
.assessment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: start;
}
.assessment-list { display: grid; gap: 6px; }
.question {
    padding: 18px 0;
    border-bottom: 1px solid rgba(20, 33, 38, .08);
}
.question:last-child { border-bottom: 0; }
.question-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}
.score-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.score-button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(20, 33, 38, .12);
    background: rgba(255, 255, 255, .86);
    cursor: pointer;
}
.score-button.is-active {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}
.assessment-summary { position: sticky; top: 110px; }
.assessment-total {
    margin: 14px 0 6px;
    font-family: "Fraunces", serif;
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1;
    color: var(--accent-deep);
}
.phase-card {
    min-height: 240px;
    position: relative;
    overflow: hidden;
}
.phase-card::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -28px;
    width: 120px;
    height: 120px;
    border-radius: 28px;
    background: var(--phase-blob-bg);
    transform: rotate(22deg);
}
.quote-panel {
    padding: 30px;
    border-radius: 28px;
    background: var(--note-bg);
    color: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow);
}
.quote-panel p {
    margin: 0;
    font-family: "Fraunces", serif;
    font-size: 1.5rem;
    line-height: 1.34;
    letter-spacing: -.03em;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.contact-card {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .12);
    box-shadow: none;
}
.contact-card .detail-label { color: var(--button-primary-start, var(--highlight)); }
.contact-card .body-text,
.contact-card a { color: rgba(255, 255, 255, .84); }
.contact-row {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.contact-row:first-child {
    border-top: 0;
    padding-top: 0;
}
.story-card strong {
    display: block;
    margin-bottom: 10px;
    font-family: "Fraunces", serif;
    font-size: 2rem;
    color: var(--teal);
}
.reveal {
    opacity: 0;
    transform: translateY(34px) scale(.985);
    transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
[data-section] { scroll-margin-top: 116px; }

@media (max-width:1040px) {
    .section-layout,
    .three-column-grid,
    .two-column-grid,
    .assessment-layout,
    .contact-grid { grid-template-columns: 1fr; }
    .service-card:nth-child(2),
    .service-card:nth-child(3) { transform: none; }
    .assessment-summary { position: static; }
}

@media (max-width:1180px) {
    .nav-shell { gap: 16px; }
    .brand-logo { width: min(188px, 28vw); }
    .nav-links { gap: 10px; }
    .nav-links a { font-size: .82rem; }
}

@media (min-width:768px) and (max-width:1180px) {
    .nav-shell,
    .section-shell { padding-left: 4%; padding-right: 4%; }
    .site-nav { padding: 16px 0; }
    .site-nav.is-scrolled { padding: 10px 0; }
    .panel-shell { padding-top: 54px; }
}

@media (orientation:portrait) and (min-width:768px) and (pointer:coarse) {
    .site-nav { position: fixed; top: 0; left: 0; right: 0; }
    .panel-home .panel-shell { padding-top: 156px; }
}

@media (orientation:landscape) and (min-width:821px) and (max-width:1400px) {
    .nav-shell,
    .section-shell { padding-left: 4.5%; padding-right: 4.5%; }
    .panel-shell { padding-top: 54px; }
    .panel-home .panel-shell { padding-top: 145px; }
}

@media (max-width:767px), (orientation:landscape) and (max-height:500px) and (max-width:950px) {
    .site-nav {
        position: relative;
        padding: 24px 0 10px;
        background: var(--mobile-nav-bg);
    }
    .site-nav.is-scrolled {
        padding: 18px 0 8px;
        background: var(--mobile-nav-bg);
        backdrop-filter: none;
        box-shadow: none;
    }
    .nav-shell {
        justify-content: flex-start;
        align-items: flex-start;
    }
    .brand-logo { width: min(170px, 54vw); }
    .nav-links { display: none; }
    .mobile-menu-button {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        position: fixed;
        top: 18px;
        right: max(2%, 16px);
        z-index: 65;
        width: 48px;
        height: 48px;
        border-radius: 16px;
        background: rgba(255, 253, 249, .9);
        color: var(--ink);
        box-shadow: 0 18px 44px var(--mobile-menu-shadow);
        backdrop-filter: blur(16px);
    }
    .mobile-menu {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 60;
        background: transparent;
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
    }
    .mobile-menu.is-open {
        opacity: 1;
        pointer-events: auto;
    }
    .mobile-menu-panel {
        margin-left: auto;
        width: min(84vw, 320px);
        min-height: 100%;
        padding: 84px 22px 28px;
        background: var(--mobile-menu-panel-bg);
        box-shadow: -12px 0 38px var(--mobile-menu-shadow);
        backdrop-filter: blur(18px);
        transform: translateX(100%);
        transition: transform .22s ease;
    }
    .mobile-menu.is-open .mobile-menu-panel { transform: translateX(0); }
    .mobile-menu-links { display: grid; gap: 10px; }
    .mobile-menu-links a {
        display: block;
        padding: 14px 16px;
        border-radius: 18px;
        background: var(--mobile-menu-link-bg);
        color: var(--ink);
        font-weight: 700;
    }
    .mobile-menu-close {
        display: none;
        position: absolute;
        top: 18px;
        right: 16px;
        width: 42px;
        height: 42px;
        border-radius: 14px;
        background: var(--mobile-menu-link-bg);
        color: var(--ink);
    }
    .panel { min-height: auto; }
    .panel-shell { padding-top: 22px; }
    [data-section] { scroll-margin-top: 24px; }
}

@media (orientation:landscape) and (max-height:500px) and (max-width:950px) {
    .panel-shell { padding-top: 18px; padding-bottom: 28px; }
    .panel-home .panel-shell { padding-top: 24px; }
    .mobile-menu {
        padding: 14px 4.5%;
        align-items: flex-start;
        justify-content: center;
    }
    .mobile-menu-panel {
        margin: 0;
        width: 100%;
        max-width: 760px;
        min-height: auto;
        padding: 18px 64px 18px 18px;
        border-radius: 24px;
        transform: translateY(-12px);
    }
    .mobile-menu.is-open .mobile-menu-panel { transform: translateY(0); }
    .mobile-menu-links {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .mobile-menu-links a { flex: 0 0 auto; }
}

@media (max-width:640px) {
    .section-shell,
    .nav-shell { padding-left: 2%; padding-right: 2%; }
    .landing-blog-grid { grid-template-columns: 1fr; }
    .glass,
    .content-card,
    .service-card,
    .phase-card,
    .assessment-summary,
    .contact-card,
    .quote-panel {
        padding: 22px;
        border-radius: 24px;
    }
    .actions { display: grid; }
    .button { width: 100%; }
    .question-header {
        align-items: start;
        flex-direction: column;
    }
    h1 { font-size: clamp(3.2rem, 16vw, 4.8rem); }
}

@media (max-width:640px) and (orientation:portrait) {
    .panel-home .panel-shell { padding-top: 0; }
}
