:root {
    --ink: #111111;
    --muted: #5a5a56;
    --paper: #f3f1ec;
    --paper-deep: #e7e3da;
    --line: #d4cfc4;
    --copper: #d85a30;
    --white: #fffcf7;
    --font-sans: "IBM Plex Sans", "Segoe UI", sans-serif;
    --font-display: "Source Serif 4", Georgia, serif;
    --max: 1120px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 12% -10%, rgba(216, 90, 48, 0.12), transparent 55%),
        radial-gradient(900px 500px at 90% 8%, rgba(17, 17, 17, 0.06), transparent 50%),
        linear-gradient(180deg, #efebe3 0%, var(--paper) 28%, #f6f4ef 100%);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

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

.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(20px, 4vw, 48px);
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-brand img {
    width: 48px;
    height: 38px;
    object-fit: contain;
}

.site-nav nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.5vw, 28px);
    font-size: 0.92rem;
    color: var(--muted);
}

.site-nav nav a:hover {
    color: var(--ink);
}

.nav-cta {
    color: var(--ink) !important;
    font-weight: 600;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--copper);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: calc(100vh - 68px);
    max-width: none;
    align-items: stretch;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(40px, 8vh, 96px) clamp(24px, 5vw, 72px) clamp(48px, 8vh, 96px);
    max-width: 640px;
}

.hero-brand {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.4rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.hero h1 {
    margin: 0 0 18px;
    max-width: 16ch;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    font-weight: 550;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-lede {
    margin: 0 0 28px;
    max-width: 38ch;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    background: var(--ink);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 2px;
    transition: transform 0.25s var(--ease), background 0.2s ease;
}

.btn-primary:hover {
    background: var(--copper);
    transform: translateY(-1px);
}

.btn-ghost {
    font-weight: 500;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    padding-bottom: 2px;
}

.btn-ghost:hover {
    color: var(--ink);
    border-color: var(--ink);
}

.hero-visual {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background:
        linear-gradient(135deg, #1a1a1a 0%, #2a2420 48%, #3a2a22 100%);
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 20%, rgba(216, 90, 48, 0.35), transparent 42%),
        repeating-linear-gradient(
            -18deg,
            transparent 0 14px,
            rgba(255, 252, 247, 0.03) 14px 15px
        );
    pointer-events: none;
}

.hero-plane {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 5vw, 56px);
}

.transcript {
    width: min(100%, 440px);
    max-height: min(78vh, 560px);
    overflow: auto;
    color: #f4efe8;
    font-size: 0.92rem;
    line-height: 1.5;
    scrollbar-width: thin;
    scrollbar-color: rgba(244, 239, 232, 0.25) transparent;
}

.t-msg {
    display: grid;
    gap: 12px;
    align-items: start;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(14px);
}

.t-msg.t-iq {
    grid-template-columns: 34px minmax(0, 1fr);
}

.t-msg.t-user {
    grid-template-columns: minmax(0, 1fr) 34px;
    justify-content: end;
}

.t-msg.t-user .t-bubble {
    justify-self: end;
    text-align: right;
    color: rgba(244, 239, 232, 0.78);
}

.t-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.t-avatar-iq {
    background: #fff;
    border: 1px solid #d9dce2;
    overflow: hidden;
}

.t-avatar-iq img {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

.t-avatar-user {
    background: var(--copper);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.t-bubble {
    padding: 2px 0;
}

.t-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(244, 239, 232, 0.18);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    color: rgba(244, 239, 232, 0.78);
    opacity: 0;
    transform: translateY(14px);
}

.transcript.is-live .reveal {
    animation: rise-in 0.7s var(--ease) forwards;
    animation-delay: calc(var(--d, 0) * 0.22s + 0.15s);
}

@keyframes rise-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(72px, 12vh, 120px) clamp(24px, 5vw, 48px);
}

.section-kicker {
    margin: 0 0 14px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--copper);
}

.section h2 {
    margin: 0 0 18px;
    max-width: 18ch;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.4vw, 2.55rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.section-lede {
    margin: 0 0 40px;
    max-width: 48ch;
    color: var(--muted);
    font-size: 1.08rem;
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.feature-list li {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: 20px 40px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.feature-list strong {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.feature-list span {
    color: var(--muted);
}

.section-method {
    background:
        linear-gradient(180deg, transparent, rgba(231, 227, 218, 0.65) 8%, rgba(231, 227, 218, 0.65) 92%, transparent);
    max-width: none;
    padding-left: max(clamp(24px, 5vw, 48px), calc((100% - var(--max)) / 2 + clamp(24px, 5vw, 48px)));
    padding-right: max(clamp(24px, 5vw, 48px), calc((100% - var(--max)) / 2 + clamp(24px, 5vw, 48px)));
}

.method-stack {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 720px;
}

.method-stack li {
    display: flex;
    gap: 18px;
    align-items: baseline;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
}

.method-stack span {
    flex: 0 0 2.2rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--copper);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 36px;
    max-width: 900px;
}

.trust-grid p {
    margin: 0;
    color: var(--muted);
}

.trust-grid strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
}

.section-close {
    text-align: left;
    padding-bottom: clamp(88px, 14vh, 140px);
}

.section-close .section-lede {
    margin-bottom: 28px;
}

.collaborate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    align-items: center;
}

.interest-card {
    max-width: 640px;
    margin-top: 8px;
    padding: 28px clamp(20px, 3vw, 32px);
    background: color-mix(in srgb, var(--white) 88%, var(--paper-deep));
    border: 1px solid var(--line);
    border-left: 3px solid var(--copper);
}

.interest-form {
    margin: 0;
}

.interest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}

.interest-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--muted);
}

.interest-field em {
    font-style: normal;
    font-weight: 400;
    opacity: 0.75;
}

.interest-field-full {
    grid-column: 1 / -1;
}

.interest-field input,
.interest-field textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 400;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.interest-field input:focus,
.interest-field textarea:focus {
    outline: none;
    border-color: var(--copper);
    box-shadow: 0 0 0 3px rgba(216, 90, 48, 0.15);
}

.interest-field textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.45;
}

.interest-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.interest-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 22px;
}

.interest-actions .btn-primary {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.interest-actions .btn-primary:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.interest-alt {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.interest-error {
    margin: 14px 0 0;
    color: #9b2c1a;
    font-size: 0.9rem;
}

.interest-thanks {
    padding: 8px 0 4px;
}

.interest-thanks-title {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink);
}

.interest-thanks p:last-child {
    margin: 0;
    color: var(--muted);
    max-width: 42ch;
}

.site-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px clamp(24px, 5vw, 48px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

.foot-mail {
    color: var(--ink);
    font-weight: 600;
    border-bottom: 1px solid var(--copper);
    margin-left: 4px;
}

.foot-mail:hover {
    color: var(--copper);
}

.foot-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 600;
}

.foot-brand img {
    width: 28px;
    height: 28px;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-copy {
        max-width: none;
        padding-top: 48px;
        padding-bottom: 40px;
    }

    .hero-visual {
        min-height: 460px;
        order: -1;
    }

    .feature-list li {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (max-width: 640px) {
    .site-nav nav a:not(.nav-cta) {
        display: none;
    }

    .hero-brand {
        font-size: clamp(2.4rem, 12vw, 3.2rem);
    }

    .hero-visual {
        min-height: 340px;
    }

    .interest-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .transcript .reveal,
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
}
