:root {
    color-scheme: light;
    --ink: #182921;
    --muted: #4e6258;
    --green: #235d44;
    --green-hover: #194834;
    --paper: #f8faf6;
    --wash: #eef4ee;
    --line: #dce5dc;
    --white: #fff;
    --shell: 75rem;
    font-family: Inter, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    overflow-wrap: anywhere;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
button, input, textarea { font: inherit; }

:focus-visible {
    outline: 3px solid #528974;
    outline-offset: 4px;
}

.shell {
    width: min(var(--shell), calc(100% - 5rem));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
    padding: .65rem 1rem;
    border-radius: .4rem;
    color: var(--white);
    background: var(--green);
    transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
    position: relative;
    z-index: 1;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

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

.header-inner { min-height: 5rem; flex-wrap: wrap; }

.brand { display: inline-flex; flex: none; }
.brand img { width: 8.15rem; }

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(1.1rem, 2.8vw, 2.75rem);
}

.site-nav > a, .site-footer nav a {
    font-size: .875rem;
    font-weight: 650;
    text-decoration: none;
}

.site-nav > a:not(.button), .site-footer nav a { color: var(--muted); }
.site-nav > a:not(.button):hover, .site-footer nav a:hover { color: var(--green); text-decoration: underline; }

.button, .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.15rem;
    padding: .7rem 1.2rem;
    border: 1px solid transparent;
    border-radius: .55rem;
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s, border-color .18s, color .18s;
}

.button-header {
    min-height: 2.55rem;
    padding: .6rem .95rem;
    background: #e8f0e8;
    border-color: #d7e4d8;
    color: var(--green);
}

.button-header:hover, .button-secondary:hover { background: #e4eee4; border-color: #abbfb0; }

.button-primary { background: var(--green); color: var(--white); }
.button-primary:hover { background: var(--green-hover); }
.button-primary[aria-disabled="true"] { opacity: .72; cursor: wait; }

.button-secondary, .menu-toggle {
    border-color: #cddbcf;
    background: var(--paper);
    color: var(--green);
}

.menu-toggle { display: none; }

.hero {
    background: radial-gradient(ellipse at 75% 44%, #edf5ed 0%, var(--paper) 67%);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    padding-block: clamp(4rem, 5.4vw, 5.1rem) clamp(3.5rem, 4.6vw, 4.5rem);
}

.section-label {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.05rem;
    color: var(--green);
    font-size: .875rem;
    font-weight: 750;
    letter-spacing: .1em;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero .section-label::before {
    width: 1.3rem;
    height: 1px;
    background: currentColor;
    content: "";
}

h1, .section h2, .story h2 {
    font-weight: 750;
    letter-spacing: -.062em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(3.4rem, 5.7vw, 5.35rem);
    line-height: .99;
}

h1 em { color: var(--green); font-style: normal; }

.hero-intro {
    max-width: 29rem;
    margin-top: 1.55rem;
    color: var(--muted);
    font-size: clamp(1.0625rem, 1.38vw, 1.2rem);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.85rem;
}

.hero-figure { min-width: 0; }

.workspace-stage {
    position: relative;
    padding: clamp(1.3rem, 3.1vw, 2.7rem);
    isolation: isolate;
    border: 1px solid #ccded0;
    border-radius: 1.3rem;
    background-color: #dcebdd;
    background-image:
        linear-gradient(90deg, #315d4512 1px, transparent 1px),
        linear-gradient(#315d4512 1px, transparent 1px),
        linear-gradient(135deg, #f0f7ee, #dcebdd 64%, #cedfce);
    background-size: 1.4rem 1.4rem, 1.4rem 1.4rem, 100% 100%;
}

.hero-figure figcaption {
    margin-top: .65rem;
    color: var(--muted);
    font-size: .8125rem;
    text-align: right;
}

.workspace {
    border: 1px solid #d7e0e8;
    border-radius: .85rem;
    background: #edf2f7;
    box-shadow: 0 1.4rem 2.7rem -1.4rem #23483970, 0 .3rem .7rem #23483912;
    color: #253444;
    font-variant-numeric: tabular-nums;
}

.workspace-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .625rem .9rem;
    border-bottom: 1px solid #e0e7ed;
    border-radius: .8rem .8rem 0 0;
    background: var(--white);
    color: #526578;
    font-size: .8125rem;
    font-weight: 600;
}

.workspace-bar img { width: 4.5rem; }

.workspace-body { padding: clamp(.8rem, 1.4vw, 1.25rem); }

.workspace-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    margin-bottom: .95rem;
}

.workspace-heading h2 {
    font-size: clamp(1.25rem, 1.85vw, 1.65rem);
    line-height: 1.2;
    letter-spacing: -.05em;
}

.workspace-heading p {
    margin-top: .15rem;
    color: #57697c;
    font-size: .8125rem;
    line-height: 1.3;
}

.workspace-period {
    flex: none;
    padding: .25rem .5rem;
    border: 1px solid #dce6ef;
    border-radius: .35rem;
    background: var(--white);
    color: #51667c;
    font-size: .8125rem;
    font-weight: 650;
}

.workspace-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
}

.workspace-metrics div, .workspace-panel {
    border: 1px solid #e4ebf1;
    border-radius: .55rem;
    background: var(--white);
}

.workspace-metrics div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: .65rem .7rem;
}

.workspace-metrics dt {
    color: #516478;
    font-size: .8125rem;
    font-weight: 550;
    line-height: 1.26;
}

.workspace-metrics dd {
    margin-top: .25rem;
    font-size: clamp(1.4rem, 2.4vw, 1.95rem);
    font-weight: 750;
    letter-spacing: -.055em;
    line-height: 1.05;
}

.workspace-panels {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    gap: .5rem;
    margin-top: .5rem;
}

.workspace-panel { min-width: 0; padding: .65rem .7rem .55rem; }
.workspace-panel h3 { font-size: .8125rem; font-weight: 750; line-height: 1.3; }

.activity-chart { margin-top: .55rem; }

.chart-bars, .chart-labels {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-items: center;
}

.chart-bars {
    height: 4.25rem;
    align-items: end;
    border-bottom: 1px solid #dfe8ee;
    background-image: linear-gradient(#e8edf3 1px, transparent 1px);
    background-size: 100% 25%;
}

.chart-bars i {
    display: block;
    width: min(55%, 1.45rem);
    height: var(--bar);
    border-radius: .2rem .2rem 0 0;
    background: #758fa9;
}

.chart-bars i:nth-child(4) { background: #518d74; }
.chart-labels { margin-top: .15rem; color: #57697c; font-size: .75rem; }

.queue-list { margin-top: .35rem; padding: 0; list-style: none; }

.queue-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .3rem;
    min-height: 1.75rem;
    padding-block: .25rem;
    border-bottom: 1px solid #e9eef3;
    color: #43566b;
    font-size: .8125rem;
    line-height: 1.23;
}

.queue-list li:last-child { border: 0; }

.status {
    display: inline-block;
    padding: .17rem .375rem;
    border-radius: .3rem;
    font-size: .75rem;
    font-weight: 650;
    line-height: 1.35;
}

.status-warm { background: #f7ecd8; color: #765111; }
.status-cool { background: #e8eef7; color: #425e7d; }
.status-green { background: #e3efe7; color: #25563e; }

.input-band {
    border-block: 1px solid var(--line);
    background: #f0f5ef;
}

.input-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .8rem 2rem;
    padding-block: 1.22rem;
}

.input-inner p { font-size: .9375rem; font-weight: 750; }

.input-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem clamp(1rem, 4.3vw, 4rem);
    padding: 0;
    list-style: none;
}

.input-list li {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--muted);
    font-size: .875rem;
    font-weight: 650;
}

.input-list svg, .approach-icon svg, .intake-preview svg {
    width: 1.15rem;
    height: 1.15rem;
    flex: none;
    color: var(--green);
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.section { padding-block: clamp(4.2rem, 7.5vw, 7rem); }

.section-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
    align-items: end;
    gap: 1rem clamp(2rem, 11vw, 10rem);
    margin-bottom: 2.1rem;
}

.section-intro > p, .approach-card p, .capability-list dd, .story-copy, .contact-copy > p:not(.section-label) {
    color: var(--muted);
}

.section h2, .story h2 {
    font-size: clamp(2.3rem, 4vw, 3.6rem);
    line-height: 1.05;
    text-wrap: pretty;
}

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

.approach-card {
    padding: clamp(1.35rem, 2.2vw, 2rem);
    border: 1px solid var(--line);
    border-radius: .85rem;
    background: var(--white);
}

.approach-icon {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    margin-bottom: 1.1rem;
    border-radius: .55rem;
    background: #eaf2e9;
}

.approach-icon svg { width: 1.4rem; height: 1.4rem; }
.approach-icon circle { fill: #eaf2e9; }

.approach-card h3, .example-copy h3 {
    margin-bottom: .55rem;
    font-size: 1.26rem;
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.25;
}

.examples { background: #142f27; color: #f3faf2; }
.examples .section-label { color: #acd2b3; }
.examples .section-intro > p { color: #c4d8ca; }

.example-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 1rem;
}

.example-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: clamp(1.15rem, 2vw, 1.65rem);
    border: 1px solid #406054;
    border-radius: .85rem;
    background: #1c3b31;
}

.example-feature { grid-row: span 2; }

.example-copy { margin-bottom: 1.1rem; }
.example-copy p { max-width: 35rem; color: #c4d8ca; }

.example-art {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: clamp(.75rem, 2vw, 1.45rem);
    border-radius: .6rem;
    background: #dbe9dd;
    color: #263a34;
}

.customer-art { flex: 1; background: linear-gradient(135deg, #e4eee4, #c5dbc9); }
.intake-art { background: #dbe5ed; }
.report-art { background: #e2ecdf; }

.customer-preview, .intake-preview, .report-preview div {
    border: 1px solid #d8e3d9;
    border-radius: .55rem;
    background: #fcfefa;
}

.customer-preview { width: 100%; }
.customer-preview strong, .intake-preview strong { display: block; line-height: 1.3; }
.customer-preview small, .intake-preview small { display: block; color: #53665e; font-size: .8125rem; }

.customer-top, .intake-preview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
    padding: .85rem;
}

.customer-monogram {
    display: grid;
    width: 2.3rem;
    height: 2.3rem;
    place-items: center;
    border-radius: .45rem;
    background: #e4efe5;
    color: var(--green);
    font-size: .8125rem;
    font-weight: 750;
}

.customer-timeline { padding: 0 .85rem .3rem; list-style: none; }

.customer-timeline li {
    display: flex;
    justify-content: space-between;
    gap: .6rem;
    padding: .7rem 0;
    border-top: 1px solid #e5ece4;
    font-size: .875rem;
}

.timeline-date { color: #596b63; font-size: .8125rem; }

.intake-preview, .report-preview {
    width: 100%;
    font-size: .875rem;
}

.intake-preview svg { color: #4b6581; }

.report-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}

.report-preview div { padding: .5rem .65rem; }
.report-preview dt { color: #53665e; font-size: .8125rem; line-height: 1.25; }

.report-preview dd {
    margin-top: .2rem;
    font-size: 1.45rem;
    font-weight: 750;
    line-height: 1.1;
}

.capabilities, .story-inner, .contact-inner {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 2rem clamp(2rem, 9vw, 8rem);
}

.capabilities { position: relative; }
.anchor-alias { position: absolute; inset: 0 auto auto 0; }

.capability-list > div {
    padding: 1.05rem 0;
    border-bottom: 1px solid var(--line);
}

.capability-list > div:first-child { border-top: 1px solid var(--line); }
.capability-list dt { margin-bottom: .3rem; font-weight: 750; }

.story {
    padding-block: clamp(3.3rem, 6vw, 5.5rem);
    border-block: 1px solid var(--line);
    background: #eaf2e8;
}

.story-copy strong { color: var(--ink); font-weight: 750; }
.story-copy p + p, .contact-copy > p + p:not(.section-label) { margin-top: 1rem; }

.contact-copy h2 { margin-bottom: 1.1rem; }

.contact-copy .contact-tip {
    max-width: 23rem;
    padding: .65rem .85rem;
    border-left: 2px solid #adc7b5;
    background: #edf3eb;
    font-size: .875rem;
}

.contact-form {
    min-width: 0;
    padding: clamp(1.15rem, 2.6vw, 2rem);
    border: 1px solid var(--line);
    border-radius: .85rem;
    background: var(--white);
}

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

.form-grid label {
    display: block;
    min-width: 0;
    font-size: .875rem;
    font-weight: 700;
}

.form-grid label span { color: var(--muted); font-size: .8125rem; font-weight: 500; }
.form-wide { grid-column: 1 / -1; }

.form-grid input, .form-grid textarea {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    margin-top: .3rem;
    padding: .55rem .7rem;
    border: 1px solid #7e9286;
    border-radius: .45rem;
    background: #f7faf6;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 400;
}

.form-grid textarea { min-height: 6.6rem; resize: vertical; }
.form-grid textarea::placeholder { color: #64746a; font-size: .875rem; }

.form-actions {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem 1rem;
    margin-top: 1rem;
}

.form-feedback { color: var(--green); font-size: .875rem; font-weight: 650; }
.form-feedback:empty { position: absolute; }
.form-feedback[data-state="error"] { color: #a22727; }

.site-footer { border-top: 1px solid var(--line); background: #eef3ec; }

.footer-inner { min-height: 5.75rem; padding-block: 1rem; }

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem 1.1rem;
}

.site-footer p { color: var(--muted); font-size: .8125rem; white-space: nowrap; }

@media (max-width: 68rem) {
    .hero-inner { gap: 1.8rem; }
    .workspace-stage { padding: 1rem; }
    .queue-list li { align-items: flex-start; }
    .section-intro { gap: 1rem 3rem; }
    .customer-top, .intake-preview { padding: .65rem; }
}

@media (max-width: 55rem) {
    .shell { width: min(var(--shell), calc(100% - 3rem)); }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.25rem;
        padding-block: 4rem 3rem;
    }

    .hero-copy { max-width: 35rem; }
    .hero-break { display: none; }
    h1 { text-wrap: wrap; }
    .hero-figure { width: min(100%, 37rem); }
    .workspace-stage { padding: clamp(1rem, 4vw, 2.2rem); }
    .workspace-body { padding: 1rem; }
    .workspace-heading h2 { font-size: 1.5rem; }
    .workspace-metrics dd { font-size: 1.75rem; }

    .section-intro, .capabilities, .story-inner, .contact-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    .section-intro > p, .story-copy, .contact-copy > p { max-width: 38rem; }
    .site-footer nav { justify-content: center; }
}

@media (max-width: 43rem) {
    .shell { width: calc(100% - 2.25rem); }
    .header-inner { flex-wrap: wrap; min-height: 4.25rem; gap: 0; }

    html[data-menu-ready] .menu-toggle {
        display: inline-flex;
        min-height: 2.5rem;
        padding: .45rem .7rem;
        font-size: .875rem;
    }

    .site-nav {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-bottom: .9rem;
    }

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

    .site-nav > a:not(.button) { padding: .65rem 0; }
    .site-nav > .button { align-self: flex-start; margin-top: .35rem; }
    .hero-inner { padding-top: 3.15rem; }
    .hero-break { display: initial; }
    h1 { max-width: 32rem; font-size: clamp(2.65rem, 12.3vw, 4rem); }
    .hero-intro { margin-top: 1rem; }
    .hero-actions { margin-top: 1.3rem; }
    .input-inner { display: grid; }
    .approach-grid, .example-grid { grid-template-columns: minmax(0, 1fr); }
    .example-feature { grid-row: auto; }

    .footer-inner { flex-wrap: wrap; gap: .85rem 1rem; }
    .site-footer nav { order: 1; width: 100%; justify-content: flex-start; }
}

@media (max-width: 32rem) {
    .workspace-stage { padding: .55rem; border-radius: .85rem; }
    .workspace-bar { padding: .55rem .65rem; }
    .workspace-body { padding: .7rem; }
    .workspace-metrics div { padding: .55rem .45rem; }
    .workspace-period { white-space: nowrap; }
    .workspace-heading h2 { font-size: 1.22rem; }
    .workspace-panels { grid-template-columns: minmax(0, 1fr); }
    .chart-bars { height: 2.9rem; }
    .queue-list li { align-items: center; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 23rem) {
    .hero-actions > .button { width: 100%; }
    .workspace-heading { align-items: start; }
    .workspace-period { white-space: normal; }
    .customer-top, .intake-preview { grid-template-columns: auto minmax(0, 1fr); }
    .customer-top .status, .intake-preview .status { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button, .menu-toggle { transition: none; }
}
