:root {
    --ink: #12100e;
    --paper: #efe8dc;
    --cream: #f7f2e9;
    --deep: #17211d;
    --olive: #2f4a3e;
    --sage: #9aaf9a;
    --muted: #5c564c;
    --line: #d8cebe;
    --clay: #c45c26;
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Outfit", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: color-mix(in srgb, var(--clay) 35%, transparent); }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.55;
}
body::before {
    content: "";
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 1;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.03em; }
h1 em, .lead em { font-style: italic; font-weight: 400; color: var(--olive); }
p { margin: 0; }
ul { margin: 0; padding-left: 1.15rem; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--cream) 88%, transparent);
    backdrop-filter: blur(16px);
    border-top: 3px solid var(--clay);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: -0.03em;
}
.brand em { font-style: italic; color: var(--olive); font-weight: 400; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.2rem 1.15rem; font-size: 0.82rem; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a.is-active { box-shadow: inset 0 -2px 0 var(--clay); }
.nav-toggle { display: none; background: none; border: 0; font: inherit; font-weight: 500; }
.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
}

.hero {
    position: relative;
    display: grid;
    gap: 2.5rem;
    padding: 4.5rem 0 3.2rem;
    align-items: center;
}
.hero h1 {
    font-size: clamp(2.35rem, 5.4vw, 4.5rem);
    margin: 0.9rem 0 0;
    max-width: 11ch;
    text-wrap: balance;
}
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--olive);
}
.kicker::before {
    content: "";
    width: 1.6rem;
    height: 1px;
    background: var(--clay);
}
.lead { max-width: 36rem; margin-top: 1.4rem; font-size: 1.12rem; line-height: 1.7; color: var(--muted); }
.hero-visual {
    position: relative;
    min-height: 24rem;
    border-radius: 2rem 0.4rem 2rem 0.4rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 28% 18%, #d7c4a0 0%, transparent 42%),
        radial-gradient(circle at 82% 78%, #c45c2655 0%, transparent 46%),
        linear-gradient(160deg, #2f4a3e 0%, #1a2a24 52%, #c45c26 150%);
}
.hero-visual svg { position: absolute; inset: 7%; width: 86%; height: 86%; color: #efe8dc; }
.spine {
    position: absolute;
    left: 1.05rem;
    bottom: 1.2rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.28em;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #efe8dc;
    opacity: 0.72;
}

.tape {
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: var(--cream);
    padding: 0.85rem 0;
}
.tape-track {
    display: flex;
    gap: 2.4rem;
    width: max-content;
    animation: tape 42s linear infinite;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--olive);
}
.tape-track span::after {
    content: " · ";
    font-style: normal;
    color: var(--clay);
    margin-left: 2.4rem;
}
@keyframes tape {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.page-hero { padding: 4rem 0 2rem; }
.page-hero h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); margin: 0.7rem 0 0; max-width: 16ch; }

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.8rem;
}
.fact {
    border: 1px solid var(--line);
    background: var(--cream);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--olive);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.25rem;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: var(--cream);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--olive); }
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); background: transparent; }
.btn-on-dark {
    background: var(--cream);
    color: var(--ink);
}
.btn-on-dark:hover { background: #fff; }

.dark {
    background: var(--deep);
    color: var(--cream);
}
.dark .muted, .dark .lead { color: rgba(247, 242, 233, 0.68); }
.dark .kicker { color: var(--sage); }
.dark .kicker::before { background: var(--clay); }
.dark .card {
    background: color-mix(in srgb, white 6%, transparent);
    border-color: color-mix(in srgb, white 12%, transparent);
    color: var(--cream);
}
.dark a.card:hover { border-color: var(--clay); }
.dark h1 em, .dark .lead em { color: var(--sage); }

.section { padding: 4.5rem 0; }
.grid2, .grid3 { display: grid; gap: 1.15rem; }
.card {
    position: relative;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    padding: 1.7rem 1.55rem 1.55rem;
    text-decoration: none;
    display: block;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--clay);
    opacity: 0;
    transition: opacity 0.2s ease;
}
a.card:hover,
a.card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px -30px #12100e;
    border-color: color-mix(in srgb, var(--clay) 45%, var(--line));
}
a.card:hover::before { opacity: 1; }
.card h2, .card h3 { margin: 0 0 0.55rem; font-size: 1.55rem; }
.idx {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    color: var(--clay);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.muted { color: var(--muted); font-size: 0.97rem; line-height: 1.7; }
.prose { max-width: 42rem; }
.prose p + p, .prose ul + p, .prose p + ul, .prose h2 + p { margin-top: 1rem; }
.prose h2 { font-size: 1.85rem; margin: 2.4rem 0 0.75rem; }
.prose a { color: var(--olive); }

.split {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}
.panel {
    position: relative;
    min-height: 18rem;
    border-radius: 2rem 0.4rem 2rem 0.4rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 70% 20%, #c45c2633, transparent 40%),
        linear-gradient(165deg, #2f4a3e, #17211d);
}
.panel svg {
    position: absolute;
    inset: 10%;
    width: 80%;
    height: 80%;
    color: #efe8dc;
    opacity: 0.88;
}
.panel-clay {
    background:
        radial-gradient(circle at 30% 80%, #c45c2644, transparent 42%),
        linear-gradient(165deg, #3a2a22, #17211d);
}

.rows { margin-top: 1.6rem; }
.row {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}
.list-plain { list-style: none; padding: 0; }
.list-plain li { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.list-plain strong { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 0.2rem; }

.steps { counter-reset: step; display: grid; gap: 0; padding: 0; margin: 0; }
.steps li {
    list-style: none;
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}
.steps li::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    font-family: var(--serif);
    font-style: italic;
    color: var(--clay);
}

.contact-grid { display: grid; gap: 2.5rem; }
form {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 1.6rem;
    padding: 1.6rem;
    display: grid;
    gap: 1rem;
}
label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
input, textarea, select {
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    font: inherit;
    background: var(--paper);
}
input:focus, textarea:focus, select:focus {
    outline: 2px solid color-mix(in srgb, var(--clay) 50%, transparent);
    border-color: var(--clay);
}
.flash { background: #2f4a3e18; color: var(--olive); padding: 0.7rem 0.85rem; border-radius: 0.9rem; font-size: 0.9rem; }
.error { color: var(--clay); font-size: 0.85rem; margin-top: 0.25rem; }

.legal { max-width: 44rem; margin: 0 auto; padding: 4.5rem 1.5rem; color: var(--muted); font-size: 0.98rem; line-height: 1.75; }
.legal h1 { color: var(--ink); font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 0.4rem; }
.legal h2 { color: var(--ink); font-size: 1.45rem; margin: 2.1rem 0 0.55rem; }
.legal p + p { margin-top: 1rem; }
.legal ul { margin: 0.75rem 0 0; }
.updated { font-size: 0.82rem; margin-bottom: 1.6rem; letter-spacing: 0.04em; }

.site-footer { background: var(--deep); color: var(--cream); }
.footer-word {
    max-width: 72rem;
    margin: 0 auto;
    padding: 3rem 1.5rem 0;
    font-family: var(--serif);
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 0.8;
    letter-spacing: -0.06em;
    color: color-mix(in srgb, var(--cream) 18%, transparent);
}
.footer-grid {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 2.8rem;
    display: grid;
    gap: 2rem;
}
.footer-grid a { display: block; color: rgba(247, 242, 233, 0.78); text-decoration: none; margin-top: 0.4rem; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--cream); }
.foot-title { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.55rem; }
.dim { color: rgba(247, 242, 233, 0.62); font-size: 0.9rem; }
.small { color: rgba(247, 242, 233, 0.4); margin-top: 1rem; font-size: 0.78rem; }

@media (min-width: 52rem) {
    .hero, .split { grid-template-columns: 1.15fr 0.85fr; }
    .grid2 { grid-template-columns: 1fr 1fr; }
    .grid3 { grid-template-columns: 1fr 1fr 1fr; }
    .contact-grid { grid-template-columns: 0.9fr 1.1fr; }
    .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
}
@media (max-width: 51.9rem) {
    .nav { display: none; }
    .nav-toggle { display: block; }
    .hero-visual { min-height: 16rem; }
    .tape-track { animation-duration: 28s; }
}
@media (prefers-reduced-motion: reduce) {
    .tape-track { animation: none; }
    a.card:hover { transform: none; }
}
