/* ==========================================
   RESET
========================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #F5F1E8;
    color: #222222;
    line-height: 1.7;
    overflow-x: hidden;

    /* Keep the Home page's original alternating light and dark sections. */
    --dark: #171717;
    --light: #F5F1E8;
    --text: #222222;
    --text-light: #F4F4F4;
    --accent: #4A4D4E;
    --border: #DDD6CA;
}

/* ==========================================
   VARIABLES
========================================== */

:root {

    --dark: #171717;
    --light: #F5F1E8;

    --text: #222222;
    --text-light: #F4F4F4;

    --accent: #4A4D4E;

    --border: #DDD6CA;

    --shadow:
        0 15px 35px rgba(0, 0, 0, .08);

    --shadow-hover:
        0 25px 55px rgba(0, 0, 0, .15);

}

/* ==========================================
   TYPOGRAPHY
========================================== */

h1,
h2,
h3,
h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

h1 {
    font-size: 4.4rem;
    line-height: 1;
}

h2 {
    font-size: 3.5rem;
    line-height: 1.1;
}

h3 {
    font-size: 1.8rem;
}

p {
    font-size: 1.05rem;
}

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

/* ==========================================
   GLOBAL SPACING
========================================== */

.content {
    padding-left: 10%;
    padding-right: 10%;
}

.section {
    padding: 120px 0;
}

.light {
    background: var(--light);
}

.dark {
    background: var(--dark);
    color: white;
}

.section-heading {
    margin-bottom: 60px;
}

.section-heading span {
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
    letter-spacing: 2px;
}

.dark .section-heading span { color: #c9c7c1; }

.section-heading h2 {
    max-width: 800px;
}

/* ==========================================
   BUTTONS
========================================== */

.btn-primary,
.btn-header {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 16px 28px;

    border: 1px solid var(--accent);

    transition: .35s ease;

    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {

    transform: translateY(-4px);

    box-shadow:
        0 15px 35px rgba(55, 58, 60, .35);

}

/* Homepage calls to action use the approved Royal Maroon button token. */
.hero .btn-primary,
.before-start-cta .btn-primary,
.cta-section .btn-primary {
    color: #F5F2EC;
    background: var(--bs-button-bg, #6E2F3E);
    border: 1px solid #707070;
    border-radius: 2px;
    box-shadow: none;
    text-decoration: none;
}

.hero .btn-primary:hover,
.before-start-cta .btn-primary:hover,
.cta-section .btn-primary:hover {
    color: #fff;
    background: var(--bs-button-hover, #582632);
    border-color: #707070;
    box-shadow: none;
    transform: none;
}

.hero .btn-primary:active,
.before-start-cta .btn-primary:active,
.cta-section .btn-primary:active {
    color: #fff;
    background: var(--bs-button-active, #4B202B);
    border-color: #707070;
    transform: translateY(1px);
}

.hero .btn-primary:focus-visible,
.before-start-cta .btn-primary:focus-visible,
.cta-section .btn-primary:focus-visible {
    outline: 2px solid #F5F2EC;
    outline-offset: 3px;
}

.btn-header {
    color: white;
}

.btn-header:hover {
    background: var(--accent);
}

/* ==========================================
   HERO
========================================== */

.hero {

    position: relative;
    z-index: 2;
    isolation: isolate;

    overflow: hidden;

    min-height: 850px;

    display: flex;

    align-items: center;

    padding-top: 140px;
    padding-bottom: 120px;

    background: #171717;

}

/* IMAGEM DE FUNDO */

.hero-background-image {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;

    opacity: .80;

    pointer-events: none;

}

/* OVERLAY ESCURO */

.hero::after {

    content: '';

    position: absolute;

    inset: 0;

    background:
        linear-gradient(90deg,
            rgba(17, 17, 17, .88) 0%,
            rgba(17, 17, 17, .78) 45%,
            rgba(17, 17, 17, .66) 100%);

}

.hero-content {

    position: relative;

    z-index: 5;

    width: 100%;

    padding-left: 10%;
    padding-right: 10%;

}

.hero-text {

    max-width: 860px;

}

.eyebrow {

    color: var(--accent);

    letter-spacing: 2px;

    text-transform: uppercase;

    display: block;

    margin-bottom: 20px;

}

.hero .eyebrow { color: #c9c7c1; }

.hero h1 {

    color: white;

    margin-bottom: 25px;

    text-shadow:
        0 10px 30px rgba(0, 0, 0, .55);

}

.hero p {

    color: #D4D4D4;

    max-width: 650px;

    font-size: 1.15rem;

    margin-bottom: 35px;

}

.section-heading {

    margin-bottom: 60px;

}

.section-heading h2 {

    margin-bottom: 18px;

    max-width: 800px;

}

.section-heading-1 {

    max-width: 700px;

    color: #222222;

    font-size: 1.05rem;

    margin-bottom: 60px;

}


.section-heading p {

    max-width: 700px;

    color: #D4D4D4;

    font-size: 1.05rem;

}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 20px;
}

.section-intro p {
    max-width: 700px;
    color: var(--text-light);
    font-size: 1.15rem;
    line-height: 1.8;
}

/* ==========================================
   KNOWLEDGE GRID
========================================== */

.knowledge-grid {

    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 20px;

    margin-bottom: 60px;
}

.knowledge-grid div {

    padding: 28px;

    border: 1px solid var(--border);

    text-align: center;

    font-weight: 600;

    background: white;

    transition: .3s;

    box-shadow: var(--shadow);
}

.knowledge-grid div:hover {

    transform: translateY(-8px);

    box-shadow: var(--shadow-hover);
}

/* ==========================================
   TEXT BLOCKS
========================================== */

.reading-block {

    max-width: 850px;

    display: flex;

    flex-direction: column;

    gap: 24px;
}

.light-text p {
    color: #D0D0D0;
}

/* ==========================================
   APPROACH CARDS
========================================== */

.cards-5 {

    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 20px;

    margin-top: 50px;
}

.card {

    padding: 35px;

    border: 1px solid rgba(255, 255, 255, .12);

    background: rgba(255, 255, 255, .03);

    transition: .35s;

    backdrop-filter: blur(8px);
}

.card:hover {

    transform: translateY(-10px);

    border-color: var(--accent);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .4);
}

.closing-text {

    margin-top: 40px;

    color: #D4D4D4;
}

/* ==========================================
   PROCESS
========================================== */

.process-grid {

    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 20px;
}

.process-card {

    padding: 35px;

    background: white;

    border: 1px solid var(--border);

    transition: .3s;

    box-shadow: var(--shadow);
}

.process-card:hover {

    transform: translateY(-8px);

    box-shadow: var(--shadow-hover);
}

.process-card span {

    color: var(--accent);

    font-weight: 700;

    display: block;

    margin-bottom: 15px;
}

/* ==========================================
   SKILLS
========================================== */

.skills-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;
}

.skill-card {

    padding: 45px;

    border: 1px solid rgba(255, 255, 255, .08);

    transition: .35s;
}

.skills-section .skill-card {
    border-color: rgba(23, 23, 23, .16);
}

.skills-section .skill-card p {
    color: #4B4944;
}

/* Keep the introductory text legible over the approved light background. */
.skills-section .section-heading .skills-section-intro {
    color: #333333;
}

.skill-card:hover {

    border-color: var(--accent);

    transform: translateY(-10px);
}

.skills-section .skill-card:hover {
    border-color: var(--home-acapulco-blue, #2E7FA3);
}

.skill-card p {

    margin-top: 15px;

    color: #D4D4D4;
}

/* ==========================================
   ABOUT
========================================== */

.about-layout {

    display: grid;

    grid-template-columns:
        .9fr 1.1fr;

    gap: 70px;

    align-items: center;
}

.about-image img {
    display: flex;
    justify-content: center;
    width: 100%;

    height: auto;

    object-fit: cover;

    border-radius: 12px;

    box-shadow: var(--shadow-hover);

    display: block;
}

.about-image {
    overflow: hidden;
    border-radius: 12px;
}

.about-text {

    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-text span {
    color: var(--accent);
}

/* ==========================================
   BIBLIOTECA
========================================== */

.library-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.library-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 50px;

    background: rgba(255, 255, 255, 0.03);

    border: 1px solid rgba(255, 255, 255, 0.06);

    border-radius: 24px;

    overflow: hidden;

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

/* Hover */

.library-mockup:hover {

    transform: translateY(-6px);

    border-color: rgba(220, 188, 140, .30);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, .35);

}

/* Glow */

.library-mockup::before {
    content: '';

    position: absolute;

    width: 700px;
    height: 700px;

    background: radial-gradient(circle,
            rgba(55, 58, 60, 0.22) 0%,
            rgba(55, 58, 60, 0.08) 35%,
            rgba(55, 58, 60, 0) 75%);

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    pointer-events: none;

    transition:
        width .35s ease,
        height .35s ease,
        opacity .35s ease;
}

.library-mockup:hover::before {

    width: 760px;
    height: 760px;

}

/* Notebook */

.library-dashboard-image {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 700px;

    display: block;

    transition:
        transform .35s ease;
}

.library-mockup:hover .library-dashboard-image {

    transform: scale(1.02);

}

.library-text {
    max-width: 600px;
}

.library-text p {
    margin-bottom: 32px;
    font-size: 1.15rem;
    line-height: 1.9;
}

/* ==========================================
   CTA
========================================== */

.cta-section {

    text-align: center;

    padding: 140px 10%;

    background: var(--light);
}

.cta-section .content {

    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

.cta-section span {

    color: var(--accent);

    display: block;

    margin-bottom: 20px;
}

.cta-section h2 {

    max-width: 900px;

    margin: 0 auto 40px;
}

.cta-section p {

    max-width: 960px;
    margin: 0 auto 24px;
    text-align: left;
    font-size: 1.15rem;
    line-height: 1.9;
}

.cta-section p:last-of-type {

    margin-bottom: 0;
}

.cta-section .btn-primary {
    margin-top: 35px;
}

/* ==========================================
   ANTES DE COMEÇAR
========================================== */

.before-start-section {
    padding: 112px 10%;
    background: var(--light);
    color: var(--text);
}

.before-start-content {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.before-start-heading {
    margin-bottom: 42px;
}

.before-start-heading h2 {
    margin-bottom: 14px;
}

.before-start-heading p {
    max-width: 760px;
    font-size: 1.08rem;
}

.before-start-list {
    border-top: 1px solid var(--border);
}

.before-start-item {
    border-bottom: 1px solid var(--border);
}

.before-start-question {
    position: relative;
    padding: 22px 48px 22px 2px;
    color: var(--dark);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.5;
    list-style: none;
    cursor: pointer;
}

.before-start-question::-webkit-details-marker {
    display: none;
}

.before-start-question::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 4px;
    color: var(--accent);
    font-size: 1.6rem;
    font-weight: 400;
    transform: translateY(-50%);
}

.before-start-item[open] > .before-start-question::after {
    content: '−';
}

.before-start-question:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.before-start-answer {
    padding: 0 42px 24px 2px;
    color: #4B4944;
    font-size: 1rem;
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.before-start-cta {
    margin-top: 52px;
    padding: 34px 38px;
    border: 1px solid #CFC9BE;
    border-radius: 2px;
    background: #EBE6DC;
    text-align: center;
}

.before-start-cta h3 {
    margin-bottom: 8px;
    color: var(--dark);
}

.before-start-cta p {
    max-width: 720px;
    margin: 0 auto;
}

.before-start-cta .btn-primary {
    display: inline-flex;
    margin-top: 22px;
}

/* ==========================================
   FOOTER
========================================== */

.footer {

    background: var(--dark);

    color: white;

    padding: 90px 10%;
}

.footer-grid {

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap: 50px;
}

.footer h4 {

    margin-bottom: 20px;
}

.footer a {

    display: block;

    margin-bottom: 12px;

    color: #BDBDBD;

    transition: .3s;
}

.footer a:hover {
    color: #c9c7c1;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width:991px) {

    .hero-content,
    .about-layout,
    .library-layout {
        grid-template-columns: 1fr;
    }

    .cards-5,
    .process-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.6rem;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        gap: 60px;
    }

    .about-layout {
        gap: 60px;
    }

    .about-image {
        display: flex;
        justify-content: center;
        align-items: center;
        order: -1;
    }

    .about-image img {
        width: 100%;
        max-width: 500px;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    /* Biblioteca */

    .library-layout {
        gap: 60px;
    }

    .library-mockup {
        width: 100%;
        max-width: 900px;
        margin: 0 auto;
        padding: 40px;
    }

    .library-mockup::before {
        width: 550px;
        height: 550px;
    }

    .library-dashboard-image {
        width: 100%;
        max-width: 700px;
        display: block;
        margin: 0 auto;
    }

    .library-text {
        max-width: 100%;
    }

}

@media(max-width:768px) {

    .section {
        padding: 72px 0;
    }

    .section-heading {
        margin-bottom: 36px;
    }

    .process-card,
    .skill-card {
        padding: 24px;
    }

    .content,
    .hero-content {
        padding-left: 5%;
        padding-right: 5%;
    }

    .skills-grid,
    .cards-5,
    .process-grid,
    .knowledge-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.8rem;
        line-height: 1.1;
    }

    h2 {
        font-size: 2.1rem;
        line-height: 1.2;
    }

    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .hero-content {
        gap: 40px;
    }

    .about-layout {
        gap: 40px;
    }

    .about-image {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .about-image img {
        width: 100%;
        max-width: 350px;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    /* Biblioteca */

    .library-layout {
        gap: 40px;
    }

    .library-mockup {
        padding: 20px;
        border-radius: 20px;
    }

    .library-mockup::before {
        width: 350px;
        height: 350px;
    }

    .library-dashboard-image {
        width: 100%;
        max-width: 100%;
        display: block;
        margin: 0 auto;
    }

    .library-text {
        text-align: left;
    }

    .library-text p {
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 24px;
    }

    .cta-section {
        padding: 72px 5%;
    }

    .cta-section h2 {
        margin-bottom: 30px;
    }

    .cta-section p {
        font-size: 1.1rem;
        line-height: 1.85;
        margin-bottom: 20px;
    }

    .cta-section .btn-primary {
        margin-top: 28px;
    }

    .before-start-section {
        padding: 82px 5%;
    }

    .before-start-heading {
        margin-bottom: 30px;
    }

    .before-start-question {
        padding-top: 19px;
        padding-bottom: 19px;
        font-size: 1rem;
    }

    .before-start-answer {
        padding-right: 4px;
        font-size: .98rem;
    }

    .before-start-cta {
        margin-top: 36px;
        padding: 26px 20px;
    }

}

@media(max-width:480px) {

    .section {
        padding: 56px 0;
    }

    .section-heading {
        margin-bottom: 28px;
    }

    .cta-section {
        padding: 56px 5%;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero {
        padding-top: 100px;
    }

    .about-image img {
        max-width: 280px;
    }

    .library-mockup {
        padding: 15px;
    }

    .library-mockup::before {
        width: 280px;
        height: 280px;
    }

    .library-dashboard-image {
        width: 100%;
        max-width: 100%;
    }

}

.hero {
    min-height: min(850px, calc(100svh - 101px));
    padding-top: clamp(64px, 8vh, 96px);
    padding-bottom: 64px;
}

.hero-text { max-width: 960px; }

.hero h1 {
    max-width: 960px;
    margin-bottom: 24px;
    font-size: clamp(3.3rem, 4.8vw, 4.4rem);
    line-height: 1.02;
}

.hero p { margin-bottom: 24px; }

.process-grid,
.cards-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.process-card,
.cards-5 > .card {
    min-width: 0;
    padding: 32px;
    overflow-wrap: anywhere;
}

.process-card { overflow-wrap: normal; }

@media (min-width: 769px) and (max-width: 1100px) {
    .hero {
        min-height: calc(100svh - 101px);
        padding-top: 56px;
        padding-bottom: 56px;
    }

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

@media (min-width: 481px) and (max-width: 1100px) {
    .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-grid > .process-card:last-child { grid-column: 1 / -1; }
}

@media (min-width: 481px) and (max-width: 900px) {
    .process-grid,
    .cards-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .hero {
        min-height: calc(100svh - 81px);
        padding-top: clamp(72px, 12svh, 96px);
        padding-bottom: 32px;
    }

    .hero h1 {
        font-size: clamp(2.1rem, 6vw, 2.8rem);
        line-height: 1.1;
    }

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

@media (max-width: 480px) {
    .process-grid,
    .cards-5 { grid-template-columns: minmax(0, 1fr); }
}

body:has(.hero) .floating-whatsapp[data-home-occluded="true"] {
    visibility: hidden;
    pointer-events: none;
}

/* Lenis is loaded on this page only. Let its single GSAP-driven ticker own smooth scrolling. */
html.lenis,
html.lenis body {
    height: auto;
    scroll-behavior: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
    overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
    overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

/* A second, matching 16:9 photo is revealed only inside the pointer mask. */
.hero-background-image {
    z-index: 0;
}

.hero::after {
    z-index: 2;
    pointer-events: none;
}

.hero-reveal-image {
    --reveal-x: -1000px;
    --reveal-y: -1000px;
    --reveal-radius: clamp(220px, 22vw, 340px);

    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    opacity: 0;
    clip-path: circle(var(--reveal-radius) at var(--reveal-x) var(--reveal-y));
    -webkit-clip-path: circle(var(--reveal-radius) at var(--reveal-x) var(--reveal-y));
    mask-image: radial-gradient(
        circle var(--reveal-radius) at var(--reveal-x) var(--reveal-y),
        #000 0 56%,
        rgba(0, 0, 0, .96) 66%,
        rgba(0, 0, 0, .84) 75%,
        rgba(0, 0, 0, .62) 84%,
        rgba(0, 0, 0, .28) 93%,
        transparent 100%
    );
    -webkit-mask-image: radial-gradient(
        circle var(--reveal-radius) at var(--reveal-x) var(--reveal-y),
        #000 0 56%,
        rgba(0, 0, 0, .96) 66%,
        rgba(0, 0, 0, .84) 75%,
        rgba(0, 0, 0, .62) 84%,
        rgba(0, 0, 0, .28) 93%,
        transparent 100%
    );
    transition: opacity .18s ease-out;
}

.hero-reveal-image.is-visible {
    opacity: 1;
}

@media (max-width: 767px) {
    .hero-reveal-image {
        --reveal-radius: min(46vw, 188px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-reveal-image {
        display: none;
    }
}

/* A translucent musical object travels behind the Home content, never in its hit area. */
html:has(.home-guitar-stage),
body:has(.home-guitar-stage) {
    overflow-x: clip;
}

.section > .content,
.before-start-content,
.cta-section > .content {
    position: relative;
    z-index: 2;
}

.home-guitar-stage {
    position: fixed;
    z-index: 1;
    inset: 0;
    width: 100vw;
    height: 100svh;
    pointer-events: none;
    perspective: 1400px;
    overflow: clip;
    contain: paint;
}

#biblioteca {
    position: relative;
    z-index: 2;
    isolation: isolate;
}

#sobre {
    position: relative;
    z-index: 2;
    isolation: isolate;
}

.home-guitar-motion {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    will-change: opacity;
}

.home-guitar-frame {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.home-guitar-frame.is-active {
    opacity: 1;
    visibility: visible;
}

.library-image-motion {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.process-grid,
.skills-grid {
    perspective: 1300px;
}

@media (prefers-reduced-motion: reduce) {
    .home-guitar-stage {
        display: none;
    }
}

/* Mustang 1968 palette evaluation: scoped to the Homepage marker only. */
body:has(.home-guitar-stage) {
    --home-presidential-blue: #173F63;
    --home-diamond-blue: #A9C7D8;
    --home-acapulco-blue: #2E7FA3;
    --home-royal-maroon: #6E2F3E;
    --home-ivory: #F6F1E8;
    --home-graphite: #1E252B;
    background: var(--home-ivory);
    color: var(--home-graphite);
}

body:has(.home-guitar-stage) .section.dark {
    background: var(--home-acapulco-blue);
    color: var(--home-ivory);
}

body:has(.home-guitar-stage) #biblioteca.section.dark {
    background: var(--home-presidential-blue);
}

/* Desktop-only, vertical-scroll-driven panel sequence for the Homepage. */
@media (min-width: 1101px) and (prefers-reduced-motion: no-preference) {
    .home-horizontal-viewport {
        position: relative;
        z-index: 2;
        width: 100%;
        height: 100vh;
        height: 100svh;
        overflow: hidden;
    }

    .home-horizontal-track {
        display: flex;
        width: max-content;
        height: 100%;
        align-items: stretch;
    }

    .home-horizontal-panel {
        flex: 0 0 100vw;
        width: 100vw;
        height: 100vh;
        height: 100svh;
        min-height: 0;
        max-height: 100vh;
        max-height: 100svh;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow: hidden;
    }

    .home-horizontal-panel.section {
        display: flex;
        align-items: center;
        padding-top: max(104px, calc(10svh + 16px));
        padding-bottom: clamp(16px, 2.7svh, 24px);
    }

    .home-horizontal-panel > .content {
        align-self: flex-start;
        margin: 0 auto;
    }

    .home-final-cta {
        padding-top: clamp(64px, 8svh, 96px);
    }

    .home-horizontal-panel.section .about-image img {
        width: 100%;
        height: 100%;
        max-height: calc(100svh - 140px);
        object-fit: cover;
        border-radius: inherit;
        margin-inline: auto;
    }

    .home-horizontal-panel.section .about-image {
        min-height: 0;
        overflow: hidden;
        border-radius: 12px;
    }

    .home-horizontal-panel.section .about-text {
        gap: clamp(8px, 1.4svh, 12px);
    }

    .home-horizontal-panel.section .about-text p {
        line-height: 1.5;
    }

    .home-horizontal-panel.section .section-header {
        margin-bottom: clamp(20px, 4svh, 36px);
    }

    .home-horizontal-panel.section .section-header h2 {
        margin-bottom: clamp(10px, 1.5svh, 16px);
    }

    .home-horizontal-panel.section .library-mockup {
        padding: 50px;
    }

    .home-horizontal-panel.section .library-dashboard-image {
        width: auto;
        max-width: 100%;
        max-height: min(278px, calc(100svh - 400px));
        object-fit: contain;
    }

    .home-horizontal-panel.section .library-text p {
        margin-bottom: clamp(8px, 1.2svh, 12px);
        line-height: 1.6;
    }

    .home-horizontal-panel#biblioteca > .content {
        align-self: center;
    }

    .home-diagnosis-panel {
        display: block;
        height: 100vh;
        height: 100svh;
        min-height: 0;
        max-height: 100vh;
        max-height: 100svh;
        padding: 0;
        overflow: hidden;
    }

    .home-diagnosis-scroll {
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        overflow-y: auto;
        padding: max(104px, calc(10svh + 16px)) 10% clamp(16px, 2.7svh, 24px);
        scrollbar-width: none;
    }

    .home-diagnosis-scroll::-webkit-scrollbar {
        display: none;
    }

    .home-diagnosis-scroll > .content {
        width: 100%;
        max-width: 900px;
        margin: 0 auto;
        padding: 0;
    }
}

@media (min-width: 1101px) and (max-height: 620px) and (prefers-reduced-motion: no-preference) {
    .home-horizontal-panel.section .about-text {
        gap: 6px;
    }

    .home-horizontal-panel.section .about-text p {
        line-height: 1.4;
    }
}

@media (max-width: 1100px), (prefers-reduced-motion: reduce) {
    .home-horizontal-track {
        display: contents;
    }

    .home-horizontal-viewport {
        overflow: visible;
    }

    .home-horizontal-panel {
        width: auto;
        min-height: 0;
    }
}

body:has(.home-guitar-stage) .section.dark :is(h2, h3, p, .section-intro, .about-text span) {
    color: var(--home-ivory);
}

body:has(.home-guitar-stage) .section.light {
    background: var(--home-ivory);
    color: var(--home-graphite);
}

/* Restore the approved production appearance of Competências Desenvolvidas. */
body:has(.home-guitar-stage) .section.light.skills-section {
    background: #F5F1E8;
}

/* Match the filled ivory surface used by the process cards. */
body:has(.home-guitar-stage) .section.light.skills-section .skill-card {
    background: var(--home-ivory);
}

body:has(.home-guitar-stage) .section.light.skills-section .skill-card p {
    color: #4B4944;
}

body:has(.home-guitar-stage) .section.light :is(h2, h3, p, .section-heading-1) {
    color: var(--home-graphite);
}

body:has(.home-guitar-stage) .section.light .process-card {
    background: var(--home-ivory);
    color: var(--home-graphite);
}

body:has(.home-guitar-stage) .section.light .process-card p {
    color: var(--home-graphite);
}

body:has(.home-guitar-stage) .section.light .process-card span {
    color: var(--home-presidential-blue);
}

body:has(.home-guitar-stage) .before-start-section,
body:has(.home-guitar-stage) .cta-section {
    background: var(--home-ivory);
    color: var(--home-graphite);
}

body:has(.home-guitar-stage) .before-start-section :is(h2, h3, p, .before-start-answer),
body:has(.home-guitar-stage) .cta-section :is(h2, p) {
    color: var(--home-graphite);
}

body:has(.home-guitar-stage) .before-start-question {
    color: var(--home-graphite);
}

body:has(.home-guitar-stage) .before-start-question::after {
    color: var(--home-royal-maroon);
}

body:has(.home-guitar-stage) :is(.section-heading span, .cta-section span) {
    color: var(--home-presidential-blue);
}

body:has(.home-guitar-stage) .section.dark .section-heading span {
    color: var(--home-diamond-blue);
}

body:has(.home-guitar-stage) .section.light .process-card:hover {
    border-color: var(--home-acapulco-blue);
}

body:has(.home-guitar-stage) .before-start-question:focus-visible {
    outline-color: var(--home-presidential-blue);
}
