:root {
    --burgundy: #8f1f1c;
    --burgundy-deep: #6a1513;
    --burgundy-soft: #f6ebe9;
    --cream: #faf7f2;
    --cream-deep: #efe8dc;
    --paper: #ffffff;
    --ink: #1c1413;
    --muted: #6a5f59;
    --line: rgba(28, 20, 19, 0.1);
    --gold: #b08a4a;
    --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
    --sans: "DM Sans", "Segoe UI", system-ui, sans-serif;
    --shadow: 0 18px 50px rgba(28, 20, 19, 0.08);
    --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
}

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

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 5.8vw, 4.4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.85rem); margin: 0 0 .75rem; }
h3 { font-size: 1.4rem; margin: 0 0 .35rem; }
p { margin: 0 0 1rem; }

a { color: var(--burgundy-deep); }

:focus-visible {
    outline: 2px solid var(--burgundy);
    outline-offset: 3px;
}

::selection { background: #efd0cb; color: var(--ink); }

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

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: white;
    color: var(--ink);
    padding: .7rem 1rem;
    z-index: 50;
    border-radius: 8px;
}

.skip:focus { top: 1rem; }

.wrap,
.utility-inner,
.nav-bar {
    width: min(1140px, calc(100% - 2.5rem));
    margin-inline: auto;
}

.kicker {
    margin: 0 0 .75rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--burgundy);
}

.lede {
    font-size: 1.14rem;
    color: var(--muted);
    max-width: 40rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.utility {
    background: var(--burgundy-deep);
    color: #f7f1ea;
}

.utility-inner {
    display: flex;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    flex-wrap: wrap;
    padding: .5rem 0;
    font-size: .92rem;
}

.utility p { margin: 0; }
.utility a { color: inherit; text-decoration: none; }
.utility a:hover { text-decoration: underline; }
.utility-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
    gap: 1rem;
    padding: .25rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: auto;
    height: 58px;
    object-fit: contain;
}

.brand-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .4rem .7rem;
    border-radius: 14px;
    background: #fff;
}

.brand-logo-badge .brand-logo { height: 48px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: .15rem 1.15rem;
}

.nav-link {
    color: var(--ink);
    text-decoration: none;
    font-weight: 560;
    padding: .4rem 0;
}

.nav-link.is-active {
    color: var(--burgundy);
    box-shadow: inset 0 -2px 0 var(--burgundy);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: .45rem 1.05rem;
    border-radius: 999px;
    background: var(--burgundy);
    color: white;
    text-decoration: none;
    font-weight: 650;
}

.nav-cta:hover { background: var(--burgundy-deep); }

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: min(78vh, 760px);
    display: flex;
    align-items: flex-end;
    color: #fbf7f2;
    overflow: hidden;
    background: #2a1715;
}

.hero-media,
.page-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(28, 14, 13, .82) 0%, rgba(28, 14, 13, .42) 48%, rgba(28, 14, 13, .18) 100%);
}

.hero-copy {
    position: relative;
    z-index: 1;
    padding: 4.2rem 0 3rem;
}

.reveal-stack .reveal-item {
    opacity: 0;
    transform: translateY(1.35rem);
    filter: blur(2px);
    will-change: transform, opacity, filter;
}

.reveal-stack.is-in .reveal-item {
    animation: reveal-up 1.05s cubic-bezier(.22, 1, .36, 1) both;
    animation-delay: calc(220ms + (var(--reveal-i, 0) * 160ms));
}

@keyframes reveal-up {
    0% {
        opacity: 0;
        transform: translateY(1.35rem);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-stack .reveal-item,
    .reveal-stack.is-in .reveal-item {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none;
    }
}

.hero .kicker,
.page-hero .kicker,
.reg-panel .kicker,
.cta-band .kicker,
.mission .kicker { color: #f0d3a2; }

.hero h1,
.page-hero h1 { color: #fbf7f2; max-width: 12em; }

.hero h1 em,
.page-hero h1 em {
    font-style: italic;
    color: #f0d3a2;
}

.hero .lede {
    max-width: 36rem;
    color: rgba(251, 247, 242, .9);
    font-size: 1.16rem;
}

.hero-actions,
.cta-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    align-items: center;
    margin-top: 1.4rem;
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 1rem 2.4rem;
    margin: 2.2rem 0 0;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, .28);
}

.hero-facts dt {
    font-size: .74rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .78;
}

.hero-facts dd {
    margin: .15rem 0 0;
    font-family: var(--serif);
    font-size: 1.65rem;
    letter-spacing: -0.03em;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .75rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.btn-solid { background: var(--burgundy); color: white; }
.btn-solid:hover { background: var(--burgundy-deep); }
.btn-light { background: #f7f2ea; color: var(--burgundy-deep); }
.btn-light:hover { background: white; }
.btn-line { background: transparent; color: var(--burgundy-deep); border-color: rgba(143, 31, 28, .35); }
.btn-line:hover { background: white; }
.btn-ghost { background: transparent; color: #f7f2ea; border-color: rgba(247, 242, 234, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

.section { padding: clamp(3.8rem, 7vw, 6rem) 0; }
.section-follow { padding-top: 0; }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.narrow { max-width: 42rem; }

.split {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(1.5rem, 4vw, 3.8rem);
    align-items: center;
}

.frame {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow);
    background: var(--paper);
}

.frame.portrait { aspect-ratio: 3 / 4; }
.frame.square { aspect-ratio: 1; }
.frame-soft { aspect-ratio: auto; padding: 1.4rem; display: grid; place-items: center; }
.frame-soft img { width: min(100%, 280px); height: auto; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-soft img { object-fit: contain; }

.prose p:last-child { margin-bottom: 0; }

.values,
.cards,
.standards,
.quote-grid,
.link-grid,
.contact-grid,
.footer-grid {
    display: grid;
    gap: 1.1rem;
}

.values {
    list-style: none;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(3, 1fr);
}

.values li {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem 1.2rem 1.3rem;
}

.value-index {
    display: block;
    margin-bottom: .35rem;
    color: var(--burgundy);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
}

.values h3 { font-size: 1.55rem; }
.values p { margin: 0; color: var(--muted); }

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

.card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: inherit;
    text-decoration: none;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform .2s ease, box-shadow .2s ease;
    transform-origin: top center;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.cards-swing .card {
    opacity: 0;
    transform: rotate(-14deg) translateY(48px);
    will-change: transform, opacity;
}

.cards-swing.is-in .card {
    animation: card-swing-in 1.55s cubic-bezier(.2, .85, .25, 1) both;
    animation-delay: calc(180ms + (var(--swing-i, 0) * 220ms));
}

@keyframes card-swing-in {
    0% {
        opacity: 0;
        transform: rotate(-16deg) translateY(56px);
    }
    45% {
        opacity: 1;
        transform: rotate(5deg) translateY(-10px);
    }
    70% {
        transform: rotate(-2deg) translateY(3px);
    }
    100% {
        opacity: 1;
        transform: rotate(0) translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cards-swing .card,
    .cards-swing.is-in .card {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

.card-media { aspect-ratio: 4 / 3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.15rem 1.2rem 1.35rem; }
.card-body h3 { font-size: 1.45rem; }
.card-body p { margin: 0; color: var(--muted); }

.mission {
    background:
        radial-gradient(ellipse at top left, rgba(240, 211, 162, .16), transparent 46%),
        var(--burgundy-deep);
    color: #f7f2ea;
    padding: clamp(3.8rem, 7vw, 6rem) 0;
}

.mission h2 { max-width: 16em; }

.opus-word {
    list-style: none;
    margin: 1.6rem 0 0;
    padding: 0;
    display: grid;
    gap: .15rem;
}

.opus-word li {
    font-family: var(--serif);
    font-size: clamp(2rem, 4.8vw, 3.4rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.opus-word em {
    font-style: italic;
    color: #f0d3a2;
}

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

.quote-grid article,
.panel {
    background: var(--paper);
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem 1.35rem;
    border: 1px solid var(--line);
    border-top: 3px solid var(--burgundy);
}

.quote-grid blockquote,
.pull {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.quote-grid blockquote p,
.pull p { margin: 0; }

.quote-grid h2 { font-size: clamp(1.45rem, 2vw, 1.8rem); }

.band {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    background: var(--paper);
    min-height: 460px;
}

.band-media img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }

.band-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 3.6rem);
}

.standards {
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
    margin: 1.4rem 0 0;
    padding: 0;
}

.standards li,
.link-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.15rem 1.15rem 1.05rem;
}

.standards strong {
    display: block;
    margin-bottom: .3rem;
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 400;
    letter-spacing: -0.03em;
}

.standards span,
.link-card p { color: var(--muted); }

.cta-band {
    background: var(--burgundy);
    color: #f7f2ea;
    padding: clamp(2.8rem, 5.5vw, 4.2rem) 0;
}

.cta-band-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem 2rem;
}

.cta-band h2 { max-width: 14em; margin: 0; }
.cta-actions { margin-top: 0; }

.page-hero {
    position: relative;
    min-height: 420px;
    height: 48vh;
    display: flex;
    align-items: flex-end;
    color: #fbf7f2;
    overflow: hidden;
    background: #2a1715;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28, 14, 13, .12), rgba(28, 14, 13, .72));
}

.page-hero-photo {
    height: 56vh;
    min-height: 480px;
}

/* About (and similar): taller banner so faces survive wide desktop crops */
.page-hero-tall {
    height: min(70vh, 720px);
    min-height: 520px;
}

.page-hero-tall .page-hero-media {
    object-position: center top;
}

.page-hero-copy {
    position: relative;
    z-index: 1;
    padding-bottom: 2.2rem;
}

.page-hero h1 { margin: 0; max-width: 14em; }

.service-list { list-style: none; margin: 0; padding: 0; }

.service-list li {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 1rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--line);
}

.service-list li:last-child { border-bottom: 1px solid var(--line); }

.service-no {
    font-family: var(--serif);
    color: var(--burgundy);
    font-size: 1.4rem;
}

.service-list h3 { margin-bottom: .25rem; }
.service-list p { margin: 0; color: var(--muted); }

.tick-list {
    columns: 2;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tick-list li {
    position: relative;
    break-inside: avoid;
    padding: .7rem 0 .7rem 1.25rem;
    border-bottom: 1px solid var(--line);
}

.tick-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: .42rem;
    height: .42rem;
    border-radius: 50%;
    background: var(--burgundy);
}

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

.link-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.link-card:hover { border-color: var(--burgundy); }

.link-card strong {
    display: block;
    margin-bottom: .35rem;
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.link-card p { margin: 0; }

.reg-panel {
    display: flex;
    gap: 1.5rem 2.4rem;
    align-items: center;
    background: var(--burgundy-deep);
    color: #f7f2ea;
    border-radius: 22px;
    padding: clamp(1.35rem, 3vw, 2.1rem);
}

.reg-panel b {
    display: block;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.8rem, 6.5vw, 4.4rem);
    letter-spacing: -0.04em;
    line-height: .9;
}

.reg-panel p { margin: .35rem 0 0; color: rgba(247, 242, 234, .86); }
.reg-panel a { color: #f0d3a2; }

.notice {
    margin: 0 0 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: var(--burgundy-soft);
    border-left: 3px solid var(--burgundy);
}

.contact-grid { grid-template-columns: .85fr 1.15fr; align-items: start; }
.contact-grid h2 { font-size: 1.7rem; }

.plain-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.plain-list a { text-decoration: none; }
.plain-list a:hover { text-decoration: underline; }

.map-frame {
    margin-top: 1.15rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    min-height: 280px;
    height: 340px;
    background: var(--cream-deep);
}

.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-note { margin-top: .75rem; }

.form {
    display: grid;
    gap: 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.3rem;
    box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 650; font-size: .95rem; }
.field label span { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
    width: 100%;
    font: inherit;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(28, 20, 19, .16);
    border-radius: 12px;
    padding: .8rem .9rem;
}

.field textarea { min-height: 9rem; resize: vertical; }
.field-error { margin: 0; color: var(--burgundy-deep); font-size: .92rem; }
.form-note { margin: 0; color: var(--muted); font-size: .95rem; }

.banner {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: #e5f0e4;
}

.banner p { margin: 0; }
.banner.is-error { background: #f8e6e3; }

.site-footer {
    background: #1c1211;
    color: #f3ebe3;
    padding: 3.4rem 0 1.35rem;
}

.site-footer a { color: inherit; }

.footer-grid {
    grid-template-columns: 1.4fr .9fr .8fr 1fr;
    gap: 2rem;
}

.footer-brand .brand { margin-bottom: 1rem; }

.footer-label {
    margin: 0 0 .8rem;
    font-family: var(--sans);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #e7c6c0;
}

.site-footer p,
.site-footer li { color: rgba(243, 235, 227, .86); }

.footer-base {
    display: flex;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .92rem;
}

.footer-base p { margin: 0; }

.missing {
    min-height: 52vh;
    display: grid;
    align-items: center;
}

@media (max-width: 1040px) {
    .nav-bar {
        position: relative;
        justify-content: center;
        min-height: 78px;
        padding-inline: 3rem;
    }

    .brand {
        justify-content: center;
        max-width: calc(100% - 3.5rem);
    }

    .brand-logo {
        height: auto;
        width: min(280px, 72vw);
        max-height: 64px;
    }

    .nav-toggle {
        display: inline-flex;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: .15rem;
        padding: .45rem 1.25rem 1.15rem;
        background: rgba(255, 255, 255, .98);
        border-bottom: 1px solid var(--line);
    }

    .site-header.is-open .nav-links { display: flex; }
    .nav-link, .nav-cta { padding: .75rem 0; }
    .nav-cta { justify-content: center; }
}

@media (max-width: 980px) {
    .values, .cards, .standards, .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { gap: 1.5rem 1rem; }
}

@media (max-width: 860px) {
    .split, .quote-grid, .link-grid, .contact-grid, .band, .form-row, .cta-band-inner {
        grid-template-columns: 1fr;
    }

    .band { grid-template-columns: 1fr; }
    .cta-band-inner { align-items: flex-start; }
    .cta-actions { margin-top: .4rem; }
    .hero-facts { grid-template-columns: 1fr; }
    .reg-panel { flex-direction: column; align-items: flex-start; }
    .page-hero,
    .page-hero-photo,
    .page-hero-tall {
        height: auto;
        min-height: 340px;
    }
}

@media (max-width: 640px) {
    .utility-inner {
        flex-direction: column;
        align-items: stretch;
        gap: .35rem;
        text-align: center;
    }

    .utility-links {
        justify-content: space-between;
        width: 100%;
        gap: .75rem;
        text-align: left;
    }

    .brand-logo {
        width: min(300px, 78vw);
        max-height: 70px;
    }

    .hero-copy {
        text-align: center;
        padding-top: 2.4rem;
    }

    .hero-copy .kicker,
    .hero-copy h1,
    .hero-copy .lede {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-actions .btn {
        justify-content: center;
    }

    .hero-facts {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        width: 100%;
    }

    .hero-facts > div {
        width: 100%;
    }

    .values, .cards, .standards, .footer-grid { grid-template-columns: 1fr; }
    .tick-list { columns: 1; }
    .hero { min-height: 0; }
    .service-list li { grid-template-columns: 2.4rem 1fr; }
}

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