:root {
    --paper: #e8e2d6;
    --paper-2: #f6f1e8;
    --ink: #17181b;
    --muted: #5c574f;
    --line: rgba(23, 24, 27, 0.14);
    --ember: #d84a2f;
    --ember-dark: #a4331d;
    --moss: #1e6a45;
    --night: #161815;
    --night-2: #23261f;
    --shadow: 0 24px 60px rgba(40, 28, 16, 0.12);
    --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
    --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(216, 74, 47, 0.16), transparent 60%),
        radial-gradient(700px 380px at -10% 20%, rgba(30, 106, 69, 0.08), transparent 55%),
        var(--paper);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #f0c7bc; }

.skip {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--ink);
    color: white;
    padding: 8px 12px;
    z-index: 20;
}
.skip:focus { top: 12px; }

.nav {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 7vw;
    background: rgba(232, 226, 214, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.logo {
    font-family: var(--serif);
    font-weight: 560;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    text-decoration: none;
}
.logo span { color: var(--ember); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}
.nav-links a {
    text-decoration: none;
    font-size: 0.95rem;
}
.nav-links a:hover { color: var(--ember-dark); }
.nav-cta {
    text-decoration: none;
    background: var(--ink);
    color: var(--paper-2);
    padding: 10px 16px;
    border-radius: 999px;
}
.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 999px;
    padding: 8px 12px;
}

.wrap { width: min(1180px, calc(100% - 10vw)); margin: 0 auto; }
.hero { padding: 42px 0 20px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: end;
}
.kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin: 0 0 18px;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--moss);
    box-shadow: 0 0 0 6px rgba(30, 106, 69, 0.12);
}
h1, h2 {
    font-family: var(--serif);
    font-weight: 560;
    letter-spacing: -0.045em;
    line-height: 0.95;
}
h1 {
    font-size: clamp(3.1rem, 6vw, 5.5rem);
    line-height: 0.92;
    margin: 0 0 18px;
}
h2 {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 540;
    margin: 0 0 14px;
}
h1 em {
    font-style: italic;
    font-weight: 500;
    color: var(--ember-dark);
}
.lede {
    font-size: 1.15rem;
    max-width: 38rem;
    color: #2c2a26;
    margin: 0 0 26px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 12px 18px;
    background: var(--ember);
    color: white;
}
.btn:hover { background: var(--ember-dark); }
.btn.ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.small { padding: 8px 14px; font-size: 0.92rem; }

.stage-card {
    background: var(--night);
    color: #f3efe6;
    border-radius: 18px;
    padding: 12px 12px 16px;
    box-shadow: var(--shadow);
}
.browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px 10px;
    color: rgba(243, 239, 230, 0.72);
    font-size: 0.82rem;
}
.browser-bar i, .lights i {
    width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #5a534c;
}
.lights { display: flex; gap: 6px; }
.lights i:nth-child(1) { background: #e26b5a; }
.lights i:nth-child(2) { background: #e2b15a; }
.lights i:nth-child(3) { background: #7dbe78; }
.url {
    flex: 1;
    background: #2a2c28;
    border-radius: 999px;
    padding: 4px 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.shot {
    aspect-ratio: 16 / 10;
    width: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 10px;
    background: #2a2c28;
}
.stage-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: end;
    padding: 12px 6px 0;
}
.stage-meta strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 540; }
.stage-meta span { color: rgba(243, 239, 230, 0.7); font-size: 0.88rem; }
.stage-link { color: #f3efe6; font-size: 0.92rem; }

.marquee {
    margin: 34px 0 10px;
    overflow: hidden;
    border-block: 1px solid var(--line);
    padding: 12px 0;
}
.marquee-track {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: slide 48s linear infinite;
    font-family: var(--serif);
    font-size: 1.15rem;
}
.marquee b { font-weight: 500; }
.marquee span { color: var(--muted); }
@keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

section { padding: 72px 0; }
.section-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 28px;
}
.section-head h2, .legal h1, .advisor h2, .contact h2 {
    font-family: var(--serif);
    font-weight: 540;
    letter-spacing: -0.04em;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 0.95;
    margin: 0;
}
.index {
    font-variant-numeric: tabular-nums;
    color: var(--ember);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
}
.section-head p { max-width: 34rem; margin: 0; color: var(--muted); }

.services { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; }
.service-list { border-top: 1px solid var(--line); }
.service {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 12px;
    align-items: baseline;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.service b { font-size: 1.15rem; font-weight: 560; }
.service p { margin: 4px 0 0; color: var(--muted); }
.service em { font-style: normal; color: var(--ember-dark); font-size: 0.92rem; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filters button, .choices button {
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
}
.filters button[aria-pressed="true"], .choices button:hover, .choices button:focus-visible {
    background: var(--ink);
    color: var(--paper-2);
    border-color: var(--ink);
}

.work-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 28px;
    align-items: stretch;
}
.work-copy h3 {
    font-family: var(--serif);
    font-size: 2.4rem;
    line-height: 1;
    margin: 8px 0 12px;
    letter-spacing: -0.04em;
}
.work-copy p { margin-top: 0; }
.work-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.rail {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 16px 2px 8px;
    margin-top: 8px;
}
.rail button {
    flex: 0 0 168px;
    scroll-snap-align: start;
    border: 2px solid transparent;
    padding: 0;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
}
.rail button[aria-current="true"] { border-color: var(--ember); }
.rail img {
    height: 104px;
    width: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 10px;
    background: #ddd;
}
.rail small { display: block; padding: 6px 4px 2px; color: var(--muted); }

.advisor {
    background: var(--night);
    color: #f4efe6;
    border-radius: 28px;
    padding: 36px;
}
.advisor .section-head p, .advisor .muted { color: rgba(244, 239, 230, 0.72); }
.advisor .btn.ghost { color: #f4efe6; border-color: rgba(244, 239, 230, 0.28); }
.advisor .btn.ghost:hover { border-color: #f4efe6; color: #f4efe6; }
.chat {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    margin-top: 10px;
}
.thread { display: flex; flex-direction: column; gap: 12px; min-height: 220px; }
.bubble {
    max-width: 38rem;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--night-2);
}
.bubble.user {
    align-self: flex-end;
    background: var(--ember);
    color: white;
}
.choices { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.choices button {
    text-align: left;
    border-color: rgba(244, 239, 230, 0.2);
    color: #f4efe6;
    padding: 14px 16px;
    border-radius: 14px;
}
.choices button[aria-pressed="true"], .advisor .choices button:hover {
    background: #f4efe6;
    color: var(--night);
    border-color: #f4efe6;
}
.result-card {
    border: 1px solid rgba(244, 239, 230, 0.16);
    border-radius: 16px;
    padding: 16px;
}
.result-card h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 1.8rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
    padding-top: 14px;
    border-top: 2px solid var(--ink);
}
.step strong { display: block; font-family: var(--serif); font-size: 1.45rem; margin: 8px 0; }

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 36px; }
.contact-card, .legal-card {
    background: var(--paper-2);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow);
}
label { display: block; font-size: 0.92rem; margin: 12px 0 6px; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: white;
    border-radius: 12px;
    padding: 12px 12px;
}
textarea { min-height: 110px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; }
.check input { width: auto; margin-top: 4px; }
.form-error { color: var(--ember-dark); margin: 4px 0 0; font-size: 0.88rem; }
.sent {
    background: #e5f3ea;
    border: 1px solid rgba(30, 106, 69, 0.25);
    color: #145233;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
}
.honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}
.contact-aside a { color: var(--ember-dark); }
.facts { list-style: none; padding: 0; margin: 18px 0 0; }
.facts li { padding: 8px 0; border-bottom: 1px solid var(--line); }

footer {
    padding: 28px 7vw 40px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}
footer a { color: var(--muted); }

dialog {
    width: min(980px, calc(100% - 28px));
    border: 0;
    border-radius: 18px;
    padding: 0;
    background: var(--night);
    color: #f4efe6;
}
dialog::backdrop { background: rgba(20, 16, 12, 0.72); }
.dialog-body { padding: 14px; }
.dialog-body header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 6px 6px 12px;
}
.dialog-body h3 { margin: 0; font-family: var(--serif); font-size: 1.7rem; }
.dialog-body img { border-radius: 12px; width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.close-dialog {
    border: 0;
    background: transparent;
    color: #f4efe6;
    cursor: pointer;
    font-size: 1.4rem;
}

.empty {
    padding: 24px;
    border: 1px dashed var(--line);
    border-radius: 16px;
}

@media (max-width: 980px) {
    .hero-grid, .services, .work-layout, .chat, .contact-grid, .steps { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 7vw 20px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: inline-flex; }
    .advisor { padding: 22px; }
    h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
}

@media (max-width: 640px) {
    .grid-2, .steps, .service { grid-template-columns: 1fr; }
    .service em { grid-column: 1; }
    footer { flex-direction: column; }
}

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