@font-face {
    font-family: "Bodoni Moda";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/bodoni-moda.ttf") format("truetype");
}

:root {
    --paper: #f5f3ef;
    --ink: #242520;
    --muted: #66685f;
    --line: #d3d2ca;
    --accent: #455446;
    --dark: #252b26;
    --serif: "Bodoni Moda", Didot, "Bodoni MT", Georgia, serif;
    --sans: Arial, Helvetica, sans-serif;
    --gutter: clamp(24px, 5.2vw, 88px);
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 28px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
}

button, input, textarea {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

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

button {
    color: inherit;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid #8b653e;
    outline-offset: 5px;
}

::selection {
    background: #d1d7c8;
}

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

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -.025em;
    font-optical-sizing: auto;
}

h2 {
    font-size: clamp(36px, 4vw, 58px);
}

em {
    font-weight: 400;
    font-style: normal;
}

p {
    max-width: 58ch;
}

img {
    display: block;
    max-width: 100%;
}

.wrap {
    width: 100%;
    max-width: 1760px;
    margin: auto;
    padding-inline: var(--gutter);
}

.eyebrow {
    font-size: 12px;
    letter-spacing: .11em;
    line-height: 1.5;
    font-weight: 400;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 32px;
}

.brand {
    display: block;
    position: relative;
    overflow: hidden;
    mix-blend-mode: multiply;
}

.brand img {
    position: absolute;
    max-width: none;
    width: 128%;
    height: auto;
    left: -16%;
    top: -141%;
}

.full-brand {
    width: 222px;
    aspect-ratio: 3.06;
}

.compact-brand {
    display: none;
}

.header nav {
    display: flex;
    align-items: center;
    gap: 42px;
    font-size: 14px;
}

.header nav a {
    position: relative;
    padding-block: 9px;
}

.header nav a:after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}

.header nav a:hover:after {
    transform: scaleX(1);
}

.nav-contact span {
    margin-left: 22px;
}

.hero {
    padding-top: 30px;
}

.hero-eyebrow {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 19px;
}

.hero h1 {
    font-size: clamp(54px, 7vw, 104px);
    line-height: 1.1;
    margin: 37px 0 37px;
    letter-spacing: -.025em;
}

.hero h1 em {
    color: var(--accent);
}

.hero-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 48px;
}

.hero-bottom p {
    font-size: 16px;
    line-height: 1.7;
    max-width: 470px;
}

.circle-link {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}

.circle {
    width: 52px;
    height: 52px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 24px;
    transition: background .3s, color .3s, transform .4s var(--ease);
}

.circle-link:hover .circle {
    background: var(--ink);
    color: var(--paper);
    transform: rotate(45deg);
}

.hero-foot {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-block: 18px;
    font-size: 11px;
    letter-spacing: .1em;
}

.hero-foot a span {
    margin-left: 18px;
}

.problem-image {
    position: relative;
    overflow: hidden;
    height: clamp(440px, 48vw, 750px);
    background: #dedbd4;
}

.problem-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
}

.image-caption {
    position: absolute;
    top: 30px;
    left: var(--gutter);
    font-size: 12px;
    letter-spacing: .12em;
}

.image-word {
    position: absolute;
    left: var(--gutter);
    bottom: 50px;
    font: clamp(52px, 6vw, 90px)/.92 var(--serif);
    letter-spacing: -.06em;
}

.image-word em {
    color: var(--accent);
}

.problem-copy {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 8%;
    padding-block: 100px;
}

.problem-copy h2 {
    font-size: clamp(35px, 3.6vw, 54px);
    margin-bottom: 30px;
}

.problem-copy p {
    font-size: 17px;
    max-width: 500px;
    color: var(--muted);
    margin-top: 20px;
}

.section-top {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid var(--line);
    padding-top: 24px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
    margin: 57px 0 58px;
}

.section-heading p {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 5px;
}

.workbench {
    display: grid;
    grid-template-columns: 30% 70%;
    border-block: 1px solid var(--line);
}

.case-selector {
    padding-right: 40px;
}

.case-selector button {
    display: flex;
    align-items: start;
    gap: 18px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    text-align: left;
    padding: 30px 0;
    width: 100%;
    opacity: .55;
    transition: opacity .3s;
}

.case-selector button:last-child {
    border: 0;
}

.case-selector button[aria-selected=true], .case-selector button:hover {
    opacity: 1;
}

.case-index {
    font-size: 12px;
    padding-top: 5px;
}

.case-selector strong {
    font: 36px/1.1 var(--serif);
    letter-spacing: -.04em;
    display: block;
}

.case-selector small {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 9px;
}

.case-arrow {
    margin-left: auto;
    opacity: 0;
    font-size: 24px;
}

.case-selector button[aria-selected=true] .case-arrow {
    opacity: 1;
}

.demo-panel {
    background: #eeede7;
    border-left: 1px solid var(--line);
    padding: 32px 36px;
    min-width: 0;
}

.demo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.demo-badge {
    font-size: 10px;
    letter-spacing: .09em;
    border: 1px solid #c1c4b9;
    padding: 4px 8px;
}

.demo-panel > p {
    font-size: 15px;
    line-height: 1.6;
    margin-top: 18px;
    max-width: 500px;
    min-height: 48px;
}

.workflow {
    display: grid;
    grid-template-columns: 1fr 42px 1fr;
    align-items: center;
    gap: 10px;
    margin: 30px 0 35px;
    min-height: 205px;
}

.input-stack > .eyebrow {
    display: block;
    margin-bottom: 14px;
}

.input-stack #input-items {
    display: grid;
    gap: 7px;
}

.input-stack #input-items > span {
    background: var(--paper);
    padding: 13px 12px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border: 1px solid #dadbd2;
}

.input-stack small {
    font-size: 10px;
    color: var(--muted);
}

.flow-line {
    text-align: center;
    font-size: 25px;
    color: var(--muted);
}

.output {
    padding: 23px 18px;
    min-height: 185px;
    border: 1px dashed #bcbfb4;
    transition: background .5s, border-color .5s;
}

.output p {
    font-size: 16px;
    line-height: 1.55;
    margin: 20px 0 14px;
}

.output-note {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
    display: block;
}

.output.complete {
    background: #e1e6d9;
    border: 1px solid #a9b89b;
}

.output.complete .eyebrow {
    color: #3d5435;
}

.output.complete p {
    font-family: var(--serif);
    font-size: 25px;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.output.complete .output-note {
    color: #46563d;
}

.demo-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.mode-toggle {
    display: flex;
    border: 1px solid #b8bcb0;
    padding: 3px;
    flex-shrink: 0;
}

.mode-toggle button {
    border: 0;
    background: none;
    font-size: 12px;
    padding: 9px 13px;
}

.mode-toggle button[aria-pressed=true] {
    background: var(--dark);
    color: #f4f5ef;
}

.mode-toggle span {
    margin-left: 10px;
}

.status {
    font-size: 11px;
    color: var(--muted);
    text-align: right;
}

.case-context {
    display: flex;
    justify-content: space-between;
    gap: 70px;
    padding-block: 29px;
}

.case-context > p {
    font-size: 15px;
    max-width: 620px;
    color: var(--muted);
}

.case-context > span {
    font-size: 13px;
    flex-shrink: 0;
    line-height: 1.7;
}

.case-context strong {
    font-weight: 400;
}

.demo-disclaimer {
    font-size: 12px;
    color: var(--muted);
    max-width: 85ch;
    margin-bottom: 95px;
}

.result {
    background: var(--dark);
    color: #eceee4;
    padding-block: 48px 64px;
}

.result .section-top {
    border-color: #555e51;
}

.result h2 {
    margin: 67px 0 60px;
    max-width: 1000px;
}

.result em {
    color: #b9c6a8;
}

.time-comparison {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    align-items: center;
    gap: 50px;
}

.time {
    font-family: var(--serif);
    font-size: clamp(74px, 9vw, 130px);
    line-height: 1.2;
    letter-spacing: -.065em;
    white-space: nowrap;
}

.time span {
    font-size: clamp(28px, 3.2vw, 46px);
    letter-spacing: -.05em;
}

.before {
    color: #a1a89a;
}

.time-arrow {
    font-family: var(--serif);
    font-size: 72px;
    color: #b9c6a8;
}

.time-bar {
    height: 2px;
    background: #b9c6a8;
    width: 100%;
    margin-top: 14px;
}

.before-bar {
    background: #76806e;
}

.after-bar {
    width: 2%;
    min-width: 8px;
}

.result-bottom {
    display: flex;
    justify-content: space-between;
    gap: 65px;
    margin-top: 50px;
}

.result-bottom p {
    font-size: 17px;
}

.result-bottom .small {
    font-size: 12px;
    max-width: 365px;
    color: #b8c0b1;
    line-height: 1.8;
}

.approach {
    padding-block: 100px;
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 8%;
    padding-top: 60px;
}

.approach-intro {
    font: 30px/1.3 var(--serif);
    letter-spacing: -.03em;
    margin-bottom: 23px;
}

.approach-grid > div > p:not(.approach-intro) {
    color: var(--muted);
    font-size: 16px;
}

.steps {
    margin: 40px 0;
}

.steps > div {
    display: grid;
    grid-template-columns: 25px 115px 1fr;
    gap: 18px;
    border-top: 1px solid var(--line);
    padding: 22px 0;
    align-items: start;
}

.steps span {
    font-size: 11px;
    color: var(--muted);
    padding-top: 4px;
}

.steps h3 {
    font-size: 26px;
    letter-spacing: -.04em;
}

.steps p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

.approach-end {
    font-size: 14px !important;
    border-left: 1px solid #909783;
    padding-left: 20px;
}

.contact {
    background: #e3e5da;
    padding-block: 60px 75px;
}

.contact-layout {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
    margin-top: 34px;
}

.contact h2 {
    font-size: clamp(38px, 4.5vw, 66px);
}

.contact p {
    margin-top: 27px;
    font-size: 16px;
}

.contact-button {
    border: 0;
    border-bottom: 1px solid var(--ink);
    background: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 275px;
    flex-shrink: 0;
    padding: 0 0 20px;
    font-size: 19px;
    margin-bottom: 8px;
}

.contact-button > span:last-child {
    font-size: 44px;
    line-height: 1;
    transition: transform .4s;
}

.contact-button:hover > span:last-child {
    transform: translate(5px, -5px);
}

footer {
    padding-top: 36px !important;
}

.footer-top, .footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

.footer-top {
    font-size: 13px;
}

.footer-brand {
    width: min(100%, 1100px);
    aspect-ratio: 3.06;
    margin: 75px auto;
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-block: 20px;
    font-size: 10px;
    letter-spacing: .1em;
}

.skip {
    position: fixed;
    z-index: 10;
    top: 10px;
    left: 10px;
    background: var(--ink);
    color: white;
    padding: 10px;
    transform: translateY(-150%);
}

.skip:focus {
    transform: none;
}

dialog {
    background: var(--paper);
    color: var(--ink);
    border: 0;
    width: min(600px, calc(100% - 32px));
    padding: 50px;
    max-height: 90svh;
}

dialog::backdrop {
    background: #171b17a8;
    backdrop-filter: blur(5px);
}

dialog h2 {
    font-size: 49px;
    margin: 24px 0 30px;
}

.close-dialog {
    position: absolute;
    right: 18px;
    top: 12px;
    background: none;
    border: 0;
    font-size: 32px;
    width: 38px;
    height: 38px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 13px;
    margin: 16px 0 7px;
}

input, textarea {
    border: 0;
    border-bottom: 1px solid #a4aa9b;
    background: #edeee6;
    border-radius: 0;
    padding: 12px;
    width: 100%;
    color: var(--ink);
    font-size: 16px;
}

textarea {
    resize: vertical;
}

input::placeholder, textarea::placeholder {
    color: #777b70;
}

.form-note {
    font-size: 12px;
    color: var(--muted);
    margin: 24px 0;
}

.form-submit {
    border: 0;
    background: var(--dark);
    color: var(--paper);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 14px;
}

.form-submit:hover {
    background: #43503e;
}

#prepared > p {
    font-size: 15px;
    margin-block: 20px;
}

#prepared textarea {
    margin: 12px 0 20px;
}

#prepared[hidden] {
    display: none;
}

.revealed {
    animation: reveal .8s var(--ease) both;
}

@keyframes reveal {
    from {
        opacity: .25;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.output.changing {
    animation: reveal .45s var(--ease);
}

@media (min-width: 1500px) {
    .hero {
        padding-top: 36px;
    }
    .hero h1 {
        margin-top: 44px;
        margin-bottom: 44px;
    }
    .hero-bottom {
        padding-bottom: 58px;
    }
}

@media (max-width: 1100px) {
    .hero h1 {
        font-size: 7.3vw;
    }
    .hero-bottom p {
        font-size: 14px;
    }
    .workbench {
        grid-template-columns: 27% 73%;
    }
    .case-selector {
        padding-right: 22px;
    }
    .case-selector button {
        gap: 10px;
    }
    .case-selector strong {
        font-size: 31px;
    }
    .case-selector small {
        font-size: 12px;
    }
    .case-arrow {
        display: none;
    }
    .demo-panel {
        padding: 25px;
    }
    .demo-controls {
        align-items: start;
        flex-direction: column;
    }
    .status {
        text-align: left;
    }
    .case-context {
        gap: 30px;
    }
    .case-context > span {
        flex-shrink: 1;
    }
    .time-comparison {
        gap: 25px;
        grid-template-columns: 1fr 70px 1fr;
    }
    .time-arrow {
        font-size: 60px;
    }
    .steps > div {
        grid-template-columns: 20px 1fr;
    }
    .steps p {
        grid-column: 2;
    }
    .approach-grid {
        gap: 7%;
    }
    .contact-button {
        width: 210px;
    }
}

@media (max-width: 700px) {
    .header {
        padding-block: 23px;
    }
    .full-brand {
        display: none;
    }
    .compact-brand {
        display: block;
        width: 51px;
        aspect-ratio: 1.36;
    }
    .compact-brand img {
        width: 185%;
        left: -42%;
        top: -75.5%;
    }
    .header nav {
        gap: 23px;
        font-size: 12px;
    }
    .header nav a:nth-child(2) {
        display: none;
    }
    .nav-contact span {
        margin-left: 6px;
    }
    .hero {
        padding-top: 26px;
    }
    .hero-eyebrow {
        font-size: 10px;
        padding-top: 15px;
    }
    .hero-eyebrow > span:last-child {
        display: none;
    }
    .hero h1 {
        font-size: clamp(39px, 9.3vw, 59px);
        line-height: 1.14;
        margin: 29px 0 25px;
        letter-spacing: -.025em;
    }
    .hero-bottom {
        flex-direction: column-reverse;
        align-items: start;
        gap: 29px;
        padding-bottom: 43px;
    }
    .hero-bottom p {
        font-size: 15px;
        line-height: 1.7;
        max-width: 33ch;
    }
    .desktop {
        display: none;
    }
    .circle-link {
        font-size: 13px;
        gap: 14px;
    }
    .circle {
        width: 43px;
        height: 43px;
        font-size: 23px;
    }
    .hero-foot {
        font-size: 9px;
        gap: 12px;
        padding-block: 15px;
    }
    .hero-foot > span:first-child {
        display: none;
    }
    .problem-image {
        height: 490px;
    }
    .problem-image > img {
        object-position: 61% center;
    }
    .image-caption {
        top: 22px;
        font-size: 10px;
    }
    .image-word {
        font-size: 60px;
        bottom: 32px;
    }
    .problem-copy {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-block: 57px;
    }
    .problem-copy h2 {
        font-size: 36px;
        margin-bottom: 25px;
    }
    .problem-copy p {
        font-size: 15px;
    }
    .section-top {
        padding-top: 20px;
    }
    .section-top > .eyebrow:last-child {
        display: none;
    }
    .eyebrow {
        font-size: 11px;
    }
    .section-heading {
        display: block;
        margin: 35px 0;
    }
    .section-heading h2 {
        font-size: 37px;
    }
    .section-heading p {
        font-size: 15px;
        margin-top: 25px;
    }
    .workbench {
        display: block;
    }
    .case-selector {
        display: flex;
        padding-right: 0;
        gap: 0;
    }
    .case-selector button {
        flex: 1;
        display: block;
        padding: 20px 9px 22px;
        border-bottom: 2px solid transparent;
    }
    .case-selector button:last-child {
        border-bottom: 2px solid transparent;
    }
    .case-selector button[aria-selected=true] {
        border-bottom-color: var(--ink);
    }
    .case-index {
        font-size: 10px;
        display: block;
        margin-bottom: 6px;
    }
    .case-selector strong {
        font-size: 23px;
        letter-spacing: -.045em;
    }
    .case-selector small {
        display: none;
    }
    .demo-panel {
        border-left: 0;
        padding: 25px 17px;
        margin-inline: -7px;
    }
    .demo-badge {
        font-size: 9px;
    }
    .demo-panel > p {
        font-size: 14px;
        min-height: 66px;
    }
    .workflow {
        grid-template-columns: 1fr;
        gap: 13px;
        margin: 24px 0;
        min-height: 0;
    }
    .input-stack #input-items {
        gap: 5px;
    }
    .input-stack #input-items > span {
        font-size: 12px;
        padding: 11px 12px;
    }
    .input-stack > .eyebrow {
        margin-bottom: 10px;
    }
    .flow-line {
        transform: rotate(90deg);
        font-size: 23px;
        line-height: 1.1;
    }
    .output {
        min-height: 142px;
        padding: 17px;
    }
    .output p {
        font-size: 15px;
        margin: 12px 0;
    }
    .output.complete p {
        font-size: 24px;
    }
    .demo-controls {
        gap: 14px;
        padding-top: 19px;
    }
    .mode-toggle {
        width: 100%;
    }
    .mode-toggle button {
        flex: 1;
        padding: 10px 6px;
        font-size: 12px;
    }
    .status {
        font-size: 11px;
    }
    .case-context {
        display: block;
        padding: 25px 0 20px;
    }
    .case-context > p {
        font-size: 14px;
    }
    .case-context > span {
        display: none;
    }
    .demo-disclaimer {
        font-size: 11px;
        margin-bottom: 60px;
    }
    .result {
        padding-block: 32px 40px;
    }
    .result h2 {
        font-size: 35px;
        margin: 39px 0;
    }
    .time-comparison {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        position: relative;
    }
    .time-comparison .eyebrow {
        font-size: 9px;
        letter-spacing: .05em;
        min-height: 28px;
        display: block;
    }
    .time {
        font-size: 66px;
        line-height: 1.1;
        white-space: normal;
        margin-top: 10px;
    }
    .time span {
        font-size: 29px;
        display: block;
        line-height: 1.3;
    }
    .time-arrow {
        position: absolute;
        left: 43%;
        top: 48px;
        font-size: 34px;
    }
    .time-bar {
        margin-top: 19px;
    }
    .result-bottom {
        display: block;
        margin-top: 33px;
    }
    .result-bottom p {
        font-size: 15px;
    }
    .result-bottom .small {
        font-size: 11px;
        margin-top: 27px;
        max-width: 100%;
    }
    .approach {
        padding-block: 60px;
    }
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 33px;
        padding-top: 35px;
    }
    .approach-grid h2 {
        font-size: 39px;
    }
    .approach-intro {
        font-size: 27px;
    }
    .approach-grid > div > p:not(.approach-intro) {
        font-size: 15px;
    }
    .steps {
        margin: 30px 0;
    }
    .steps > div {
        grid-template-columns: 20px 88px 1fr;
        gap: 12px;
        padding: 20px 0;
    }
    .steps h3 {
        font-size: 24px;
    }
    .steps p {
        grid-column: auto;
        font-size: 13px;
    }
    .contact {
        padding-block: 40px 47px;
    }
    .contact-layout {
        display: block;
        margin-top: 29px;
    }
    .contact h2 {
        font-size: 37px;
        letter-spacing: -.025em;
    }
    .contact p {
        font-size: 14px;
        max-width: 30ch;
    }
    .contact-button {
        margin-top: 38px;
        width: 100%;
        font-size: 18px;
        padding-bottom: 16px;
    }
    .contact-button > span:last-child {
        font-size: 32px;
    }
    .footer-top {
        font-size: 11px;
        gap: 15px;
    }
    .footer-top p {
        max-width: 23ch;
    }
    .footer-top a {
        white-space: nowrap;
    }
    .footer-brand {
        margin-block: 46px;
    }
    .footer-bottom {
        font-size: 8px;
        letter-spacing: .07em;
        gap: 10px;
    }
    dialog {
        padding: 35px 24px;
    }
    dialog h2 {
        font-size: 42px;
    }
    .form-note {
        font-size: 11px;
    }
}

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