@font-face {
    font-family: "DIN Mittelschrift LT W1G";
    src: url("/static/site/fonts/din-mittelschrift-lt-w1g-regular.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Good Headline Pro";
    src: url("/static/site/fonts/good-headline-pro-regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Good Headline Pro";
    src: url("/static/site/fonts/good-headline-pro-bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Good Headline Pro Light";
    src: url("/static/site/fonts/good-headline-pro-light.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "MDLZ BITE TYPE";
    src: url("/static/site/fonts/mdlz-bite-type-regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Renault Life";
    src: url("/static/site/fonts/renault-life-regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Renault Life";
    src: url("/static/site/fonts/renault-life-bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Renault Life Light";
    src: url("/static/site/fonts/renault-life-light.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "TT Norms";
    src: url("/static/site/fonts/tt-norms-condensed-regular.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "TT Norms";
    src: url("/static/site/fonts/tt-norms-condensed-bold.otf") format("opentype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --bg: #f4efe7;
    --surface: rgba(255, 252, 247, 0.78);
    --ink: #1f2a28;
    --muted: #5f6c67;
    --line: rgba(31, 42, 40, 0.1);
    --accent: #bb6d47;
    --shadow: 0 24px 80px rgba(49, 40, 28, 0.12);
    --radius-xl: 34px;
    --heading-font-family: "Cormorant Garamond", "Times New Roman", Georgia, serif;
    --heading-size-h1: 3.125rem;
    --heading-size-h2: 2.5625rem;
    --heading-size-h3: 1.375rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(187, 109, 71, 0.14), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(147, 166, 138, 0.18), transparent 24%),
        linear-gradient(180deg, #f8f1e8 0%, #f3ece2 46%, #ece2d4 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.page-shell {
    width: calc(100% - 32px);
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 0 56px;
}

.site-header {
    position: sticky;
    top: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 22px;
    background: rgba(255, 251, 245, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(40, 34, 25, 0.08);
}

.brand,
.brand-text,
.contact-stack,
.testimonial-meta {
    display: flex;
}

.brand { align-items: center; gap: 14px; }
.brand-text,
.contact-stack,
.testimonial-meta { flex-direction: column; }

.brand-mark-icon {
    display: block;
    width: 48px;
    height: 48px;
    padding: 4px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    object-fit: contain;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 10px 24px rgba(40, 34, 25, 0.08);
}

.brand-text strong { font-size: 0.98rem; }
.brand-text span,
.site-nav a,
.teacher-role,
.section-kicker,
.pricing-title,
.schedule-day,
.format-accent {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.73rem;
}

.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a,
.brand-text span,
.teacher-years,
.schedule-details,
.testimonial-meta span,
.contact-stack p { color: var(--muted); }

.mobile-menu {
    display: none;
    position: relative;
    flex: 0 0 auto;
}

.mobile-menu-toggle {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(31, 42, 40, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 10px 24px rgba(40, 34, 25, 0.08);
    color: var(--ink);
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mobile-menu-toggle::-webkit-details-marker {
    display: none;
}

.mobile-menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 14px 28px rgba(40, 34, 25, 0.1);
}

.mobile-menu-toggle span {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mobile-menu-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.mobile-menu[open] .mobile-menu-toggle svg {
    transform: rotate(180deg);
}

.mobile-menu-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: grid;
    gap: 8px;
    width: min(320px, calc(100vw - 40px));
    padding: 12px;
    border-radius: 26px;
    background: rgba(255, 251, 245, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 22px 50px rgba(40, 34, 25, 0.14);
    backdrop-filter: blur(18px);
}

.mobile-menu-panel a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid transparent;
    color: var(--ink);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.mobile-menu-panel a:hover {
    transform: translateY(-1px);
    border-color: rgba(187, 109, 71, 0.22);
    background: linear-gradient(135deg, rgba(187, 109, 71, 0.12), rgba(255, 255, 255, 0.92));
}

.mobile-menu-panel .mobile-menu-button {
    justify-content: center;
    background: var(--ink);
    color: white;
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta {
    min-height: 48px;
    padding: 0 20px;
    background: var(--ink);
    color: white;
}

.button {
    min-height: 54px;
    padding: 0 24px;
    font-weight: 700;
}

.button:hover,
.nav-cta:hover { transform: translateY(-2px); }
.button-primary {
    background: linear-gradient(135deg, var(--accent), #d5855f);
    color: white;
    box-shadow: 0 18px 35px rgba(187, 109, 71, 0.28);
}
.button-secondary {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 14px 28px rgba(49, 40, 28, 0.08);
}

.hero-cta-button {
    min-height: 64px;
    padding: 0 30px;
    font-size: 1.08rem;
    font-weight: 800;
    border: 2px solid rgba(31, 42, 40, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 16px 34px rgba(49, 40, 28, 0.12);
}

.hero,
.story-grid,
.format-grid,
.teacher-grid,
.schedule-grid,
.pricing-grid,
.contact-links {
    display: grid;
}

.hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 34px;
    padding: 52px 0 38px;
    align-items: center;
}

.hero-brand-copy h1,
.section-heading h2,
.contact-card h2 {
    margin: 0;
    font-family: var(--heading-font-family);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.hero-brand-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 26px 28px;
    margin-bottom: 22px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 243, 234, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 24px 70px rgba(49, 40, 28, 0.12);
}

.hero-brand-seal {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    padding: 12px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(31, 42, 40, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 14px 30px rgba(40, 34, 25, 0.08);
}

.hero-brand-seal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-brand-copy {
    display: grid;
    gap: 8px;
}

.hero-brand-kicker {
    margin: 0;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-brand-copy h1 {
    max-width: none;
    font-size: clamp(1.9rem, 3.4vw, var(--heading-size-h1));
    line-height: 0.92;
}

.hero-brand-subtitle {
    margin: 0;
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.45;
}

.hero-text,
.story-card p,
.format-card p,
.teacher-content p,
.testimonial-quote,
.contact-card p {
    font-size: 1.05rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 30px 0 24px;
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.hero-points li,
.story-card,
.image-card,
.format-card,
.teacher-card,
.schedule-card,
.pricing-card,
.testimonial-card,
.contact-card {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.hero-points li,
.story-card,
.image-card,
.format-card,
.teacher-card,
.schedule-card,
.pricing-card,
.testimonial-card,
.contact-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px);
}

.hero-points li { font-size: 0.95rem; }

.hero-visual {
    position: relative;
    min-height: 640px;
    display: grid;
    align-content: end;
}

.hero-panel,
.image-card,
.teacher-card { overflow: hidden; }

.hero-panel {
    position: absolute;
    border-radius: 30px;
}

.hero-panel img,
.image-card img,
.teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-photo {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.82), rgba(244, 236, 225, 0.54)),
        linear-gradient(180deg, rgba(255, 251, 246, 0.9), rgba(241, 232, 220, 0.74));
}

.teacher-photo picture {
    display: block;
    width: 100%;
    height: 100%;
}

.teacher-photo.is-portrait {
    padding: 10px 10px 0;
}

.teacher-photo.is-portrait img {
    object-fit: contain;
    object-position: center top;
}

.hero-panel-main { inset: 0 90px 80px 0; }
.hero-panel-side {
    width: 240px;
    height: 320px;
    right: 0;
    top: 38px;
}

.hero-visual-actions {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.hero-booking-button {
    min-height: 66px;
    padding: 0 34px;
    border: 0;
    border-radius: 999px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 243, 176, 0.95), transparent 32%),
        linear-gradient(135deg, #ff8d43, #ff5e57 52%, #ffb347);
    color: #fffdf7;
    font-family: inherit;
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    box-shadow:
        0 20px 44px rgba(255, 108, 64, 0.34),
        0 0 0 10px rgba(255, 183, 71, 0.12);
    cursor: pointer;
    pointer-events: auto;
    animation: bookingButtonPulse 2.7s ease-in-out infinite, bookingButtonWiggle 5.6s ease-in-out infinite;
}

.hero-booking-button:hover {
    transform: translateY(-3px) scale(1.02);
}

.hero-booking-button:focus-visible {
    outline: 3px solid rgba(255, 208, 102, 0.56);
    outline-offset: 4px;
}

@keyframes bookingButtonPulse {
    0%, 100% {
        box-shadow:
            0 20px 44px rgba(255, 108, 64, 0.34),
            0 0 0 0 rgba(255, 166, 77, 0.24);
    }
    50% {
        box-shadow:
            0 26px 56px rgba(255, 108, 64, 0.46),
            0 0 0 16px rgba(255, 166, 77, 0.06);
    }
}

@keyframes bookingButtonWiggle {
    0%, 82%, 100% { transform: rotate(0deg); }
    85% { transform: rotate(-2deg); }
    89% { transform: rotate(2deg); }
    93% { transform: rotate(-1.5deg); }
    97% { transform: rotate(1deg); }
}

.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 180;
    display: grid;
    place-items: center;
    padding: 20px;
}

.booking-modal[hidden] {
    display: none !important;
}

.booking-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 27, 28, 0.44);
    backdrop-filter: blur(10px);
}

.booking-modal-card {
    position: relative;
    z-index: 1;
    width: min(520px, calc(100vw - 24px));
    display: grid;
    gap: 16px;
    padding: 28px 26px 24px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(255, 242, 231, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        0 36px 90px rgba(58, 33, 19, 0.28);
    animation: bookingModalReveal 0.22s ease;
}

.booking-modal-card h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--heading-font-family);
    font-size: clamp(1.7rem, 4vw, var(--heading-size-h3));
    line-height: 1;
}

.booking-modal-text,
.booking-modal-help {
    margin: 0;
}

.booking-call-button {
    min-height: 64px;
    font-size: 1.18rem;
    font-weight: 900;
}

.booking-modal-help {
    color: rgba(47, 60, 55, 0.74);
    font-size: 0.96rem;
}

.booking-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(47, 60, 55, 0.08);
    color: var(--ink);
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
}

@keyframes bookingModalReveal {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.section-kicker,
.format-accent,
.pricing-title,
.teacher-role,
.schedule-day {
    color: var(--accent);
    font-weight: 700;
}

.teacher-role {
    margin: 0 0 8px;
}

.teacher-role:empty {
    display: none;
}

.story-grid,
.format-grid,
.teacher-grid,
.schedule-grid,
.pricing-grid,
.testimonial-grid {
    gap: 18px;
}

.story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-card {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    height: 24rem;
}
.story-card-accent { background: linear-gradient(180deg, rgba(187, 109, 71, 0.13), rgba(255, 255, 255, 0.65)); }
.image-card { padding: 0; }
.story-card h2 {
    margin: 0 0 12px;
    font-family: var(--heading-font-family);
    font-size: clamp(1.5rem, 2.4vw, var(--heading-size-h2));
    line-height: 0.95;
}

.story-card-body {
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
}

.story-card-body p {
    margin: 0;
}

.section { padding: 84px 0 0; }
.section-heading {
    display: grid;
    gap: 10px;
    margin-bottom: 26px;
}

.section-heading h2,
.contact-card h2 {
    max-width: 11ch;
    font-size: clamp(1.6rem, 3vw, var(--heading-size-h2));
}

.format-grid,
.teacher-grid,
.schedule-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pricing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.format-card {
    position: relative;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    height: 34rem;
}

.format-content-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 10px;
    padding-bottom: 56px;
    scrollbar-width: thin;
    scrollbar-color: rgba(180, 109, 73, 0.46) rgba(31, 42, 40, 0.08);
}

.format-subtitle {
    margin-top: 8px;
    color: var(--muted);
    font-weight: 700;
}

.format-description {
    margin-bottom: 0;
}

.format-content-body::-webkit-scrollbar {
    width: 8px;
}

.format-content-body::-webkit-scrollbar-track {
    background: rgba(31, 42, 40, 0.08);
    border-radius: 999px;
}

.format-content-body::-webkit-scrollbar-thumb {
    background: rgba(180, 109, 73, 0.46);
    border-radius: 999px;
}

.format-card.is-expanded {
    height: auto;
    min-height: 34rem;
}

.format-card.is-expanded .format-content-body {
    overflow: visible;
    padding-right: 0;
    padding-bottom: 0;
}

.teacher-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    background: rgba(255, 248, 240, 0.74);
}
.teacher-photo {
    height: 320px;
    min-height: 320px;
}
.teacher-content {
    position: relative;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 0;
    flex: 1 1 auto;
    height: 430px;
    padding: 24px;
}
.teacher-content h3,
.format-card h3,
.pricing-card h3,
.schedule-card h3 {
    margin: 10px 0 12px;
    font-family: var(--heading-font-family);
    font-size: var(--heading-size-h3);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.teacher-content > .teacher-role:empty + h3 {
    margin-top: 0;
}

.teacher-content-body {
    min-height: 0;
    overflow-y: auto;
    padding-right: 8px;
    padding-bottom: 56px;
    scrollbar-width: thin;
    scrollbar-color: rgba(180, 109, 73, 0.46) rgba(31, 42, 40, 0.08);
}

.teacher-content-body::-webkit-scrollbar {
    width: 8px;
}

.teacher-content-body::-webkit-scrollbar-track {
    background: rgba(31, 42, 40, 0.08);
    border-radius: 999px;
}

.teacher-content-body::-webkit-scrollbar-thumb {
    background: rgba(180, 109, 73, 0.46);
    border-radius: 999px;
}

.teacher-content.is-expanded {
    height: auto;
}

.teacher-content.is-expanded .teacher-content-body {
    overflow: visible;
    padding-right: 0;
    padding-bottom: 0;
}

.teacher-toggle,
.format-toggle {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-height: 42px;
    margin-top: 0;
    padding: 0;
    border: 1px solid rgba(31, 42, 40, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    font: inherit;
    font-weight: 800;
    font-size: 0;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 10px 22px rgba(49, 40, 28, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.teacher-toggle::before,
.format-toggle::before {
    content: "+";
    font-size: 1.35rem;
    line-height: 1;
}

.teacher-content.is-expanded .teacher-toggle::before,
.format-card.is-expanded .format-toggle::before {
    content: "−";
    font-size: 1.5rem;
}

.teacher-toggle:hover,
.format-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(187, 109, 71, 0.26);
    background: linear-gradient(135deg, rgba(187, 109, 71, 0.1), rgba(255, 255, 255, 0.92));
}

.teacher-credentials { color: var(--muted); font-size: 0.95rem; }
.schedule-card { background: linear-gradient(180deg, rgba(147, 166, 138, 0.16), rgba(255, 252, 247, 0.78)); }
.schedule-class { font-weight: 700; }
.section-note {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 22px 24px;
    border-radius: 28px;
    background: rgba(255, 252, 247, 0.72);
    border: 1px solid rgba(31, 42, 40, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        0 18px 36px rgba(49, 40, 28, 0.08);
}

.section-note p,
.contact-note p {
    margin: 0;
    color: var(--muted);
}

.section-note-compact {
    margin-bottom: 18px;
    padding: 18px 22px;
}

.pricing-section .section-note:last-child {
    margin-top: 20px;
    margin-bottom: 0;
}

.pricing-card-featured {
    background: linear-gradient(165deg, rgba(187, 109, 71, 0.95), #1f2a28);
    color: white;
}
.pricing-card-featured .pricing-title { color: rgba(255, 255, 255, 0.72); }
.testimonial-card { background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(239, 213, 193, 0.3)); }
.testimonial-quote { margin-top: 0; }
.testimonial-meta { gap: 4px; }
.testimonial-form-card input.site-input,
.testimonial-form-card textarea.site-input {
    width: 100%;
    display: block;
    min-height: 56px;
    padding: 0 18px;
    border: 2px solid rgba(187, 109, 71, 0.22);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    appearance: none;
    -webkit-appearance: none;
}

.testimonial-form-card textarea.site-textarea {
    min-height: 168px;
    padding: 16px 18px;
    resize: vertical;
}

.testimonial-form-card input.site-input:focus,
.testimonial-form-card textarea.site-input:focus {
    outline: none;
    border-color: rgba(187, 109, 71, 0.55);
    box-shadow:
        0 0 0 4px rgba(187, 109, 71, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.testimonials-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 22px;
}

.testimonials-actions {
    margin-left: auto;
}

.testimonials-feedback-button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #d5855f);
    color: white;
    font-size: 0.96rem;
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(187, 109, 71, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 0;
    cursor: pointer;
}

.testimonials-feedback-button::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.28) 50%, transparent 80%);
    transform: translateX(-130%);
    opacity: 0;
}

.testimonials-feedback-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(187, 109, 71, 0.3);
}

.testimonials-feedback-button:focus-visible {
    outline: 3px solid rgba(187, 109, 71, 0.25);
    outline-offset: 3px;
}

.testimonials-feedback-button.is-animated {
    animation: testimonialsButtonWiggle 5.8s ease-in-out infinite;
}

@keyframes testimonialsButtonWiggle {
    0%, 78%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 16px 34px rgba(187, 109, 71, 0.24);
    }
    82% {
        transform: translateY(-1px) rotate(-0.45deg) scale(1.01);
        box-shadow: 0 20px 38px rgba(187, 109, 71, 0.28);
    }
    86% {
        transform: translateY(0) rotate(0.45deg) scale(1.012);
        box-shadow: 0 22px 40px rgba(187, 109, 71, 0.3);
    }
    90% {
        transform: translateY(-1px) rotate(-0.25deg) scale(1.008);
        box-shadow: 0 18px 36px rgba(187, 109, 71, 0.27);
    }
    94% {
        transform: translateY(0) scale(1);
        box-shadow: 0 16px 34px rgba(187, 109, 71, 0.24);
    }
}

.testimonials-controls {
    display: flex;
    gap: 10px;
}

.testimonials-control {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--ink);
    font: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transition: transform 0.2s ease, background 0.2s ease;
}

.testimonials-control:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.96);
}

.testimonial-slider {
    overflow: hidden;
}

.testimonial-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(320px, 420px);
    gap: 18px;
    overflow-x: auto;
    padding: 2px 4px 12px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    cursor: grab;
    user-select: none;
    -ms-overflow-style: none;
}

.testimonial-grid::-webkit-scrollbar {
    display: none;
}

.testimonial-grid.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.testimonial-card {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 18px;
    height: 320px;
    min-height: 320px;
    scroll-snap-align: start;
}

.testimonial-quote-shell {
    min-height: 0;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(180, 109, 73, 0.46) rgba(31, 42, 40, 0.08);
}

.testimonial-quote-shell::-webkit-scrollbar {
    width: 8px;
}

.testimonial-quote-shell::-webkit-scrollbar-track {
    background: rgba(31, 42, 40, 0.08);
    border-radius: 999px;
}

.testimonial-quote-shell::-webkit-scrollbar-thumb {
    background: rgba(180, 109, 73, 0.46);
    border-radius: 999px;
}

.testimonial-quote {
    margin: 0;
}

.testimonial-quote::before {
    content: "“";
}

.testimonial-quote::after {
    content: "”";
}

.testimonial-meta {
    margin-top: auto;
}

.testimonial-form-shell {
    width: min(760px, 100%);
    margin: 28px auto 0;
}

.testimonial-form-shell[hidden] {
    display: none !important;
}

.testimonial-form-shell.is-collapsed {
    display: none;
}

.testimonial-form-shell.is-open {
    display: block;
    animation: testimonialFormReveal 0.24s ease;
}

@keyframes testimonialFormReveal {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-form-card {
    padding: 34px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(247, 238, 226, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 24px 80px rgba(49, 40, 28, 0.12);
    backdrop-filter: blur(18px);
}

.testimonial-form-card form,
.testimonial-form-card fieldset {
    margin: 0;
}

.testimonial-form-card .section-kicker {
    display: inline-block;
    margin-bottom: 10px;
}

.testimonial-form-shell {
    margin-top: 28px;
}

.testimonial-form-card {
    width: 100%;
}

.testimonial-form-head {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.testimonial-form-head h3 {
    margin: 0;
    font-family: var(--heading-font-family);
    font-size: var(--heading-size-h3);
    line-height: 0.98;
}

.testimonial-form-head p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.testimonial-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

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

.testimonial-form-field label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
}

.testimonial-form-field-wide {
    grid-column: 1 / -1;
}

.testimonial-form-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 22px;
}

.testimonial-form-success,
.testimonial-form-errors,
.testimonial-form-error {
    font-size: 0.94rem;
}

.testimonial-form-success,
.testimonial-form-errors {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 18px;
}

.testimonial-form-success {
    background: rgba(147, 166, 138, 0.18);
    color: #365043;
}

.testimonial-form-errors,
.testimonial-form-error {
    color: #a14f3e;
}

.testimonial-form-errors {
    background: rgba(187, 109, 71, 0.12);
}

.testimonial-form-error {
    margin: 0;
}

.contact-card {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
    padding: 36px 40px;
    border-radius: 32px;
    background: linear-gradient(155deg, #1f2a28, #34463d);
    color: white;
    box-shadow: 0 28px 80px rgba(49, 40, 28, 0.16);
}

.contact-title-panel {
    min-width: 0;
}

.contact-title-panel .section-kicker {
    margin: 0;
}

.contact-details-panel {
    display: grid;
    gap: 22px;
    min-width: 0;
}

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

.contact-primary a {
    width: max-content;
    max-width: 100%;
    color: white;
    font-size: 1.04rem;
    font-weight: 800;
    text-decoration: none;
}

.contact-address {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.76);
}

.contact-note {
    display: grid;
    gap: 8px;
    max-width: 620px;
    padding-left: 18px;
    border-left: 2px solid rgba(187, 109, 71, 0.72);
}

.contact-note p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.contact-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-weight: 700;
    text-decoration: none;
}

.contact-map-panel {
    min-width: 0;
    justify-self: stretch;
}

.contact-map {
    width: min(100%, 400px);
    aspect-ratio: 1 / 1;
    margin-left: auto;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 24px 4px 0;
    color: var(--muted);
}

.site-footer > p {
    margin: 0;
}

.site-footer > p:nth-child(2) {
    text-align: center;
}

.site-credit {
    text-align: right;
    font-size: 0.78rem;
    line-height: 1.35;
    opacity: 0.56;
}

.site-credit a {
    color: inherit;
}
.scroll-top-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(244, 229, 214, 0.94)),
        linear-gradient(135deg, var(--accent), #d5855f);
    color: var(--accent);
    font: inherit;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        0 18px 36px rgba(122, 84, 54, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px) scale(0.92);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease,
        box-shadow 0.2s ease;
}

.scroll-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.scroll-top-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 22px 40px rgba(122, 84, 54, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.scroll-top-button:focus-visible {
    outline: 3px solid rgba(187, 109, 71, 0.22);
    outline-offset: 4px;
}

.library-layout,
.article-layout {
    padding: 42px 0 24px;
}

.library-navigation,
.library-hero,
.library-sections,
.library-toolbar,
.library-card,
.library-empty,
.article-shell,
.related-section,
.library-stat-card,
.article-source {
    padding: 28px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.library-hero,
.library-shell,
.library-hub,
.library-navigation,
.library-toolbar,
.library-grid,
.library-meta,
.article-meta,
.article-topline,
.pagination {
    display: grid;
}

.library-navigation {
    grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.72fr);
    gap: 20px;
    align-items: stretch;
    margin-bottom: 22px;
    padding: 22px 24px;
    background:
        radial-gradient(circle at top left, rgba(187, 109, 71, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(255, 251, 245, 0.94), rgba(248, 240, 229, 0.82));
}

.library-navigation-main,
.library-navigation-copy,
.library-navigation-form,
.library-navigation-summary,
.library-navigation-status {
    display: grid;
}

.library-navigation-main {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    min-height: 0;
    padding-right: 12px;
}

.library-navigation-copy {
    gap: 0;
    align-content: center;
}

.library-navigation-copy h1 {
    margin: 0;
    font-family: var(--heading-font-family);
    font-size: clamp(1.6rem, 2.1vw, var(--heading-size-h2));
    line-height: 0.98;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.library-navigation-copy p:last-child,
.library-navigation-status p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.library-navigation-form {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
    align-self: start;
    max-width: none;
}

.library-navigation-search-row,
.library-navigation-filter-row {
    display: grid;
}

.library-navigation-search-row {
    grid-template-columns: minmax(300px, 420px);
}

.library-navigation-filter-row {
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) max-content;
    gap: 12px;
    align-items: end;
}

.library-field-search {
    min-width: 0;
}

.library-field-search input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid rgba(31, 42, 40, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    font: inherit;
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.library-field-search input::placeholder {
    color: rgba(95, 108, 103, 0.82);
}

.library-navigation-actions {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 12px;
    align-items: end;
    justify-content: end;
}

.library-navigation-actions button {
    min-width: 120px;
    min-height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #d5855f);
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 18px 35px rgba(187, 109, 71, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.library-navigation-actions button:hover {
    transform: translateY(-2px);
}

.library-navigation-summary {
    gap: 12px;
}

.library-navigation-stat,
.library-navigation-status {
    padding: 18px 20px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(31, 42, 40, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.library-navigation-stat {
    gap: 6px;
}

.library-navigation-stat strong,
.library-navigation-status h2 {
    margin: 0;
    font-family: var(--heading-font-family);
    line-height: 0.95;
}

.library-navigation-stat strong {
    font-size: 1.85rem;
}

.library-navigation-stat span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.library-navigation-status {
    gap: 8px;
}

.library-navigation-status h2 {
    font-size: var(--heading-size-h3);
    letter-spacing: -0.03em;
}

.library-field select:disabled {
    color: rgba(95, 108, 103, 0.72);
    background: rgba(245, 240, 233, 0.7);
    cursor: not-allowed;
}

.library-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 18px 22px;
    margin-bottom: 22px;
    padding: 24px 28px;
    align-items: start;
    background:
        radial-gradient(circle at top left, rgba(187, 109, 71, 0.18), transparent 34%),
        linear-gradient(145deg, rgba(255, 251, 245, 0.92), rgba(248, 240, 229, 0.72));
}

.library-shell {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.library-hub {
    gap: 24px;
    margin-bottom: 22px;
    padding: 26px 28px 30px;
    background:
        radial-gradient(circle at top left, rgba(187, 109, 71, 0.12), transparent 30%),
        linear-gradient(145deg, rgba(255, 251, 245, 0.92), rgba(248, 240, 229, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.library-main-column {
    display: grid;
    gap: 18px;
}

.library-hero h1,
.article-header h1 {
    margin: 0;
    font-family: var(--heading-font-family);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.library-hero h1 {
    font-size: clamp(1.62rem, 2.2vw, var(--heading-size-h2));
    max-width: 12ch;
    line-height: 0.98;
}

.library-hero-copy {
    display: grid;
    align-content: center;
    gap: 10px;
}

.library-hero-copy .hero-text {
    max-width: 42ch;
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.65;
}

.library-hero-stats,
.library-filters,
.library-search,
.library-card-topline,
.article-topline,
.article-source,
.library-hero-actions,
.library-hero-panel,
.library-orbit,
.library-search-shell {
    display: flex;
}

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

.library-hero-actions .button {
    min-width: 170px;
    min-height: 48px;
    padding: 0 20px;
}

.library-hero-panel {
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
}

.library-orbit {
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
}

.library-stat-card {
    min-width: 112px;
    display: grid;
    align-content: end;
    gap: 6px;
    padding: 16px 16px 12px;
    background: rgba(255, 255, 255, 0.62);
    border-radius: 28px;
    border: 1px solid rgba(31, 42, 40, 0.08);
}

.library-stat-card-accent {
    background: linear-gradient(155deg, rgba(187, 109, 71, 0.96), rgba(221, 150, 107, 0.85));
    color: white;
}

.library-stat-card-accent span {
    color: rgba(255, 255, 255, 0.8);
}

.library-stat-card span,
.library-meta,
.article-meta,
.library-card-topline span:last-child {
    color: var(--muted);
}

.library-stat-card strong {
    font-family: var(--heading-font-family);
    font-size: 2.2rem;
    line-height: 0.9;
}

.library-stat-card span {
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.library-hero-note {
    padding: 12px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    border: 1px solid rgba(31, 42, 40, 0.08);
    box-shadow: none;
}

.library-hero-note p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
}

.library-sections,
.library-toolbar {
    gap: 18px;
    align-items: stretch;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.library-toolbar {
    grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
    min-height: 100%;
    padding-left: 24px;
    border-left: 1px solid rgba(31, 42, 40, 0.08);
}

.library-sections {
    display: grid;
    gap: 18px;
}

.library-sections-head,
.library-tree,
.library-tree-group,
.library-subtree,
.library-tree-dropdown {
    display: grid;
}

.library-sections-head {
    gap: 8px;
}

.library-sections-head h2 {
    margin: 0;
    font-family: var(--heading-font-family);
    font-size: clamp(1.5rem, 2vw, var(--heading-size-h3));
    line-height: 1;
    letter-spacing: -0.03em;
}

.library-sections-head p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.library-tree {
    gap: 14px;
}

.library-tree-group {
    gap: 10px;
}

.library-tree-dropdown {
    gap: 10px;
}

.library-tree-summary {
    list-style: none;
    cursor: pointer;
}

.library-tree-summary::-webkit-details-marker {
    display: none;
}

.library-subtree {
    gap: 8px;
    padding-left: 16px;
    border-left: 1px solid rgba(31, 42, 40, 0.08);
}

.library-toolbar-copy {
    display: grid;
    align-content: start;
    gap: 8px;
}

.library-toolbar-copy h2 {
    margin: 0;
    font-family: var(--heading-font-family);
    font-size: var(--heading-size-h3);
    line-height: 1;
    letter-spacing: -0.03em;
    max-width: none;
}

.library-toolbar-copy p:last-child {
    margin: 0;
    max-width: 30ch;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

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

.library-search-shell {
    align-items: end;
    gap: 12px;
}

.library-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 12px;
    align-items: end;
}

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

.library-field span {
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 800;
}

.library-field-search {
    flex: 1;
}

.filter-chip,
.library-search-shell button,
.pagination a,
.back-link,
.article-source a,
.library-reset,
.library-tree-link,
.library-tree-summary,
.library-subtree-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.filter-chip,
.pagination a,
.back-link,
.article-source a,
.library-reset,
.library-tree-link,
.library-tree-summary,
.library-subtree-link {
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.filter-chip.is-active {
    background: linear-gradient(135deg, var(--ink), #2b3d39);
    color: white;
    border-color: var(--ink);
}

.library-search {
    gap: 10px;
}

.library-search input,
.library-field input,
.library-field select {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    font: inherit;
    outline: none;
    appearance: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.library-field input:focus,
.library-field select:focus {
    border-color: rgba(187, 109, 71, 0.45);
    box-shadow:
        0 0 0 4px rgba(187, 109, 71, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.library-field select {
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(31, 42, 40, 0.72) 50%),
        linear-gradient(135deg, rgba(31, 42, 40, 0.72) 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 50%,
        calc(100% - 16px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 42px;
}

.library-search-shell button {
    min-width: 112px;
    min-height: 50px;
    border: 0;
    background: linear-gradient(135deg, var(--accent), #d5855f);
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.library-reset {
    align-self: end;
    color: var(--muted);
    font-weight: 700;
}

.library-tree-link,
.library-tree-summary,
.library-subtree-link {
    justify-content: space-between;
    gap: 14px;
    color: var(--ink);
    text-align: left;
    width: 100%;
}

.library-tree-link span,
.library-tree-summary span,
.library-subtree-link span {
    flex: 1;
}

.library-tree-link strong,
.library-tree-summary strong,
.library-subtree-link strong {
    min-width: 34px;
    min-height: 34px;
    display: grid;
    place-items: center;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--muted);
    background: rgba(31, 42, 40, 0.06);
}

.library-tree-summary::after {
    content: "";
    width: 10px;
    height: 10px;
    margin-left: 2px;
    border-right: 2px solid rgba(31, 42, 40, 0.45);
    border-bottom: 2px solid rgba(31, 42, 40, 0.45);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

.library-tree-dropdown[open] .library-tree-summary::after {
    transform: rotate(-135deg) translateY(-1px);
}

.library-tree-link.is-active,
.library-tree-dropdown[open] .library-tree-summary,
.library-subtree-link.is-active {
    border-color: rgba(187, 109, 71, 0.28);
    background: linear-gradient(135deg, rgba(187, 109, 71, 0.16), rgba(255, 255, 255, 0.88));
    box-shadow: 0 12px 30px rgba(49, 40, 28, 0.08);
}

.library-tree-link.is-active strong,
.library-tree-dropdown[open] .library-tree-summary strong,
.library-subtree-link.is-active strong {
    color: white;
    background: linear-gradient(135deg, var(--accent), #d5855f);
}

.library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.library-card {
    padding: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 240, 229, 0.84));
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.library-card:hover {
    transform: translateY(-6px);
    border-color: rgba(187, 109, 71, 0.22);
    box-shadow: 0 28px 90px rgba(49, 40, 28, 0.16);
}

.library-card-link {
    display: flex;
    flex-direction: column;
}

.library-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 16px 0;
    background: linear-gradient(135deg, rgba(187, 109, 71, 0.34), rgba(31, 42, 40, 0.14));
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
}

.library-card-media img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    border-radius: 22px;
    transition: transform 0.4s ease;
}

.library-card:hover .library-card-media img {
    transform: scale(1.02);
}

.library-card-body {
    display: grid;
    gap: 12px;
    padding: 18px 20px 20px;
}

.library-card-featured {
    border-color: rgba(187, 109, 71, 0.18);
}

.library-card-featured .library-card-body {
    background:
        radial-gradient(circle at top right, rgba(187, 109, 71, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 250, 245, 0.88), rgba(246, 236, 225, 0.96));
}

.library-card h2,
.library-card h3 {
    margin: 0;
    font-size: var(--heading-size-h3);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-family: var(--heading-font-family);
}

.library-card h2 a,
.library-card h3 a {
    text-decoration: none;
}

.library-card-topline {
    justify-content: space-between;
    gap: 16px;
    font-size: 0.88rem;
    align-items: center;
}

.library-kind {
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.library-summary,
.article-summary,
.article-body {
    font-size: 1.02rem;
    line-height: 1.8;
}

.library-summary {
    margin: 0;
    color: rgba(31, 42, 40, 0.84);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.library-meta,
.article-meta {
    grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
    gap: 10px 16px;
    font-size: 0.95rem;
}

.library-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.76rem;
}

.library-link::after {
    content: "↗";
    font-size: 1rem;
}

.library-empty {
    grid-column: 1 / -1;
    text-align: center;
}

.pagination {
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.article-layout {
    display: grid;
    gap: 32px;
}

.article-shell {
    display: grid;
    gap: 40px;
    padding: 34px 38px 40px;
    background:
        radial-gradient(circle at top left, rgba(187, 109, 71, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(255, 252, 247, 0.94), rgba(248, 240, 229, 0.82));
}

.article-hero,
.article-hero-copy,
.article-hero-aside,
.article-header,
.article-aside-note {
    display: grid;
}

.article-hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
    gap: 34px;
    align-items: start;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(31, 42, 40, 0.08);
}

.article-hero-copy {
    gap: 16px;
    align-content: start;
    min-width: 0;
}

.article-hero-aside {
    gap: 16px;
    align-content: start;
}

.article-taxonomy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.article-taxonomy a {
    color: var(--accent);
    font-weight: 700;
}

.article-topline {
    grid-template-columns: max-content max-content;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.article-date {
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.74rem;
}

.article-header {
    display: grid;
    gap: 16px;
    max-width: 580px;
}

.article-header h1 {
    font-size: clamp(1.62rem, 2.1vw, var(--heading-size-h1));
    max-width: 10ch;
    text-wrap: balance;
    line-height: 0.92;
}

.article-title-secondary {
    margin: 0;
    max-width: 34ch;
    color: rgba(31, 42, 40, 0.68);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.55;
}

.article-summary {
    max-width: 44ch;
    margin: 0;
    color: rgba(31, 42, 40, 0.8);
    line-height: 1.7;
}

.article-meta-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-meta-hero span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(31, 42, 40, 0.08);
    color: rgba(31, 42, 40, 0.78);
}

.article-video-card,
.article-cover {
    overflow: hidden;
    border-radius: 30px;
    width: 100%;
    margin: 0;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(31, 42, 40, 0.08);
    box-shadow: 0 24px 48px rgba(40, 34, 25, 0.08);
}

.article-video-card {
    padding: 12px;
}

.article-cover {
    display: grid;
    place-items: center;
    padding: 18px;
    background:
        radial-gradient(circle at top, rgba(187, 109, 71, 0.14), transparent 48%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 237, 225, 0.88));
}

.article-video-card iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 22px;
    background: #111;
}

.article-cover img {
    width: 100%;
    max-height: 420px;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 22px;
}

.article-hero-aside {
    position: sticky;
    top: 104px;
}

.article-aside-note {
    gap: 10px;
    padding: 20px 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(245, 236, 225, 0.58));
    border: 1px solid rgba(31, 42, 40, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.article-aside-text {
    margin: 0;
    color: rgba(31, 42, 40, 0.8);
    line-height: 1.65;
}

.article-source-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    color: var(--accent);
    font-weight: 700;
}

.article-source-link::after {
    content: "↗";
    font-size: 1rem;
}

.article-reading {
    display: grid;
    gap: 22px;
    max-width: 860px;
    padding: 12px 0 0;
}

.article-reading-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.article-reading-head::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(187, 109, 71, 0.22), rgba(31, 42, 40, 0.06));
}

.article-body h2,
.article-body h3,
.article-body h4 {
    margin: 40px 0 14px;
    font-family: var(--heading-font-family);
    line-height: 0.96;
}

.article-body h2 {
    font-size: calc(var(--heading-size-h2) * 0.67);
}

.article-body h3 {
    font-size: calc(var(--heading-size-h3) * 1.08);
}

.article-body h4 {
    font-size: var(--heading-size-h3);
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote {
    margin: 0 0 20px;
}

.article-body {
    max-width: 820px;
    width: 100%;
    margin: 0;
    padding: 34px 38px 38px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 241, 233, 0.9));
    border: 1px solid rgba(187, 109, 71, 0.14);
    border-left: 4px solid rgba(187, 109, 71, 0.48);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 20px 42px rgba(40, 34, 25, 0.08);
    font-size: 1.06rem;
    line-height: 1.9;
    color: rgba(31, 42, 40, 0.9);
}

.article-body > p:first-child {
    font-size: 1.14rem;
    line-height: 1.88;
    color: rgba(31, 42, 40, 0.96);
}

.article-body > p:first-child + p {
    color: var(--muted);
}

.article-body img {
    display: block;
    width: min(100%, 420px);
    height: auto;
    border-radius: 18px;
    margin: 10px auto 24px;
    box-shadow: 0 16px 36px rgba(40, 34, 25, 0.1);
}

.article-body iframe,
.article-body video {
    display: block;
    width: min(100%, 760px);
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 24px;
    margin: 14px auto 26px;
    box-shadow: 0 20px 44px rgba(40, 34, 25, 0.12);
}

.article-body audio {
    display: block;
    width: min(100%, 640px);
    margin: 14px auto 26px;
    border-radius: 999px;
    box-shadow: 0 16px 34px rgba(40, 34, 25, 0.1);
}

.article-body .article-inline-media {
    display: block;
    clear: both;
    width: min(100%, 360px);
    margin: 12px auto 24px;
}

.article-body .article-inline-media img,
.article-body .article-inline-media video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.article-body .article-inline-media.media-size-small {
    width: min(100%, 220px);
}

.article-body .article-inline-media.media-size-medium {
    width: min(100%, 360px);
}

.article-body .article-inline-media.media-size-large {
    width: min(100%, 520px);
}

.article-body .article-inline-media.media-size-full {
    width: 100%;
    max-width: 760px;
}

.article-body .article-inline-media.media-align-left {
    margin-left: 0;
    margin-right: auto;
}

.article-body .article-inline-media.media-align-center {
    margin-left: auto;
    margin-right: auto;
}

.article-body .article-inline-media.media-align-right {
    margin-left: auto;
    margin-right: 0;
}

.article-body .article-inline-media.media-wrap-left {
    float: left;
    clear: none;
    margin: 8px 24px 18px 0;
}

.article-body .article-inline-media.media-wrap-right {
    float: right;
    clear: none;
    margin: 8px 0 18px 24px;
}

.article-body a,
.article-source a,
.article-source-link,
.library-link {
    color: var(--accent);
}

.article-body a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.article-source {
    justify-content: flex-start;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.related-section {
    display: grid;
    gap: 10px;
}

.related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.reveal,
.no-js .reveal,
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .site-header,
    .hero,
    .story-grid,
    .format-grid,
    .teacher-grid,
    .schedule-grid,
    .pricing-grid,
    .library-navigation,
    .library-hero,
    .library-shell,
    .library-hub,
    .library-toolbar,
    .library-grid,
    .related-grid { grid-template-columns: 1fr; }
    .site-header { border-radius: 28px; position: sticky; top: 10px; }
    .site-nav { display: none; }
    .site-header-home {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    .site-header-home .brand {
        width: max-content;
        min-width: auto;
        flex: 0 0 auto;
        gap: 0;
    }
    .site-header-home .nav-cta {
        display: none;
    }
    .nav-cta {
        display: none;
    }
    .mobile-menu {
        display: block;
        margin-left: auto;
    }
    .hero-brand-copy h1,
    .section-heading h2,
    .contact-card h2,
    .library-hero h1,
    .article-header h1 { max-width: none; }
    .section-heading h2,
    .contact-card h2 {
        font-size: clamp(1.7rem, 5.8vw, var(--heading-size-h2));
    }
    .article-hero {
        grid-template-columns: 1fr;
    }
    .article-hero-copy,
    .article-hero-aside {
        gap: 16px;
    }
    .article-hero-aside {
        position: static;
    }
    .article-video-card,
    .article-aside-note,
    .article-cover {
        width: 100%;
    }
    .hero-visual { min-height: 500px; }
    .hero-panel-main { inset: 0 80px 80px 0; }
    .hero-panel-side { width: 200px; height: 240px; }
    .hero-visual-actions {
        left: 18px;
        right: 18px;
    }
    .hero-points { grid-template-columns: 1fr; }
    .pagination { grid-template-columns: 1fr; }
    .library-toolbar-copy h2,
    .library-toolbar-copy p:last-child { max-width: none; }
    .library-navigation-form {
        grid-template-columns: 1fr;
        max-width: none;
    }
    .library-navigation-search-row,
    .library-navigation-filter-row {
        grid-template-columns: 1fr;
    }
    .library-navigation-main {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .library-navigation-actions {
        justify-content: start;
    }
    .library-toolbar {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(31, 42, 40, 0.08);
        padding-top: 18px;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 18px;
    }
    .page-shell {
        width: calc(100% - 20px);
        max-width: 1280px;
        padding-top: 10px;
    }
    .site-header { padding: 14px; }
    .brand {
        gap: 10px;
    }
    .brand-text strong {
        font-size: 0.9rem;
    }
    .brand-text span,
    .site-nav a,
    .section-kicker,
    .format-accent,
    .teacher-role,
    .schedule-day,
    .pricing-title,
    .hero-text,
    .story-card p,
    .format-card p,
    .teacher-content p,
    .teacher-credentials,
    .schedule-card p,
    .pricing-card p,
    .section-note p,
    .contact-note p,
    .testimonial-quote,
    .testimonial-meta span,
    .testimonial-form-field label,
    .testimonial-form-success,
    .testimonial-form-errors,
    .testimonial-form-error,
    .contact-stack a,
    .contact-card .contact-stack p,
    .hero-points li,
    .button,
    .nav-cta,
    .library-navigation,
    .library-navigation select,
    .library-navigation button,
    .library-reset,
    .library-card .library-summary,
    .library-kind,
    .library-meta,
    .article-body,
    .article-meta-hero span,
    .article-aside-text,
    .article-summary-card p,
    .article-actions a,
    .site-footer,
    input.site-input,
    textarea.site-input {
        font-size: 1.14rem;
        line-height: 1.7;
    }
    .site-header-home {
        gap: 10px;
    }
    .brand-mark-icon {
        display: block;
        width: 40px;
        height: 40px;
        padding: 3px;
        border-radius: 14px;
    }
    .brand-text {
        display: none;
    }
    .hero { padding-top: 28px; }
    .hero-brand-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 22px 20px;
        text-align: center;
    }
    .hero-brand-seal {
        width: 92px;
        height: 92px;
        margin: 0 auto;
        padding: 10px;
    }
    .hero-brand-copy {
        gap: 6px;
    }
    .hero-brand-copy h1 {
        font-size: clamp(1.62rem, 6.6vw, var(--heading-size-h1));
    }
    .section-heading h2,
    .contact-card h2 {
        font-size: clamp(1.55rem, 6.4vw, var(--heading-size-h2));
        line-height: 0.98;
    }
    .hero-brand-subtitle {
        font-size: 0.98rem;
    }
    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .button,
    .nav-cta { width: 100%; }
    .hero-visual { min-height: 340px; }
    .hero-panel-main { inset: 0 50px 40px 0; }
    .hero-panel-side { width: 150px; height: 180px; }
    .hero-visual-actions {
        position: static;
        margin-top: 16px;
        left: auto;
        right: auto;
    }
    .hero-booking-button {
        width: 100%;
        min-height: 60px;
        padding: 0 24px;
        font-size: 1.02rem;
    }
    .booking-modal {
        padding: 12px;
    }
    .booking-modal-card {
        width: min(100%, 100vw - 24px);
        padding: 24px 18px 20px;
        border-radius: 24px;
    }
    .booking-call-button {
        width: 100%;
    }
    .section-note {
        padding: 18px 18px;
    }
    .teacher-photo {
        height: 260px;
        min-height: 260px;
    }
    .teacher-content {
        height: 420px;
    }
    .teacher-content-body {
        overflow-y: auto;
        padding-right: 8px;
    }
    .site-footer { flex-direction: column; }
    .scroll-top-button {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }
    .testimonials-head {
        flex-direction: column;
        align-items: stretch;
    }
    .testimonials-actions {
        margin-left: 0;
    }
    .testimonials-feedback-button {
        width: 100%;
    }
    .testimonials-controls {
        justify-content: flex-start;
    }
    .testimonial-form-grid {
        grid-template-columns: 1fr;
    }
    .format-card {
        height: 30rem;
        min-height: 30rem;
    }
    .format-content-body {
        overflow-y: auto;
        padding-right: 8px;
    }
    .library-search { flex-direction: column; }
    .article-topline { grid-template-columns: 1fr; }
    .article-taxonomy { align-items: flex-start; }
    .article-header h1 {
        font-size: clamp(1.65rem, 7vw, var(--heading-size-h1));
        max-width: none;
    }
    .article-title-secondary {
        font-size: 0.98rem;
    }
    .article-meta-hero {
        gap: 8px;
    }
    .article-meta-hero span {
        min-height: 34px;
        padding: 0 12px;
    }
    .library-search-shell button { width: 100%; }
    .library-navigation {
        padding: 18px;
    }
    .library-navigation-main {
        min-height: 0;
        gap: 18px;
        padding-right: 0;
    }
    .library-navigation-search-row {
        grid-template-columns: 1fr;
    }
    .library-navigation-actions {
        grid-template-columns: 1fr;
    }
    .library-navigation-actions button,
    .library-reset {
        width: 100%;
    }
    .library-hero-actions .button { min-width: 0; width: 100%; }
    .library-orbit { display: grid; grid-template-columns: 1fr; }
    .library-card h2,
    .library-card h3 { font-size: var(--heading-size-h3); }
    .library-card-media img { max-height: 180px; }
    .testimonial-grid {
        grid-auto-columns: minmax(280px, 88vw);
    }
    .article-body {
        max-width: 100%;
        padding: 24px 20px 26px;
    }
    .article-body img {
        width: min(100%, 360px);
    }
    .article-body iframe,
    .article-body video {
        width: 100%;
    }
    .article-body audio {
        width: 100%;
    }
    .article-body .article-inline-media.media-wrap-left,
    .article-body .article-inline-media.media-wrap-right {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }
    .library-search-shell { flex-direction: column; align-items: stretch; }
    .library-filter-grid { grid-template-columns: 1fr; }
    .library-reset { width: 100%; }
    .mobile-menu-toggle {
        min-height: 44px;
        padding: 0 14px;
    }
    .mobile-menu-toggle span {
        font-size: 0.74rem;
    }
    .mobile-menu-panel {
        width: min(100vw - 20px, 320px);
        top: calc(100% + 10px);
    }
    .library-hero {
        padding: 20px 18px;
    }
    .library-hub {
        padding: 18px;
    }
    .library-sections {
        gap: 14px;
    }
    .library-hero h1 {
        font-size: clamp(1.55rem, 6.5vw, var(--heading-size-h2));
        max-width: none;
    }
    .library-hero-copy .hero-text {
        max-width: none;
    }
    .library-toolbar-copy h2 {
        font-size: var(--heading-size-h3);
    }
    .library-stat-card {
        min-width: 0;
    }
    .library-navigation-copy h1 {
        font-size: clamp(1.55rem, 6.2vw, var(--heading-size-h2));
        white-space: normal;
    }
}

@media (max-width: 860px) {
    .contact-card {
        grid-template-columns: 1fr;
        gap: 22px;
        max-width: 100%;
        padding: 26px 20px;
        overflow: hidden;
    }

    .contact-title-panel,
    .contact-details-panel,
    .contact-primary,
    .contact-note,
    .contact-map-panel {
        min-width: 0;
    }

    .contact-primary a,
    .contact-address,
    .contact-note p,
    .contact-note span {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .contact-primary a {
        width: auto;
        font-size: 0.98rem;
        line-height: 1.35;
    }

    .contact-address,
    .contact-note p {
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .contact-note {
        padding-left: 14px;
    }

    .contact-social-links {
        gap: 10px;
    }

    .contact-social-links a {
        min-height: 40px;
        padding: 0 14px;
    }

    .contact-map {
        width: min(100%, 400px);
        margin-left: 0;
    }

    .site-footer {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .site-footer > p:nth-child(2),
    .site-credit {
        text-align: left;
    }
}