:root {
    --brand: #a82828;
    --brand-deep: #882020;
    --brand-ink: #5e1414;
    --ink: #1c1414;
    --muted: #5f5555;
    --line: rgba(28, 20, 20, 0.12);
    --paper: #f6f1ee;
    --paper-2: #efe7e2;
    --white: #ffffff;
    --shadow-soft: 0 18px 50px rgba(88, 24, 24, 0.12);
    /* Matched to rainbowpellet.com: EB Garamond + Brandon Grotesque/DIN Next alternatives */
    --font-display: "EB Garamond", Georgia, "Times New Roman", serif;
    --font-body: "Jost", "Barlow", "Segoe UI", sans-serif;
    --font-nav: "Barlow", "Jost", "Segoe UI", sans-serif;
    --shell: min(1180px, calc(100% - 2.5rem));
    --header-h: 5rem;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--ink);
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(168, 40, 40, 0.08), transparent 55%),
        linear-gradient(180deg, #fbf8f6 0%, var(--paper) 40%, #f3ebe6 100%);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
}

p {
    margin: 0;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 1000;
    background: var(--brand);
    color: var(--white);
    padding: 0.75rem 1rem;
}

.skip-link:focus {
    top: 1rem;
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-solid {
    background: rgba(251, 248, 246, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand img {
    height: 3rem;
    width: auto;
    border-radius: 0.35rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.site-nav a {
    font-family: var(--font-nav);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0.78;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.page-home .site-header:not(.is-scrolled) .site-nav a {
    color: var(--white);
    opacity: 0.9;
}

.page-home .site-header:not(.is-scrolled) .site-nav a:hover,
.page-home .site-header:not(.is-scrolled) .site-nav a[aria-current="page"] {
    color: #ffd0d0;
    opacity: 1;
}

.page-home .site-header:not(.is-scrolled) .nav-toggle {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

.page-home .site-header:not(.is-scrolled) .nav-toggle-bars,
.page-home .site-header:not(.is-scrolled) .nav-toggle-bars::before,
.page-home .site-header:not(.is-scrolled) .nav-toggle-bars::after {
    background: var(--white);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    opacity: 1;
    color: var(--brand);
}

.nav-cta {
    padding: 0.7rem 1.15rem !important;
    font-size: 0.88rem !important;
}

.nav-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0.5rem;
    cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    display: block;
    width: 1.15rem;
    height: 2px;
    background: var(--ink);
    margin: 0 auto;
    transition: transform 0.25s var(--ease);
}

.nav-toggle-bars::before {
    transform: translateY(-6px);
}

.nav-toggle-bars::after {
    transform: translateY(4px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.85rem 1.4rem;
    border-radius: 0.45rem;
    font-family: var(--font-nav);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-solid {
    background: var(--brand);
    color: var(--white);
}

.btn-solid:hover {
    background: var(--brand-deep);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--brand);
    border-color: var(--brand);
}

.btn-outline:hover {
    background: var(--brand);
    color: var(--white);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: var(--white);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(94, 20, 20, 0.88) 0%, rgba(94, 20, 20, 0.55) 42%, rgba(12, 16, 28, 0.35) 100%),
        linear-gradient(180deg, rgba(10, 8, 8, 0.25) 0%, rgba(10, 8, 8, 0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: var(--shell);
    margin: 0 auto;
    padding: calc(var(--header-h) + 4rem) 0 5.5rem;
    max-width: 40rem;
}

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 800;
    max-width: 12ch;
    margin-bottom: 1.1rem;
    opacity: 0;
    transform: translateY(28px);
    animation: riseIn 1s var(--ease) 0.15s forwards;
}

.hero-lead {
    font-size: 1.08rem;
    max-width: 34ch;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(28px);
    animation: riseIn 1s var(--ease) 0.35s forwards;
}

.hero .cta-row {
    opacity: 0;
    transform: translateY(28px);
    animation: riseIn 1s var(--ease) 0.5s forwards;
}

.hero-mark {
    position: absolute;
    right: -8%;
    bottom: -18%;
    width: min(52vw, 520px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: 1;
    animation: spinSlow 48s linear infinite;
}

.hero-mark::before,
.hero-mark::after {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.hero-mark::after {
    inset: 28%;
}

/* Page hero (inner) */
.page-hero {
    position: relative;
    min-height: 58vh;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: var(--white);
}

.page-hero .hero-media img {
    animation: none;
    transform: scale(1.03);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    width: var(--shell);
    margin: 0 auto;
    padding: calc(var(--header-h) + 3.5rem) 0 3.5rem;
}

.page-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    max-width: 14ch;
}

.page-hero p {
    margin-top: 1rem;
    max-width: 42ch;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}

/* Sections */
.section {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.section-head {
    max-width: 38rem;
    margin-bottom: 2.75rem;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-nav);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 0.85rem;
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    margin-bottom: 0.9rem;
}

.section-head p {
    color: var(--muted);
    font-size: 1.05rem;
}

.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.split-copy h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0.4rem 0 1rem;
}

.split-copy p + p {
    margin-top: 1rem;
}

.split-copy p {
    color: var(--muted);
    font-size: 1.05rem;
}

.split-media {
    position: relative;
    min-height: 420px;
    overflow: hidden;
}

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

.split-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0 auto;
    width: 38%;
    height: 38%;
    background: var(--brand);
    mix-blend-mode: multiply;
    opacity: 0.55;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.quote-block {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.quote-block strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
}

.quote-block span {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Vision / Mission band */
.band {
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.08), transparent 35%),
        linear-gradient(135deg, var(--brand-deep), var(--brand) 55%, #b33a3a);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.band::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    right: -120px;
    top: -140px;
}

.band-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    position: relative;
}

.band article h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
}

.band article p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 36ch;
}

/* Services */
.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
}

.service-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    padding: 1.75rem 1.5rem 1.75rem 0;
    border-bottom: 1px solid var(--line);
    transition: background 0.25s ease, padding 0.25s var(--ease);
}

.service-item:nth-child(odd) {
    padding-right: 2rem;
    border-right: 1px solid var(--line);
}

.service-item:nth-child(even) {
    padding-left: 2rem;
}

.service-item:hover {
    background: rgba(168, 40, 40, 0.04);
}

.service-index {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brand);
    letter-spacing: -0.02em;
}

.service-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.55rem;
}

.service-item p {
    color: var(--muted);
    font-size: 0.98rem;
}

/* Flagship */
.flagship {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    min-height: 560px;
    background: var(--ink);
    color: var(--white);
    overflow: hidden;
}

.flagship-copy {
    padding: clamp(2.5rem, 5vw, 4.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 0% 100%, rgba(168, 40, 40, 0.45), transparent 45%),
        linear-gradient(160deg, #241616, #1c1414 60%);
}

.flagship-copy h2 {
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    margin: 0.5rem 0 1rem;
}

.flagship-copy > p {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 1.75rem;
    max-width: 36ch;
}

.flagship-points {
    display: grid;
    gap: 1.1rem;
    margin-bottom: 2rem;
}

.flagship-points li {
    padding-left: 1.1rem;
    border-left: 2px solid var(--brand);
}

.flagship-points strong {
    display: block;
    font-family: var(--font-display);
    margin-bottom: 0.2rem;
}

.flagship-points span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.flagship-media {
    position: relative;
    min-height: 360px;
}

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

/* Testimonial */
.testimonial {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: center;
}

.testimonial img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: top;
}

.testimonial blockquote {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.testimonial cite {
    display: block;
    margin-top: 1.5rem;
    font-style: normal;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.testimonial cite strong {
    color: var(--ink);
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-member {
    display: block;
}

.team-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(160deg, var(--brand-deep), #3a1212);
    margin-bottom: 1.25rem;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.7s var(--ease);
}

.team-member:hover .team-photo img {
    transform: scale(1.04);
}

.team-monogram {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.team-member h3 {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

.team-member .role {
    color: var(--brand);
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
}

.team-member p {
    color: var(--muted);
    font-size: 0.98rem;
}

/* Markets */
.market-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.market-strip span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
}

.market-strip span::before {
    content: "";
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--brand);
    margin-right: 0.55rem;
    vertical-align: middle;
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.contact-details {
    display: grid;
    gap: 1.35rem;
    margin-top: 1.75rem;
}

.contact-details a,
.contact-details span {
    display: block;
}

.contact-details strong {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 0.35rem;
}

.contact-form {
    background: var(--white);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

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

.form-field {
    display: grid;
    gap: 0.4rem;
}

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

.form-field label {
    font-size: 0.85rem;
    font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fcfaf9;
    border-radius: 0.4rem;
    padding: 0.85rem 0.95rem;
    font: inherit;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
    min-height: 140px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(168, 40, 40, 0.12);
}

.alert {
    padding: 0.95rem 1.1rem;
    margin-bottom: 1.25rem;
    border-radius: 0.4rem;
    font-weight: 600;
}

.alert-success {
    background: #e8f6ec;
    color: #1f6b3a;
}

.alert-error {
    background: #fdeceb;
    color: #8f1f1f;
}

/* CTA band */
.cta-band {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.cta-panel {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(94, 20, 20, 0.88), rgba(168, 40, 40, 0.72)),
        url("../img/contact.jpg") center / cover;
    color: var(--white);
    padding: clamp(2.5rem, 5vw, 4rem);
    display: grid;
    gap: 1.5rem;
    align-items: end;
    grid-template-columns: 1.4fr auto;
}

.cta-panel h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    max-width: 14ch;
    margin-bottom: 0.75rem;
}

.cta-panel p {
    max-width: 36ch;
    color: rgba(255, 255, 255, 0.88);
}

/* Footer */
.site-footer {
    position: relative;
    background: #171111;
    color: rgba(255, 255, 255, 0.82);
    padding-top: 4.5rem;
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    right: -80px;
    top: -120px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    position: relative;
    padding-bottom: 3rem;
}

.footer-brand img {
    height: 3.4rem;
    width: auto;
    border-radius: 0.35rem;
    margin-bottom: 1.1rem;
}

.footer-brand p {
    max-width: 36ch;
    color: rgba(255, 255, 255, 0.7);
}

.footer-heading {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-links,
.footer-contact {
    display: grid;
    gap: 0.65rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #ffb3b3;
}

.footer-bar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.25rem 0 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-tag {
    color: rgba(255, 255, 255, 0.7);
}

/* Reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Animations */
@keyframes riseIn {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes heroDrift {
    from {
        transform: scale(1.06) translate3d(0, 0, 0);
    }
    to {
        transform: scale(1.12) translate3d(-1.5%, -1%, 0);
    }
}

@keyframes spinSlow {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 960px) {
    .split,
    .band-grid,
    .flagship,
    .testimonial,
    .contact-layout,
    .team-grid,
    .footer-grid,
    .cta-panel {
        grid-template-columns: 1fr;
    }

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

    .service-item:nth-child(odd),
    .service-item:nth-child(even) {
        padding: 1.5rem 0;
        border-right: 0;
    }

    .flagship-media {
        min-height: 280px;
        order: -1;
    }

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

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 auto;
        background: rgba(251, 248, 246, 0.98);
        border-bottom: 1px solid var(--line);
        padding: 1.25rem 1.25rem 1.5rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    }

    .site-nav.is-open {
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }

    .nav-cta {
        width: 100%;
    }

    .site-header.is-open {
        background: rgba(251, 248, 246, 0.98);
    }
}

@media (max-width: 640px) {
    :root {
        --shell: min(1180px, calc(100% - 1.5rem));
    }

    .hero-content {
        padding-bottom: 4rem;
    }

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

    .testimonial {
        gap: 1.5rem;
    }

    .testimonial img {
        max-width: 220px;
    }
}

@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;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
