@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=Space+Grotesk:wght@500;700&display=swap");

:root {
    --paper: #f5efe3;
    --paper-soft: #fbf7ef;
    --ink: #13202a;
    --ink-soft: #52606d;
    --hero: #091217;
    --hero-soft: #102029;
    --hero-ink: #f5efe6;
    --hero-muted: rgba(245, 239, 230, 0.74);
    --signal: #ff7a45;
    --signal-soft: rgba(255, 122, 69, 0.14);
    --teal: #17847d;
    --line: rgba(19, 32, 42, 0.12);
    --line-hero: rgba(245, 239, 230, 0.12);
    --shadow-soft: 0 30px 80px rgba(10, 16, 20, 0.16);
    --shadow-hero: 0 38px 120px rgba(0, 0, 0, 0.34);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --page-width: min(1180px, calc(100vw - 40px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(1000px 420px at 12% 8%, rgba(255, 122, 69, 0.08), transparent 62%),
        radial-gradient(940px 520px at 88% 10%, rgba(23, 132, 125, 0.08), transparent 64%),
        linear-gradient(180deg, var(--paper) 0, var(--paper-soft) 100%);
    font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
    text-rendering: optimizeLegibility;
}

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

button,
input,
textarea {
    font: inherit;
}

.page-shell {
    width: 100%;
}

.site-header,
.content-band {
    width: var(--page-width);
    margin-left: auto;
    margin-right: auto;
}

.site-header {
    padding: 22px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-family: "Space Grotesk", "Avenir Next", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    background:
        linear-gradient(135deg, var(--signal), #ffbb95 52%, rgba(255, 255, 255, 0.92) 100%);
    box-shadow:
        0 0 0 6px rgba(255, 122, 69, 0.11),
        0 12px 28px rgba(255, 122, 69, 0.24);
}

.back-link {
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--ink);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 700ms ease,
        transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.is-ready [data-reveal],
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-kicker {
    margin: 0 0 18px;
    color: var(--signal);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
    font-weight: 600;
}

.section-copy h1,
.form-head h2 {
    margin: 0;
    font-family: "Space Grotesk", "Avenir Next", sans-serif;
    letter-spacing: -0.046em;
}

.content-band {
    padding-top: 52px;
    padding-bottom: 84px;
}

.intake-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.9fr);
    gap: 34px;
    align-items: start;
}

.section-copy h1,
.form-head h2 {
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 0.96;
    max-width: 13ch;
}

.section-copy p:last-of-type {
    margin: 20px 0 0;
    max-width: 36rem;
    color: var(--ink-soft);
    line-height: 1.72;
}

.detail-list {
    margin: 30px 0 0;
    display: grid;
    gap: 18px;
}

.detail-list div {
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

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

.detail-list dt {
    font-family: "Space Grotesk", "Avenir Next", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.detail-list dd {
    margin: 10px 0 0;
    color: var(--ink-soft);
    line-height: 1.64;
}

.form-shell {
    padding: 30px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.16)),
        linear-gradient(145deg, rgba(255, 122, 69, 0.07), rgba(23, 132, 125, 0.07));
    box-shadow: var(--shadow-soft);
}

.form-head {
    margin-bottom: 26px;
}

.form-head .section-kicker {
    color: var(--signal);
}

.form-status {
    margin: 16px 0 0;
    min-height: 1.5rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

.form-status.is-error {
    color: #ab3c15;
}

.form-status.is-success {
    color: #0e6d67;
}

form {
    display: grid;
    gap: 18px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

label {
    display: grid;
    gap: 9px;
}

label span {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(19, 32, 42, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    padding: 14px 16px;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: rgba(82, 96, 109, 0.78);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(255, 122, 69, 0.72);
    box-shadow: 0 0 0 4px rgba(255, 122, 69, 0.12);
    transform: translateY(-1px);
}

.field-note {
    margin: -4px 0 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.55;
}

.submit-button {
    min-height: 54px;
    border: 0;
    border-radius: 999px;
    background: var(--signal);
    color: #1f0c05;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 18px 36px rgba(255, 122, 69, 0.22);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        opacity 180ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 44px rgba(255, 122, 69, 0.28);
}

.submit-button[disabled] {
    cursor: wait;
    opacity: 0.72;
}

.back-link:focus-visible,
.submit-button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: none;
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

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

@media (max-width: 1080px) {
    .intake-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    :root {
        --page-width: min(100vw - 24px, 1180px);
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

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

    .form-shell {
        padding: 24px 18px;
    }
}
