@font-face {
    font-family: "SVN Editors Note";
    src:
        url("../assets/fonts/SVN-EditorsNote-Light.woff2") format("woff2"),
        url("../assets/fonts/SVN-EditorsNote-Light.woff") format("woff");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "SVN Editors Note";
    src:
        url("../assets/fonts/SVN-EditorsNote-LightItalic.woff2") format("woff2"),
        url("../assets/fonts/SVN-EditorsNote-LightItalic.woff") format("woff");
    font-style: italic;
    font-weight: 300;
    font-display: swap;
}

:root {
    --paper: #f4f3ef;
    --ink: #111;
    --muted: #73736f;
    --line: rgba(17, 17, 17, .18);
    --red: #f01f32;
    --white: #fff;
    --pad: clamp(20px, 3vw, 48px);
    --sans: "Inter Tight", Arial, sans-serif;
    --serif: "SVN Editors Note", Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.35;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 22px var(--pad);
    border-bottom: 1px solid var(--line);
}
.brand {
    font-weight: 800;
    font-size: clamp(18px, 2vw, 30px);
    line-height: 1.02;
    letter-spacing: 0;
}
sup { font-size: .42em; vertical-align: top; }
.header-meta { display: flex; gap: clamp(32px, 7vw, 120px); color: var(--muted); font-size: 13px; }
.header-meta a { color: var(--ink); border-bottom: 1px solid var(--ink); }
main { padding: 0 var(--pad) 100px; }
.intro {
    min-height: 68vh;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .55fr);
    align-content: space-between;
    gap: 60px;
    padding: 54px 0 72px;
    border-bottom: 1px solid var(--ink);
}
.eyebrow { color: var(--red); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; }
.intro .eyebrow { grid-column: 1 / -1; }
h1, .success-overlay h2 {
    margin: 0;
    font-size: clamp(54px, 9vw, 145px);
    line-height: .82;
    letter-spacing: -.065em;
    font-weight: 600;
}
h1 em, .success-overlay h2 em { font-family: var(--serif); font-weight: 300; }
.intro-copy { align-self: end; max-width: 430px; font-size: clamp(18px, 1.6vw, 25px); letter-spacing: -.02em; }
.intro-copy p { margin: 0 0 25px; }
.intro-copy .note { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: 0; max-width: 360px; }
.form-layout {
    display: grid;
    grid-template-columns: minmax(220px, .52fr) minmax(0, 1.48fr);
    gap: clamp(50px, 9vw, 150px);
    padding-top: 66px;
}
.form-nav { position: sticky; top: 28px; align-self: start; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 11px; font-size: 12px; text-transform: uppercase; letter-spacing: .09em; }
.progress-track { height: 2px; background: var(--line); margin-bottom: 34px; }
.progress-track span { display: block; height: 100%; width: 16.666%; background: var(--red); transition: width .45s ease; }
.form-nav ol { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.form-nav li { border-bottom: 1px solid var(--line); }
.form-nav button { width: 100%; padding: 14px 0; border: 0; background: none; display: flex; gap: 18px; text-align: left; color: var(--muted); }
.form-nav button span { width: 24px; font-size: 12px; }
.form-nav li.is-active button { color: var(--ink); font-weight: 600; }
.form-nav li.is-complete button span { color: var(--red); }
.form-nav > p { color: var(--muted); font-size: 12px; margin-top: 20px; }
.print-trigger {
    width: 100%;
    margin-top: 18px;
    padding: 13px 0;
    border: 0;
    border-bottom: 1px solid var(--ink);
    background: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    font-weight: 600;
}
.print-trigger:hover { color: var(--red); border-color: var(--red); }
.print-trigger span { font-size: 18px; }
form { max-width: 920px; min-width: 0; }
.form-step { animation: reveal .45s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } }
.section-number { color: var(--red); font-size: 12px; letter-spacing: .1em; margin-bottom: 14px; }
h2 { font-size: clamp(42px, 5vw, 72px); letter-spacing: -.055em; line-height: .95; margin: 0; font-weight: 600; }
.section-lead { max-width: 620px; color: var(--muted); font-size: 18px; margin: 20px 0 55px; }
.field-grid { display: grid; gap: 0 24px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: block; position: relative; margin-bottom: 34px; }
.field > span:first-child { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.field b, .consent b { color: var(--red); }
input, textarea, select {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #9b9b96;
    border-radius: 0;
    background: transparent;
    outline: none;
    padding: 12px 0;
    transition: border-color .2s;
}
textarea { resize: vertical; min-height: 116px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #111 50%), linear-gradient(135deg, #111 50%, transparent 50%); background-position: calc(100% - 8px) 50%, calc(100% - 3px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 26px; }
input::placeholder, textarea::placeholder { color: #a4a49f; }
input:focus, textarea:focus, select:focus { border-color: var(--red); }
.field.has-error input, .field.has-error textarea, .field.has-error select, .consent.has-error { border-color: var(--red); }
.hint { display: block; color: var(--muted); margin-top: 7px; font-size: 11px; }
.error { display: none; color: #bd1121; margin-top: 7px; font-size: 12px; }
.has-error > .error { display: block; }
.form-actions { display: flex; justify-content: space-between; gap: 15px; padding-top: 18px; margin-top: 26px; border-top: 1px solid var(--ink); }
.button {
    min-height: 54px;
    border: 1px solid var(--ink);
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    font-weight: 600;
    background: transparent;
}
.button span { font-size: 20px; line-height: 1; }
.button-primary { margin-left: auto; background: var(--ink); color: var(--white); }
.button-primary:hover { background: var(--red); border-color: var(--red); }
.button:disabled { opacity: .55; cursor: wait; }
.form-status { min-height: 24px; margin-top: 16px; color: #bd1121; font-size: 13px; }
.trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.file-field input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-ui { min-height: 95px; border: 1px dashed #989892; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; margin: 0 !important; text-align: center; }
.file-ui strong { color: var(--red); }
.file-ui small { color: var(--muted); font-weight: 400; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 18px; border: 1px solid var(--line); font-size: 13px; margin-top: 10px; }
.consent input { width: 18px; height: 18px; accent-color: var(--red); }
.consent .error { grid-column: 2; margin-top: -5px; }
footer { background: var(--ink); color: var(--white); padding: 52px var(--pad); display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; font-size: 14px; }
footer > div:first-child { font-size: clamp(38px, 5vw, 70px); font-weight: 700; letter-spacing: -.06em; }
footer a { border-bottom: 1px solid var(--white); }
.success-overlay { position: fixed; inset: 0; z-index: 20; background: var(--paper); padding: var(--pad); overflow: auto; }
.success-overlay > div { min-height: calc(100vh - var(--pad) * 2); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.success-overlay h2 { font-size: clamp(55px, 8vw, 125px); margin: 24px 0 35px; }
.success-overlay p { max-width: 490px; color: var(--muted); font-size: 18px; }
.success-overlay .button { margin: 26px 0 0; }
.success-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.success-actions .button { margin-left: 0; }
.success-mark { position: absolute; top: var(--pad); right: var(--pad); width: 55px; height: 55px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 24px; }
.print-sheet { display: none; }

@media (max-width: 800px) {
    .header-meta span { display: none; }
    .intro { min-height: 620px; grid-template-columns: 1fr; padding-top: 38px; }
    .intro .eyebrow { grid-column: auto; }
    .intro-copy { max-width: 520px; }
    .form-layout { grid-template-columns: 1fr; gap: 42px; padding-top: 36px; }
    .form-nav { position: static; }
    .form-nav ol { display: none; }
    .form-nav > p { display: none; }
    .print-trigger { margin-top: 14px; }
    .progress-track { margin-bottom: 0; }
    .section-lead { margin-bottom: 40px; }
    footer { grid-template-columns: 1fr 1fr; }
    footer > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .site-header { align-items: center; }
    .header-meta { font-size: 12px; }
    .intro { min-height: 560px; padding-bottom: 48px; }
    h1 { font-size: 15.5vw; }
    .field-grid.two { grid-template-columns: 1fr; }
    .form-actions { position: sticky; bottom: 0; z-index: 4; background: var(--paper); padding: 12px 0 max(12px, env(safe-area-inset-bottom)); }
    .button { padding: 0 18px; gap: 24px; }
    footer { grid-template-columns: 1fr; }
    footer > div:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
    @page { size: A4; margin: 14mm 15mm 16mm; }

    html, body {
        background: #fff !important;
        color: #111 !important;
        font-family: Arial, sans-serif;
        font-size: 10pt;
    }

    .site-header,
    main > .intro,
    .form-layout,
    footer,
    .success-overlay {
        display: none !important;
    }

    main { padding: 0 !important; }
    .print-sheet {
        display: block !important;
        max-width: none;
    }

    .print-header {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 20px;
        align-items: end;
        padding-bottom: 9mm;
        margin-bottom: 8mm;
        border-bottom: 2px solid #111;
    }

    .print-brand {
        font-size: 20pt;
        font-weight: 700;
        letter-spacing: -.05em;
    }

    .print-title {
        margin: 4mm 0 0;
        font-size: 30pt;
        line-height: 1;
        letter-spacing: -.04em;
    }

    .print-meta {
        text-align: right;
        color: #555;
        font-size: 8.5pt;
        line-height: 1.45;
    }

    .print-section {
        margin: 0 0 8mm;
        break-inside: auto;
    }

    .print-section h2 {
        margin: 0 0 3mm;
        padding-bottom: 2mm;
        border-bottom: 1px solid #111;
        color: #111;
        font-size: 15pt;
        line-height: 1.15;
        letter-spacing: -.02em;
        break-after: avoid;
    }

    .print-answer {
        padding: 2.4mm 0 2.8mm;
        border-bottom: .25pt solid #ccc;
        break-inside: avoid;
    }

    .print-answer dt {
        margin: 0 0 1mm;
        color: #666;
        font-size: 7.5pt;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
    }

    .print-answer dd {
        margin: 0;
        font-size: 9.5pt;
        line-height: 1.45;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

    .print-footer {
        margin-top: 10mm;
        padding-top: 4mm;
        border-top: 1px solid #111;
        display: flex;
        justify-content: space-between;
        color: #666;
        font-size: 7.5pt;
    }
}
