/* ==========================================================================
   Yoga mit Ramona Kieser – design system
   Palette derived from the logo (blush, sage/olive, gold) on warm ivory,
   with a deep green ink for text and contrast sections.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License – see /fonts) ---------- */
@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2");
}

@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/outfit-latin-wght-normal.woff2") format("woff2-variations"),
         url("/fonts/outfit-latin-wght-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
    --paper: #fbf8f3;
    --paper-2: #f5efe6;
    --surface: #ffffff;

    --blush-50: #fdf4f5;
    --blush-100: #fbe6ea;
    --blush-200: #f7d0d8;
    --blush-300: #f4b6c2;
    --blush-600: #b85d71;

    --sage-50: #f4f6ee;
    --sage-100: #e7edd9;
    --sage-200: #d6e0bd;
    --sage-300: #c5d38c;
    --sage-400: #b8c69f;
    --sage-600: #6f8150;
    --sage-700: #56663b;

    --gold-200: #efe0b0;
    --gold-300: #e6c96b;
    --gold-400: #d4af37;
    --gold-500: #bf9a26;
    --gold-700: #7f6412;

    --ink-950: #172019;
    --ink-900: #1e2921;
    --ink-800: #28352b;
    --ink-700: #3a473d;
    --ink-600: #4d5a50;
    --ink-500: #5d6a60;

    --text: var(--ink-800);
    --text-strong: var(--ink-900);
    --text-muted: var(--ink-500);
    --line: rgba(30, 41, 33, 0.1);
    --line-strong: rgba(30, 41, 33, 0.2);

    --danger: #a63c3c;
    --danger-bg: #fbeceb;
    --success: #3f6b3a;
    --success-bg: #ecf3e6;
    --info-bg: #f3f1ea;

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 28px;
    --radius-xl: 44px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(23, 32, 25, 0.06);
    --shadow-sm: 0 1px 2px rgba(23, 32, 25, 0.05), 0 4px 14px -6px rgba(23, 32, 25, 0.1);
    --shadow: 0 2px 6px -2px rgba(23, 32, 25, 0.08), 0 18px 40px -18px rgba(23, 32, 25, 0.22);
    --shadow-lg: 0 4px 10px -4px rgba(23, 32, 25, 0.1), 0 40px 80px -30px rgba(23, 32, 25, 0.35);

    --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    --container: 1200px;
    --container-narrow: 760px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section-space: clamp(4.5rem, 9vw, 8rem);
    --header-h: 76px;

    color-scheme: light;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--paper);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 380;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html.nav-open body {
    overflow: hidden;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

h1, h2, h3, h4 {
    margin: 0;
    color: var(--text-strong);
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.01em;
    font-variant-numeric: lining-nums;
    text-wrap: balance;
}

p {
    margin: 0 0 1em;
    text-wrap: pretty;
}

p:last-child {
    margin-bottom: 0;
}

ul, ol {
    margin: 0;
    padding: 0;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

address {
    font-style: normal;
}

:focus-visible {
    outline: 3px solid var(--gold-400);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--blush-200);
    color: var(--ink-950);
}

main:focus,
[tabindex="-1"]:focus {
    outline: none;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-pill);
    background: var(--ink-900);
    color: var(--paper);
    font-weight: 500;
    text-decoration: none;
    transition: top 0.2s var(--ease);
}

.skip-link:focus {
    top: 1rem;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: calc(var(--container-narrow) + 2 * var(--gutter));
}

.muted {
    color: var(--text-muted);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1rem;
    color: var(--gold-700);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 560;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow--rule::before {
    content: "";
    width: 2.25rem;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.section-heading {
    max-width: 44rem;
    margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-heading--center {
    margin-inline: auto;
    text-align: center;
}

.section-heading--center .eyebrow {
    justify-content: center;
}

.section-title {
    font-size: clamp(2.35rem, 4.6vw, 3.6rem);
}

.section-lead {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: clamp(1.05rem, 1.4vw, 1.18rem);
}

.lead {
    color: var(--text-strong);
    font-size: clamp(1.15rem, 1.6vw, 1.3rem);
    font-weight: 360;
    line-height: 1.55;
}

.section-note {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
}

.empty-note {
    padding: 2rem;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--text-muted);
    text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: transparent;
    --btn-fg: var(--text-strong);
    --btn-border: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3rem;
    padding: 0.7rem 1.4rem;
    border: 1px solid var(--btn-border);
    border-radius: var(--radius-pill);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease),
                box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn .icon {
    flex-shrink: 0;
    transition: transform 0.3s var(--ease);
}

.btn:hover .icon:last-child:not(:first-child) {
    transform: translateX(3px);
}

.btn:disabled {
    opacity: 0.45;
    transform: none;
    box-shadow: none;
}

.btn--primary {
    --btn-bg: var(--ink-800);
    --btn-fg: var(--paper);
    box-shadow: 0 10px 24px -12px rgba(23, 32, 25, 0.55);
}

.btn--primary:hover:not(:disabled) {
    --btn-bg: var(--ink-950);
    transform: translateY(-1px);
    box-shadow: 0 16px 30px -14px rgba(23, 32, 25, 0.6);
}

.btn--gold {
    --btn-bg: linear-gradient(135deg, var(--gold-300), var(--gold-400));
    background: linear-gradient(135deg, var(--gold-300), var(--gold-400));
    --btn-fg: var(--ink-950);
    box-shadow: 0 12px 26px -14px rgba(191, 154, 38, 0.9);
}

.btn--gold:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px -16px rgba(191, 154, 38, 0.95);
}

.btn--ghost {
    --btn-border: var(--line-strong);
    --btn-bg: rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover:not(:disabled) {
    --btn-border: var(--ink-700);
    --btn-bg: var(--surface);
}

.btn--danger {
    --btn-bg: var(--danger);
    --btn-fg: #fff;
}

.btn--danger:hover:not(:disabled) {
    --btn-bg: #8a2f2f;
}

.btn--danger-text {
    --btn-fg: var(--danger);
}

.btn--sm {
    min-height: 2.4rem;
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
}

.btn--lg {
    min-height: 3.4rem;
    padding: 0.85rem 1.7rem;
    font-size: 1.02rem;
}

.btn--block {
    width: 100%;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-strong);
    transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.25s var(--ease);
}

.icon-btn:hover:not(:disabled) {
    border-color: var(--ink-700);
    background: var(--paper-2);
}

.icon-btn:disabled {
    opacity: 0.35;
}

.icon-btn--sm {
    width: 2.2rem;
    height: 2.2rem;
}

.icon-btn--danger:hover:not(:disabled) {
    border-color: var(--danger);
    background: var(--danger-bg);
    color: var(--danger);
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    background: var(--sage-100);
    color: var(--sage-700);
    font-size: 0.78rem;
    font-weight: 540;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.pill--soft {
    background: var(--blush-100);
    color: var(--blush-600);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-pill);
    background: var(--paper-2);
    color: var(--ink-700);
    font-size: 0.75rem;
    font-weight: 560;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

.badge--gold {
    background: var(--gold-200);
    color: var(--gold-700);
}

.badge--success {
    background: var(--success-bg);
    color: var(--success);
}

.badge--muted {
    background: var(--line);
    color: var(--text-muted);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    background: rgba(251, 248, 243, 0);
    transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header[data-scrolled],
.site-header[data-nav-open] {
    border-bottom-color: var(--line);
    background: rgba(251, 248, 243, 0.88);
    box-shadow: 0 8px 30px -24px rgba(23, 32, 25, 0.45);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
}

.site-header[data-nav-open] {
    /* backdrop-filter would turn the header into the containing block of the fixed mobile menu */
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    max-width: calc(1320px + 2 * var(--gutter));
    min-height: var(--header-h);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    color: var(--text-strong);
    text-decoration: none;
}

.brand__mark {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--line), var(--shadow-xs);
    object-fit: cover;
}

.brand__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.1;
}

.brand__name {
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand__tagline {
    margin-top: 0.15rem;
    color: var(--gold-700);
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-style: italic;
    font-weight: 500;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.site-nav__list a {
    position: relative;
    display: block;
    padding: 0.55rem 0.8rem;
    color: var(--ink-700);
    font-size: 0.95rem;
    font-weight: 450;
    text-decoration: none;
    transition: color 0.25s var(--ease);
}

.site-nav__list a::after {
    content: "";
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.3rem;
    height: 1px;
    background: var(--gold-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}

.site-nav__list a:hover {
    color: var(--ink-950);
}

.site-nav__list a:hover::after {
    transform: scaleX(1);
}

.site-nav__aside {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch {
    display: inline-flex;
    padding: 0.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.5);
}

.lang-switch a {
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.lang-switch a[aria-current="true"] {
    background: var(--ink-800);
    color: var(--paper);
}

.lang-switch a:not([aria-current="true"]):hover {
    color: var(--ink-900);
}

.nav-toggle {
    display: none;
    position: relative;
    z-index: 2;
    width: 2.9rem;
    height: 2.9rem;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface);
}

.nav-toggle__bars {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 6px;
}

.nav-toggle__bars span {
    display: block;
    width: 18px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--ink-900);
    transition: transform 0.35s var(--ease);
}

.site-header[data-nav-open] .nav-toggle__bars span:first-child {
    transform: translateY(3.75px) rotate(45deg);
}

.site-header[data-nav-open] .nav-toggle__bars span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
}

/* ---------- Sections ---------- */
.section {
    position: relative;
    padding-block: var(--section-space);
}

.section--tinted {
    background:
        radial-gradient(60rem 30rem at 110% 0%, rgba(244, 182, 194, 0.16), transparent 60%),
        radial-gradient(50rem 30rem at -10% 100%, rgba(197, 211, 140, 0.18), transparent 60%),
        var(--paper-2);
}

.section--ink {
    background:
        radial-gradient(50rem 30rem at 100% 0%, rgba(212, 175, 55, 0.14), transparent 60%),
        radial-gradient(40rem 30rem at 0% 100%, rgba(244, 182, 194, 0.12), transparent 60%),
        var(--ink-900);
    color: rgba(251, 248, 243, 0.82);
}

.section--ink .section-title,
.section--ink h3 {
    color: var(--paper);
}

.section--ink .eyebrow {
    color: var(--gold-300);
}

.section--ink .section-lead {
    color: rgba(251, 248, 243, 0.72);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: min(calc(100svh - var(--header-h)), 940px);
    margin-top: calc(var(--header-h) * -1);
    padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)) 0 clamp(4rem, 8vw, 6.5rem);
    overflow: hidden;
}

.hero__backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(42rem 32rem at 82% 30%, rgba(244, 182, 194, 0.32), transparent 65%),
        radial-gradient(36rem 28rem at 10% 90%, rgba(197, 211, 140, 0.28), transparent 65%),
        radial-gradient(24rem 18rem at 40% 10%, rgba(230, 201, 107, 0.16), transparent 70%),
        var(--paper);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5.5rem);
}

.hero__title {
    max-width: 13ch;
    font-size: clamp(3rem, 6.4vw, 5.4rem);
    font-weight: 500;
    line-height: 1.0;
    letter-spacing: -0.015em;
}

.hero__tagline {
    margin: 1.25rem 0 0;
    color: var(--gold-700);
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    font-style: italic;
    font-weight: 500;
}

.hero__support {
    max-width: 34rem;
    margin: 1.25rem 0 0;
    color: var(--ink-600);
    font-size: clamp(1.08rem, 1.5vw, 1.22rem);
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2.25rem;
}

.hero__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-top: 2.25rem;
    list-style: none;
    color: var(--ink-700);
    font-size: 0.95rem;
}

.hero__highlights li {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.hero__check,
.checklist__icon {
    display: inline-grid;
    flex-shrink: 0;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--sage-100);
    color: var(--sage-700);
}

.hero__visual {
    position: relative;
    justify-self: center;
    width: min(100%, 470px);
}

.hero__arch {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 999px 999px var(--radius-xl) var(--radius-xl);
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), transparent 55%),
        linear-gradient(165deg, var(--blush-100) 0%, var(--paper-2) 50%, var(--sage-100) 100%);
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}

.hero__arch::after {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(191, 154, 38, 0.35);
    border-radius: inherit;
    pointer-events: none;
}

.hero__lotus {
    position: absolute;
    right: -24%;
    bottom: -6%;
    width: auto;
    height: 82%;
    max-width: none;
    opacity: 0.85;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.hero__medallion {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72%;
    aspect-ratio: 1;
    padding: 4%;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 30px 60px -30px rgba(23, 32, 25, 0.45), 0 0 0 10px rgba(255, 255, 255, 0.45);
    transform: translate(-50%, -52%);
}

.hero__medallion img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.hero__badge {
    position: absolute;
    left: -12%;
    bottom: 9%;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    max-width: 17rem;
    padding: 0.85rem 1.2rem 0.85rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero__badge-icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-sm);
    background: var(--blush-100);
    color: var(--blush-600);
}

.hero__badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.hero__badge-label {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 560;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero__badge-text strong {
    margin-top: 0.15rem;
    color: var(--text-strong);
    font-size: 1rem;
    font-weight: 600;
}

.hero__badge-text span:last-child {
    color: var(--ink-600);
    font-size: 0.9rem;
}

/* Hero entrance (runs once; the page is rendered statically, so it never replays) */
@media (prefers-reduced-motion: no-preference) {
    .hero__copy > * {
        animation: rise 0.9s var(--ease) both;
    }

    .hero__copy > :nth-child(2) { animation-delay: 0.06s; }
    .hero__copy > :nth-child(3) { animation-delay: 0.12s; }
    .hero__copy > :nth-child(4) { animation-delay: 0.18s; }
    .hero__copy > :nth-child(5) { animation-delay: 0.24s; }
    .hero__copy > :nth-child(6) { animation-delay: 0.3s; }

    .hero__arch {
        animation: arch-in 1.2s var(--ease) 0.1s both;
    }

    .hero__badge {
        animation: rise 0.9s var(--ease) 0.55s both;
    }

    .hero__lotus {
        animation: drift 14s var(--ease-in-out) 1.2s infinite alternate;
    }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@keyframes arch-in {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@keyframes drift {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(-10px, -12px) rotate(-3deg); }
}

/* ---------- Gallery ---------- */
.section--gallery {
    padding-top: clamp(2.5rem, 5vw, 4rem);
}

.gallery__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.gallery__head .section-heading {
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.gallery__controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.gallery__counter {
    min-width: 3.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.gallery__track {
    display: grid;
    grid-auto-columns: min(82%, 780px);
    grid-auto-flow: column;
    gap: clamp(0.9rem, 2vw, 1.5rem);
    padding: 0.5rem max(var(--gutter), calc((100% - var(--container)) / 2)) 1.5rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    list-style: none;
    scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.gallery__track::-webkit-scrollbar {
    display: none;
}

.gallery__track:focus-visible {
    outline-offset: -3px;
}

.gallery__slide {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    background: var(--paper-2);
    box-shadow: var(--shadow);
    scroll-snap-align: start;
}

.gallery__slide img {
    color: transparent;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.gallery__slide:hover img {
    transform: scale(1.03);
}

/* ---------- About ---------- */
.about {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 6rem);
}

.about__media {
    position: relative;
    max-width: 460px;
}

.about__frame {
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
    background: linear-gradient(160deg, var(--sage-100), var(--blush-100));
    box-shadow: var(--shadow-lg);
}

.about__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    color: transparent; /* hide alt text if the image is missing */
}

.about__stamp {
    position: absolute;
    right: -1.25rem;
    bottom: 2.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-pill);
    background: var(--ink-800);
    box-shadow: var(--shadow);
    color: var(--paper);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
}

.about__stamp .icon {
    color: var(--blush-300);
}

.about__copy .lead {
    margin-bottom: 1.25rem;
}

.about__copy > p:not(.lead) {
    color: var(--ink-600);
}

.about__subhead {
    margin: 2rem 0 1rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.checklist {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 2.25rem;
    list-style: none;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checklist__icon {
    margin-top: 0.1rem;
}

/* ---------- Courses ---------- */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.course-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(1.75rem, 3vw, 2.25rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

.course-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(90deg, var(--blush-300), var(--sage-300), var(--gold-300));
    opacity: 0;
    transition: opacity 0.45s var(--ease);
}

.course-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.course-card:hover::before {
    opacity: 1;
}

.course-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.course-card__index {
    color: var(--gold-500);
    font-variant-numeric: lining-nums;
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-style: italic;
    line-height: 1;
}

.course-card__title {
    font-size: clamp(1.75rem, 2.4vw, 2.1rem);
    margin-bottom: 0.85rem;
}

.course-card__text {
    color: var(--ink-600);
}

.course-card__when {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: auto 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--ink-700);
    font-size: 0.92rem;
    font-weight: 500;
}

.course-card__when .icon {
    color: var(--sage-600);
}

.course-card > p.course-card__text:last-of-type {
    margin-bottom: 1.5rem;
}

/* ---------- Schedule ---------- */
.schedule {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: clamp(2rem, 6vw, 5rem);
}

.schedule__intro {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
}

.schedule__intro .section-heading {
    margin-bottom: 2rem;
}

.schedule-list {
    border-top: 1px solid var(--line);
    list-style: none;
}

.schedule-item {
    display: grid;
    grid-template-columns: 9.5rem 10rem 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem 1rem;
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: background-color 0.3s var(--ease);
}

.schedule-item:hover {
    background: var(--paper-2);
}

.schedule-item__day {
    color: var(--text-strong);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.1;
}

.schedule-item__time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink-700);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.schedule-item__time .icon {
    color: var(--gold-500);
}

.schedule-item__course {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.schedule-item__course strong {
    color: var(--text-strong);
    font-weight: 550;
}

/* ---------- Pricing ---------- */
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(1rem, 2vw, 1.5rem);
    max-width: 1080px;
    margin-inline: auto;
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(2rem, 3.4vw, 2.6rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.price-card__title {
    font-size: 1.9rem;
}

.price-card__desc {
    margin: 0.5rem 0 1.75rem;
    color: var(--text-muted);
}

.price-card__amount {
    margin: 0 0 1.75rem;
    color: var(--text-strong);
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: lining-nums;
}

.price-card__amount--text {
    font-size: clamp(2.2rem, 3.5vw, 2.6rem);
    font-style: italic;
    font-weight: 500;
}

.price-card .btn {
    margin-top: auto;
}

.price-card__facts {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 2rem;
    list-style: none;
}

.price-card__facts li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.price-card--featured {
    border-color: transparent;
    background:
        radial-gradient(30rem 16rem at 100% 0%, rgba(212, 175, 55, 0.2), transparent 65%),
        var(--ink-900);
    box-shadow: var(--shadow-lg);
    color: rgba(251, 248, 243, 0.8);
    transform: translateY(-12px);
}

.price-card--featured .price-card__title,
.price-card--featured .price-card__amount {
    color: var(--paper);
}

.price-card--featured .price-card__desc {
    color: rgba(251, 248, 243, 0.7);
}

.price-card--featured .price-card__facts .icon {
    color: var(--gold-300);
}

.price-card__badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-pill);
    background: rgba(230, 201, 107, 0.16);
    color: var(--gold-300);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ---------- Location ---------- */
.location {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
}

.location__address {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    color: var(--text-strong);
    font-size: 1.05rem;
    line-height: 1.5;
}

.location__pin {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--sage-100);
    color: var(--sage-700);
}

.location__label {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.map-consent {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(231, 237, 217, 0.9), rgba(251, 230, 234, 0.85)),
        repeating-linear-gradient(0deg, transparent 0 38px, rgba(30, 41, 33, 0.06) 38px 39px),
        repeating-linear-gradient(90deg, transparent 0 38px, rgba(30, 41, 33, 0.06) 38px 39px),
        var(--sage-50);
    box-shadow: var(--shadow);
}

.map-consent::before {
    content: "";
    position: absolute;
    inset: 12% 18%;
    border: 2px dashed rgba(191, 154, 38, 0.35);
    border-radius: 50% 40% 55% 45%;
    transform: rotate(-8deg);
}

.map-consent__inner {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 1rem;
    max-width: 24rem;
    padding: 2rem;
    text-align: center;
}

.map-consent__icon {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow);
    color: var(--blush-600);
}

.map-consent__text {
    color: var(--ink-700);
    font-size: 0.92rem;
}

.map-consent__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Testimonials ---------- */
.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.quote-card {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: clamp(2rem, 3vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.quote-card::before {
    content: "\201C";
    display: block;
    height: 2.2rem;
    margin-bottom: 0.25rem;
    color: var(--blush-300);
    font-family: var(--font-display);
    font-size: 5.5rem;
    line-height: 0.85;
}

.quote-card__text {
    margin: 0 0 1.75rem;
    color: var(--text-strong);
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2vw, 1.55rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.4;
}

.quote-card__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    color: var(--ink-600);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.quote-card__author::before {
    content: "";
    width: 1.75rem;
    height: 1px;
    background: var(--gold-500);
}

/* ---------- FAQ ---------- */
.faq {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: clamp(2rem, 6vw, 5rem);
}

.faq__intro {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
}

.faq__intro .section-heading {
    margin-bottom: 2rem;
}

.faq__list {
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 0.25rem;
    color: var(--text-strong);
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2vw, 1.55rem);
    font-weight: 600;
    line-height: 1.25;
    list-style: none;
    cursor: pointer;
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    transition: transform 0.4s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.faq-item[open] .faq-item__icon {
    border-color: var(--ink-800);
    background: var(--ink-800);
    color: var(--paper);
    transform: rotate(45deg);
}

.faq-item__question:hover .faq-item__icon {
    border-color: var(--ink-700);
}

.faq-item__answer {
    padding: 0 3.5rem 1.6rem 0.25rem;
    color: var(--ink-600);
}

@media (prefers-reduced-motion: no-preference) {
    .faq-item[open] .faq-item__answer {
        animation: rise 0.45s var(--ease) both;
    }
}

/* ---------- Contact ---------- */
.contact {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
    gap: clamp(2.5rem, 6vw, 5rem);
}

.contact-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    list-style: none;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid rgba(251, 248, 243, 0.12);
    border-radius: var(--radius);
    background: rgba(251, 248, 243, 0.04);
    color: var(--paper);
    text-decoration: none;
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.contact-card:hover {
    border-color: rgba(230, 201, 107, 0.45);
    background: rgba(251, 248, 243, 0.08);
    transform: translateX(4px);
}

.contact-card__icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-sm);
    background: rgba(230, 201, 107, 0.14);
    color: var(--gold-300);
}

.contact-card__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.contact-card__text strong {
    font-weight: 560;
}

.contact-card__text span {
    overflow: hidden;
    color: rgba(251, 248, 243, 0.68);
    font-size: 0.92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-card__arrow {
    flex-shrink: 0;
    color: rgba(251, 248, 243, 0.5);
}

.contact__panel {
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
    color: var(--text);
}

.contact__panel-title {
    margin-bottom: 1.5rem;
    color: var(--text-strong) !important;
    font-size: 2rem;
}

/* ---------- Forms ---------- */
.form {
    display: grid;
    gap: 1.15rem;
}

.form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.field {
    display: grid;
    align-content: start;
    gap: 0.45rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.field__label {
    padding: 0;
    color: var(--ink-700);
    font-size: 0.88rem;
    font-weight: 540;
}

.field__required {
    margin-left: 0.15rem;
    color: var(--blush-600);
}

.field__hint {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.field__error {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    color: var(--danger);
    font-size: 0.82rem;
    font-weight: 500;
}

.input {
    display: block;
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-strong);
    font-size: 1rem;
    line-height: 1.45;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}

textarea.input {
    min-height: 6rem;
    resize: vertical;
}

select.input {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a473d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 0.85rem center;
    background-repeat: no-repeat;
    background-size: 1.1rem;
}

.input::placeholder {
    color: #8a948b;
}

.input:hover {
    border-color: rgba(30, 41, 33, 0.35);
}

.input:focus {
    border-color: var(--ink-700);
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25);
}

.input[aria-invalid="true"],
.field--invalid > .input,
.field--invalid .input-wrap > .input {
    border-color: var(--danger);
    background: #fffafa;
}

.input:disabled {
    background: var(--paper-2);
    color: var(--text-muted);
}

.input-wrap {
    position: relative;
}

.input-wrap__prefix,
.input-wrap__suffix {
    position: absolute;
    top: 50%;
    color: var(--text-muted);
    font-weight: 500;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-wrap__suffix {
    right: 1rem;
}

.input-wrap--suffix .input {
    padding-right: 2.5rem;
}

.form__hint {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form__hint .icon {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.form__status {
    margin: 0;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--success-bg);
    color: var(--success);
    font-weight: 500;
}

/* ---------- Newsletter ---------- */
.section--newsletter {
    padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.newsletter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding: clamp(2rem, 5vw, 3.5rem);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(30rem 20rem at 0% 0%, rgba(255, 255, 255, 0.7), transparent 60%),
        linear-gradient(120deg, var(--blush-100), var(--sage-100));
    box-shadow: var(--shadow-sm);
}

.newsletter__title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
}

.newsletter__lead {
    margin-top: 0.75rem;
    color: var(--ink-600);
}

.newsletter__form {
    display: grid;
    gap: 0.85rem;
}

.newsletter__row {
    display: flex;
    gap: 0.6rem;
    padding: 0.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.newsletter__row .input {
    min-height: 2.9rem;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    box-shadow: none;
}

.newsletter__row:focus-within {
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25), var(--shadow-sm);
}

/* ---------- Footer ---------- */
.site-footer {
    padding-top: clamp(3.5rem, 7vw, 5rem);
    border-top: 1px solid var(--line);
    background: var(--paper-2);
    font-size: 0.95rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
}

.brand--footer .brand__mark {
    width: 56px;
    height: 56px;
}

.site-footer__claim {
    max-width: 22rem;
    margin-top: 1.25rem;
    color: var(--ink-600);
}

.site-footer__heading {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-footer__col ul {
    display: grid;
    gap: 0.55rem;
    list-style: none;
}

.site-footer__col a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--ink-700);
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.2s var(--ease);
}

.site-footer__col a:hover {
    color: var(--ink-950);
    text-decoration: underline;
}

.site-footer__col .icon {
    width: 14px;
    height: 14px;
}

.site-footer__address {
    color: var(--ink-600);
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-block: 1.75rem;
    border-top: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.site-footer__bottom p {
    margin: 0;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.site-footer__legal a {
    color: var(--ink-600);
    text-decoration: none;
}

.site-footer__legal a:hover {
    color: var(--ink-950);
    text-decoration: underline;
}

/* ---------- Legal & status pages ---------- */
.legal__hero {
    padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
    background:
        radial-gradient(40rem 20rem at 90% 0%, rgba(244, 182, 194, 0.22), transparent 60%),
        var(--paper);
}

.legal__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    color: var(--ink-600);
    font-size: 0.92rem;
    text-decoration: none;
}

.legal__back:hover {
    color: var(--ink-950);
}

.legal__title {
    font-size: clamp(2.6rem, 5vw, 3.8rem);
}

.legal__body {
    padding-bottom: var(--section-space);
}

.prose {
    color: var(--ink-700);
    font-size: 1.05rem;
    line-height: 1.75;
}

.prose h2 {
    margin: 2.25rem 0 0.75rem;
    font-size: 1.8rem;
}

.prose p {
    margin-bottom: 1.1em;
}

.prose a {
    color: var(--ink-900);
}

.status-page {
    display: grid;
    place-items: center;
    min-height: 60vh;
    padding-block: var(--section-space);
    text-align: center;
}

.status-page__inner {
    display: grid;
    justify-items: center;
}

.status-page__code {
    margin-bottom: 0.5rem;
    color: var(--blush-300);
    font-family: var(--font-display);
    font-size: clamp(5rem, 14vw, 8rem);
    font-style: italic;
    line-height: 1;
}

.status-page__title {
    font-size: clamp(2.2rem, 4vw, 3rem);
}

.status-page__text {
    max-width: 30rem;
    margin: 1rem 0 2rem;
    color: var(--text-muted);
}

.status-page__meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
        transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    }

    .reveal-ready [data-reveal]:not([data-revealed]) {
        opacity: 0;
        transform: translateY(22px);
    }
}

@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;
    }
}

/* ---------- Blazor error UI ---------- */
#blazor-error-ui {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 1rem;
    width: min(calc(100% - 2rem), 34rem);
    padding: 0.9rem 1rem 0.9rem 1.25rem;
    border-radius: var(--radius);
    background: var(--ink-900);
    box-shadow: var(--shadow-lg);
    color: var(--paper);
    font-size: 0.95rem;
    transform: translateX(-50%);
}

#blazor-error-ui .reload {
    margin-left: auto;
    color: var(--gold-300);
    font-weight: 500;
}

#blazor-error-ui .dismiss {
    padding: 0 0.4rem;
    border: 0;
    background: none;
    color: var(--paper);
    font-size: 1.4rem;
    line-height: 1;
}

/* ==========================================================================
   Admin
   ========================================================================== */
.admin {
    min-height: 100vh;
    background:
        radial-gradient(50rem 24rem at 100% 0%, rgba(244, 182, 194, 0.12), transparent 60%),
        var(--paper);
}

.admin-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.admin-bar__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1400px;
    min-height: 64px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-strong);
    text-decoration: none;
}

.admin-brand img {
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--line);
}

.admin-brand span {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.admin-brand strong {
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.admin-brand span span {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.admin-nav {
    display: flex;
    gap: 0.25rem;
    margin-right: auto;
}

.admin-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-pill);
    color: var(--ink-600);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.admin-nav a:hover {
    background: var(--paper-2);
    color: var(--ink-900);
}

.admin-nav a[aria-current="page"] {
    background: var(--ink-800);
    color: var(--paper);
}

.admin-bar__user {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ink-600);
    font-size: 0.9rem;
    text-decoration: none;
}

.admin-link:hover {
    color: var(--ink-950);
}

.admin-user {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--ink-800);
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-user__avatar {
    display: inline-grid;
    flex-shrink: 0;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blush-200), var(--sage-200));
    color: var(--ink-900);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
}

.admin-logout {
    margin: 0;
}

.admin-main {
    max-width: 1400px;
    margin-inline: auto;
    padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter) 8rem;
}

.admin-page--narrow {
    max-width: 760px;
}

.admin-page__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-page__title {
    font-size: clamp(2.2rem, 3.5vw, 2.9rem);
}

.admin-page__lead {
    max-width: 44rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
}

.admin-meta {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.admin-meta div {
    display: grid;
}

.admin-meta dt {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-meta dd {
    margin: 0;
    color: var(--text-strong);
    font-weight: 550;
    font-variant-numeric: tabular-nums;
}

.card {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.card + .card {
    margin-top: 1.5rem;
}

.card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.card__title {
    font-size: 1.65rem;
}

/* Notices */
.notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--info-bg);
    color: var(--ink-800);
    font-size: 0.93rem;
    line-height: 1.5;
}

.notice .icon {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.notice--error {
    background: var(--danger-bg);
    color: #7c2b2b;
}

.notice--success {
    background: var(--success-bg);
    color: var(--success);
}

.notice--info {
    background: var(--info-bg);
}

.notice--block {
    align-items: center;
    padding: 1rem 1.25rem;
}

.notice--block > div {
    flex: 1;
}

.notice--block p {
    margin: 0.15rem 0 0;
}

/* Skeleton & spinner */
.skeleton {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
}

.skeleton__nav,
.skeleton__panel {
    min-height: 26rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, var(--paper-2) 25%, #fff 37%, var(--paper-2) 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
    from { background-position: 100% 50%; }
    to { background-position: 0 50%; }
}

.spinner {
    display: inline-block;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid var(--line-strong);
    border-top-color: var(--ink-800);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Editor */
.editor {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    gap: 1.5rem;
}

.editor-tabs {
    position: sticky;
    top: 88px;
    display: grid;
    gap: 0.15rem;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}

.editor-tab {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--ink-600);
    font-size: 0.93rem;
    font-weight: 500;
    text-align: left;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.editor-tab:hover {
    background: var(--paper-2);
    color: var(--ink-900);
}

.editor-tab[aria-current="page"] {
    background: var(--ink-800);
    color: var(--paper);
}

.editor-tab__label {
    flex: 1;
}

.editor-tab__badge {
    display: inline-grid;
    place-items: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    border-radius: var(--radius-pill);
    background: var(--danger);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
}

.panel {
    display: grid;
    gap: 1.5rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.panel__header {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}

.panel__title {
    font-size: 2rem;
}

.panel__lead {
    margin-top: 0.35rem;
    color: var(--text-muted);
}

.panel__subtitle {
    margin-top: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-600);
}

.panel__subtitle + .panel__hint,
.panel__subtitle + .field__error {
    margin-top: -1rem;
}

.panel__hint {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.form-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.localized {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.localized__item {
    position: relative;
    display: grid;
    gap: 0.35rem;
}

.localized__lang {
    position: absolute;
    top: 0.55rem;
    right: 0.6rem;
    z-index: 1;
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-xs);
    background: var(--paper-2);
    color: var(--ink-600);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: default;
}

.localized .input {
    padding-right: 3rem;
}

.toggle-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    cursor: pointer;
    transition: border-color 0.2s var(--ease);
}

.toggle:hover {
    border-color: var(--line-strong);
}

.toggle--disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.toggle__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle__track {
    position: relative;
    flex-shrink: 0;
    width: 2.6rem;
    height: 1.5rem;
    margin-top: 0.1rem;
    border-radius: var(--radius-pill);
    background: rgba(30, 41, 33, 0.18);
    transition: background-color 0.25s var(--ease);
}

.toggle__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(1.5rem - 6px);
    height: calc(1.5rem - 6px);
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow-xs);
    transition: transform 0.25s var(--ease);
}

.toggle__input:checked + .toggle__track {
    background: var(--sage-600);
}

.toggle__input:checked + .toggle__track .toggle__thumb {
    transform: translateX(1.1rem);
}

.toggle__input:focus-visible + .toggle__track {
    outline: 3px solid var(--gold-400);
    outline-offset: 2px;
}

.toggle__text {
    display: grid;
    gap: 0.1rem;
}

.toggle__label {
    color: var(--text-strong);
    font-weight: 550;
}

.toggle__desc {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.edit-list {
    display: grid;
    gap: 1rem;
    list-style: none;
}

.edit-list__item {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.edit-list__item--compact {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.edit-list__item--compact .item-actions {
    margin-top: 1.7rem;
}

.edit-list__item--image {
    grid-template-columns: 9rem minmax(0, 1fr) auto;
    align-items: start;
}

.edit-list__item--image .item-actions {
    margin-top: 1.7rem;
}

.edit-list__head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.edit-list__number {
    color: var(--gold-500);
    font-variant-numeric: lining-nums;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-style: italic;
    line-height: 1;
}

.edit-list__title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--text-strong);
    font-weight: 550;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-actions {
    display: inline-flex;
    gap: 0.35rem;
}

.schedule-editor {
    display: grid;
    gap: 0.6rem;
}

.schedule-editor__row {
    display: grid;
    grid-template-columns: minmax(8rem, 1fr) minmax(7rem, 0.8fr) minmax(7rem, 0.8fr) minmax(10rem, 1.6fr) auto;
    align-items: start;
    gap: 0.75rem;
}

.schedule-editor__row > div {
    display: grid;
    gap: 0.35rem;
}

.schedule-editor__row--head {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.schedule-editor__row .item-actions {
    padding-top: 0.4rem;
}

.image-field {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    align-items: start;
    gap: 1.25rem;
}

.image-field__preview {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper-2);
    color: var(--text-muted);
}

.image-field__preview--wide {
    aspect-ratio: 16 / 10;
}

.image-field__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.save-bar {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(calc(100% - 2rem), 980px);
    padding: 0.75rem 0.75rem 0.75rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transform: translateX(-50%);
}

.save-bar--dirty {
    border-color: rgba(212, 175, 55, 0.55);
}

.save-bar__status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    color: var(--ink-700);
    font-size: 0.92rem;
    font-weight: 500;
}

.save-bar__dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--gold-400);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25);
}

.save-bar__notice {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.save-bar__notice--success {
    color: var(--success);
}

.save-bar__notice--error {
    color: var(--danger);
}

.save-bar__actions {
    display: flex;
    gap: 0.5rem;
}

.history {
    display: grid;
    gap: 0.5rem;
    list-style: none;
}

.history__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.history__item--current {
    border-color: rgba(63, 107, 58, 0.35);
    background: var(--success-bg);
}

.history__version {
    min-width: 3rem;
    font-variant-numeric: lining-nums;
    color: var(--gold-700);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
}

.history__meta {
    display: grid;
    flex: 1;
    line-height: 1.35;
}

.history__meta span {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.history__confirm {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

/* Users */
.users-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: start;
    gap: 1.5rem;
}

.users-layout .card + .card {
    margin-top: 0;
}

.user-list {
    display: grid;
    gap: 0.75rem;
    list-style: none;
}

.user-row {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.user-row--inactive .user-row__identity {
    opacity: 0.6;
}

.user-row__main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 1rem 1.1rem;
}

.user-row__identity {
    display: grid;
    flex: 1;
    min-width: 12rem;
    line-height: 1.35;
}

.user-row__identity strong {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-strong);
    font-weight: 560;
}

.user-row__identity .muted {
    overflow-wrap: anywhere;
    font-size: 0.88rem;
}

.user-row__login {
    width: 100%;
    font-size: 0.82rem;
    order: 10;
}

.user-row__edit {
    display: grid;
    gap: 1.25rem;
    padding: 1.25rem 1.1rem;
    border-top: 1px solid var(--line);
}

.user-row__actions {
    display: flex;
    justify-content: flex-end;
}

.user-row__section {
    display: grid;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--line-strong);
}

.user-row__subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
}

.user-row__danger {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
}

.inline-form .field {
    flex: 1 1 16rem;
}

.inline-form .btn {
    margin-top: 1.75rem;
}

.profile {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 1rem;
}

.profile div {
    display: grid;
    grid-template-columns: 10rem 1fr;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.profile dt {
    color: var(--text-muted);
}

.profile dd {
    margin: 0;
    color: var(--text-strong);
    font-weight: 500;
    overflow-wrap: anywhere;
}

/* Sign-in */
.auth-shell {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 2rem var(--gutter);
    overflow: hidden;
    background: var(--paper);
}

.auth-shell__glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(40rem 30rem at 85% 10%, rgba(244, 182, 194, 0.35), transparent 60%),
        radial-gradient(40rem 30rem at 10% 90%, rgba(197, 211, 140, 0.35), transparent 60%);
}

.auth-card {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(100%, 440px);
    padding: clamp(2rem, 5vw, 3rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-lg);
    text-align: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.auth-card__brand {
    justify-self: center;
    margin-bottom: 1.25rem;
}

.auth-card__brand img {
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.8), var(--shadow);
}

.auth-card__icon {
    display: grid;
    justify-self: center;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--blush-100);
    color: var(--blush-600);
}

.auth-card .eyebrow {
    justify-content: center;
    margin-bottom: 0.5rem;
}

.auth-card__title {
    font-size: 2.4rem;
}

.auth-card__lead {
    margin: 0.75rem 0 1.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-card .notice {
    text-align: left;
}

.auth-form {
    text-align: left;
}

.auth-form .btn {
    margin-top: 0.5rem;
}

.auth-card .btn--block + .auth-card__back,
.auth-card__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 1.5rem;
    color: var(--ink-600);
    font-size: 0.9rem;
    text-decoration: none;
}

.auth-card__back:hover {
    color: var(--ink-950);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
    .site-nav__list a {
        padding-inline: 0.6rem;
    }

    .site-nav {
        gap: 1rem;
    }

    .hero__badge {
        left: -4%;
    }
}

@media (max-width: 1023px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 0;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: space-between;
        gap: 2rem;
        padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
        overflow-y: auto;
        background: var(--paper);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
    }

    .site-header[data-nav-open] .site-nav {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-nav__list a {
        padding: 1rem 0.25rem;
        border-bottom: 1px solid var(--line);
        color: var(--ink-900);
        font-family: var(--font-display);
        font-size: 1.9rem;
        font-weight: 600;
    }

    .site-nav__list a::after {
        display: none;
    }

    .site-nav__aside {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .site-nav__aside .lang-switch {
        align-self: center;
    }

    .site-nav__aside .btn {
        min-height: 3.4rem;
    }

    .hero {
        min-height: 0;
    }

    .hero__grid,
    .about,
    .schedule,
    .location,
    .faq,
    .contact,
    .newsletter {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__visual {
        width: min(100%, 400px);
        margin-top: 1rem;
    }

    .hero__badge {
        left: -6%;
    }

    .about__media {
        justify-self: center;
        width: min(100%, 420px);
    }

    .schedule__intro,
    .faq__intro {
        position: static;
    }

    .price-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 520px;
    }

    .price-card--featured {
        transform: none;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }

    /* Admin */
    .admin-bar__inner {
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
        padding-block: 0.6rem;
    }

    .admin-nav {
        order: 3;
        width: 100%;
        margin-right: 0;
        overflow-x: auto;
    }

    .admin-bar__user {
        margin-left: auto;
    }

    .editor,
    .skeleton,
    .users-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .editor-tabs {
        position: static;
        display: flex;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .editor-tab {
        flex-shrink: 0;
        width: auto;
    }

    .skeleton__nav {
        min-height: 3.5rem;
    }
}

@media (max-width: 720px) {
    :root {
        --header-h: 68px;
    }

    body {
        font-size: 1rem;
    }

    .brand__tagline {
        display: none;
    }

    .brand__name {
        font-size: 1.15rem;
    }

    .brand__mark {
        width: 40px;
        height: 40px;
    }

    .hero__actions .btn {
        flex: 1 1 100%;
    }

    .hero__badge {
        left: 50%;
        bottom: -1.5rem;
        width: max-content;
        max-width: calc(100% - 1rem);
        transform: translateX(-50%);
    }

    @media (prefers-reduced-motion: no-preference) {
        .hero__badge {
            animation: none;
        }
    }

    .hero__visual {
        margin-bottom: 1.5rem;
    }

    .gallery__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }

    .gallery__track {
        grid-auto-columns: 88%;
    }

    .about__stamp {
        right: 50%;
        bottom: -1.25rem;
        transform: translateX(50%);
        white-space: nowrap;
    }

    .schedule-item {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.4rem 1rem;
        padding-inline: 0.5rem;
    }

    .schedule-item__course {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .faq-item__answer {
        padding-right: 0.25rem;
    }

    .newsletter__row {
        flex-direction: column;
        border-radius: var(--radius);
    }

    .newsletter__row .btn {
        width: 100%;
    }

    .site-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Admin */
    .hide-sm {
        display: none;
    }

    .form-grid,
    .form-grid--3,
    .localized,
    .toggle-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .schedule-editor__row--head {
        display: none;
    }

    .schedule-editor__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 1rem;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--paper);
    }

    .schedule-editor__row > div:nth-child(4) {
        grid-column: 1 / -1;
    }

    .edit-list__item--image {
        grid-template-columns: minmax(0, 1fr);
    }

    .edit-list__item--image .item-actions,
    .edit-list__item--compact .item-actions {
        margin-top: 0;
    }

    .edit-list__item--compact {
        grid-template-columns: minmax(0, 1fr);
    }

    .image-field {
        grid-template-columns: minmax(0, 1fr);
    }

    .image-field__preview {
        width: 7rem;
    }

    .save-bar {
        bottom: 0.75rem;
        border-radius: var(--radius);
    }

    .save-bar__actions {
        width: 100%;
    }

    .save-bar__actions .btn {
        flex: 1;
    }

    .admin-meta {
        width: 100%;
        justify-content: space-between;
    }

    .profile div {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.2rem;
    }
}

@media print {
    .site-header,
    .gallery__controls,
    .newsletter,
    .map-consent,
    .contact__panel,
    #blazor-error-ui {
        display: none !important;
    }

    .section--ink {
        background: none;
        color: #000;
    }
}
