:root {
    --bg: #f4f2ee;
    --ink: #1f2020;
    --muted: #686a66;
    --line: rgba(31, 32, 32, .16);
    --dark: #202020;
    --dark-line: rgba(255, 255, 255, .16);
    --paper: #fffaf3;
    --accent: #cfe8dc;
    --accent-strong: #98c9b6;
    --danger: #9f2f2f;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.45;
}

a {
    color: inherit;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 64px;
    padding: 0 48px;
    border-bottom: 1px solid var(--line);
    background: rgba(244, 242, 238, .86);
    backdrop-filter: blur(18px);
}

.site-header-overlay {
    position: fixed;
    left: 0;
    right: 0;
    min-height: 58px;
    margin: 0;
    border-color: rgba(255, 255, 255, .14);
    border-radius: 0 0 24px 24px;
    background: rgba(51, 43, 52, .82);
    color: #fff;
}

.brand {
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    gap: 28px;
    font-size: 13px;
    text-transform: uppercase;
}

.site-nav a {
    text-decoration: none;
}

.site-menu {
    display: block;
    padding: 0;
    border: 0;
}

.site-menu summary {
    display: none;
}

.site-menu .site-nav {
    display: flex;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 44vw);
    gap: 24px;
    min-height: calc(100vh - 64px);
    padding: 56px 48px 28px;
    overflow: hidden;
}

.hero-fullbleed {
    display: block;
    min-height: 0;
    height: min(760px, 82vh);
    min-height: 620px;
    padding: 104px 48px 48px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .2) 52%, rgba(0, 0, 0, .44)),
        linear-gradient(0deg, rgba(0, 0, 0, .68), transparent 45%),
        linear-gradient(135deg, #4b4d4b, #d9dad5 54%, #1f2020);
    background-position: var(--hero-bg-position, top center);
    background-size: cover;
}

.hero-fullbleed.has-hero-bg {
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .2) 52%, rgba(0, 0, 0, .44)),
        linear-gradient(0deg, rgba(0, 0, 0, .68), transparent 45%),
        var(--hero-image);
}

.hero-fullbleed::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    pointer-events: none;
    background: rgba(255, 255, 255, .08);
    transform: translateX(18px);
    filter: blur(18px);
    opacity: .18;
}

.hero-fullbleed::after {
    position: absolute;
    inset: 0;
    z-index: 2;
    content: "";
    pointer-events: none;
    background: linear-gradient(90deg, transparent 42%, rgba(255, 255, 255, .16) 47%, transparent 54%);
    mix-blend-mode: screen;
    opacity: .22;
}

.hero-copy {
    position: relative;
    z-index: 3;
    align-self: end;
    max-width: 780px;
    padding-bottom: 72px;
}

.hero-fullbleed .hero-copy {
    position: absolute;
    left: 48px;
    right: 430px;
    bottom: 84px;
    max-width: 920px;
    padding-bottom: 0;
}

.hero-fullbleed .eyebrow {
    color: rgba(255, 255, 255, .78);
}

.hero-fullbleed h1 {
    max-width: 1040px;
    margin-bottom: 18px;
    color: #fff;
    font-size: clamp(48px, 6.2vw, 108px);
    line-height: .9;
    text-shadow: 0 12px 48px rgba(0, 0, 0, .38);
}

.hero-fullbleed .hero-copy p {
    color: rgba(255, 255, 255, .84);
    font-weight: 700;
}

.hero-fullbleed .button {
    border-color: rgba(255, 255, 255, .88);
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
}

.hero-meta {
    position: absolute;
    top: 96px;
    left: 48px;
    right: 48px;
    z-index: 3;
    display: flex;
    justify-content: end;
    gap: 24px;
    color: rgba(255, 255, 255, .86);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-stat {
    position: absolute;
    right: 48px;
    bottom: 86px;
    z-index: 3;
    display: grid;
    gap: 12px;
    width: min(330px, calc(100% - 96px));
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 250, 243, .92);
    color: #5b4f57;
}

.hero-stat strong {
    font-size: 34px;
    line-height: 1;
    text-transform: uppercase;
}

.hero-stat span {
    font-weight: 800;
    text-transform: uppercase;
}

.eyebrow,
.section-label {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 980px;
    margin-bottom: 24px;
    font-size: clamp(64px, 12vw, 188px);
    line-height: .8;
    letter-spacing: 0;
    text-transform: uppercase;
}

h2 {
    margin-bottom: 24px;
    font-size: clamp(32px, 4vw, 60px);
    line-height: .92;
    letter-spacing: 0;
    text-transform: uppercase;
}

#services h2 {
    font-size: clamp(34px, 5.2vw, 78px);
}

h3 {
    font-size: 22px;
    line-height: 1.05;
    text-transform: uppercase;
}

.hero-copy p,
.lead {
    max-width: 560px;
    color: var(--muted);
    font-size: 20px;
}

.hero-photo {
    align-self: stretch;
    min-height: 520px;
    border-radius: 8px;
}

.hero-note {
    position: absolute;
    right: 48px;
    bottom: 36px;
    max-width: 260px;
    font-weight: 700;
}

.hero-fullbleed .hero-note {
    z-index: 3;
    right: 48px;
    bottom: 20px;
    max-width: 330px;
    color: rgba(255, 255, 255, .78);
}

.unstable-photo {
    position: relative;
    overflow: hidden;
    background: #d7d8d2;
}

.unstable-photo img,
.unstable-photo .photo-placeholder {
    filter: grayscale(1) contrast(1.08);
}

.unstable-photo::before,
.unstable-photo::after {
    position: absolute;
    inset: 0;
    content: "";
    background: inherit;
    opacity: .55;
    pointer-events: none;
}

.unstable-photo::before {
    transform: translate(-18px, 10px);
    filter: blur(12px) grayscale(1);
    mix-blend-mode: multiply;
}

.unstable-photo::after {
    //transform: translate(22px, -8px);
    border-top: 1px solid rgba(255, 255, 255, .55);
    filter: blur(4px);
    opacity: .32;
}

.photo-placeholder {
    min-height: 100%;
    background:
        linear-gradient(100deg, rgba(255, 255, 255, .18), transparent 34%),
        radial-gradient(circle at 44% 34%, #efefeb 0 7%, transparent 8%),
        linear-gradient(135deg, #4b4d4b, #d9dad5 54%, #1f2020);
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.button-light {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--ink);
}

.dark-section {
    background:
        linear-gradient(var(--dark-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--dark-line) 1px, transparent 1px),
        var(--dark);
    background-size: 112px 112px;
    color: #f4f2ee;
}

.approach-section {
    background:
        linear-gradient(rgba(65, 55, 47, .18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(65, 55, 47, .18) 1px, transparent 1px),
        #d5c3ad;
    background-size: 112px 112px;
    color: #2d2925;
}

.approach-section .section-text {
    color: rgba(45, 41, 37, .78);
}

.approach-section .button-light {
    border-color: #3c342d;
    background: #3c342d;
    color: #fffaf3;
}

.grid-section,
.section,
.visual-row,
.faq-section,
.contact-section {
    padding: 72px 48px;
}

.grid-section {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) minmax(260px, 420px);
    gap: 32px;
    align-items: start;
}

.section {
    border-top: 1px solid var(--line);
}

.section-head {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) auto;
    gap: 32px;
    align-items: start;
    margin-bottom: 36px;
}

.section-text {
    color: rgba(244, 242, 238, .72);
}

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

.service-card,
.article-link,
.auth-card {
    padding: 28px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .44);
}

.service-card p {
    color: var(--muted);
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr);
    gap: 48px;
    align-items: start;
    max-width: 1080px;
    margin-left: 192px;
}

.about-copy {
    display: grid;
    gap: 20px;
    max-width: 700px;
    font-size: 20px;
}

.about-copy p {
    margin: 0;
}

.personal-note {
    padding: 24px;
    border-left: 3px solid var(--accent-strong);
    background: rgba(207, 232, 220, .3);
    font-weight: 700;
}

.requests-section .request-intro,
.requests-section .request-grid {
    grid-column: 2 / -1;
}

.request-intro {
    color: rgba(244, 242, 238, .76);
}

.request-grid,
.safety-grid,
.step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.request-card,
.safety-grid article,
.step-grid article {
    padding: 24px;
    border: 1px solid var(--line);
}

.request-card {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
}

.request-card h3,
.safety-grid h3,
.step-grid h3 {
    margin-bottom: 12px;
}

.request-card p,
.safety-grid p,
.step-grid p {
    margin: 0;
}

.request-card p {
    color: rgba(244, 242, 238, .76);
}

.safety-grid article,
.step-grid article {
    background: rgba(255, 255, 255, .32);
}

.approach-note {
    max-width: 840px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.step-grid article > span {
    display: block;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.first-meeting-section {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) auto;
    gap: 32px;
    align-items: end;
    padding: 72px 48px;
    background: var(--accent);
}

.first-meeting-section h2 {
    margin-bottom: 16px;
}

.first-meeting-section p {
    max-width: 760px;
    margin: 0;
    font-size: 18px;
}

dl {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
}

dt {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

dd {
    margin: 0;
    font-weight: 700;
}

.visual-row {
    display: grid;
    grid-template-columns: 160px repeat(3, minmax(160px, 1fr));
    gap: 24px;
    align-items: end;
}

.visual-card {
    min-height: 280px;
}

.visual-card h3 {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    margin: 0;
    font-size: 17px;
    color: #fff;
}

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

.article-list-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-link {
    display: grid;
    gap: 14px;
    min-height: 180px;
    text-decoration: none;
}

.article-link span,
.muted {
    color: var(--muted);
}

.article-link strong {
    font-size: 24px;
    line-height: 1.05;
    text-transform: uppercase;
}

.faq-section {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 32px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details p {
    margin: 16px 0 0;
}

details {
    border: 1px solid rgba(51, 43, 52, .82);
    padding: 20px;
}

summary {
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(320px, .65fr);
    gap: 48px;
}

.lead-form,
.auth-card {
    display: grid;
    gap: 18px;
}

.lead-flash {
    padding: 14px 16px;
    border: 1px solid var(--accent-strong);
    background: var(--accent);
    font-weight: 700;
}

.lead-form {
    align-self: start;
    scroll-margin-top: 88px;
    padding: 28px;
    border: 1px solid var(--line);
    background: rgba(255, 250, 243, .72);
}

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

.lead-form label,
.auth-card label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}

textarea {
    resize: vertical;
}

.lead-form input[type="text"],
.lead-form textarea,
.auth-card input {
    border-color: rgba(31, 32, 32, .18);
    background: rgba(255, 255, 255, .68);
}

.lead-form input:focus,
.lead-form textarea:focus,
.auth-card input:focus {
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
}

.choice-group {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
}

.choice-group legend {
    padding: 0;
    font-weight: 800;
}

.choice-group label,
.consent-line {
    display: flex;
}

.choice-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.choice-pill {
    position: relative;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .64);
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
}

.choice-pill input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.choice-pill:has(input:checked) {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.consent-line {
    grid-template-columns: none;
    align-items: flex-start;
    gap: 12px;
    color: #343635;
    font-weight: 700;
}

.consent-line input {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    min-height: 22px;
    margin-top: 2px;
    accent-color: var(--ink);
}

.lead-form button {
    justify-self: start;
}

.lead-form ul {
    margin: -8px 0 0;
    padding-left: 18px;
    color: var(--danger);
}

.form-error,
.invalid-feedback {
    color: var(--danger);
}

.flash {
    padding: 16px 48px;
    background: var(--accent);
    font-weight: 700;
}

.page-shell {
    min-height: 72vh;
    padding: 72px 48px;
}

.page-title {
    margin-bottom: 42px;
}

.materials-title h1 {
    font-size: clamp(44px, 7vw, 88px);
    line-height: .9;
}

.article-page h1 {
    font-size: clamp(48px, 5vw, 80px);
    line-height: .9;
}

.article-cover,
.cms-image {
    min-height: 420px;
    margin: 32px 0;
}

.prose {
    max-width: 760px;
    font-size: 20px;
    color: #343635;
}

.cms-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 32px;
}

.back-link {
    display: inline-block;
    margin-bottom: 32px;
    color: var(--muted);
    text-decoration: none;
}

.auth-page {
    display: grid;
    min-height: calc(100vh - 160px);
    place-items: center;
    padding: 48px;
}

.auth-card {
    width: min(100%, 420px);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 48px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

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

    .unstable-photo::before,
    .unstable-photo::after {
        display: none;
    }
}

@media (max-width: 1380px) {
    .grid-section {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .grid-section .section-text {
        grid-column: 2;
    }

    .about-layout {
        margin-left: 152px;
    }

    .first-meeting-section {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .first-meeting-section .button {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 1180px) {
    .hero-fullbleed {
        height: 620px;
        min-height: 620px;
    }

    .hero-fullbleed .hero-copy {
        right: 48px;
        bottom: 54px;
    }

    .hero-fullbleed h1 {
        max-width: 720px;
        font-size: clamp(54px, 8.6vw, 92px);
    }

    .hero-stat,
    .hero-fullbleed .hero-note {
        display: none;
    }
}

@media (max-width: 900px) {
    .site-header {
        min-height: 64px;
        padding: 12px 20px;
    }

    .site-header-overlay {
        position: absolute;
        border-radius: 0 0 18px 18px;
    }

    .site-menu {
        position: relative;
        display: block;
        margin-left: auto;
        padding: 0;
        border: 0;
    }

    .site-menu:not([open]) .site-nav {
        display: none;
    }

    .site-menu summary {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        padding: 0 9px;
        cursor: pointer;
        list-style: none;
        border: 0;
        border-radius: 0;
    }

    .site-menu summary::-webkit-details-marker {
        display: none;
    }

    .site-menu summary span {
        display: block;
        height: 2px;
        background: currentColor;
        transition: transform .2s ease, opacity .2s ease;
    }

    .site-menu[open] summary span:first-child {
        transform: translateY(6px) rotate(45deg);
    }

    .site-menu[open] summary span:nth-child(2) {
        opacity: 0;
    }

    .site-menu[open] summary span:last-child {
        transform: translateY(-6px) rotate(-45deg);
    }

    .site-menu summary:focus-visible {
        outline: 2px solid currentColor;
        outline-offset: 3px;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        display: grid;
        gap: 0;
        min-width: 220px;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 14px;
        color: var(--ink);
        font-size: 12px;
        background: var(--paper);
        box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
    }

    .site-nav a {
        padding: 11px 12px;
        border-radius: 8px;
    }

    .site-nav a:hover,
    .site-nav a:focus-visible {
        background: var(--accent);
        outline: none;
    }

    .site-header-overlay .site-nav {
        border-color: rgba(255, 255, 255, .18);
        color: #fff;
        background: rgba(51, 43, 52, .98);
    }

    .site-header-overlay .site-nav a:hover,
    .site-header-overlay .site-nav a:focus-visible {
        background: rgba(255, 255, 255, .14);
    }

    .hero,
    .grid-section,
    .section-head,
    .visual-row,
    .faq-section,
    .contact-section,
    .cms-block {
        grid-template-columns: 1fr;
    }

    .grid-section .section-text {
        grid-column: auto;
    }

    .about-layout,
    .request-grid,
    .safety-grid,
    .step-grid,
    .first-meeting-section {
        grid-template-columns: 1fr;
    }

    .about-layout {
        gap: 24px;
        margin-left: 0;
    }

    .requests-section .request-intro,
    .requests-section .request-grid,
    .first-meeting-section .button {
        grid-column: auto;
    }

    .first-meeting-section {
        gap: 24px;
        padding: 48px 20px;
    }

    .hero,
    .grid-section,
    .section,
    .visual-row,
    .faq-section,
    .contact-section,
    .page-shell {
        padding: 48px 20px;
    }

    .hero {
        min-height: auto;
    }

    .hero-fullbleed {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: auto;
        min-height: 540px;
        padding: 118px 20px 36px;
        --hero-bg-position: top center;
    }

    .hero-fullbleed .hero-copy {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        display: grid;
        gap: 16px;
        width: 100%;
        max-width: 440px;
        align-self: flex-start;
        margin-top: 64px;
    }

    .hero-fullbleed h1 {
        margin-bottom: 0;
        font-size: clamp(48px, 14vw, 58px);
        line-height: .9;
    }

    .hero-meta {
        //display: none;
    }

    .hero-fullbleed .eyebrow {
        display: none;
    }

    .hero-fullbleed .hero-copy p {
        max-width: 320px;
        margin-bottom: 0;
        font-size: 19px;
        line-height: 1.35;
    }

    .hero-fullbleed .button {
        justify-self: start;
    }

    .hero-stat {
        left: 20px;
        right: 20px;
        bottom: 64px;
        width: auto;
        padding: 20px;
        border-radius: 18px;
    }

    .hero-fullbleed .hero-note {
        display: none;
    }

    .hero-copy {
        padding-bottom: 20px;
    }

    h1 {
        font-size: 68px;
    }

    .article-page h1 {
        font-size: clamp(42px, 12vw, 58px);
    }

    h2 {
        font-size: 40px;
    }

    .hero-photo {
        min-height: 420px;
    }

    .hero-note {
        position: static;
        max-width: none;
    }

    .card-grid,
    .article-list,
    .article-list-wide,
    .form-grid,
    .choice-pills {
        grid-template-columns: 1fr;
    }

    .site-footer {
        flex-direction: column;
        padding: 28px 20px;
    }
}

@media (max-width: 900px) and (max-height: 720px) {
    .hero-fullbleed {
        min-height: 500px;
        padding-bottom: 28px;
    }

    .hero-meta {
        margin-bottom: 18px;
    }
}
