:root {
    --bg: #080604;
    --panel: #130f0b;
    --cream: #ead8c8;
    --paper: #d8c4b0;
    --paper-light: #ead8c8;
    --gold: #b78256;
    --gold2: #d0a277;
    --text: #f8f1ea;
    --muted: #cab7a4;
    --line: rgba(208, 162, 119, 0.35);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
}

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

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

/* HEADER */
.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    height: 88px;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.78),
        rgba(0, 0, 0, 0.12)
    );
    transition:
        height 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}

.site-header.scrolled {
    height: 72px;
    background: rgba(8, 6, 4, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.brand {
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand img {
    width: auto;
    height: 76px;
    max-width: 240px;
    object-fit: contain;
    mix-blend-mode: screen;
}

.site-header.scrolled .brand img {
    height: 46px;
    max-width: 190px;
}

/* NAV */
.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.main-nav a {
    position: relative;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--gold2);
}

.main-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 0;
    height: 1px;
    background: var(--gold2);
    transition: width 0.25s ease;
}

.main-nav a:not(.nav-cta):hover::after {
    width: 100%;
}

.main-nav a:not(.nav-cta).active {
    color: var(--gold2);
}

.main-nav a:not(.nav-cta).active::after {
    width: 100%;
}

/* BUTTONS */
.nav-cta,
.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: #fff;
    padding: 14px 26px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.button.small {
    padding: 10px 18px;
    font-size: 11px;
}

.nav-toggle {
    display: none;
}

/* HERO */
.hero {
    position: relative;
    min-height: 730px;
    overflow: hidden;
    background: #080604;
}

.hero-slide {
    position: absolute;
    inset: 0;
    padding: 170px 7vw 80px;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.15s ease;
    background:
        radial-gradient(
            circle at 55% 40%,
            rgba(183, 130, 86, 0.08),
            transparent 34%
        ),
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.98) 0%,
            rgba(0, 0, 0, 0.86) 40%,
            rgba(0, 0, 0, 0.28) 100%
        ),
        var(--hero-image) center right / contain no-repeat;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 7vw;
    bottom: 42px;
    display: flex;
    gap: 12px;
}

.hero-dot {
    width: 42px;
    height: 3px;
    min-height: 0;
    padding: 0;
    border-radius: 999px;
    background: rgba(234, 216, 200, 0.38);
    transition: background 0.25s ease, width 0.25s ease;
}

.hero-dot.active {
    width: 62px;
    background: var(--gold2);
}

.kicker {
    color: var(--gold2);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 12px;
}

.hero h1 {
    margin: 0 0 28px;
    font-weight: 400;
    font-size: clamp(52px, 7vw, 90px);
    line-height: 0.95;
}

.hero h1 span,
.hero h1 em {
    display: block;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold2);
    font-size: 0.78em;
}

.hero p {
    max-width: 360px;
    font-size: 22px;
    line-height: 1.32;
    color: var(--cream);
}

/* PRIVATE MUSIC LESSONS */
.lessons-section {
    position: relative;
    display: grid;
    grid-template-columns: minmax(330px, 34%) 1fr;
    min-height: 500px;
    background: linear-gradient(
        90deg,
        var(--paper) 0%,
        var(--paper) 34%,
        var(--paper-light) 100%
    );
    overflow: hidden;
}

.lessons-photo {
    position: relative;
    z-index: 5;
    min-height: 500px;
    overflow: hidden;
    margin-right: -25px;
    background: linear-gradient(
        90deg,
        var(--paper) 0%,
        var(--paper-light) 100%
    );
}

.lessons-photo img {
    position: absolute;
    left: 0;
    bottom: 0;
    width: auto;
    height: 500px;
    max-width: none;
    object-fit: contain;
    object-position: left bottom;
    z-index: 5;

    filter: brightness(0.72) contrast(1.08) saturate(0.95);

    -webkit-mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            black 8%,
            black 94%,
            transparent 100%
        ),
        linear-gradient(
            to bottom,
            transparent 0%,
            black 8%,
            black 94%,
            transparent 100%
        );
    -webkit-mask-composite: source-in;

    mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            black 8%,
            black 94%,
            transparent 100%
        ),
        linear-gradient(
            to bottom,
            transparent 0%,
            black 8%,
            black 94%,
            transparent 100%
        );
    mask-composite: intersect;
}

/* Fusion beige douce autour de la photo */
.lessons-photo::after {
    content: "";
    position: absolute;
    top: 0;
    right: -10px;
    bottom: 0;
    width: 28px;
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(
        to right,
        rgba(216, 196, 176, 0) 0%,
        rgba(234, 216, 200, 0.20) 55%,
        rgba(234, 216, 200, 0.55) 100%
    );
}

.lessons-content {
    position: relative;
    z-index: 20;
    color: #130f0b;
    padding: 65px 5vw 60px 5vw;
}

.lessons-content h2,
.page-hero h1 {
    margin: 0;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    text-align: center;
    font-size: 34px;
}

.ornament {
    margin: 10px 0 30px;
    text-align: center;
    color: var(--gold);
    font-size: 34px;
}

.lesson-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 24px;
}

.lesson-item {
    text-align: center;
}

.lesson-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #100d09;
    font-size: 30px;
}

.lesson-item h3 {
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 0.07em;
}

.lesson-item p {
    font-size: 13px;
    line-height: 1.5;
}

/* HOME BAND */
.home-band {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    background: #090705;
}

.feature-card {
    min-height: 330px;
    display: flex;
    align-items: flex-end;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.78),
            rgba(0, 0, 0, 0.2)
        ),
        var(--card-image) center / cover no-repeat;
}

.feature-card-content {
    padding: 34px 22px;
}

.feature-card h2 {
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.08em;
    font-size: 23px;
}

.feature-card h2::after {
    content: "";
    display: block;
    width: 44px;
    height: 1px;
    background: var(--gold);
    margin: 14px 0 18px;
}

.feature-card p {
    color: var(--cream);
    font-size: 15px;
    line-height: 1.5;
}

/* QUOTE + NEWSLETTER */
.quote-newsletter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: linear-gradient(90deg, #e8d8c8, #d6bfa8);
    color: #170f0a;
    padding: 65px 11vw;
}

.quote-newsletter blockquote {
    font-size: 28px;
    font-style: italic;
    text-align: center;
}

.newsletter {
    border-left: 1px solid rgba(77, 46, 24, 0.35);
    padding-left: 60px;
}

.newsletter h2 {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 400;
}

.newsletter-row {
    display: flex;
    max-width: 470px;
    border: 1px solid rgba(77, 46, 24, 0.35);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.22);
}

input,
textarea {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid rgba(183, 130, 86, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
}

input::placeholder,
textarea::placeholder {
    color: #8a7664;
}

.newsletter-row input {
    border: 0;
    color: #2a1d14;
}

.newsletter-row button {
    margin: 3px;
    padding: 10px 22px;
}

/* FOOTER */
.site-footer {
    background: #090705;
    color: var(--cream);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 50px;
    padding: 55px 10vw;
}

.footer-logo {
    width: 240px;
    mix-blend-mode: screen;
}

.site-footer h3 {
    text-transform: uppercase;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.11em;
}

.site-footer a,
.site-footer p {
    display: block;
    color: var(--muted);
    margin: 8px 0;
    font-size: 14px;
}

.socials {
    display: flex;
    gap: 13px;
}

.socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gold);
    color: #090705;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.footer-bottom {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(420px, 2fr) minmax(120px, 1fr);
    align-items: center;
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 5vw 22px;
    color: #9b8c7d;
    font-size: 12px;
}

.footer-bottom-center {
    display: grid;
    justify-items: center;
    gap: 11px;
    min-width: 0;
    text-align: center;
}

.footer-client-copyright {
    color: #b8a696;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.footer-legal {
    color: #9b8c7d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal:hover,
.footer-legal:focus-visible {
    color: var(--gold2);
}

.footer-legal-left {
    justify-self: start;
}

.footer-legal-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.footer-legal-separator {
    color: rgba(208, 162, 119, 0.55);
}

.footer-legal-right {
    justify-self: end;
}

.footer-developer-credit {
    display: grid;
    justify-items: center;
    gap: 4px;
    color: #817468;
    text-align: center;
    font-size: 10px;
    line-height: 1.5;
}

.footer-developer-brand {
    color: #c8ad95;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.footer-developer-languages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 14px;
    max-width: 760px;
}

.footer-developer-languages > span {
    display: inline-block;
}

.footer-developer-credit small {
    color: #70645b;
    font-size: 9px;
}

.footer-credit-separator {
    color: rgba(208, 162, 119, 0.7);
}

/* INNER PAGES */
.page-hero {
    padding: 150px 20px 70px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.82)),
        url("../img/hero/hero-cello-dark.jpg") center / cover;
    color: #fff;
    text-align: center;
}

.page-hero p {
    font-size: 20px;
    color: var(--cream);
}

.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 80px 10vw;
    background: #120e09;
}

.content-split img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.content-split div {
    align-self: center;
}

.content-split h2 {
    font-size: 44px;
    font-weight: 400;
}

.content-split p {
    font-size: 19px;
    line-height: 1.7;
    color: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    padding: 70px 8vw;
    background: #120e09;
}

.gallery-grid img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    filter: saturate(0.92);
}

.media-list,
.contact-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 80px 10vw;
    background: #120e09;
}

.media-list article,
.contact-panel > div,
.contact-panel form {
    background: #0b0806;
    border: 1px solid rgba(183, 130, 86, 0.22);
    padding: 34px;
}

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

textarea {
    min-height: 160px;
}

/* ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .brand img {
        height: 50px;
        max-width: 190px;
    }

    .main-nav {
        gap: 20px;
        font-size: 12px;
    }

    .lessons-photo img {
        height: 480px;
    }
}

@media (max-width: 1100px) {
    .lessons-section {
        display: block;
        background: var(--paper-light);
        overflow: hidden;
    }

    .lessons-photo {
        min-height: 460px;
        margin-right: 0;
        background: linear-gradient(
            90deg,
            var(--paper) 0%,
            var(--paper-light) 100%
        );
        display: flex;
        justify-content: center;
        align-items: flex-end;
        overflow: hidden;
    }

    .lessons-photo img {
        position: relative;
        left: auto;
        bottom: auto;
        height: 460px;
        margin: 0 auto;

        -webkit-mask-image:
            linear-gradient(
                to bottom,
                transparent 0%,
                black 8%,
                black 92%,
                transparent 100%
            );
        -webkit-mask-composite: source-over;

        mask-image:
            linear-gradient(
                to bottom,
                transparent 0%,
                black 8%,
                black 92%,
                transparent 100%
            );
        mask-composite: add;
    }

    .lessons-photo::after {
        top: auto;
        left: 0;
        right: 0;
        bottom: -1px;
        width: 100%;
        height: 130px;
        background: linear-gradient(
            to bottom,
            rgba(216, 196, 176, 0),
            rgba(234, 216, 200, 1)
        );
    }

    .lessons-content {
        padding: 55px 7vw 60px;
    }

    .lesson-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .site-header {
        height: 80px;
        padding: 0 22px;
    }

    .site-header.scrolled {
        height: 70px;
    }

    .brand img {
        height: 46px;
        max-width: 170px;
    }

    .site-header.scrolled .brand img {
        height: 40px;
        max-width: 150px;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 20px;
        right: 20px;
        padding: 20px;
        background: #090705;
        border: 1px solid var(--line);
        flex-direction: column;
        gap: 18px;
    }

    .main-nav.open {
        display: flex;
    }

    .hero {
        min-height: 650px;
    }

    .hero-slide {
        background:
            linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.84)),
            var(--hero-image) center / cover no-repeat;
    }

    .quote-newsletter,
    .content-split,
    .media-list,
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .newsletter {
        border-left: 0;
        padding-left: 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 13px;
        padding: 20px 24px 24px;
        text-align: center;
    }

    .footer-bottom-center {
        order: 1;
    }

    .footer-legal-left {
        order: 2;
        justify-self: center;
    }

    .footer-legal-right {
        order: 3;
        justify-self: center;
    }

    .footer-developer-languages {
        display: grid;
        gap: 3px;
    }
}

@media (max-width: 650px) {
    .lesson-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lessons-content h2 {
        font-size: 26px;
        letter-spacing: 0.16em;
    }

    .hero h1 {
        font-size: 50px;
    }

    .quote-newsletter blockquote {
        font-size: 22px;
    }

    .newsletter-row {
        display: block;
        border-radius: 18px;
    }

    .newsletter-row button {
        width: calc(100% - 6px);
    }
}

@media (max-width: 520px) {
    .lesson-grid {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        padding: 140px 28px 70px;
    }

    .hero-dots {
        left: 28px;
        bottom: 32px;
    }

    .hero p {
        font-size: 18px;
    }

    .lessons-photo {
        min-height: 390px;
    }

    .lessons-photo img {
        height: 390px;
    }
}
/* BOOKING FORM */
.booking-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.6fr);
    gap: 38px;
    align-items: start;
    padding: 72px 8vw 90px;
    background:
        radial-gradient(circle at 12% 10%, rgba(183, 130, 86, 0.10), transparent 28%),
        #120e09;
}

.booking-contact,
.booking-form-card {
    border: 1px solid rgba(183, 130, 86, 0.25);
    background: rgba(11, 8, 6, 0.94);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.booking-contact {
    position: sticky;
    top: 100px;
    padding: 38px;
}

.booking-contact h2 {
    margin: 8px 0 18px;
    font-size: clamp(30px, 3vw, 46px);
    font-weight: 400;
    line-height: 1.1;
}

.booking-contact p {
    color: var(--muted);
    line-height: 1.65;
}

.section-kicker {
    margin: 0;
    color: var(--gold2) !important;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
}

.contact-details {
    margin: 32px 0;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.contact-details strong {
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
}

.contact-details a:hover {
    color: var(--gold2);
}

.booking-note {
    font-size: 14px;
}

.booking-form-card {
    padding: clamp(24px, 4vw, 48px);
}

.booking-form {
    display: grid;
    gap: 28px;
}

.booking-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 0 0 28px;
    border: 0;
    border-bottom: 1px solid rgba(183, 130, 86, 0.22);
}

.booking-form fieldset:last-of-type {
    padding-bottom: 0;
    border-bottom: 0;
}

.booking-form legend {
    width: 100%;
    margin-bottom: 22px;
    color: var(--gold2);
    font-size: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

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

.form-field {
    display: grid;
    gap: 8px;
}

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

.form-field label,
.consent-row {
    color: var(--cream);
    font-size: 14px;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(183, 130, 86, 0.38);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    font: inherit;
    padding: 13px 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.booking-form select {
    appearance: auto;
}

.booking-form select option {
    background: #160f0a;
    color: var(--text);
}

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

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    border-color: var(--gold2);
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 0 0 3px rgba(208, 162, 119, 0.14);
}

.booking-form [aria-hidden="true"],
.required-note span {
    color: var(--gold2);
}

.conditional-section[hidden] {
    display: none;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    line-height: 1.5;
    cursor: pointer;
}

.consent-row input {
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex: 0 0 auto;
    accent-color: var(--gold);
}

.field-error {
    color: #f1a89a;
    font-size: 13px;
}

.form-alert {
    margin-bottom: 28px;
    padding: 18px 20px;
    border-radius: 8px;
    line-height: 1.5;
}

.form-alert.success {
    border: 1px solid rgba(127, 181, 133, 0.5);
    background: rgba(57, 103, 62, 0.18);
}

.form-alert.error {
    border: 1px solid rgba(216, 114, 94, 0.5);
    background: rgba(118, 45, 35, 0.22);
}

.form-alert h2 {
    margin: 0 0 6px;
    font-weight: 400;
}

.form-alert p {
    margin: 0;
}

.required-note {
    margin: -10px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.submit-button {
    justify-self: start;
    min-width: 190px;
}

.submit-button:hover,
.nav-cta:hover,
.button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 980px) {
    .booking-layout {
        grid-template-columns: 1fr;
        padding-inline: 5vw;
    }

    .booking-contact {
        position: static;
    }
}

@media (max-width: 650px) {
    .booking-layout {
        padding: 48px 18px 64px;
    }

    .booking-contact,
    .booking-form-card {
        padding: 24px 20px;
    }

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

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

    .submit-button {
        width: 100%;
    }
}


/* NEWSLETTER MODAL */
body.modal-open { overflow: hidden; }
.newsletter-modal { position: fixed; inset: 0; z-index: 1000; opacity: 0; transition: opacity .18s ease; }
.newsletter-modal.open { opacity: 1; }
.newsletter-modal-backdrop { position: absolute; inset: 0; background: rgba(5, 4, 3, .82); backdrop-filter: blur(8px); }
.newsletter-dialog { position: relative; width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; margin: 20px auto; padding: clamp(28px, 5vw, 52px); background: linear-gradient(145deg, #f1e3d5, #d8c4b0); color: #17110d; border: 1px solid rgba(183, 130, 86, .55); border-radius: 24px; box-shadow: 0 30px 90px rgba(0,0,0,.55); transform: translateY(16px) scale(.985); transition: transform .18s ease; }
.newsletter-modal.open .newsletter-dialog { transform: translateY(0) scale(1); }
.newsletter-close { position: absolute; top: 16px; right: 18px; width: 40px; height: 40px; border: 1px solid rgba(23,17,13,.25); border-radius: 50%; background: transparent; color: #17110d; font-size: 28px; line-height: 1; cursor: pointer; }
.newsletter-dialog h2 { margin: 4px 0 10px; font-size: clamp(34px, 5vw, 52px); font-weight: 500; }
.newsletter-form { margin-top: 28px; }
.newsletter-interests { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 22px; margin: 24px 0; padding: 22px; border: 1px solid rgba(23,17,13,.18); border-radius: 16px; }
.newsletter-interests legend { padding: 0 8px; font-family: Georgia, serif; font-size: 20px; }
.newsletter-interests label, .consent-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.newsletter-interests input, .consent-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: #9c6740; }
.newsletter-actions { display: flex; gap: 12px; margin-top: 24px; }
.button.secondary { background: transparent; color: #17110d; border: 1px solid rgba(23,17,13,.35); }
.optional { font-size: .78em; opacity: .65; font-weight: 400; }
.newsletter-dialog .form-field input { width: 100%; }
.newsletter-dialog .field-error { display: block; min-height: 1.2em; color: #8b1e1e; margin-top: 5px; }
.newsletter-dialog .form-alert { margin-bottom: 18px; }

@media (max-width: 640px) {
    .newsletter-dialog { width: min(100% - 20px, 760px); margin: 10px auto; max-height: calc(100vh - 20px); padding: 28px 20px; border-radius: 18px; }
    .newsletter-interests { grid-template-columns: 1fr; }
    .newsletter-actions { flex-direction: column; }
    .newsletter-actions .button { width: 100%; text-align: center; }
}

/* =========================================================
   RESPONSIVE HARDENING — phones, tablets, laptops and touch
   ========================================================= */
:root {
    --header-height: 88px;
    --content-gutter: clamp(18px, 5vw, 80px);
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    min-width: 320px;
    overflow-x: clip;
    line-height: 1.5;
}

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

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button,
.button,
.nav-cta,
.main-nav a {
    touch-action: manipulation;
}

:focus-visible {
    outline: 3px solid rgba(208, 162, 119, 0.9);
    outline-offset: 3px;
}

img {
    height: auto;
}

main,
section,
article,
aside,
form,
fieldset {
    min-width: 0;
}

/* Prevent long content from forcing horizontal scrolling. */
p,
a,
span,
label,
small,
blockquote,
h1,
h2,
h3 {
    overflow-wrap: anywhere;
}

/* Navigation */
.nav-toggle {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(208, 162, 119, 0.45);
    border-radius: 50%;
    background: rgba(8, 6, 4, 0.72);
    color: var(--text);
    font-size: 24px;
    line-height: 1;
}

/* Hero */
.hero-content {
    width: min(100%, 700px);
}

.hero-content .button {
    max-width: 100%;
    text-align: center;
}

/* Inner pages and forms */
.page-hero {
    min-height: 290px;
    display: grid;
    align-content: center;
    padding-inline: var(--content-gutter);
}

.page-hero h1 {
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.2;
}

.content-split,
.gallery-grid,
.media-list,
.contact-panel,
.booking-layout,
.quote-newsletter,
.footer-inner,
.footer-bottom {
    padding-left: var(--content-gutter);
    padding-right: var(--content-gutter);
}

.content-split img {
    max-height: 70vh;
}

.gallery-grid a {
    display: block;
    overflow: hidden;
}

.gallery-grid img {
    transition: transform 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
    .gallery-grid a:hover img {
        transform: scale(1.025);
    }
}

/* Tablet landscape and compact laptops */
@media (max-width: 1080px) {
    .site-header {
        padding-inline: 24px;
    }

    .main-nav {
        gap: 16px;
        font-size: 11px;
    }

    .hero-slide {
        padding-inline: 6vw;
    }

    .lesson-grid {
        gap: 18px;
    }

    .feature-card {
        min-height: 300px;
    }
}

/* Tablet and mobile navigation */
@media (max-width: 900px) {
    :root {
        --header-height: 80px;
    }

    .site-header,
    .site-header.scrolled {
        height: var(--header-height);
    }

    .site-header {
        padding-inline: 16px;
        background: rgba(8, 6, 4, 0.92);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(208, 162, 119, 0.2);
    }

    .brand {
        min-width: 0;
        max-width: calc(100% - 66px);
    }

    .brand img,
    .site-header.scrolled .brand img {
        width: auto;
        height: 48px;
        max-width: min(210px, 100%);
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
        flex: 0 0 auto;
    }

    .main-nav {
        display: flex;
        position: fixed;
        z-index: 1100;
        top: var(--header-height);
        left: 0;
        right: 0;
        max-height: calc(100dvh - var(--header-height));
        overflow-y: auto;
        padding: 18px var(--content-gutter) 28px;
        border: 0;
        border-bottom: 1px solid var(--line);
        background: rgba(8, 6, 4, 0.985);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-nav a {
        width: 100%;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 8px;
        border-bottom: 1px solid rgba(208, 162, 119, 0.14);
        font-size: 13px;
    }

    .main-nav a:not(.nav-cta)::after {
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
    }

    .main-nav .nav-cta {
        width: min(100%, 360px);
        margin: 18px auto 0;
        border-bottom: 0;
    }

    body.nav-open {
        overflow: hidden;
    }

    .hero {
        min-height: max(620px, 88svh);
    }

    .hero-slide {
        min-height: inherit;
        padding: calc(var(--header-height) + 54px) var(--content-gutter) 86px;
        align-items: flex-end;
        background:
            linear-gradient(to top, rgba(0,0,0,.96) 0%, rgba(0,0,0,.72) 52%, rgba(0,0,0,.32) 100%),
            var(--hero-image) center / cover no-repeat;
    }

    .hero h1 {
        max-width: 12ch;
        font-size: clamp(42px, 10vw, 70px);
    }

    .hero p {
        max-width: 34rem;
        font-size: clamp(17px, 2.7vw, 21px);
    }

    .hero-dots {
        left: var(--content-gutter);
        bottom: 28px;
    }

    .quote-newsletter {
        gap: 36px;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .newsletter {
        border-top: 1px solid rgba(77, 46, 24, 0.3);
        padding-top: 34px;
    }

    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px;
    }

    .footer-inner > div:first-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }
}

/* Portrait tablets and large phones */
@media (max-width: 720px) {
    .lessons-content {
        padding-inline: var(--content-gutter);
    }

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

    .home-band {
        grid-template-columns: 1fr 1fr;
    }

    .feature-card {
        min-height: 320px;
    }

    .content-split,
    .media-list,
    .contact-panel {
        gap: 28px;
        padding-top: 48px;
        padding-bottom: 56px;
    }

    .content-split h2 {
        font-size: clamp(32px, 8vw, 42px);
    }

    .content-split p {
        font-size: 17px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding-top: 42px;
        padding-bottom: 50px;
    }

    .gallery-grid img {
        height: clamp(190px, 45vw, 290px);
    }

    .booking-layout {
        gap: 24px;
    }

    .booking-contact,
    .booking-form-card,
    .media-list article,
    .contact-panel > div,
    .contact-panel form {
        padding: 24px;
    }

    .newsletter-dialog {
        overscroll-behavior: contain;
    }
}

/* Phones */
@media (max-width: 520px) {
    :root {
        --content-gutter: 18px;
    }

    .site-header {
        padding-inline: 12px;
    }

    .brand img,
    .site-header.scrolled .brand img {
        height: 43px;
        max-width: 175px;
    }

    .nav-toggle {
        width: 44px;
        height: 44px;
    }

    .hero {
        min-height: max(590px, 84svh);
    }

    .hero-slide {
        padding-top: calc(var(--header-height) + 34px);
        padding-bottom: 78px;
        background-position: 60% center;
    }

    .hero h1 {
        margin-bottom: 20px;
        font-size: clamp(38px, 13vw, 56px);
        line-height: 1;
    }

    .hero p {
        font-size: 17px;
        line-height: 1.45;
    }

    .kicker {
        font-size: 11px;
        letter-spacing: 0.16em;
    }

    .button,
    .nav-cta,
    button {
        min-height: 46px;
        padding: 12px 20px;
    }

    .hero-dot {
        width: 34px;
        min-height: 4px;
    }

    .hero-dot.active {
        width: 50px;
    }

    .lessons-photo,
    .lessons-photo img {
        min-height: 340px;
        height: 340px;
    }

    .lessons-content {
        padding-top: 42px;
        padding-bottom: 46px;
    }

    .lessons-content h2,
    .page-hero h1 {
        font-size: 25px;
        letter-spacing: 0.12em;
    }

    .lesson-grid,
    .home-band,
    .footer-inner,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .lesson-item {
        max-width: 360px;
        margin-inline: auto;
    }

    .feature-card {
        min-height: 300px;
    }

    .feature-card-content {
        padding: 28px 20px;
    }

    .quote-newsletter {
        padding-top: 42px;
        padding-bottom: 44px;
    }

    .quote-newsletter blockquote {
        margin: 0;
        font-size: 21px;
    }

    .newsletter-row {
        border-radius: 14px;
        overflow: visible;
        background: transparent;
        border: 0;
    }

    .newsletter-row input {
        min-height: 50px;
        border: 1px solid rgba(77, 46, 24, 0.35);
        border-radius: 12px;
        background: rgba(255,255,255,.28);
    }

    .newsletter-row button {
        width: 100%;
        margin: 10px 0 0;
    }

    .page-hero {
        min-height: 240px;
        padding-top: calc(var(--header-height) + 44px);
        padding-bottom: 44px;
    }

    .page-hero p {
        font-size: 17px;
    }

    .content-split img {
        height: auto;
        max-height: none;
        aspect-ratio: 4 / 5;
    }

    .gallery-grid img {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .booking-layout {
        padding-top: 38px;
        padding-bottom: 52px;
    }

    .booking-contact,
    .booking-form-card {
        padding: 21px 17px;
    }

    .booking-form {
        gap: 22px;
    }

    .booking-form legend {
        font-size: 16px;
    }

    .booking-form input,
    .booking-form select,
    .booking-form textarea {
        min-height: 48px;
        font-size: 16px; /* Prevents iOS form zoom. */
    }

    .footer-inner {
        padding-top: 42px;
        padding-bottom: 34px;
    }

    .footer-logo {
        width: min(220px, 100%);
    }

    .footer-bottom {
        flex-direction: column;
        padding-top: 18px;
        padding-bottom: 22px;
    }

    .newsletter-dialog {
        width: 100%;
        max-height: 100dvh;
        min-height: 100dvh;
        margin: 0;
        padding: 70px 18px 30px;
        border: 0;
        border-radius: 0;
    }

    .newsletter-close {
        position: fixed;
        top: max(12px, env(safe-area-inset-top));
        right: 14px;
        z-index: 2;
        background: rgba(241, 227, 213, 0.94);
    }

    .newsletter-dialog h2 {
        font-size: 38px;
    }

    .newsletter-interests {
        padding: 17px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .brand img,
    .site-header.scrolled .brand img {
        max-width: 150px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .booking-contact,
    .booking-form-card,
    .media-list article {
        padding-inline: 15px;
    }
}

/* Landscape phones */
@media (max-height: 520px) and (orientation: landscape) {
    .hero {
        min-height: 560px;
    }

    .hero-slide {
        padding-top: calc(var(--header-height) + 28px);
        align-items: center;
    }

    .newsletter-dialog {
        max-height: 100dvh;
        min-height: auto;
    }
}

/* Safe areas on modern iOS/Android devices. */
@supports (padding: max(0px)) {
    .site-header {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }

    .main-nav,
    .footer-bottom,
    .footer-inner {
        padding-left: max(var(--content-gutter), env(safe-area-inset-left));
        padding-right: max(var(--content-gutter), env(safe-area-inset-right));
    }

    .footer-bottom {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* Accessibility and performance preferences. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-contrast: more) {
    :root {
        --line: rgba(234, 216, 200, 0.72);
    }

    .main-nav a,
    .site-footer a,
    .site-footer p {
        color: var(--text);
    }
}

/* =========================================================
   RESPONSIVE V3 — mobile/tablet polish and reliable overlays
   This block intentionally comes last and is authoritative.
   ========================================================= */

/* A hidden modal must never participate in layout. */
.newsletter-modal[hidden] {
    display: none !important;
}

.newsletter-modal {
    display: grid;
    place-items: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    overflow: hidden;
    isolation: isolate;
    overscroll-behavior: contain;
    touch-action: none;
}

.newsletter-modal-backdrop {
    z-index: -1;
}

.newsletter-dialog {
    margin: 0;
    max-height: min(860px, calc(100dvh - 32px));
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

body.modal-open,
html.modal-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

/* Tablet: preserve desktop identity while reducing crowding. */
@media (min-width: 721px) and (max-width: 1100px) {
    .hero {
        min-height: 720px;
    }

    .hero-slide {
        padding-inline: clamp(34px, 7vw, 76px);
        background-position: 62% center;
    }

    .lessons-section {
        grid-template-columns: minmax(260px, 38%) 1fr;
    }

    .lessons-photo img {
        object-position: 52% center;
    }

    .lesson-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 22px;
    }

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

    .feature-card {
        min-height: 350px;
    }

    .quote-newsletter {
        grid-template-columns: .9fr 1.1fr;
        align-items: center;
    }
}

@media (max-width: 720px) {
    :root {
        --header-height: 74px;
        --content-gutter: clamp(16px, 5vw, 24px);
    }

    .site-header,
    .site-header.scrolled {
        height: var(--header-height);
        padding-block: 8px;
    }

    .brand img,
    .site-header.scrolled .brand img {
        height: 40px;
        width: auto;
        max-width: 172px;
        object-fit: contain;
    }

    .nav-toggle {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        font-size: 20px;
        box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
    }

    .main-nav {
        top: calc(var(--header-height) + 8px);
        left: 12px;
        right: 12px;
        width: auto;
        max-height: calc(100dvh - var(--header-height) - 24px);
        padding: 12px 16px 18px;
        border: 1px solid rgba(208, 162, 119, .32);
        border-radius: 0 0 18px 18px;
        box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
        transform: translateY(-10px) scale(.985);
        transform-origin: top center;
    }

    .main-nav.open {
        transform: translateY(0) scale(1);
    }

    .main-nav a {
        min-height: 46px;
        padding: 10px;
        font-size: 12px;
        letter-spacing: .09em;
    }

    .main-nav .nav-cta {
        min-height: 48px;
        margin-top: 14px;
    }

    /* Mobile hero: intentional portrait composition and readable copy. */
    .hero {
        min-height: clamp(610px, 91svh, 760px);
    }

    .hero-slide {
        min-height: inherit;
        align-items: flex-end;
        padding: calc(var(--header-height) + 36px) var(--content-gutter) 78px;
        background:
            linear-gradient(to top, rgba(7,5,4,.98) 0%, rgba(7,5,4,.88) 31%, rgba(7,5,4,.30) 68%, rgba(7,5,4,.10) 100%),
            var(--hero-image) 61% center / cover no-repeat;
    }

    .hero-content {
        width: min(100%, 500px);
    }

    .hero h1 {
        max-width: 11ch;
        margin: 6px 0 16px;
        font-size: clamp(40px, 12.5vw, 60px);
        line-height: .98;
    }

    .hero h1 em {
        line-height: 1.04;
    }

    .hero p:not(.kicker) {
        max-width: 31ch;
        margin-bottom: 22px;
        font-size: clamp(16px, 4.5vw, 19px);
        line-height: 1.45;
    }

    .hero-dots {
        bottom: 24px;
    }

    /* Lessons: shorter photo, compact and scannable service rows. */
    .lessons-section {
        display: block;
    }

    .lessons-photo {
        height: clamp(270px, 72vw, 390px);
        min-height: 0;
        background: var(--paper);
    }

    .lessons-photo img {
        width: min(100%, 560px);
        height: 100%;
        min-height: 0;
        margin-inline: auto;
        object-fit: cover;
        object-position: 50% 35%;
        -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
    }

    .lessons-content {
        padding: 30px var(--content-gutter) 38px;
    }

    .lessons-content h2 {
        max-width: 14ch;
        margin-inline: auto;
        font-size: clamp(25px, 7.8vw, 34px);
        line-height: 1.18;
        letter-spacing: .13em;
    }

    .ornament {
        margin: 12px 0 24px;
    }

    .lesson-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 560px;
        margin-inline: auto;
    }

    .lesson-item {
        display: grid;
        grid-template-columns: 66px 1fr;
        grid-template-areas:
            "icon title"
            "icon text";
        align-items: center;
        gap: 2px 16px;
        max-width: none;
        min-height: 92px;
        margin: 0;
        padding: 14px 12px;
        text-align: left;
        border-top: 1px solid rgba(77, 46, 24, .13);
    }

    .lesson-item:first-child {
        border-top: 0;
    }

    .lesson-icon {
        grid-area: icon;
        width: 60px;
        height: 60px;
        margin: 0;
        font-size: 24px;
    }

    .lesson-item h3 {
        grid-area: title;
        margin: 0;
        font-size: 15px;
        letter-spacing: .07em;
    }

    .lesson-item p {
        grid-area: text;
        margin: 4px 0 0;
        font-size: 14px;
        line-height: 1.45;
    }

    /* Feature cards: balanced 2-column mosaic on normal phones/tablets. */
    .home-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-card {
        min-height: clamp(290px, 78vw, 390px);
        background-position: center top;
    }

    .feature-card::before {
        background: linear-gradient(to top, rgba(5,4,3,.98), rgba(5,4,3,.18) 76%);
    }

    .feature-card-content {
        padding: 22px 16px;
    }

    .feature-card h2 {
        font-size: clamp(20px, 5.5vw, 27px);
        line-height: 1.05;
    }

    .feature-card p {
        font-size: 14px;
        line-height: 1.45;
    }

    .feature-card .button.small {
        padding-inline: 14px;
        font-size: 10px;
    }

    .quote-newsletter {
        display: block;
        padding: 46px var(--content-gutter) 52px;
    }

    .quote-newsletter blockquote {
        max-width: 19ch;
        margin: 0 auto 46px;
        padding: 0;
        text-align: center;
        font-size: clamp(22px, 6.6vw, 29px);
        line-height: 1.08;
    }

    .newsletter {
        max-width: 560px;
        margin-inline: auto;
        padding-top: 34px;
    }

    .newsletter h2 {
        font-size: clamp(25px, 7vw, 34px);
        letter-spacing: .16em;
    }

    .newsletter-row {
        display: grid;
        gap: 10px;
    }

    .newsletter-row input,
    .newsletter-row button {
        width: 100%;
        min-height: 50px;
        margin: 0;
        border-radius: 14px;
        font-size: 16px;
    }

    /* Footer: compact but readable, without a huge empty vertical column. */
    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 20px;
        padding-top: 42px;
        padding-bottom: 34px;
    }

    .footer-inner > div:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-inner > div:nth-child(4) {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-logo {
        width: min(240px, 76vw);
    }

    .footer-inner h3 {
        font-size: 14px;
        letter-spacing: .13em;
    }

    .footer-inner a,
    .footer-inner p {
        font-size: 13px;
        line-height: 1.7;
    }

    .socials {
        justify-content: center;
    }

    .footer-bottom {
        align-items: center;
        text-align: center;
        font-size: 11px;
    }

    /* Newsletter modal becomes a reliable mobile bottom sheet. */
    .newsletter-modal {
        place-items: end center;
        padding: 0;
    }

    .newsletter-modal-backdrop {
        background: rgba(3, 2, 2, .78);
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
    }

    .newsletter-dialog {
        width: 100%;
        min-height: 0;
        max-height: min(92dvh, 920px);
        padding: 34px 20px max(26px, env(safe-area-inset-bottom));
        border: 1px solid rgba(183, 130, 86, .5);
        border-bottom: 0;
        border-radius: 24px 24px 0 0;
        transform: translateY(105%);
    }

    .newsletter-modal.open .newsletter-dialog {
        transform: translateY(0);
    }

    .newsletter-close {
        position: sticky;
        float: right;
        top: 0;
        right: 0;
        z-index: 3;
        width: 44px;
        height: 44px;
        margin-top: -18px;
        margin-right: -8px;
        background: rgba(241, 227, 213, .98);
        box-shadow: 0 6px 18px rgba(0,0,0,.16);
    }

    .newsletter-dialog h2 {
        clear: both;
        font-size: clamp(34px, 10vw, 46px);
    }

    .newsletter-form {
        margin-top: 22px;
    }

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

    .newsletter-dialog input,
    .newsletter-dialog select,
    .newsletter-dialog textarea {
        min-height: 48px;
        font-size: 16px;
    }

    .newsletter-interests {
        grid-template-columns: 1fr;
        gap: 11px;
        padding: 16px;
    }

    .newsletter-interests label,
    .consent-row {
        min-height: 34px;
        align-items: flex-start;
    }

    .newsletter-interests input,
    .consent-row input {
        flex: 0 0 auto;
        width: 20px;
        height: 20px;
    }

    .newsletter-actions {
        position: sticky;
        bottom: calc(-1 * max(26px, env(safe-area-inset-bottom)));
        z-index: 2;
        margin: 22px -20px calc(-1 * max(26px, env(safe-area-inset-bottom)));
        padding: 14px 20px max(14px, env(safe-area-inset-bottom));
        background: linear-gradient(to top, #dcc7b5 74%, rgba(220,199,181,0));
    }
}

@media (max-width: 420px) {
    .hero-slide {
        background-position: 64% center;
    }

    .hero h1 {
        font-size: clamp(38px, 13vw, 52px);
    }

    .home-band {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 320px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-inner > div:first-child,
    .footer-inner > div:nth-child(4) {
        grid-column: auto;
    }
}

@media (max-height: 560px) and (orientation: landscape) {
    .newsletter-modal {
        place-items: center;
        padding: 8px max(8px, env(safe-area-inset-right)) 8px max(8px, env(safe-area-inset-left));
    }

    .newsletter-dialog {
        width: min(760px, 100%);
        max-height: calc(100dvh - 16px);
        border: 1px solid rgba(183, 130, 86, .5);
        border-radius: 18px;
    }
}

/* =========================================================
   NEWSLETTER OVERLAY — hardened mobile implementation
   ========================================================= */
.newsletter-modal[hidden] {
    display: none !important;
}

.newsletter-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    isolation: isolate;
    transition: opacity .2s ease, visibility 0s linear .2s;
}

.newsletter-modal.open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transition-delay: 0s;
}

.newsletter-modal-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(5, 4, 3, .86);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}

.newsletter-dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: calc(100dvh - max(24px, env(safe-area-inset-top)) - max(24px, env(safe-area-inset-bottom)));
    margin: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

html.modal-open,
body.modal-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

@media (max-width: 640px) {
    .newsletter-modal {
        place-items: end center;
        padding: max(8px, env(safe-area-inset-top)) 0 0;
    }

    .newsletter-dialog {
        width: 100%;
        max-height: calc(100dvh - max(8px, env(safe-area-inset-top)));
        padding: 30px 20px calc(24px + env(safe-area-inset-bottom));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
    }

    .newsletter-modal.open .newsletter-dialog {
        transform: translateY(0);
    }

    .newsletter-close {
        top: 12px;
        right: 14px;
        width: 44px;
        height: 44px;
    }

    .newsletter-dialog h2 {
        padding-right: 46px;
        font-size: clamp(32px, 10vw, 44px);
    }

    .newsletter-form {
        margin-top: 20px;
    }
}


/* Mobile form readability improvements */
@media (max-width: 768px) {
  .newsletter-modal label,
  .newsletter-modal .form-label,
  .newsletter-modal .field-label,
  .newsletter-modal .form-group label,
  .newsletter-modal .input-label {
    color: #5A3B25 !important;
    opacity: 1 !important;
    font-weight: 600;
    text-shadow: none;
  }

  .newsletter-modal input,
  .newsletter-modal select,
  .newsletter-modal textarea {
    color: #2B1D14 !important;
  }

  .newsletter-modal input::placeholder,
  .newsletter-modal textarea::placeholder {
    color: #8A6A52 !important;
    opacity: 1 !important;
  }
}

/* API-driven media cards */
.media-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 28px;
}
.media-card { min-width: 0; }
.media-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #080604; margin-bottom: 18px; }
.media-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* =========================================================
   NEWSLETTER MODAL — LABEL AND TEXT CONTRAST FIX
   ========================================================= */

.newsletter-modal,
.newsletter-modal__content,
.newsletter-dialog,
.newsletter-dialog__content {
    color: #201914;
}

.newsletter-modal label,
.newsletter-dialog label,
.newsletter-form label,
.newsletter-modal .form-label,
.newsletter-dialog .form-label {
    display: block;
    margin-bottom: 0.5rem;

    color: #2a211b !important;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    opacity: 1 !important;
}

.newsletter-modal legend,
.newsletter-dialog legend,
.newsletter-form legend {
    color: #2a211b !important;
    font-weight: 600;
    opacity: 1 !important;
}

.newsletter-modal input,
.newsletter-dialog input,
.newsletter-form input,
.newsletter-modal textarea,
.newsletter-dialog textarea,
.newsletter-form textarea,
.newsletter-modal select,
.newsletter-dialog select,
.newsletter-form select {
    color: #201914 !important;
    background-color: rgba(255, 255, 255, 0.32);
    border: 1px solid rgba(143, 100, 67, 0.36);
}

.newsletter-modal input::placeholder,
.newsletter-dialog input::placeholder,
.newsletter-form input::placeholder,
.newsletter-modal textarea::placeholder,
.newsletter-dialog textarea::placeholder,
.newsletter-form textarea::placeholder {
    color: #75675d !important;
    opacity: 1;
}

/* Checkbox labels */
.newsletter-modal input[type="checkbox"] + label,
.newsletter-dialog input[type="checkbox"] + label,
.newsletter-form input[type="checkbox"] + label {
    color: #2a211b !important;
}

/* Focus accessibility */
.newsletter-modal input:focus,
.newsletter-dialog input:focus,
.newsletter-form input:focus,
.newsletter-modal textarea:focus,
.newsletter-dialog textarea:focus,
.newsletter-form textarea:focus,
.newsletter-modal select:focus,
.newsletter-dialog select:focus,
.newsletter-form select:focus {
    border-color: #b78256;
    outline: 3px solid rgba(183, 130, 86, 0.18);
    outline-offset: 1px;
}
/* =========================================================
   HERO SLIDESHOW — RESPONSIVE VISIBILITY & SAFE CONTROLS
   Added as a final override to avoid regressions elsewhere.
   ========================================================= */
.hero-slider {
    position: relative;
    isolation: isolate;
    min-height: clamp(620px, calc(100svh - var(--header-height, 88px)), 820px);
    overflow: hidden;
}

.hero-slider .hero-slide {
    min-height: inherit;
    padding: clamp(132px, 17vh, 172px) clamp(28px, 7vw, 118px) 112px;
    align-items: center;
    background:
        radial-gradient(circle at 58% 42%, rgba(183,130,86,.08), transparent 35%),
        linear-gradient(90deg, rgba(0,0,0,.99) 0%, rgba(0,0,0,.90) 37%, rgba(0,0,0,.58) 55%, rgba(0,0,0,.12) 82%, rgba(0,0,0,.04) 100%),
        var(--hero-image) 67% center / auto 100% no-repeat;
}

/* The second portrait needs a slightly more central crop. */
.hero-slider .hero-slide:nth-of-type(2) {
    background-position: center, center, 63% center;
}

.hero-slider .hero-content {
    position: relative;
    z-index: 3;
    width: min(100%, 660px);
    padding-bottom: 32px;
}

.hero-slider .hero-content .button {
    position: relative;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 4px;
    white-space: normal;
}

.hero-slider .hero-dots {
    z-index: 8;
    bottom: 34px;
    padding: 10px 0;
    pointer-events: auto;
}

.hero-slider .hero-dot {
    position: relative;
    z-index: 9;
    border: 0;
    cursor: pointer;
    touch-action: manipulation;
}

/* Compact laptops and tablets. */
@media (max-width: 1180px) {
    .hero-slider {
        min-height: clamp(610px, calc(100svh - var(--header-height, 88px)), 760px);
    }

    .hero-slider .hero-slide {
        padding-inline: clamp(30px, 6vw, 72px);
        background:
            linear-gradient(90deg, rgba(0,0,0,.98) 0%, rgba(0,0,0,.88) 43%, rgba(0,0,0,.42) 68%, rgba(0,0,0,.08) 100%),
            var(--hero-image) 65% center / auto 100% no-repeat;
    }

    .hero-slider .hero-slide:nth-of-type(2) {
        background-position: center, 60% center;
    }

    .hero-slider h1 {
        font-size: clamp(48px, 6.6vw, 76px);
    }
}

/* Short desktop windows: keep title, CTA and dots inside the hero. */
@media (min-width: 901px) and (max-height: 760px) {
    .hero-slider {
        min-height: 590px;
    }

    .hero-slider .hero-slide {
        padding-top: 112px;
        padding-bottom: 92px;
    }

    .hero-slider h1 {
        margin-bottom: 18px;
        font-size: clamp(44px, 6vw, 68px);
    }

    .hero-slider .kicker {
        margin-bottom: 10px;
    }

    .hero-slider p:not(.kicker) {
        margin-bottom: 18px;
        font-size: 18px;
    }

    .hero-slider .hero-dots {
        bottom: 24px;
    }
}

/* Tablet and phones: stack content safely above the navigation dots. */
@media (max-width: 900px) {
    .hero-slider {
        min-height: clamp(620px, calc(100svh - var(--header-height, 80px)), 780px);
    }

    .hero-slider .hero-slide,
    .hero-slider .hero-slide:nth-of-type(2) {
        align-items: flex-end;
        padding: calc(var(--header-height, 80px) + 38px) var(--content-gutter, 24px) 104px;
        background:
            linear-gradient(to top, rgba(7,5,4,.99) 0%, rgba(7,5,4,.91) 34%, rgba(7,5,4,.46) 66%, rgba(7,5,4,.12) 100%),
            var(--hero-image) 58% center / cover no-repeat;
    }

    .hero-slider .hero-content {
        width: min(100%, 540px);
        padding-bottom: 0;
    }

    .hero-slider .hero-dots {
        left: var(--content-gutter, 24px);
        bottom: 22px;
    }
}

@media (max-width: 560px) {
    .hero-slider {
        min-height: clamp(600px, calc(100svh - var(--header-height, 80px)), 730px);
    }

    .hero-slider .hero-slide,
    .hero-slider .hero-slide:nth-of-type(2) {
        padding-bottom: 94px;
        background-position: center, 56% center;
    }

    .hero-slider h1 {
        max-width: 11ch;
        font-size: clamp(38px, 12vw, 54px);
    }

    .hero-slider p:not(.kicker) {
        max-width: 31ch;
        font-size: 17px;
        line-height: 1.4;
    }

    .hero-slider .hero-content .button {
        max-width: min(100%, 290px);
    }
}

/* Landscape phones and very short viewports. */
@media (max-height: 560px) and (orientation: landscape) {
    .hero-slider {
        min-height: 520px;
    }

    .hero-slider .hero-slide,
    .hero-slider .hero-slide:nth-of-type(2) {
        align-items: center;
        padding-top: calc(var(--header-height, 72px) + 24px);
        padding-bottom: 72px;
    }

    .hero-slider h1 {
        margin-bottom: 12px;
        font-size: clamp(36px, 8vw, 52px);
    }

    .hero-slider p:not(.kicker) {
        margin-bottom: 12px;
        font-size: 16px;
    }

    .hero-slider .hero-dots {
        bottom: 14px;
    }
}

/* =========================================================
   HERO IMAGE PANEL — v1.0.4
   Keeps portrait source images sharp, centered and visually
   balanced without stretching them or leaving a narrow strip.
   ========================================================= */
@media (min-width: 901px) {
    .hero-slider .hero-slide {
        background: linear-gradient(
            90deg,
            rgba(0,0,0,.99) 0%,
            rgba(0,0,0,.96) 34%,
            rgba(0,0,0,.84) 48%,
            rgba(0,0,0,.36) 66%,
            rgba(0,0,0,.10) 100%
        );
    }

    .hero-slider .hero-slide::before {
        content: "";
        position: absolute;
        z-index: 0;
        top: 0;
        right: 0;
        bottom: 0;
        width: clamp(52%, 57vw, 66%);
        background-image: var(--hero-image);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: 50% 48%;
        filter: brightness(.82) saturate(.94);
        transform: translateZ(0);
    }

    .hero-slider .hero-slide::after {
        content: "";
        position: absolute;
        z-index: 1;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(
            90deg,
            #000 0%,
            rgba(0,0,0,.98) 34%,
            rgba(0,0,0,.88) 45%,
            rgba(0,0,0,.54) 58%,
            rgba(0,0,0,.16) 76%,
            rgba(0,0,0,.04) 100%
        );
    }

    .hero-slider .hero-slide:nth-of-type(1)::before {
        background-position: 50% 42%;
    }

    .hero-slider .hero-slide:nth-of-type(2)::before {
        width: clamp(56%, 61vw, 70%);
        background-position: 50% 47%;
    }

    .hero-slider .hero-content {
        position: relative;
        z-index: 3;
    }

    /* Keep slideshow navigation anchored to the hero.
       v1.0.4 accidentally changed it to position: relative. */
    .hero-slider .hero-dots {
        position: absolute;
        z-index: 8;
        pointer-events: auto;
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .hero-slider .hero-slide::before {
        width: 64%;
    }

    .hero-slider .hero-slide:nth-of-type(2)::before {
        width: 69%;
        background-position: 51% 46%;
    }
}

@media (max-width: 900px) {
    .hero-slider .hero-slide::before,
    .hero-slider .hero-slide::after {
        content: none;
    }
}

/* =========================================================
   PRIVATE LESSONS VISUAL STABILITY — v1.0.6
   Restores musical glyphs and locks the intended beige/gold
   palette without changing the hero or responsive structure.
   ========================================================= */
.lessons-section {
    background-color: var(--paper-light);
}

.lessons-content,
.lesson-item,
.lesson-item h3,
.lesson-item p {
    color: #21170f;
}

.lesson-icon {
    color: #21170f;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    line-height: 1;
}

.ornament {
    color: var(--gold);
}

/* =========================================================
   PRIVATE LESSONS COLOR UNIFICATION — v1.0.7
   Harmonizes the photo panel with the content panel while
   preserving the existing layout, icons and responsive rules.
   ========================================================= */
.lessons-section {
    background: #ead8c8;
}

.lessons-photo {
    margin-right: 0;
    background: #ead8c8;
}

.lessons-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 7;
    pointer-events: none;
    background: rgba(234, 216, 200, 0.13);
    mix-blend-mode: color;
}

.lessons-photo::after {
    top: 0;
    right: 0;
    bottom: 0;
    width: clamp(72px, 8vw, 150px);
    z-index: 10;
    background: linear-gradient(
        to right,
        rgba(234, 216, 200, 0) 0%,
        rgba(234, 216, 200, 0.38) 45%,
        rgba(234, 216, 200, 0.82) 78%,
        #ead8c8 100%
    );
}

.lessons-content {
    background: #ead8c8;
}

@media (max-width: 900px) {
    .lessons-photo::after {
        width: 100%;
        height: 72px;
        top: auto;
        right: 0;
        bottom: 0;
        background: linear-gradient(
            to bottom,
            rgba(234, 216, 200, 0) 0%,
            rgba(234, 216, 200, 0.72) 70%,
            #ead8c8 100%
        );
    }
}

/* My Student page — preserve the complete portrait without cropping. */
.my-student-split {
    align-items: center;
}

.my-student-split > img {
    display: block;
    width: 100%;
    height: clamp(520px, 68vh, 760px);
    max-height: 760px;
    object-fit: contain;
    object-position: center center;
    background: #0d0906;
}

@media (max-width: 1080px) {
    .my-student-split > img {
        height: clamp(460px, 64vh, 680px);
        max-height: 680px;
    }
}

@media (max-width: 760px) {
    .my-student-split > img {
        width: 100%;
        height: auto;
        max-height: none;
        aspect-ratio: auto;
        object-fit: contain;
        background: transparent;
    }
}


/* LEGAL PAGES */
.legal-hero {
    min-height: 390px;
    padding: 165px 7vw 70px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 12px;
    background:
        linear-gradient(rgba(5, 4, 3, 0.80), rgba(5, 4, 3, 0.88)),
        url("../img/hero/hero-cello-dark.jpg") center 42% / cover no-repeat;
}

.legal-hero .section-kicker {
    margin: 0;
}

.legal-hero h1 {
    max-width: 1000px;
}

.legal-hero p:last-child {
    max-width: 720px;
    margin: 0;
    color: var(--cream);
    text-align: center;
    font-size: 17px;
    line-height: 1.6;
}

.legal-page {
    background: #100c09;
    padding: 72px clamp(22px, 6vw, 96px) 96px;
}

.legal-layout {
    width: min(1320px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
    gap: clamp(36px, 5vw, 72px);
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 96px;
}

.legal-toc-card {
    border: 1px solid rgba(208, 162, 119, 0.20);
    border-radius: 18px;
    background: rgba(19, 15, 11, 0.92);
    padding: 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.20);
}

.legal-meta {
    margin: 0 0 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(208, 162, 119, 0.16);
    color: #9e8b7b;
    font-size: 12px;
    line-height: 1.6;
}

.legal-meta strong {
    color: var(--cream);
    font-weight: 400;
}

.legal-toc nav {
    display: grid;
    gap: 2px;
}

.legal-toc nav a {
    padding: 7px 8px;
    border-radius: 8px;
    color: #aa9888;
    font-size: 12px;
    line-height: 1.35;
    transition: color 0.2s ease, background 0.2s ease;
}

.legal-toc nav a:hover,
.legal-toc nav a:focus-visible {
    color: var(--gold2);
    background: rgba(208, 162, 119, 0.08);
}

.legal-content {
    min-width: 0;
}

.legal-intro {
    margin-bottom: 28px;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid rgba(208, 162, 119, 0.22);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(183, 130, 86, 0.08), transparent 60%),
        #17110d;
}

.legal-intro p {
    margin: 0;
    color: #e7d6c7;
    font-size: 17px;
    line-height: 1.75;
}

.legal-intro p + p {
    margin-top: 15px;
}

.legal-section {
    scroll-margin-top: 100px;
    padding: 32px 0;
    border-bottom: 1px solid rgba(208, 162, 119, 0.14);
}

.legal-section:last-child {
    border-bottom: 0;
}

.legal-section h2 {
    margin: 0 0 18px;
    color: #f4e9de;
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 400;
    line-height: 1.25;
}

.legal-section h3 {
    margin: 26px 0 10px;
    color: var(--gold2);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.legal-section p,
.legal-section li {
    color: #c9b7a7;
    font-size: 15px;
    line-height: 1.8;
}

.legal-section p {
    margin: 0 0 14px;
}

.legal-section ul {
    margin: 12px 0 18px;
    padding-left: 22px;
}

.legal-section li + li {
    margin-top: 7px;
}

.legal-section strong {
    color: #ead8c8;
}

.legal-section a {
    color: var(--gold2);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.legal-contact-card {
    display: grid;
    gap: 5px;
    width: min(560px, 100%);
    margin: 18px 0;
    padding: 20px 22px;
    border-left: 2px solid var(--gold);
    border-radius: 0 12px 12px 0;
    background: rgba(216, 196, 176, 0.055);
    color: #c9b7a7;
    line-height: 1.6;
}

.legal-contact-card strong {
    color: #f4e9de;
    font-weight: 400;
    font-size: 16px;
}

.legal-contact-card a {
    width: fit-content;
}

@media (max-width: 980px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .legal-toc {
        position: static;
    }

    .legal-toc-card nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 14px;
    }
}

@media (max-width: 640px) {
    .legal-hero {
        min-height: 340px;
        padding: 138px 22px 54px;
    }

    .legal-hero h1 {
        font-size: 28px;
        letter-spacing: 0.16em;
    }

    .legal-hero p:last-child {
        font-size: 15px;
    }

    .legal-page {
        padding: 42px 18px 64px;
    }

    .legal-toc-card {
        padding: 18px;
    }

    .legal-toc-card nav {
        grid-template-columns: 1fr;
    }

    .legal-intro {
        padding: 22px;
    }

    .legal-intro p {
        font-size: 15px;
    }

    .legal-section {
        padding: 26px 0;
    }

    .legal-section p,
    .legal-section li {
        font-size: 14px;
        line-height: 1.72;
    }
}


/* MUSIC LESSON POLICIES */
.policy-intro {
    border-color: rgba(208, 162, 119, 0.28);
}

.policy-notice {
    display: grid;
    gap: 5px;
    margin: 22px 0 8px;
    padding: 18px 20px;
    border: 1px solid rgba(208, 162, 119, 0.22);
    border-radius: 12px;
    background: rgba(183, 130, 86, 0.08);
}

.policy-notice strong {
    color: var(--gold2);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.policy-notice p {
    margin: 0;
}

.policy-notice-soft {
    background: rgba(216, 196, 176, 0.045);
}

@media (max-width: 640px) {
    .footer-legal-group {
        justify-content: center;
    }
}


/* BOOKING FORM — MUSIC LESSON POLICY ACCEPTANCE */
.lesson-policy-form {
    margin-top: 28px;
    padding: clamp(18px, 2.5vw, 26px);
    border: 1px solid rgba(208, 162, 119, 0.24);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(183, 130, 86, 0.065), transparent 58%),
        rgba(19, 15, 11, 0.74);
}

.lesson-policy-form-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.lesson-policy-form-header .section-kicker {
    margin: 0 0 5px;
}

.lesson-policy-form-header h3 {
    margin: 0;
    color: var(--text);
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 400;
}

.lesson-policy-full-link {
    flex: 0 0 auto;
    color: var(--gold2);
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.lesson-policy-scroll {
    max-height: 360px;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 18px 20px;
    border: 1px solid rgba(208, 162, 119, 0.16);
    border-radius: 12px;
    background: rgba(8, 6, 4, 0.54);
    scrollbar-width: thin;
    scrollbar-color: rgba(208, 162, 119, 0.55) rgba(255,255,255,0.04);
}

.lesson-policy-scroll:focus-visible {
    outline: 2px solid var(--gold2);
    outline-offset: 3px;
}

.lesson-policy-scroll section + section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(208, 162, 119, 0.12);
}

.lesson-policy-scroll h4 {
    margin: 0 0 10px;
    color: var(--gold2);
    font-size: 15px;
    font-weight: 400;
}

.lesson-policy-scroll p,
.lesson-policy-scroll li {
    color: #c9b7a7;
    font-size: 13px;
    line-height: 1.65;
}

.lesson-policy-scroll p {
    margin: 0;
}

.lesson-policy-scroll ul {
    margin: 0;
    padding-left: 20px;
}

.lesson-policy-scroll li + li {
    margin-top: 5px;
}

.lesson-policy-scroll strong {
    color: #ead8c8;
}

.lesson-policy-consent {
    margin-top: 18px;
    align-items: flex-start;
}

.lesson-policy-consent input {
    margin-top: 3px;
}

.lesson-policy-consent a {
    color: var(--gold2);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .lesson-policy-form {
        padding: 16px;
        border-radius: 14px;
    }

    .lesson-policy-form-header {
        display: grid;
        align-items: start;
        gap: 8px;
    }

    .lesson-policy-full-link {
        width: fit-content;
    }

    .lesson-policy-scroll {
        max-height: 320px;
        padding: 16px;
    }
}
