:root {
    --ink: #13242f;
    --ink-soft: #243846;
    --text: #1a2c36;
    --muted: #3d5160;
    --paper: #f4efe7;
    --paper-2: #e7dfd2;
    --cream: #fbf8f3;
    --copper: #c4622d;
    --copper-deep: #8a3d16;
    --sage: #1d5c4c;
    --sage-deep: #12382f;
    --line: rgba(19, 36, 47, 0.14);
    --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --sans: "Segoe UI", Candara, Calibri, "Helvetica Neue", Arial, sans-serif;
    --mono: Consolas, "Cascadia Mono", "Segoe UI Mono", ui-monospace, monospace;
    --shadow: 0 24px 50px rgba(19, 36, 47, 0.08);
    --radius: 18px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    background: var(--cream);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    overflow-x: clip;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, p { overflow-wrap: break-word; }

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.05rem, 4.6vw, 4.15rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 2.4vw, 2.15rem); }
h3 { font-size: 1.28rem; }

p { margin: 0 0 0.9rem; }
a { color: var(--copper-deep); text-underline-offset: 0.16em; }
a:hover { color: var(--ink); }

:focus-visible {
    outline: 3px solid var(--copper);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -4rem;
    background: var(--ink);
    color: var(--cream);
    padding: 0.6rem 0.9rem;
    z-index: 80;
}
.skip-link:focus { top: 0.75rem; color: var(--cream); }

.wrap {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

.visually-hidden,
.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(251, 248, 243, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 4.25rem;
    min-width: 0;
}

.brand { display: flex; align-items: center; min-width: 0; }
.brand img { display: block; width: 148px; height: auto; }

.nav-toggle {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    background: var(--cream);
    color: var(--ink);
    border-radius: 999px;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 1rem;
    height: 2px;
    background: var(--ink);
    position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.site-nav ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

.site-nav a {
    display: inline-block;
    color: var(--ink);
    text-decoration: none;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    font-size: 0.95rem;
}
.site-nav a[aria-current="page"] {
    background: var(--ink);
    color: var(--cream);
}
.site-nav a:hover { background: var(--paper-2); color: var(--ink); }
.site-nav a[aria-current="page"]:hover { background: var(--ink-soft); color: var(--cream); }

.context-bar {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.context-bar__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    min-height: 2.4rem;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}
.context-bar a { color: var(--muted); text-decoration: none; }
.context-bar a:hover { color: var(--ink); }

.kicker {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--copper-deep);
    margin-bottom: 0.8rem;
}

.lede {
    font-size: 1.12rem;
    max-width: 42rem;
    color: var(--ink-soft);
}

.button,
button,
.cookie-actions a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--copper-deep);
    background: var(--copper-deep);
    color: #fff8f2;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
.button:hover,
button:hover,
.cookie-actions a.button:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.button--ghost,
.cookie-actions a.button--ghost {
    background: transparent;
    color: var(--ink);
    border-color: rgba(19, 36, 47, 0.28);
}
.button-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; max-width: 100%; }
.button-row > * { min-width: 0; max-width: 100%; }

.opening-wrap {
    background-color: var(--paper);
    background-image:
        radial-gradient(ellipse 42% 36% at 92% 8%, rgba(196, 98, 45, 0.18), transparent 70%),
        radial-gradient(ellipse 36% 40% at 0% 90%, rgba(29, 92, 76, 0.14), transparent 72%),
        linear-gradient(rgba(19, 36, 47, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(19, 36, 47, 0.045) 1px, transparent 1px);
    background-size: auto, auto, 28px 28px, 28px 28px;
}

.opening {
    display: grid;
    gap: 1.75rem;
    padding: 1.75rem 0 2.5rem;
}
.opening > * { min-width: 0; }

.flow-card {
    background: rgba(251, 248, 243, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 1rem 1rem 0.8rem;
    backdrop-filter: blur(10px);
}
.flow-card svg { display: block; width: 100%; height: auto; }
.flow-card figcaption {
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: 0.35rem;
}
.flow-stroke {
    stroke-dasharray: 7 9;
    animation: drift 22s linear infinite;
}
@keyframes drift { to { stroke-dashoffset: -220; } }

.friction {
    background: linear-gradient(155deg, #14382f 0%, #13242f 58%, #1b3342 100%);
    color: #f6f1e8;
    padding: 3.2rem 0;
}
.friction h2,
.friction h3 { color: #f6f1e8; }
.friction .kicker { color: #f0c2a8; }
.friction-intro { max-width: 38rem; color: rgba(246, 241, 232, 0.86); }
.friction-rail {
    display: grid;
    gap: 1.2rem;
    margin-top: 1.8rem;
}
.friction-rail article h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.friction-rail p { margin: 0; color: rgba(246, 241, 232, 0.84); }

.section { padding: 3.2rem 0; }
.section--tight { padding-top: 0; }
.stack-gap { margin-top: 1rem; }
.section-head { max-width: 40rem; margin-bottom: 1.4rem; }

.ledger-row {
    display: grid;
    gap: 0.45rem 1rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--line);
}
.ledger-row:last-child { border-bottom: 1px solid var(--line); }
.idx {
    font-family: var(--mono);
    color: var(--copper-deep);
    font-size: 0.86rem;
}
.ledger-row p { margin: 0; max-width: 42rem; }
.scope-note { color: var(--muted); }

.principles {
    background: var(--paper);
    padding: 3.2rem 0;
}
.principle-layout {
    display: grid;
    gap: 1rem;
}
.statement {
    margin: 0;
    padding: 1.15rem 0;
    border-top: 1px solid var(--line);
}
.statement strong {
    display: block;
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.path-rail {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}
.path-step {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem 1rem 0.9rem;
}
.path-step span {
    font-family: var(--mono);
    color: var(--sage);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.split-close {
    display: grid;
    gap: 1.5rem;
    background: var(--paper-2);
    border-radius: 24px;
    padding: 1.4rem;
}
.split-close address { font-style: normal; line-height: 1.7; }

.page-intro { padding: 2.2rem 0 0.4rem; }
.page-intro .lede { margin-bottom: 0; }

.about-grid,
.contact-grid,
.offer-layout {
    display: grid;
    gap: 1.5rem;
}

.side-panel,
.glass-note {
    background: rgba(244, 239, 231, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 1.15rem 1.2rem;
}
.side-panel h2 { font-size: 1.35rem; }
.side-panel ul,
.fit-list,
.plain-list { margin: 0; padding-left: 1.1rem; }
.side-panel li,
.fit-list li,
.plain-list li { margin: 0.35rem 0; }

.method-line { display: grid; gap: 0; margin-top: 0.5rem; }
.method-step {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 0 1rem 1rem;
    border-left: 2px solid var(--copper);
}
.method-step h3 { margin-bottom: 0.2rem; }

.jump-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}
.jump-list a {
    display: inline-block;
    text-decoration: none;
    background: var(--paper);
    color: var(--ink);
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
}
.jump-list a:hover { background: var(--ink); color: var(--cream); }

.service-block { padding: 2.2rem 0; border-top: 1px solid var(--line); }
.service-block:nth-child(even) {
    background: linear-gradient(180deg, rgba(231, 223, 210, 0.45), transparent 80%);
}
.service-head {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.glyph {
    width: 52px;
    height: 52px;
}
.service-grid {
    display: grid;
    gap: 1rem;
}
.service-grid section,
.stage-grid article {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem;
}
.service-grid h3,
.stage-grid h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.fit-note {
    background: #e7f3ee;
    border-radius: 16px;
    padding: 1rem;
    color: #14382f;
}

.journey { display: grid; gap: 1rem; }
.stage {
    display: grid;
    gap: 0.7rem;
    padding-bottom: 0.4rem;
}
.stage-no {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--copper-deep);
    line-height: 1;
}

.offer-card {
    border-radius: 22px;
    padding: 1.2rem;
    background: var(--cream);
    border: 1px solid var(--line);
}
.offer-card--lead {
    background:
        radial-gradient(circle at 100% 0%, rgba(196, 98, 45, 0.16), transparent 42%),
        var(--ink);
    color: #f6f1e8;
    border: 0;
}
.offer-card--lead h2,
.offer-card--lead h3 { color: #f6f1e8; }
.offer-card--lead p,
.offer-card--lead li { color: rgba(246, 241, 232, 0.9); }
.bounds {
    display: grid;
    gap: 1rem;
}
.bounds article {
    border-radius: 18px;
    padding: 1rem 1.1rem;
}
.bounds .in { background: #e7f3ee; }
.bounds .out { background: #f8ece4; }

.faq-group { margin: 1.4rem 0 2rem; }
.faq-item h3 { margin: 0; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item__q {
    width: 100%;
    text-align: left;
    background: transparent;
    color: var(--ink);
    border: 0;
    border-radius: 0;
    min-height: 3.2rem;
    padding: 0.85rem 0;
    font-family: var(--serif);
    font-size: 1.18rem;
    justify-content: space-between;
}
.faq-item__q:hover { background: transparent; color: var(--copper-deep); }
html.js .faq-item__a { display: none; }
html.js .faq-item.is-open .faq-item__a { display: block; }
.faq-item__a { padding: 0 0 1rem; max-width: 46rem; }

.contact-form,
.prose {
    max-width: 46rem;
}
.field { margin-bottom: 0.9rem; }
.field label,
.field legend { display: block; font-weight: 600; margin-bottom: 0.3rem; color: var(--ink); }
input, select, textarea {
    width: 100%;
    border: 1px solid rgba(19, 36, 47, 0.22);
    background: #fff;
    color: var(--ink);
    border-radius: 12px;
    padding: 0.7rem 0.75rem;
    font: inherit;
}
textarea { min-height: 9rem; resize: vertical; }
.field-error { color: #8a2a16; font-size: 0.92rem; margin: 0.25rem 0 0; }
.alert {
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}
.alert--bad { background: #f8e6e0; color: #6d2616; }
.alert--good { background: #e5f3ec; color: #14382f; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; }
.check input { width: auto; margin-top: 0.3rem; }

.prose h2 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.15rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--line); }
th { font-size: 0.86rem; }

.missing {
    min-height: 52vh;
    display: grid;
    align-content: center;
    padding: 3rem 0 4rem;
}

.site-footer {
    background: var(--ink);
    color: rgba(246, 241, 232, 0.86);
    padding: 2.6rem 0 1.4rem;
    margin-top: 1rem;
}
.site-footer h2 { color: #f6f1e8; font-size: 1.05rem; }
.site-footer a { color: #f3d2c0; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.28rem 0; }
.footer-grid { display: grid; gap: 1.4rem; }
.footer-name {
    font-family: var(--serif);
    font-size: 1.4rem;
    color: #f6f1e8;
    margin-bottom: 0.4rem;
}
.footer-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.6rem;
    border-top: 1px solid rgba(246, 241, 232, 0.14);
    margin-top: 1.5rem;
    padding-top: 0.9rem;
    font-size: 0.92rem;
}
address { font-style: normal; }

.cookie-dock {
    background: rgba(251, 248, 243, 0.94);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(19, 36, 47, 0.06);
    padding: 0.9rem 0;
}
html.js .cookie-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    max-height: 72vh;
    overflow: auto;
    backdrop-filter: blur(12px);
}
html.consent-set .cookie-dock { display: none; }
html.show-cookie body { padding-bottom: 15rem; }
html.show-cookie .opening { scroll-margin-bottom: 2rem; }
.cookie-dock h2 { font-size: 1.25rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; max-width: 100%; }
.cookie-actions > * { min-width: 0; max-width: 100%; }
.check-row { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0.7rem 0; cursor: pointer; }
.check-row input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.2rem;
    flex: 0 0 auto;
    accent-color: var(--copper-deep);
    cursor: pointer;
}
.check-row input[type="checkbox"]:disabled { cursor: not-allowed; }

@media (min-width: 1041px) {
    .brand img { width: 220px; }
}

@media (max-width: 480px) {
    .button-row { flex-direction: column; align-items: stretch; }
    .cookie-dock { padding: 0.65rem 0; }
    .cookie-dock p { font-size: 0.95rem; }
    .cookie-actions { flex-direction: column; align-items: stretch; }
    html.show-cookie body { padding-bottom: 16.5rem; }
}

@media (min-width: 720px) {
    .wrap { width: min(1120px, calc(100% - 3rem)); }
    .friction-rail { grid-template-columns: 1fr 1fr; }
    .principle-layout { grid-template-columns: 1fr 1fr; }
    .statement--wide { grid-column: 1 / -1; }
    .service-grid,
    .stage-grid,
    .bounds { grid-template-columns: 1fr 1fr; }
    .about-grid,
    .contact-grid { grid-template-columns: 1.3fr 0.7fr; align-items: start; }
    .footer-grid { grid-template-columns: 1.3fr 1fr 0.8fr 0.8fr; }
    html.show-cookie body { padding-bottom: 8.5rem; }
}

@media (min-width: 900px) {
    .opening {
        grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
        align-items: end;
        min-height: calc(100vh - 4.6rem);
        padding: 2.2rem 0 3.5rem;
    }
    html.show-cookie .opening { padding-bottom: 7.5rem; }
    .flow-card { align-self: start; margin-top: 1.5rem; }
    .friction-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
    .friction-rail article {
        padding-right: 1.1rem;
        margin-right: 1.1rem;
        border-right: 1px solid rgba(246, 241, 232, 0.18);
    }
    .friction-rail article:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
    .ledger-row { grid-template-columns: 4.2rem minmax(0, 1.4fr) minmax(180px, 0.7fr); align-items: start; }
    .service-head { grid-template-columns: auto 1fr; align-items: center; }
    .service-grid { grid-template-columns: 1.1fr 0.9fr 0.9fr; }
    .stage { grid-template-columns: 4.5rem minmax(0, 1fr); }
    .offer-layout { grid-template-columns: 0.9fr 1.1fr; }
    .split-close { grid-template-columns: 1fr 1fr; padding: 2rem; align-items: center; }
    .path-rail { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1040px) {
    .brand img { width: min(148px, 46vw); }
    html.js .nav-toggle { display: inline-flex; }
    html.js .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--cream);
        border-bottom: 1px solid var(--line);
        padding: 0.4rem 1rem 0.9rem;
    }
    html.js.nav-open .site-nav { display: block; }
    html.js .site-nav ol { display: grid; }
    html.js .site-nav a { padding: 0.7rem 0.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .flow-stroke { animation: none; }
}
