/* --- Local Font Faces --- */

/* Fraunces – latin-ext */
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Fraunces – latin */
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url('../fonts/fraunces-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Manrope – latin-ext */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Manrope – latin */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Design Tokens --- */

:root {
    --bg: #f7f2eb;
    --surface: rgba(255, 250, 245, 0.88);
    --surface-strong: #fffaf6;
    --surface-dark: #142126;
    --surface-dark-soft: #1b2d33;
    --text: #1e2326;
    --text-soft: #566065;
    --text-light: #f6efe9;
    --line: rgba(30, 35, 38, 0.1);
    --line-strong: rgba(246, 239, 233, 0.14);
    --brand: #c46c47;
    --brand-deep: #9e4c2f;
    --accent: #2f6769;
    --shadow: 0 20px 55px rgba(46, 33, 24, 0.12);
    --shadow-soft: 0 16px 40px rgba(20, 33, 38, 0.08);
    --radius-lg: 32px;
    --radius-md: 22px;
    --radius-sm: 16px;
    --container: clamp(1rem, calc(100% - 2rem), 1120px);
    --header-height: 88px;
    --bp-sm: 400px;
    --bp-md: 640px;
    --bp-nav: 921px;
    --touch-target: 44px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(196, 108, 71, 0.15), transparent 32%),
        radial-gradient(circle at 85% 12%, rgba(47, 103, 105, 0.15), transparent 26%),
        linear-gradient(180deg, #f9f6f1 0%, #f4eee7 55%, #f7f2eb 100%);
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
textarea {
    font: inherit;
}

.site-shell {
    position: relative;
    overflow: clip;
}

.site-shell::before,
.site-shell::after {
    content: "";
    position: absolute;
    inset: auto;
    z-index: -1;
    border-radius: 50%;
    filter: blur(8px);
}

.site-shell::before {
    width: 18rem;
    height: 18rem;
    top: 8rem;
    right: -7rem;
    background: rgba(196, 108, 71, 0.11);
}

.site-shell::after {
    width: 22rem;
    height: 22rem;
    bottom: 10rem;
    left: -10rem;
    background: rgba(47, 103, 105, 0.12);
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(249, 246, 241, 0.76);
    border-bottom: 1px solid rgba(30, 35, 38, 0.06);
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.brand-mark {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand) 0%, #d89772 100%);
    color: #fff7f2;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: var(--shadow-soft);
}

.brand-mark-image {
    width: 4.25rem;
    height: 4.25rem;
    padding: 0.25rem;
    background: rgba(255, 250, 245, 0.92);
}

.brand-mark-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
}

.brand-copy {
    display: grid;
    gap: 0.16rem;
}

.brand-copy strong {
    font-size: 0.97rem;
    font-weight: 800;
}

.brand-copy span {
    color: var(--text-soft);
    font-size: 0.84rem;
}

.site-nav {
    position: fixed;
    top: calc(var(--header-height) + 0.5rem);
    left: 0.75rem;
    right: 0.75rem;
    padding: 0.85rem;
    display: grid;
    gap: 0.35rem;
    background: rgba(255, 250, 245, 0.96);
    border: 1px solid rgba(30, 35, 38, 0.08);
    border-radius: 22px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    max-height: calc(100vh - var(--header-height) - 1.5rem);
    overflow: auto;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav a {
    padding: 0.8rem 1rem;
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    min-height: var(--touch-target);
    min-width: var(--touch-target);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
    background: rgba(196, 108, 71, 0.12);
    color: var(--brand-deep);
    transform: translateY(-1px);
}

.button:focus-visible,
.site-nav a:focus-visible,
.nav-toggle:focus-visible,
.contact-link:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.nav-toggle {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    padding: 0.7rem;
    border: 0;
    border-radius: 18px;
    background: rgba(20, 33, 38, 0.06);
    cursor: pointer;
}

.header-end {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-shrink: 0;
}

@media (max-width: 500px) {
    .header-end {
        gap: 0.2rem;
    }
}

.header-actions-cluster {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: nowrap;
    padding: 0.32rem;
    border: 1px solid rgba(20, 33, 38, 0.08);
    border-radius: 999px;
    background: rgba(255, 250, 245, 0.88);
    box-shadow: 0 10px 24px rgba(20, 33, 38, 0.08);
}

@media (max-width: 820px) {
    .header-actions-cluster {
        gap: 0.3rem;
        padding: 0.24rem;
    }
}

@media (max-width: 500px) {
    .header-actions-cluster {
        gap: 0.2rem;
        padding: 0.2rem;
    }
}

@media (max-width: 760px) {
    .header-end {
        align-items: flex-start;
    }

    .header-actions-cluster {
        flex-wrap: wrap;
        width: min(100%, 18rem);
        border-radius: 24px;
        padding: 0.3rem;
        gap: 0.3rem;
    }

    .header-editor {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 0.3rem;
    }

    .header-auth {
        width: 100%;
    }

    .header-auth-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .header-actions-cluster {
        width: min(100%, 15.75rem);
        padding: 0.24rem;
        gap: 0.24rem;
    }

    .header-editor {
        gap: 0.24rem;
    }

    .header-editor-btn,
    .header-auth-btn {
        min-height: 2.05rem;
        padding: 0.3rem 0.45rem;
        font-size: 0.68rem;
    }

    .header-editor-btn .icon {
        width: 0.88rem;
        height: 0.88rem;
    }
}

.header-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

@media (max-width: 500px) {
    .header-auth-btn {
        padding: 0.3rem 0.55rem;
        font-size: 0.7rem;
        min-height: 2.15rem;
    }
}

.header-auth-btn--login {
    background: var(--brand);
    color: #fff;
}

.header-auth-btn--login:hover,
.header-auth-btn--login:focus-visible {
    background: var(--brand-deep);
    color: #fff;
}

.header-auth-btn--logout {
    background: rgba(20, 33, 38, 0.05);
    border-color: rgba(20, 33, 38, 0.08);
    color: var(--text-soft);
}

.header-auth-btn--logout:hover,
.header-auth-btn--logout:focus-visible {
    background: rgba(20, 33, 38, 0.1);
    border-color: rgba(20, 33, 38, 0.12);
    color: var(--text);
    transform: translateY(-1px);
}

.header-editor {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.header-editor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.5rem;
    padding: 0.42rem 0.82rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

@media (max-width: 500px) {
    .header-editor-btn {
        padding: 0.3rem 0.5rem;
        gap: 0.2rem;
        font-size: 0.65rem;
        min-height: 2.15rem;
    }
}

.header-editor-btn .icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

@media (max-width: 500px) {
    .header-editor-btn .icon {
        width: 0.9rem;
        height: 0.9rem;
    }
}

.header-editor-btn .label {
    display: none;
}

@media (min-width: 600px) {
    .header-editor-btn .label {
        display: inline;
    }
}

.header-editor-btn--edit {
    background: rgba(196, 108, 71, 0.12);
    border-color: rgba(196, 108, 71, 0.18);
    color: var(--brand-deep);
}

.header-editor-btn--edit:hover,
.header-editor-btn--edit:focus-visible {
    background: rgba(196, 108, 71, 0.25);
    border-color: rgba(196, 108, 71, 0.28);
    color: var(--brand-deep);
    transform: translateY(-1px);
}

.header-editor-btn--save {
    background: #c46c47;
    border-color: #c46c47;
    color: #fff;
}

.header-editor-btn--save:hover,
.header-editor-btn--save:focus-visible {
    background: #b85c37;
    border-color: #b85c37;
    color: #fff;
    transform: translateY(-1px);
}

.header-editor-btn--cancel {
    background: rgba(20, 33, 38, 0.05);
    border-color: rgba(20, 33, 38, 0.08);
    color: var(--text-soft);
}

.header-editor-btn--cancel:hover,
.header-editor-btn--cancel:focus-visible {
    background: rgba(20, 33, 38, 0.1);
    border-color: rgba(20, 33, 38, 0.12);
    color: var(--text);
    transform: translateY(-1px);
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 0.28rem 0;
    background: var(--text);
    border-radius: 999px;
    transition: transform 220ms ease, opacity 220ms ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.hero,
.page-hero {
    padding: clamp(4rem, 7vw, 6.5rem) 0 3rem;
}

.hero-grid,
.page-hero-grid,
.split-layout,
.contact-layout {
    display: grid;
    gap: 1.5rem;
}

.hero-grid {
    grid-template-columns: 1fr;
    align-items: center;
}

.page-hero-grid {
    grid-template-columns: 1fr;
    align-items: end;
}

.page-hero-top-aligned .page-hero-grid {
    align-items: start;
    gap: 0.9rem;
}

.page-hero-top-aligned + .section {
    padding-top: clamp(1rem, 2vw, 1.75rem);
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.cta-card h2,
.note-card h2,
.legal-copy h1 {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.hero-copy h1 {
    font-size: clamp(2.5rem, 6vw, 5.3rem);
    max-width: 12ch;
}

.page-hero h1,
.legal-copy h1,
.section-heading h2,
.cta-card h2,
.note-card h2 {
    font-size: clamp(2rem, 4vw, 3.35rem);
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.lead,
.page-hero-card p,
.section-heading p,
.note-card p,
.legal-copy p {
    color: var(--text-soft);
    line-height: 1.75;
    font-size: 1.02rem;
    text-wrap: pretty;
}

.section-heading p,
.legal-copy p,
.legal-copy li,
.info-card p,
.list-card p {
    max-width: 68ch;
}

.editor-status {
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 700;
}

body.content-edit-mode [data-edit-key] {
    outline: 2px dashed rgba(196, 108, 71, 0.55);
    outline-offset: 3px;
    border-radius: 10px;
    cursor: pointer;
    transition: outline-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

body.content-edit-mode [data-edit-key]:hover,
body.content-edit-mode [data-edit-key].is-edit-target {
    background: rgba(255, 255, 255, 0.45);
}

body.content-edit-mode [data-edit-key]:focus,
body.content-edit-mode [data-edit-key].is-editing {
    outline-color: var(--brand-deep);
    background: rgba(255, 255, 255, 0.7);
    cursor: text;
    box-shadow: 0 0 0 4px rgba(196, 108, 71, 0.12);
}

body.content-edit-mode a[data-edit-key] {
    pointer-events: none;
}

/* --- Editor Login Modal --- */
.editor-login-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.editor-login-modal[hidden] {
    display: none;
}

.editor-login-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 30, 0.55);
    backdrop-filter: blur(3px);
}

.editor-login-modal__box {
    position: relative;
    z-index: 1;
    width: min(92vw, 420px);
    padding: 2rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22);
}

.editor-login-modal__box h2 {
    margin: 0 0 0.4rem;
    font-size: 1.4rem;
}

.editor-login-modal__desc {
    color: var(--text-soft, #64748b);
    font-size: 0.95rem;
    margin: 0 0 1.2rem;
}

.editor-login-modal__close {
    position: absolute;
    top: 0.8rem;
    right: 0.9rem;
    width: 2.2rem;
    height: 2.2rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-soft, #64748b);
    border-radius: 6px;
}

.editor-login-modal__close:hover {
    background: #f1f5f9;
}

.editor-login-modal__error {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.editor-login-modal__error[hidden] {
    display: none;
}

.editor-login-modal__box label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.editor-login-modal__box input[type="text"],
.editor-login-modal__box input[type="password"] {
    width: 100%;
    padding: 0.7rem 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: inherit;
}

.editor-login-modal__box input:focus {
    outline: 2px solid var(--brand-deep, #1e40af);
    outline-offset: 1px;
    border-color: transparent;
}

.editor-login-modal__box .button {
    width: 100%;
    margin-top: 0.3rem;
}

.editor-login-modal__box .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
/* --- End Editor Login Modal --- */

.docs-embed {
    padding: 1.5rem 0 0;
}

.docs-embed__inner {
    display: grid;
    gap: 1.25rem;
    padding: 1.4rem;
    border: 1px solid rgba(30, 35, 38, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 250, 245, 0.9), rgba(255, 255, 255, 0.95));
    box-shadow: var(--shadow-soft);
}

.docs-embed__intro h2 {
    margin: 0.2rem 0 0.45rem;
    font-size: clamp(1.5rem, 2vw, 2rem);
}

.docs-embed__intro p:last-child {
    margin: 0;
    color: var(--text-soft);
    max-width: 64ch;
}

.docs-embed__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.docs-embed__frame-wrap {
    border-radius: 18px;
    border: 1px solid rgba(30, 35, 38, 0.1);
    background: rgba(255, 255, 255, 0.88);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.docs-embed__frame {
    width: 100%;
    min-height: 68vh;
    border: 0;
    display: block;
}

@media (min-width: 900px) {
    .docs-embed__inner {
        padding: 1.8rem;
    }
}

.hero-copy .lead {
    max-width: 56ch;
    margin: 1.4rem 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.4rem;
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    background: linear-gradient(135deg, var(--brand) 0%, #db8d68 100%);
    color: #fff8f4;
    box-shadow: 0 18px 35px rgba(196, 108, 71, 0.22);
}

.button-secondary {
    background: rgba(20, 33, 38, 0.05);
    color: var(--text);
}

.hero-panel,
.page-hero-card,
.cta-card,
.note-card,
.legal-copy {
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: var(--surface);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
}

.page-hero-card {
    padding: clamp(1.2rem, 3vw, 1.8rem);
}

.page-hero-card.portrait-card {
    padding: 0;
    padding-bottom: 1.4rem;
}

.hero-panel {
    position: relative;
    min-height: 100%;
    padding: 1rem;
    display: grid;
    gap: 1rem;
}

.media-card {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 250, 245, 0.68);
    box-shadow: var(--shadow);
}

.media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-card-hero {
    min-height: 280px;
}

.portrait-card {
    display: grid;
    gap: 0.35rem;
    overflow: hidden;
    padding-bottom: 1.4rem;
}

.portrait-card p {
    margin: 0;
    padding: 0 1.4rem;
}

.portrait-card img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 6px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.gallery-grid .media-card {
    min-height: 320px;
}

.intro-band {
    padding: 1.1rem 1.3rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 250, 245, 0.74);
    box-shadow: var(--shadow-soft);
}

.intro-band p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
    text-align: center;
}

.panel-card,
.info-card,
.list-card {
    padding: 1.35rem;
    border-radius: var(--radius-md);
    background: var(--surface-strong);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.panel-floating {
    margin-top: 2rem;
}

.panel-stat {
    background: linear-gradient(180deg, rgba(47, 103, 105, 0.12), rgba(255, 250, 245, 0.92));
}

.panel-label,
.contact-label,
.footer-title {
    margin: 0 0 0.6rem;
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-stat strong {
    display: block;
    margin-bottom: 0.7rem;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.55rem;
    line-height: 1.1;
}

.panel-stat span,
.info-card p,
.list-card p,
.feature-list,
.footer-grid p,
.footer-grid a,
.footer-bottom,
.legal-copy li {
    color: var(--text-soft);
    line-height: 1.7;
}

.contact-link {
    color: var(--brand-deep);
    font-weight: 800;
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
}

.contact-link:hover,
.contact-link:focus-visible {
    color: var(--brand);
}

.feature-list {
    margin: 0;
    padding-left: 1.15rem;
}

.feature-list.compact li + li {
    margin-top: 0.5rem;
}

.section {
    padding: clamp(3rem, 5vw, 5rem) 0;
}

.section-compact-top {
    padding-top: 0;
}

.section-accent {
    background: linear-gradient(180deg, rgba(255, 250, 245, 0.3), rgba(255, 255, 255, 0.62));
}

.section-dark {
    background: linear-gradient(180deg, var(--surface-dark) 0%, var(--surface-dark-soft) 100%);
    color: var(--text-light);
}

.section-heading {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-heading.light p,
.section-dark .eyebrow,
.section-dark .note-card p,
.section-dark .feature-list,
.section-dark .panel-label {
    color: rgba(246, 239, 233, 0.78);
}

.cards-grid {
    display: grid;
    gap: 1.2rem;
}

.cards-grid-3 {
    grid-template-columns: 1fr;
}

.cards-grid-2 {
    grid-template-columns: 1fr;
}

.info-card h3,
.list-card h3,
.note-card h3,
.legal-copy h2,
.process-list h3 {
    margin: 0 0 0.65rem;
    font-size: 1.25rem;
    line-height: 1.25;
}

.info-card p,
.list-card p {
    margin: 0;
}

.info-card p + p,
.list-card p + p {
    margin-top: 0.6rem;
}

.split-layout {
    grid-template-columns: 1fr;
    align-items: start;
}

.stack {
    display: grid;
    gap: 1rem;
}

.process-grid {
    display: grid;
    gap: 2rem;
}

.process-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.process-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-strong);
}

.process-list span {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(196, 108, 71, 0.18);
    color: #f9f1eb;
    font-weight: 800;
}

.cta-card,
.note-card {
    padding: clamp(1.5rem, 4vw, 2.2rem);
    display: grid;
    gap: 1.2rem;
}

.cta-card > *,
.note-card > * {
    margin-top: 0;
    margin-bottom: 0;
}

.cta-card {
    align-items: center;
    grid-template-columns: 1fr;
    justify-items: start;
}

.contact-layout {
    grid-template-columns: 1fr;
    align-items: start;
}

.note-card.light {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.legal-page .section {
    padding-top: 4rem;
}

.legal-copy {
    padding: clamp(1.6rem, 3.5vw, 2.4rem);
}

.legal-copy h2 {
    margin-top: 2rem;
}

.site-footer {
    padding: 2rem 0 2.5rem;
    border-top: 1px solid rgba(30, 35, 38, 0.08);
    background: rgba(255, 252, 248, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.footer-grid a {
    display: block;
    margin-bottom: 0.45rem;
    min-height: var(--touch-target);
    display: flex;
    align-items: center;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
    color: var(--brand-deep);
}

.footer-bottom {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    flex-direction: column;
    align-items: stretch;
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(30, 35, 38, 0.08);
    font-size: 0.92rem;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: reveal-up 700ms ease forwards;
}

.reveal-delay-1 {
    animation-delay: 110ms;
}

.reveal-delay-2 {
    animation-delay: 220ms;
}

.reveal-delay-3 {
    animation-delay: 330ms;
}

@keyframes reveal-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .reveal,
    .reveal-delay-1,
    .reveal-delay-2,
    .reveal-delay-3 {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .button,
    .site-nav a,
    .nav-toggle span {
        transition: none;
    }
}

@media (min-width: 1381px) {
    .site-nav {
        position: static;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        flex: 1 1 auto;
        gap: 0.4rem;
        padding: 0;
        max-height: none;
        overflow: visible;
        background: none;
        border: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .site-nav a {
        padding: 0.8rem 1rem;
        border-radius: 999px;
    }

    .nav-toggle {
        display: none;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
    }

    .page-hero-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
    }

    .split-layout {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    }

    .contact-layout {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    }

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

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

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

    .footer-grid {
        grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.7fr));
    }

    .cta-card {
        grid-template-columns: minmax(0, 1fr) auto;
        justify-items: stretch;
    }

    .footer-bottom {
        justify-content: space-between;
        flex-direction: row;
        align-items: center;
    }
}

/* Mobile-first baseline for narrow screens */
:root {
    --container: clamp(0.75rem, calc(100% - 1rem), 1120px);
}

.hero,
.page-hero,
.section {
    padding-top: 2.6rem;
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.cta-card h2,
.note-card h2,
.legal-copy h1 {
    line-height: 1.08;
}

.hero-copy h1 {
    font-size: 2.2rem;
}

.page-hero h1,
.section-heading h2,
.cta-card h2,
.note-card h2,
.legal-copy h1 {
    font-size: 1.6rem;
}

.header-inner {
    min-height: 76px;
}

.brand-mark-image {
    width: 3rem;
    height: 3rem;
}

.brand-copy strong {
    font-size: 0.82rem;
}

.brand-copy span {
    font-size: 0.72rem;
}

.eyebrow {
    font-size: 0.72rem;
}

.lead,
.page-hero-card p,
.section-heading p,
.note-card p,
.legal-copy p {
    font-size: 0.92rem;
}

.hero-actions,
.footer-bottom {
    flex-direction: column;
    align-items: stretch;
}

.button {
    width: 100%;
}

.panel-card,
.info-card,
.list-card,
.note-card,
.legal-copy,
.page-hero-card {
    padding: 1.2rem;
}

.gallery-grid .media-card {
    min-height: 280px;
}

.intro-band {
    border-radius: 24px;
}

.process-list li {
    grid-template-columns: 1fr;
}

.footer-grid {
    gap: 2rem;
}

.footer-grid a {
    padding: 0.25rem 0;
}

.legal-copy h2 {
    margin-top: 1.6rem;
    font-size: 1.15rem;
}

.legal-copy p,
.legal-copy li {
    font-size: 0.95rem;
}

.site-nav {
    top: calc(76px + 0.5rem);
}

@media (min-width: 401px) {
    :root {
        --container: clamp(1rem, calc(100% - 1.5rem), 1120px);
    }

    .hero-copy h1 {
        font-size: clamp(2.5rem, 6vw, 5.3rem);
    }

    .page-hero h1,
    .legal-copy h1,
    .section-heading h2,
    .cta-card h2,
    .note-card h2 {
        font-size: clamp(2rem, 4vw, 3.35rem);
    }

    .brand-mark-image {
        width: 3.5rem;
        height: 3.5rem;
    }

    .brand-copy strong {
        font-size: 0.9rem;
    }

    .brand-copy span {
        font-size: 0.78rem;
    }

    .eyebrow {
        font-size: 0.78rem;
    }

    .lead,
    .page-hero-card p,
    .section-heading p,
    .note-card p,
    .legal-copy p {
        font-size: 1.02rem;
    }
}

@media (min-width: 641px) {
    :root {
        --container: clamp(1rem, calc(100% - 2rem), 1120px);
    }

    .hero,
    .page-hero {
        padding: clamp(4rem, 7vw, 6.5rem) 0 3rem;
    }

    .section {
        padding: clamp(3rem, 5vw, 5rem) 0;
    }

    .hero-copy h1,
    .page-hero h1,
    .section-heading h2,
    .cta-card h2,
    .note-card h2,
    .legal-copy h1 {
        line-height: 1.02;
        overflow-wrap: anywhere;
    }

    .header-inner {
        min-height: var(--header-height);
    }

    .brand-mark-image {
        width: 4.25rem;
        height: 4.25rem;
    }

    .brand-copy strong {
        font-size: 0.97rem;
    }

    .brand-copy span {
        font-size: 0.84rem;
    }

    .hero-actions {
        flex-direction: row;
        align-items: center;
    }

    .button {
        width: auto;
    }

    .panel-card,
    .info-card,
    .list-card {
        padding: 1.35rem;
    }

    .note-card {
        padding: clamp(1.5rem, 4vw, 2.2rem);
    }

    .legal-copy,
    .page-hero-card {
        padding: clamp(1.6rem, 3.5vw, 2.4rem);
    }

    .gallery-grid .media-card {
        min-height: 320px;
    }

    .intro-band {
        border-radius: 999px;
    }

    .process-list li {
        grid-template-columns: auto 1fr;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .footer-grid a {
        padding: 0;
    }

    .legal-copy h2 {
        margin-top: 2rem;
        font-size: 1.25rem;
    }

    .legal-copy p,
    .legal-copy li {
        font-size: 1rem;
    }

    .site-nav {
        top: calc(var(--header-height) + 0.5rem);
    }
}