:root {
    --bg: #fbfcfd;
    --surface: #ffffff;
    --surface-strong: #eef4f5;
    --ink: #11171f;
    --muted: #596775;
    --line: #dce5e8;
    --accent: #c3195d;
    --accent-dark: #891044;
    --teal: #0e6f73;
    --green: #1d7a50;
    --blue: #255f9f;
    --shadow: 0 20px 60px rgba(18, 31, 42, 0.12);
    --radius: 8px;
    --container: 1120px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--gh-font-body, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    line-height: 1.6;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration-color: rgba(195, 25, 93, 0.35);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--accent);
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--ink);
    color: #fff;
    border-radius: 6px;
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 252, 253, 0.9);
    border-bottom: 1px solid rgba(220, 229, 232, 0.75);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0;
}

.brand img {
    width: auto;
    max-width: 180px;
    max-height: 34px;
    object-fit: contain;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 7px;
    background: var(--ink);
    color: #fff;
    font-size: 0.78rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.94rem;
    font-weight: 650;
}

.site-nav ul,
.site-nav .nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    text-decoration: none;
    color: #27313b;
}

.site-nav a:hover,
.site-nav .nav-current a {
    color: var(--accent);
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--accent);
    border-radius: 7px;
    background: var(--accent);
    color: #fff;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(195, 25, 93, 0.18);
}

.nav-cta:hover,
.button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.button-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
    box-shadow: none;
}

.button-secondary:hover {
    background: var(--surface-strong);
    border-color: var(--surface-strong);
    color: var(--ink);
}

.button-light {
    background: #fff;
    color: var(--ink);
    border-color: #fff;
    box-shadow: none;
}

.button-light:hover {
    background: #eaf1f2;
    border-color: #eaf1f2;
    color: var(--ink);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
}

.hero {
    padding: 84px 0 72px;
    background:
        linear-gradient(135deg, rgba(14, 111, 115, 0.11), rgba(195, 25, 93, 0.08) 46%, transparent 46%),
        var(--bg);
}

.hero-grid,
.page-hero-grid,
.split,
.process-grid,
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 56px;
    align-items: center;
}

.hero-copy {
    max-width: 760px;
}

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

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

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--gh-font-heading, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    line-height: 1.08;
    letter-spacing: 0;
}

h1 {
    max-width: 920px;
    font-size: clamp(2.45rem, 5.8vw, 4.7rem);
}

h2 {
    font-size: clamp(1.85rem, 3.4vw, 3rem);
}

h3 {
    font-size: 1.18rem;
}

.hero-lede,
.page-hero p,
.section-lede {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.13rem;
    line-height: 1.72;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hero-proof span,
.pattern-strip span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #394653;
    font-size: 0.82rem;
    font-weight: 650;
}

.diagnostic-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 28px;
}

.panel-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.panel-top strong {
    color: var(--ink);
    font-size: 2.1rem;
}

.panel-subhead {
    display: grid;
    gap: 2px;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f6f9fa;
}

.panel-subhead strong {
    font-size: 0.96rem;
}

.panel-subhead span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 650;
}

.score-ring {
    display: grid;
    place-items: center;
    width: 172px;
    aspect-ratio: 1;
    margin: 24px auto;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, var(--surface) 0 54%, transparent 55%),
        conic-gradient(var(--green) 0 72%, #dbe6e8 72% 100%);
}

.score-ring span {
    display: grid;
    place-items: center;
    width: 88px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
}

.metric-list {
    display: grid;
    gap: 10px;
}

.metric-list div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

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

.pattern-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.panel-finding {
    margin-top: 18px;
    padding: 14px;
    border-left: 4px solid var(--accent);
    border-radius: 0 7px 7px 0;
    background: #fff4f8;
}

.panel-finding span {
    display: block;
    margin-bottom: 4px;
    color: var(--accent-dark);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.panel-finding p {
    margin: 0;
    color: #394653;
    font-size: 0.92rem;
}

.section {
    padding: 84px 0;
}

.section-tight {
    padding: 68px 0;
}

.muted {
    background: var(--surface-strong);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.row-heading {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.rich-copy p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 1.05rem;
}

.service-grid,
.post-grid,
.audience-grid,
.credibility-grid,
.platform-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.service-card,
.audience-grid article,
.credibility-grid article,
.platform-list article,
.dimension-grid article,
.post-card,
.founder-card,
.contact-card,
.expectation-list,
.qhi-score {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 24px;
}

.service-card span {
    display: inline-block;
    margin-bottom: 34px;
    color: var(--accent);
    font-weight: 800;
}

.service-card h3,
.audience-grid h3,
.dimension-grid h2,
.contact-card h2,
.expectation-list h2 {
    margin-bottom: 12px;
}

.service-card p,
.audience-grid p,
.platform-list span,
.dimension-grid p,
.contact-card p,
.expectation-list li,
.post-card p {
    margin: 0;
    color: var(--muted);
}

.platform-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
    gap: 44px;
    align-items: start;
}

.platform-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.platform-list article {
    display: grid;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.platform-list article::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--teal);
}

.platform-list strong {
    font-size: 1.08rem;
}

.process-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    align-items: start;
}

.process-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-list li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.process-list li span {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 7px;
    background: #e5f0f1;
    color: var(--teal);
    font-weight: 800;
}

.process-list p {
    margin: 4px 0 0;
    color: var(--muted);
}

.text-link,
.breadcrumb {
    color: var(--accent);
    font-weight: 750;
    text-decoration-thickness: 1px;
}

.cta-band {
    padding: 72px 0;
    background: #10232d;
    color: #fff;
}

.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cta-band h2 {
    max-width: 760px;
}

.cta-band p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.74);
}

.page-hero,
.post-hero {
    padding: 86px 0 72px;
    background: linear-gradient(135deg, rgba(14, 111, 115, 0.14), rgba(37, 95, 159, 0.1));
}

.page-hero.compact {
    padding: 72px 0 62px;
}

.founder-card span {
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.founder-card h2 {
    margin: 10px 0 12px;
    font-size: 2rem;
}

.qhi-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: stretch;
}

.qhi-score {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #10232d;
    color: #fff;
}

.qhi-score span {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.qhi-score strong {
    display: block;
    margin: 10px 0;
    font-size: 4rem;
    line-height: 1;
}

.qhi-score p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

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

.dimension-grid article:last-child {
    grid-column: 1 / -1;
}

.credibility-grid article strong {
    display: block;
    margin-bottom: 10px;
    font-size: 2rem;
    line-height: 1;
}

.credibility-grid article span {
    color: var(--muted);
}

.contact-grid {
    align-items: start;
}

.contact-card {
    display: grid;
    gap: 16px;
}

.expectation-list ul {
    margin: 0;
    padding-left: 1.1rem;
}

.expectation-list li + li {
    margin-top: 10px;
}

.post-card {
    overflow: hidden;
    padding: 0;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.post-card-link {
    display: grid;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.post-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--surface-strong);
}

.post-card-body {
    padding: 22px;
}

.post-card time,
.post-meta,
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 650;
}

.post-card h2 {
    margin: 10px 0;
    font-size: 1.24rem;
    line-height: 1.22;
}

.post-hero h1 {
    max-width: 960px;
}

.post-feature {
    margin-top: 48px;
}

.post-feature img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: var(--radius);
}

.post-feature figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.9rem;
}

.article-content {
    max-width: 760px;
}

.article-content > * + * {
    margin-top: 1.25em;
}

.article-content h2,
.article-content h3 {
    margin-top: 1.8em;
}

.article-content p,
.article-content li {
    color: #27313b;
    font-size: 1.05rem;
}

.article-content img {
    border-radius: var(--radius);
}

.article-content .kg-width-wide {
    width: min(1040px, calc(100vw - 40px));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.article-content .kg-width-full {
    width: 100vw;
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.article-content .kg-width-full img {
    width: 100%;
    border-radius: 0;
}

.article-content blockquote {
    margin: 2em 0;
    padding: 0 0 0 20px;
    border-left: 4px solid var(--accent);
    color: var(--muted);
    font-size: 1.18rem;
}

.post-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 84px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.pagination a {
    font-weight: 750;
}

.empty-state {
    max-width: 620px;
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.details-form,
.form-aside {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 14px 40px rgba(18, 31, 42, 0.08);
}

.details-form {
    padding: 28px;
}

.form-section {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.form-section h2,
.form-aside h2 {
    margin-bottom: 18px;
    font-size: 1.35rem;
}

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

.details-form label,
.full-field {
    display: grid;
    gap: 8px;
    color: #27313b;
    font-weight: 700;
}

.details-form input,
.details-form select,
.details-form textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cfdadd;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    padding: 10px 12px;
}

.details-form textarea {
    resize: vertical;
    min-height: 150px;
}

.details-form input:focus,
.details-form select:focus,
.details-form textarea:focus {
    outline: 3px solid rgba(14, 111, 115, 0.16);
    border-color: var(--teal);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.checkbox-grid label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 52px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f8fbfb;
    font-weight: 650;
}

.checkbox-grid input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 24px;
}

.form-actions p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.form-aside {
    position: sticky;
    top: 96px;
    padding: 24px;
}

.form-aside ol {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.form-aside li {
    display: grid;
    gap: 4px;
}

.form-aside li span,
.endpoint-note p {
    color: var(--muted);
}

.endpoint-note {
    margin-top: 24px;
    padding: 16px;
    border-radius: 7px;
    background: #eef4f5;
}

.endpoint-note code {
    font-size: 0.9em;
}

.site-footer {
    background: #08161d;
    color: #fff;
    padding: 58px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 34px;
}

.footer-grid h2 {
    margin-bottom: 14px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.62);
}

.footer-grid p,
.footer-bottom {
    color: rgba(255, 255, 255, 0.64);
}

.footer-grid a {
    display: block;
    margin-top: 9px;
    color: #fff;
    text-decoration: none;
}

.footer-email {
    color: #fff;
    font-weight: 750;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
}

@media (max-width: 980px) {
    .hero-grid,
    .page-hero-grid,
    .split,
    .process-grid,
    .contact-grid,
    .qhi-grid,
    .platform-grid,
    .form-layout {
        grid-template-columns: 1fr;
    }

    .form-aside {
        position: static;
    }

    .service-grid,
    .post-grid,
    .audience-grid,
    .credibility-grid,
    .platform-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .container {
        width: min(100% - 32px, var(--container));
    }

    .header-inner {
        min-height: 66px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        inset: 66px 0 auto 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 22px 16px 26px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 40px rgba(18, 31, 42, 0.14);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav ul,
    .site-nav .nav {
        display: grid;
        gap: 14px;
    }

    .nav-cta {
        width: 100%;
    }

    .hero,
    .page-hero,
    .post-hero {
        padding: 54px 0 48px;
    }

    .section {
        padding: 58px 0;
    }

    .service-grid,
    .post-grid,
    .audience-grid,
    .credibility-grid,
    .platform-list,
    .dimension-grid,
    .form-grid,
    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .dimension-grid article:last-child {
        grid-column: auto;
    }

    .row-heading,
    .cta-band-inner,
    .footer-bottom,
    .form-actions {
        align-items: start;
        flex-direction: column;
    }

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

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

    .process-list li span {
        margin-bottom: 12px;
    }
}
