:root {
    --ink: #18221d;
    --muted: #5b675f;
    --paper: #fbfaf6;
    --panel: #ffffff;
    --sage: #cfe0d5;
    --leaf: #2f6f4e;
    --leaf-dark: #214f39;
    --gold: #d7a63f;
    --clay: #ba6f4a;
    --line: #dfe5dd;
    --shadow: 0 22px 70px rgba(31, 47, 37, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.topbar,
.mobile-topbar {
    align-items: center;
    background: rgba(251, 250, 246, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(223, 229, 221, 0.9);
    display: flex;
    justify-content: space-between;
    left: 0;
    padding: 16px clamp(20px, 5vw, 72px);
    position: sticky;
    right: 0;
    top: 0;
    z-index: 10;
}

.brand,
.nav-links,
.hero-actions,
.metrics,
.mobile-nav {
    align-items: center;
    display: flex;
}

.brand {
    font-weight: 750;
    gap: 10px;
    letter-spacing: 0;
    text-decoration: none;
}

.brand-mark {
    border-radius: 7px;
    display: inline-grid;
    height: 34px;
    overflow: hidden;
    place-items: center;
    width: 34px;
}

.brand-mark img {
    display: block;
    height: 100%;
    width: 100%;
}

.nav-links {
    gap: 26px;
}

.nav-links a,
.mobile-nav a,
.contact-pill {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 650;
    text-decoration: none;
}

.nav-links a:hover,
.mobile-nav a:hover,
.contact-pill:hover {
    color: var(--leaf);
}

.hero {
    display: grid;
    gap: clamp(32px, 6vw, 84px);
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
    min-height: calc(100vh - 74px);
    padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px) clamp(40px, 6vw, 76px);
}

.hero-copy {
    align-self: center;
    max-width: 770px;
}

.eyebrow {
    color: var(--leaf);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 12px;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(3rem, 6.8vw, 6.8rem);
    letter-spacing: 0;
    line-height: 0.92;
    margin-bottom: 26px;
    max-width: 850px;
}

h2 {
    font-size: clamp(2rem, 4vw, 4.1rem);
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 18px;
}

h3 {
    font-size: clamp(1.28rem, 2.2vw, 1.85rem);
    line-height: 1.16;
    margin-bottom: 14px;
}

.hero-lede,
.section-heading p,
.contact-section h2 + p {
    color: var(--muted);
    font-size: clamp(1.08rem, 1.5vw, 1.35rem);
    max-width: 680px;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 12px;
    margin: 34px 0;
}

.button {
    align-items: center;
    border: 1px solid var(--ink);
    border-radius: 8px;
    display: inline-flex;
    font-weight: 750;
    justify-content: center;
    min-height: 48px;
    padding: 13px 19px;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: var(--ink);
    box-shadow: 0 12px 30px rgba(24, 34, 29, 0.18);
    color: #fff;
}

.button.secondary {
    background: transparent;
    color: var(--ink);
}

.metrics {
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
    gap: 0;
    margin: 34px 0 0;
    padding-top: 20px;
}

.metrics div {
    border-right: 1px solid var(--line);
    min-width: 190px;
    padding: 0 22px 0 0;
    margin-right: 22px;
}

.metrics div:last-child {
    border-right: 0;
}

.metrics dt {
    font-size: 0.9rem;
    font-weight: 850;
}

.metrics dd {
    color: var(--muted);
    margin: 2px 0 0;
}

.hero-visual {
    align-self: center;
    min-height: 610px;
    position: relative;
}

.hero-visual::before {
    background:
        linear-gradient(135deg, rgba(207, 224, 213, 0.78), rgba(255, 255, 255, 0.2)),
        repeating-linear-gradient(90deg, rgba(24, 34, 29, 0.08) 0 1px, transparent 1px 54px);
    border: 1px solid var(--line);
    border-radius: 8px;
    bottom: 16px;
    content: "";
    left: 42px;
    position: absolute;
    right: 0;
    top: 0;
}

.idea-card,
.manuscript-stack article {
    background: var(--panel);
    border: 1px solid rgba(223, 229, 221, 0.95);
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: absolute;
}

.idea-card {
    left: 0;
    max-width: 330px;
    padding: 22px;
    top: 52px;
    z-index: 2;
}

.idea-card span,
.manuscript-stack span,
.panel-label,
.process-list span {
    color: var(--clay);
    display: block;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.idea-card strong {
    display: block;
    font-size: 1.18rem;
    line-height: 1.25;
}

.pipeline-thread {
    border-bottom: 3px solid var(--gold);
    border-right: 3px solid var(--gold);
    height: 140px;
    left: 210px;
    position: absolute;
    top: 185px;
    width: 155px;
    z-index: 1;
}

.manuscript-stack article {
    padding: 28px;
    right: 38px;
    width: min(420px, 72%);
}

.manuscript-stack article:first-child {
    top: 250px;
    z-index: 3;
}

.manuscript-stack article:last-child {
    top: 390px;
    transform: rotate(2deg);
    z-index: 2;
}

.manuscript-stack h2 {
    font-size: 1.55rem;
    margin-bottom: 12px;
}

.manuscript-stack p {
    color: var(--muted);
    margin-bottom: 0;
}

.section {
    padding: clamp(58px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.section-heading {
    margin-bottom: 30px;
    max-width: 900px;
}

.comparison-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.book-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.book-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 22px;
    grid-template-rows: auto 1fr;
    min-height: 560px;
    padding: 18px;
}

.book-cover {
    background: #101814;
    border-radius: 6px;
    box-shadow: 0 18px 34px rgba(24, 34, 29, 0.15);
    display: block;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    width: 100%;
}

.book-copy {
    display: flex;
    flex-direction: column;
}

.book-copy h3 {
    min-height: 72px;
}

.book-copy p:not(.panel-label) {
    color: var(--muted);
}

.text-link {
    color: var(--leaf-dark);
    font-weight: 800;
    margin-top: auto;
    text-decoration-color: rgba(47, 111, 78, 0.35);
    text-underline-offset: 4px;
}

.spin-off-section {
    background: #f6f1e8;
}

.spin-off-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spin-off-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    padding: clamp(24px, 4vw, 42px);
}

.spin-off-card h3 {
    max-width: 680px;
}

.spin-off-card p:not(.panel-label) {
    color: var(--muted);
    max-width: 700px;
}

.example-list {
    display: grid;
    gap: 12px;
    margin-top: auto;
    padding-top: 28px;
}

.example-list a {
    background: #f8faf7;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    padding: 16px;
    text-decoration: none;
}

.example-list a:hover {
    border-color: var(--leaf);
}

.example-list span {
    color: var(--clay);
    display: block;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.example-list strong {
    color: var(--ink);
    display: block;
    font-size: 1.02rem;
}

.comic-bridge-section {
    align-items: center;
    background: #17221c;
    color: #fff;
    display: grid;
    gap: clamp(28px, 5vw, 72px);
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
}

.comic-bridge-section .eyebrow {
    color: var(--gold);
}

.comic-bridge-copy p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1.05rem, 1.35vw, 1.24rem);
    max-width: 660px;
}

.comic-bridge-section .button.primary {
    background: #fff;
    border-color: #fff;
    color: var(--ink);
}

.comic-bridge-section .button.secondary {
    border-color: rgba(255, 255, 255, 0.56);
    color: #fff;
}

.workflow-board {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: relative;
}

.workflow-board article {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    min-height: 260px;
    padding: 24px;
    position: relative;
}

.workflow-board article + article::before {
    background: var(--gold);
    content: "";
    height: 3px;
    left: -15px;
    position: absolute;
    top: 50%;
    width: 15px;
}

.workflow-board span {
    color: var(--gold);
    display: block;
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0;
    margin-bottom: 72px;
}

.workflow-board strong {
    display: block;
    font-size: clamp(1.45rem, 2.6vw, 2.15rem);
    line-height: 1;
    margin-bottom: 12px;
}

.workflow-board p {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0;
}

.source-panel,
.output-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 330px;
    padding: clamp(24px, 4vw, 42px);
}

.source-panel {
    background: #f4efe8;
}

.source-panel p,
.output-panel li,
.process-list p,
.feature-list li {
    color: var(--muted);
}

ul,
ol {
    margin-bottom: 0;
    padding-left: 20px;
}

.check-list,
.feature-list {
    list-style: none;
    padding-left: 0;
}

.check-list li,
.feature-list li {
    border-top: 1px solid var(--line);
    padding: 14px 0;
}

.check-list li::before,
.feature-list li::before {
    color: var(--leaf);
    content: "✓";
    font-weight: 900;
    margin-right: 10px;
}

.process-section {
    background: #eef4ef;
}

.process-list {
    counter-reset: process;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    padding: 0;
}

.process-list li {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(223, 229, 221, 0.95);
    border-radius: 8px;
    min-height: 230px;
    padding: 24px;
}

.process-list strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.special-section,
.contact-section {
    align-items: start;
    display: grid;
    gap: clamp(24px, 5vw, 72px);
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.feature-list {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px 28px;
}

.contact-section {
    align-items: center;
    background: var(--ink);
    color: #fff;
}

.contact-section .eyebrow {
    color: var(--gold);
}

.contact-section .button.primary {
    background: #fff;
    color: var(--ink);
    justify-self: end;
}

.contact-page-section {
    min-height: calc(100vh - 74px);
}

.contact-layout {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
}

.contact-note,
.contact-form {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(22px, 3vw, 34px);
}

.contact-note h2 {
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    margin-bottom: 18px;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 800;
}

.field input,
.field textarea {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    min-height: 46px;
    padding: 12px 13px;
    width: 100%;
}

.field textarea {
    min-height: 170px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--leaf);
    box-shadow: 0 0 0 3px rgba(47, 111, 78, 0.14);
    outline: none;
}

.field-error,
.validation-summary,
.status.error {
    color: #9d2f2f;
}

.validation-summary {
    background: #fff3f0;
    border: 1px solid #f0c1b8;
    border-radius: 8px;
    padding: 14px 18px;
}

.status {
    border-radius: 8px;
    font-weight: 750;
    margin: 0;
    padding: 14px 16px;
}

.status.success {
    background: #eef7f0;
    border: 1px solid #bcdac4;
    color: var(--leaf-dark);
}

.status.error {
    background: #fff3f0;
    border: 1px solid #f0c1b8;
}

.honeypot {
    left: -10000px;
    position: absolute;
    top: auto;
}

.site-footer {
    align-items: center;
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    padding: 26px clamp(20px, 5vw, 72px);
}

.mobile-topbar,
.mobile-nav {
    display: none;
}

@media (max-width: 980px) {
    .topbar {
        display: none;
    }

    .mobile-topbar {
        display: flex;
        padding: 13px 16px;
    }

    .contact-pill {
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 9px 12px;
    }

    .hero,
    .comparison-grid,
    .comic-bridge-section,
    .special-section,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 42px;
    }

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

    h1 {
        font-size: clamp(2.65rem, 11.5vw, 3.6rem);
    }

    .process-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .spin-off-grid {
        grid-template-columns: 1fr;
    }

    .spin-off-card {
        min-height: auto;
    }

    .workflow-board {
        grid-template-columns: 1fr;
    }

    .workflow-board article {
        min-height: auto;
    }

    .workflow-board article + article::before {
        height: 14px;
        left: 32px;
        top: -14px;
        width: 3px;
    }

    .workflow-board span {
        margin-bottom: 28px;
    }

    .book-card {
        grid-template-columns: minmax(120px, 0.35fr) minmax(0, 0.65fr);
        grid-template-rows: auto;
        min-height: auto;
    }

    .book-cover {
        max-height: 360px;
    }

    .book-copy h3 {
        min-height: 0;
    }

    .contact-section .button.primary {
        justify-self: start;
    }

    .mobile-nav {
        background: rgba(251, 250, 246, 0.94);
        border-top: 1px solid var(--line);
        bottom: 0;
        display: grid;
        gap: 0;
        grid-template-columns: repeat(4, 1fr);
        left: 0;
        position: sticky;
        right: 0;
        z-index: 10;
    }

    .mobile-nav a {
        display: block;
        padding: 13px 8px;
        text-align: center;
    }

    .mobile-site .site-footer {
        padding-bottom: 76px;
    }
}

@media (max-width: 640px) {
    .hero-actions,
    .metrics {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .metrics div {
        border-bottom: 1px solid var(--line);
        border-right: 0;
        margin-right: 0;
        padding: 12px 0;
    }

    .metrics div:last-child {
        border-bottom: 0;
    }

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

    .hero-visual::before {
        left: 20px;
    }

    .idea-card {
        left: 0;
        right: 28px;
        max-width: none;
    }

    .pipeline-thread {
        left: 82px;
        top: 198px;
        width: 95px;
    }

    .manuscript-stack article {
        right: 0;
        width: calc(100% - 28px);
    }

    .manuscript-stack article:first-child {
        top: 272px;
    }

    .manuscript-stack article:last-child {
        display: none;
    }

    .process-list {
        grid-template-columns: 1fr;
    }

    .book-card {
        grid-template-columns: 1fr;
    }

    .book-cover {
        max-height: none;
    }

    .source-panel,
    .output-panel,
    .process-list li {
        min-height: auto;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
