:root {
    /* One accent (maroon) plus its tints and shades; everything else neutral. */
    --accent: #8b1e3f;
    --accent-strong: #6d1731;
    --accent-deep: #4f1023;
    --accent-soft: #f9f0f3;
    --accent-line: #ead2da;
    --ink: #161616;
    --ink-2: #474747;
    --ink-3: #6b6b6b;
    --line: #cfcfcf;
    --bg: #ffffff;
    /* Status colour, for form messages only. */
    --error: #b42318;

    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

    --text-xs: 12px; --lh-xs: 16px;
    --text-sm: 14px; --lh-sm: 20px;
    --text-base: 16px; --lh-base: 24px;
    --text-lg: 20px; --lh-lg: 28px;
    --text-xl: 24px; --lh-xl: 32px;
    --text-2xl: 32px; --lh-2xl: 40px;
    --text-3xl: 40px; --lh-3xl: 48px;
    --text-4xl: 56px; --lh-4xl: 64px;

    --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px;
    --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px;

    --radius: 8px;
    --fast: 160ms;
}

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

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--lh-base);
    -webkit-font-smoothing: antialiased;
}

.sprite {
    position: absolute;
}

[hidden] {
    display: none !important;
}

h1,
h2,
p {
    margin: 0;
}

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

.icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* One screen: maroon intro + white contact panel. */
.screen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.intro {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--s3);
    padding: var(--s3) var(--s2);
    background: radial-gradient(120% 90% at 0% 0%, var(--accent) 0%, var(--accent-strong) 55%, var(--accent-deep) 100%);
    color: #fff;
}

.ornament {
    position: absolute;
    top: -96px;
    right: -96px;
    width: 280px;
    height: 280px;
    color: #fff;
    opacity: 0.14;
    pointer-events: none;
}

.intro-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s2);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--s1);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    background: #fff;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    line-height: var(--lh-xl);
    font-weight: 600;
}

.brand-name {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    line-height: var(--lh-xl);
    font-weight: 600;
}

.call-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--s1);
    min-height: 40px;
    padding: var(--s1) var(--s2);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    color: #fff;
    font-size: var(--text-sm);
    line-height: var(--lh-sm);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--fast) ease;
}

.call-pill:hover {
    background: rgba(255, 255, 255, 0.12);
}

.intro-copy {
    position: relative;
}

.eyebrow {
    margin-bottom: var(--s1);
    font-size: var(--text-xs);
    line-height: var(--lh-xs);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.8;
}

h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-2xl);
    line-height: var(--lh-2xl);
    text-wrap: balance;
}

.lead {
    max-width: 520px;
    margin-top: var(--s2);
    font-size: var(--text-base);
    line-height: var(--lh-base);
    opacity: 0.9;
}

.intro-foot {
    display: none;
    position: relative;
    font-size: var(--text-xs);
    line-height: var(--lh-xs);
    opacity: 0.7;
}

/* Contact panel */
.contact {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--s3) var(--s2);
}

.contact-inner {
    width: 100%;
    max-width: 440px;
}

.form {
    display: grid;
    gap: var(--s2);
}

.form-head h2,
.done h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-xl);
    line-height: var(--lh-xl);
}

.form-head p,
.done p {
    margin-top: var(--s1);
    color: var(--ink-2);
    font-size: var(--text-sm);
    line-height: var(--lh-sm);
}

.field {
    display: grid;
    gap: var(--s1);
}

.field label {
    font-size: var(--text-sm);
    line-height: var(--lh-sm);
    font-weight: 600;
}

.optional {
    color: var(--ink-3);
    font-weight: 400;
}

.field input,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: var(--s1) var(--s2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    transition: border-color var(--fast) ease;
}

.field textarea {
    height: 80px;
    min-height: 80px;
    resize: none;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--ink-3);
}

.field input:focus,
.field textarea:focus {
    border-color: var(--accent);
    outline: 2px solid var(--accent-line);
    outline-offset: 0;
}

.field input[aria-invalid="true"] {
    border-color: var(--error);
}

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: var(--s1) var(--s3);
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--fast) ease;
}

.btn:hover {
    background: var(--accent-strong);
}

.btn[disabled] {
    opacity: 0.7;
    cursor: progress;
}

.form-status {
    color: var(--error);
    font-size: var(--text-sm);
    line-height: var(--lh-sm);
    font-weight: 600;
}

.form-status:empty {
    display: none;
}

.done {
    text-align: center;
}

.done:focus {
    outline: none;
}

.done-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--s2);
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.link-btn {
    margin-top: var(--s3);
    padding: var(--s1);
    border: 0;
    background: none;
    color: var(--accent);
    font: inherit;
    font-size: var(--text-sm);
    line-height: var(--lh-sm);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

/* Phones: keep everything on one screen, trimming extras as the height shrinks. */
@media (max-width: 767px) {
    .intro {
        gap: var(--s2);
    }

    .field textarea {
        height: 64px;
        min-height: 64px;
    }
}

@media (max-height: 760px) and (max-width: 767px) {
    .lead {
        display: none;
    }

    .intro {
        padding-top: var(--s2);
        padding-bottom: var(--s2);
    }

    .contact {
        padding-top: var(--s2);
        padding-bottom: var(--s2);
    }
}

@media (max-height: 620px) and (max-width: 767px) {
    .form-head p {
        display: none;
    }
}

@media (max-height: 700px) and (max-width: 767px) {
    .eyebrow {
        display: none;
    }

    h1 {
        font-size: var(--text-xl);
        line-height: var(--lh-xl);
    }
}

/* Tablet */
@media (min-width: 768px) {
    .intro {
        gap: var(--s5);
        padding: var(--s4) var(--s5) var(--s6);
    }

    .ornament {
        top: -128px;
        right: -128px;
        width: 400px;
        height: 400px;
    }

    h1 {
        font-size: var(--text-3xl);
        line-height: var(--lh-3xl);
    }

    .lead {
        font-size: var(--text-lg);
        line-height: var(--lh-lg);
    }

    .contact {
        padding: var(--s5);
    }

    .form-head h2,
    .done h2 {
        font-size: var(--text-2xl);
        line-height: var(--lh-2xl);
    }

    .form {
        gap: var(--s3);
    }
}

/* Desktop: side by side, exactly one screen tall. */
@media (min-width: 1024px) {
    html,
    body {
        overflow: hidden;
    }

    .screen {
        flex-direction: row;
        height: 100vh;
        height: 100dvh;
    }

    .intro {
        flex: 0 0 55%;
        justify-content: space-between;
        padding: var(--s5) var(--s8);
    }

    .ornament {
        top: auto;
        right: -160px;
        bottom: -160px;
        width: 560px;
        height: 560px;
        opacity: 0.12;
    }

    h1 {
        max-width: 640px;
        font-size: var(--text-4xl);
        line-height: var(--lh-4xl);
    }

    .intro-foot {
        display: block;
    }

    .contact {
        padding: var(--s5) var(--s8);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
