:root {
    --paper: #f4f0ea;
    --paper-2: #fffdf9;
    --ink: #171311;
    --ink-soft: #3c352f;
    --muted: #5c554d;
    --line: rgba(23, 19, 17, 0.14);
    --red: #e10600;
    --red-deep: #a70d12;
    --red-ink: #8d120e;
    --charcoal: #1b1715;
    --charcoal-2: #100e0c;
    --shadow: 0 28px 60px rgba(23, 19, 17, 0.14);
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
    --display: "Chakra Petch", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --header: 5.5rem;
}

@font-face {
    font-family: "Chakra Petch";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/fonts/chakra-petch-600.woff2") format("woff2");
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

a:hover {
    color: var(--red-ink);
}

:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: 0;
    transform: translateY(-120%);
    background: var(--ink);
    color: var(--paper);
    padding: 0.75rem 1rem;
    z-index: 40;
}

.skip-link:focus {
    transform: none;
}

.shell {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

.narrow {
    width: min(740px, calc(100% - 2rem));
}

h1,
h2,
h3 {
    font-family: var(--display);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.5rem, 7vw, 5.4rem);
}

h2 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.shell > h2 {
    margin-bottom: 1.5rem;
}

h3 {
    margin: 0 0 0.85rem;
    font-size: 1.55rem;
}

p {
    margin: 0;
}

p:not(.kicker) + p:not(.kicker) {
    margin-top: 1rem;
}

.kicker {
    margin: 0 0 0.75rem;
    color: var(--red-ink);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lede {
    max-width: 42rem;
    color: var(--ink-soft);
    font-size: 1.125rem;
}

.section-note {
    max-width: 46rem;
    margin: 1rem 0 0;
    color: var(--muted);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #f4f0ea;
    border-bottom: 1px solid transparent;
}

.is-scrolled .site-header {
    border-bottom-color: var(--line);
    background: #fffdf9;
}

.header-bar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header);
    gap: 0.75rem;
}

.brand {
    display: block;
    line-height: 0;
}

.brand img {
    width: auto;
    height: 4.4rem;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 48px;
    min-width: 48px;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--paper-2);
    color: var(--ink);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
    display: block;
    width: 1rem;
    height: 2px;
    background: var(--ink);
    content: "";
}

.nav-toggle-lines {
    position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
    position: absolute;
    left: 0;
}

.nav-toggle-lines::before {
    top: -6px;
}

.nav-toggle-lines::after {
    top: 6px;
}

.site-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    text-decoration: none;
    font-weight: 650;
}

.site-nav a[aria-current="page"] {
    color: var(--red-ink);
}

.js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 1rem 1.25rem;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    visibility: hidden;
    opacity: 0;
    transform: translate3d(0, -12px, 0);
    transition: opacity 280ms cubic-bezier(0.16, 1, 0.3, 1), transform 280ms cubic-bezier(0.16, 1, 0.3, 1), visibility 280ms;
}

.js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    border: 0;
    border-radius: 0;
    background: var(--red-deep);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover {
    color: #fff;
    transform: translateY(-1px);
}

.button-dark {
    background: var(--ink);
}

    .button-small {
    min-height: 48px;
    padding-inline: 1rem;
}

.text-link {
    font-weight: 700;
    color: var(--red-ink);
}

.hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 100vh;
    margin-top: calc(var(--header) * -1);
    padding: calc(var(--header) + 1.5rem) 0 1.5rem;
    background: #100e0c;
    color: #f4f0ea;
}

.hero h1 {
    font-size: clamp(1.85rem, 4vw, 3.35rem);
}

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 14, 12, 0.62), rgba(16, 14, 12, 0.48) 42%, rgba(16, 14, 12, 0.68));
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 1;
    margin: 0;
    text-align: left;
}

.hero .lede,
.hero-copy p {
    margin-inline: 0;
    color: #f6f1ea;
}

.hero .kicker {
    color: #f6d2ce;
}

.hero .text-link {
    color: #fff;
}

.hero-copy > * {
    animation: rise 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy > *:nth-child(1) { animation-delay: 360ms; }
.hero-copy > *:nth-child(2) { animation-delay: 460ms; }
.hero-copy > *:nth-child(3) { animation-delay: 560ms; }
.hero-copy > *:nth-child(4) { animation-delay: 660ms; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem 1.25rem;
    margin-top: 1.5rem;
}

.form.hero-form {
    gap: 0.85rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #f4f0ea;
}

.hero-form-title {
    margin: 0;
    color: #f6d2ce;
    font-family: var(--display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.form.hero-form .field {
    gap: 0.2rem;
}

.form.hero-form .field label {
    color: rgba(244, 240, 234, 0.72);
    font-family: var(--display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form.hero-form .field input,
.form.hero-form .field textarea {
    min-height: 48px;
    padding: 0.45rem 0;
    border: 0;
    border-bottom: 1px solid rgba(244, 240, 234, 0.38);
    border-radius: 0;
    background: transparent;
    color: #fff;
}

.form.hero-form .field textarea {
    min-height: 4.75rem;
    resize: vertical;
}

.form.hero-form .field input:focus,
.form.hero-form .field textarea:focus {
    outline: none;
    border-bottom-color: #fff;
}

.form.hero-form .field input:focus-visible,
.form.hero-form .field textarea:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.form.hero-form .button {
    width: 100%;
    margin-top: 0.35rem;
    border: 1px solid var(--red);
    border-radius: 0;
    background: transparent;
    color: #fff;
}

.form.hero-form .button:hover {
    background: var(--red);
    color: #fff;
}

.form.hero-form .form-note {
    color: rgba(244, 240, 234, 0.72);
    font-size: 0.82rem;
}

.form.hero-form .form-note a {
    color: #fff;
}

.stage {
    position: relative;
    min-height: 18rem;
    margin-top: 2rem;
}

.stage-glow {
    position: absolute;
    inset: 18% 8% auto auto;
    width: 46%;
    aspect-ratio: 1;
    border-radius: 0;
    background: radial-gradient(circle, rgba(225, 6, 0, 0.35), transparent 68%);
}

.browser {
    position: absolute;
    inset: 6% 2% 8% 8%;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: clip-in 780ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.browser-bar {
    display: flex;
    gap: 0.4rem;
    padding: 0.8rem 1rem;
    background: #efeae3;
}

.browser-bar span {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 0;
    background: #d7cfc6;
}

.browser-bar span:first-child {
    background: var(--red);
}

.browser-body {
    height: calc(100% - 2.7rem);
    padding: 0.85rem 1rem 0;
    overflow: hidden;
}

.browser-scroll {
    animation: browser-pan 14s linear infinite;
}

.browser-page + .browser-page {
    margin-top: 1.25rem;
}

.skeleton {
    height: 0.7rem;
    margin-bottom: 0.7rem;
    border-radius: 0;
    background: #efe8df;
}

.skeleton-kicker {
    width: 28%;
    background: rgba(167, 13, 18, 0.25);
}

.skeleton-title {
    width: 74%;
    height: 1.4rem;
}

.skeleton-line.short {
    width: 48%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-top: 1rem;
}

.skeleton-grid span {
    display: block;
    aspect-ratio: 1;
    border-radius: 0;
    background: linear-gradient(160deg, #f6f1ea, #e7ddd2);
}

.stage-mark {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 26rem);
    margin-left: auto;
    filter: drop-shadow(0 22px 28px rgba(23, 19, 17, 0.18));
    animation: rise 900ms cubic-bezier(0.16, 1, 0.3, 1) 160ms both;
}

.section,
.page-hero,
.quote-band,
.cta-band {
    scroll-margin-top: 6rem;
}

.section {
    padding: 4rem 0;
}

.section-paper {
    background: #ebe4da;
}

.section-head h2,
.a11y-panel h2,
.cookie-banner h2 {
    margin-bottom: 0;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.75rem;
}

.card-grid,
.step-grid,
.plan-grid,
.work-grid,
.stack-grid {
    display: grid;
    gap: 1rem;
}

.info-card,
.story-card,
.work-card,
.plan,
.step-grid li,
.deliverables {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 1.25rem;
}

.info-card,
.story-card,
.plan {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.info-card .text-link,
.story-card .text-link,
.plan .button {
    margin-top: auto;
}

.info-card h2,
.info-card h3,
.story-card h2,
.story-card h3,
.work-card h3,
.plan h3,
.step-grid h3,
.deliverables h2 {
    margin-bottom: 1rem;
}

.info-card h3 a,
.story-card h2 a,
.story-card h3 a {
    text-decoration: none;
}

.info-card p,
.story-card p,
.work-card p,
.plan li,
.step-grid p {
    color: var(--ink-soft);
}

.info-card .text-link,
.story-card .text-link {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
}

.approach {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.approach-visual {
    background:
        radial-gradient(circle at 70% 30%, rgba(225, 6, 0, 0.18), transparent 42%),
        var(--paper-2);
    border-radius: 0;
    padding: 0.75rem;
}

.site-loop {
    display: block;
    width: 100%;
    height: auto;
}

.site-loop-page {
    transform-box: view-box;
    transform-origin: 0 0;
    animation: site-scroll 12s linear infinite;
}

.code-build {
    display: block;
    width: 100%;
    height: auto;
}

.code-build .build-step {
    transform-box: fill-box;
    transform-origin: 0 50%;
    animation: build-step 9s ease-in-out infinite;
}

.code-build .d1 { animation-delay: 0.1s; }
.code-build .d2 { animation-delay: 0.45s; }
.code-build .d3 { animation-delay: 0.8s; }
.code-build .d4 { animation-delay: 1.15s; }
.code-build .d5 { animation-delay: 1.5s; }
.code-build .d6 { animation-delay: 1.9s; }
.code-build .d7 { animation-delay: 2.3s; }
.code-build .d8 { animation-delay: 2.7s; }

.code-build .caret {
    animation: caret-blink 1.1s steps(1) infinite;
}

@keyframes build-step {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    14%, 86% {
        opacity: 1;
        transform: translateY(0);
    }
    96%, 100% {
        opacity: 0;
        transform: translateY(0);
    }
}

@keyframes caret-blink {
    0%, 45% {
        opacity: 1;
    }
    46%, 100% {
        opacity: 0;
    }
}

@keyframes browser-pan {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(0, -50%, 0);
    }
}

@keyframes site-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(0, -316px, 0);
    }
}

.checklist {
    margin: 1.25rem 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    position: relative;
    margin: 0.7rem 0;
    padding-left: 1.8rem;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 0.9rem;
    height: 0.55rem;
    border-left: 3px solid var(--red-deep);
    border-bottom: 3px solid var(--red-deep);
    transform: rotate(-45deg);
}

.quote-band {
    background: var(--charcoal);
    color: var(--paper);
    padding: 4rem 0;
}

.quote-grid {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.quote-visual {
    width: 100%;
}

.quote-visual .stage {
    min-height: 0;
    margin-top: 0;
}

.quote-visual .browser {
    inset: 34% 0 18% 8%;
}

.quote-band blockquote {
    margin: 0;
}

.quote-band p {
    font-family: var(--display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.quote-band figcaption {
    margin-top: 1rem;
    color: #f6d2ce;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.step-grid {
    list-style: none;
    margin: 0;
    padding: 0;
}

.step-number {
    margin-bottom: 0.8rem;
    color: var(--red-deep);
    font-family: var(--display);
    font-size: 2rem;
}

.plan-grid {
    margin-top: 1.5rem;
}

.plan ul {
    margin: 1rem 0 1.25rem;
    padding-left: 1.1rem;
}

.plan li + li {
    margin-top: 0.45rem;
}

.plan.is-featured {
    background: var(--charcoal);
    color: var(--paper);
    border-color: var(--charcoal);
}

.plan.is-featured .kicker,
.plan.is-featured li {
    color: #f6d2ce;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0;
}

.filters button {
    min-height: 48px;
    padding: 0.4rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.filters button[aria-pressed="true"] {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.work-card .kicker {
    margin-bottom: 0.4rem;
}

.meta {
    margin-bottom: 0.6rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.filter-empty {
    margin-top: 1rem;
}

.faq {
    display: grid;
    gap: 0.75rem;
}

.faq details {
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--paper-2);
    padding: 0.35rem 1.1rem 0.15rem;
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.faq details p {
    margin: 0 0 1rem;
    max-width: 65ch;
}

.plan p {
    margin: 0 0 1rem;
}

.cta-band {
    background:
        linear-gradient(120deg, rgba(225, 6, 0, 0.16), transparent 40%),
        var(--paper-2);
    border-top: 1px solid var(--line);
    padding: 3.5rem 0;
}

.cta-grid {
    display: grid;
    gap: 1.25rem;
    align-items: center;
}

.site-footer {
    background: var(--paper);
}

.footer-intro {
    display: grid;
    gap: 1.25rem;
    align-items: center;
    padding: 2.5rem 0;
}

.brand-footer img {
    height: 6.5rem;
}

.footer-intro h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 0.5rem;
}

.footer-capabilities {
    background: var(--charcoal);
    color: var(--paper);
    padding: 2.5rem 0;
}

.capability-grid {
    display: grid;
    gap: 1.5rem;
}

.footer-capabilities h2 {
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.footer-capabilities h2 a {
    color: inherit;
    text-decoration: none;
}

.footer-capabilities h2 a:hover {
    color: #fff;
}

.footer-capabilities ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-capabilities li {
    padding: 0.35rem 0;
    border-top: 1px solid rgba(244, 240, 234, 0.16);
}

.footer-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    padding: 1.4rem 0;
    background: var(--charcoal-2);
    color: #f4f0ea;
    width: 100%;
    max-width: none;
    padding-inline: 1rem;
}

.footer-base ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-base a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #f4f0ea;
    text-decoration: none;
}

.page-hero {
    padding: 2.5rem 0;
}

.page-hero .lede {
    margin-top: 1rem;
}

.thank-you {
    display: grid;
    align-items: center;
    min-height: calc(100vh - var(--header));
}

.thank-you .shell {
    max-width: 40rem;
}

.thank-you .hero-actions {
    margin-top: 1.75rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.95rem;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
}

.breadcrumbs a {
    color: var(--red-ink);
}

.service-layout,
.contact-layout {
    display: grid;
    gap: 1.5rem;
}

.prose > * + * {
    margin-top: 1rem;
}

.prose + p {
    margin-top: 1.75rem;
}

.prose h2 {
    margin-top: 2rem;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.prose ul {
    margin: 0;
    padding-left: 1.2rem;
}

.prose a {
    color: var(--red-ink);
}

.form {
    display: grid;
    gap: 0.9rem;
    padding: 1.25rem;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 0;
}

.field {
    display: grid;
    gap: 0.35rem;
}

.field label {
    font-weight: 700;
}

.optional {
    color: var(--muted);
    font-weight: 500;
}

.field input:not([type="checkbox"]),
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(23, 19, 17, 0.28);
    border-radius: 0;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.field textarea {
    min-height: 9rem;
    resize: vertical;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: var(--red-deep);
}

.field-error,
.form-error {
    color: var(--red-ink);
    font-weight: 650;
}

.form-status {
    margin: 0;
    padding: 0.8rem 0.9rem;
    border-radius: 0;
    background: #e7f3ea;
}

.form-status-error {
    background: #fdeceb;
    color: var(--red-ink);
}

.form-error {
    background: #fdeceb;
}

.form-note {
    color: var(--muted);
    font-size: 0.95rem;
}

.hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translate3d(0, 28px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes clip-in {
    from {
        clip-path: inset(0 0 100% 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

.js .reveal {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
}

.js .reveal.is-in {
    animation: rise 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.is-leaving main {
    animation: leave 280ms cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes leave {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    to {
        opacity: 0;
        transform: translate3d(0, 16px, 0);
    }
}

@media (min-width: 720px) {
    .shell,
    .narrow {
        width: min(1120px, calc(100% - 4rem));
    }

    .narrow {
        width: min(740px, calc(100% - 4rem));
    }

    .card-grid-2,
    .card-grid-4,
    .work-grid,
    .step-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .approach,
    .quote-grid,
    .cta-grid,
    .service-layout,
    .contact-layout,
    .footer-intro {
        grid-template-columns: 0.9fr 1.1fr;
    }

    .quote-grid {
        grid-template-columns: 1.15fr minmax(16rem, 0.85fr);
    }

    .quote-visual {
        width: min(100%, 28rem);
        justify-self: end;
    }

    .cta-grid,
    .footer-intro {
        grid-template-columns: 1.4fr auto;
    }

    .capability-grid,
    .card-grid-3,
    .plan-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-base {
        padding-inline: max(1rem, calc((100% - 1120px) / 2));
    }
}

@media (min-width: 960px) {
    .hero-layout {
        grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
        gap: 2rem;
    }

    .nav-toggle {
        display: none;
    }

    .header-bar {
        display: grid;
        grid-template-columns: auto 1fr;
    }

    .site-nav,
    .js .site-nav {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 1.25rem;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .site-nav ul {
        flex-direction: row;
        gap: 1.1rem;
    }

    .stage {
        min-height: 32rem;
    }

    .card-grid-4,
    .step-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .card-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-base.shell {
    width: 100%;
    max-width: none;
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    main {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-video {
        display: none;
    }
}

html[data-motion="reduce"] .hero-video {
    display: none;
}

html[data-text="md"] {
    font-size: 112%;
}

html[data-text="lg"] {
    font-size: 125%;
}

html[data-contrast="high"] {
    --paper: #ffffff;
    --paper-2: #ffffff;
    --ink: #000000;
    --ink-soft: #111111;
    --muted: #1a1a1a;
    --red-ink: #7a0000;
}

html[data-links="on"] a:not(.btn):not(.button):not(.nav-link) {
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 0.08em;
}

html[data-motion="reduce"] *,
html[data-motion="reduce"] *::before,
html[data-motion="reduce"] *::after {
    animation: none !important;
    transition: none !important;
}

html[data-motion="reduce"] .reveal,
html[data-motion="reduce"] main {
    opacity: 1 !important;
    transform: none !important;
}

html[data-motion="reduce"] {
    scroll-behavior: auto;
}

.a11y-panel[hidden] {
    display: none !important;
}

.a11y-panel {
    position: fixed;
    z-index: 80;
    left: 1.1rem;
    right: auto;
    bottom: 4.2rem;
    width: min(20rem, calc(100% - 2rem));
    max-height: calc(100dvh - 6rem);
    overflow: auto;
    padding: 1.15rem 2.4rem 1.15rem 1.15rem;
    border-radius: 0;
    color: var(--ink);
    background: rgba(255, 252, 247, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.a11y-panel h2 {
    margin: 0;
    font-family: var(--display);
    font-size: 1.35rem;
    line-height: 1.15;
}

.a11y-panel p {
    margin: 0.55rem 0 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.a11y-close {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.a11y-panel .row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.a11y-text-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-top: 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0;
    background: rgba(23, 19, 17, 0.04);
    border: 1px solid var(--line);
}

.a11y-text-meta {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.a11y-text-meta > span:first-child {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.a11y-text-value {
    font-size: 0.98rem;
    font-weight: 600;
}

.a11y-text-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.a11y-step-btn {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    border-radius: 0;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
}

.a11y-step-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.a11y-panel .btn {
    min-height: 44px;
    padding: 0.65rem 0.9rem;
    border-radius: 0;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fffdf9;
    font: inherit;
    font-size: 0.92rem;
    cursor: pointer;
}

.a11y-panel .btn-ghost {
    background: transparent;
    color: var(--ink);
}

.a11y-panel .a11y-btn.is-active,
.a11y-panel .a11y-btn[aria-pressed="true"] {
    background: var(--red-deep);
    border-color: var(--red-deep);
    color: #fffdf9;
}

html[data-contrast="high"] .a11y-panel .a11y-btn.is-active,
html[data-contrast="high"] .a11y-panel .a11y-btn[aria-pressed="true"] {
    background: #000;
    border-color: #000;
    color: #fff;
}

.a11y-toggle,
.cookie-reopen {
    position: fixed;
    z-index: 70;
    bottom: 1.1rem;
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 0;
    border: 1px solid var(--line);
    background: var(--charcoal);
    color: var(--paper);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.a11y-toggle {
    left: 1.1rem;
}

.cookie-reopen {
    right: 1.1rem;
}

.cookie-banner {
    position: fixed;
    z-index: 80;
    right: 1rem;
    bottom: 4.8rem;
    width: min(24rem, calc(100% - 5.5rem));
    padding: 1.15rem 2.6rem 1.15rem 1.15rem;
    border-radius: 0;
    color: var(--ink);
    background: rgba(255, 252, 247, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.cookie-banner p {
    margin: 0.7rem 0 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.cookie-banner a {
    color: var(--red-ink);
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cookie-banner .btn {
    min-height: 44px;
    padding: 0.65rem 0.9rem;
    border-radius: 0;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fffdf9;
    font: inherit;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
}

.cookie-banner .btn-ghost {
    background: transparent;
    color: var(--ink);
}

.cookie-x {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

html[data-cookie-seen] .cookie-banner,
.cookie-banner[hidden] {
    display: none;
}

#technology-stack .stack-intro {
    max-width: 46rem;
    margin-bottom: 1.75rem;
}

#technology-stack .stack-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 0;
    transition: border-color 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

#technology-stack .stack-card:hover {
    border-color: rgba(167, 13, 18, 0.45);
}

#technology-stack .stack-icon {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1rem;
    border-radius: 0;
    color: var(--red-deep);
    background: rgba(225, 6, 0, 0.08);
}

#technology-stack .stack-card p {
    color: var(--ink-soft);
}

#technology-stack .stack-badges {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0.4rem;
    margin: auto 0 0;
    padding: 1rem 0 0;
    list-style: none;
}

#technology-stack .stack-badges li {
    padding: 0.28rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
}

#technology-stack .stack-close {
    display: grid;
    gap: 1rem;
    justify-items: start;
    max-width: 40rem;
    margin-top: 1.75rem;
}

#technology-stack .stack-close p {
    margin: 0;
    color: var(--ink-soft);
}

@media (min-width: 720px) {
    #technology-stack .stack-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    #technology-stack .stack-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.legal-table-scroll {
    overflow-x: auto;
    margin-top: 1rem;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.prose th,
.prose td {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.desk {
    background: var(--paper);
}

.desk-bar {
    border-bottom: 1px solid var(--line);
    background: var(--paper-2);
}

.desk-bar-inner,
.desk-heading,
.desk-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

.desk-bar-inner,
.desk-heading {
    justify-content: space-between;
}

.desk .brand img {
    height: 3.2rem;
    width: auto;
}

.desk-nav form {
    margin: 0;
}

.desk-narrow {
    max-width: 40rem;
}

.desk-table-scroll {
    overflow-x: auto;
}

.desk-table {
    width: 100%;
    border-collapse: collapse;
}

.desk-table th,
.desk-table td {
    padding: 0.8rem 0.6rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.desk-choices {
    margin: 0;
    padding: 0.85rem 1rem 0.35rem;
    border: 1px solid var(--line);
}

.desk-choices legend {
    padding: 0 0.35rem;
    font-weight: 700;
}

.check {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.65rem;
    margin: 0.55rem 0;
    font-weight: 500;
}

.check input {
    width: 1.15rem;
    height: 1.15rem;
    min-width: 1.15rem;
    min-height: 1.15rem;
    margin: 0.15rem 0 0;
    padding: 0;
    accent-color: var(--red-deep);
}

.desk-entries {
    display: grid;
    gap: 1rem;
}

.desk-entry {
    padding: 1.25rem 0;
    border-top: 1px solid var(--line);
}

.desk-entry h2 {
    margin-bottom: 0.35rem;
}

.desk-message {
    white-space: pre-wrap;
}

.desk-delete {
    margin-top: 1.5rem;
}

.desk-accounts {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.desk-accounts li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
}

.desk-accounts form {
    margin: 0;
}
