/* ==========================================================================
   Horus Alpha — Ghost theme stylesheet
   Design tokens & components ported from the Horus Alpha standalone design.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --bg: #0C0B09;
    --bg2: #14120E;
    --bg3: #1B1812;
    --ink: #EFE7D6;
    --muted: #9A9184;
    --line: #2A261E;
    --gold: #D3A84C;
    --gold-soft: rgba(211, 168, 76, 0.14);
    --on-gold: #0C0B09;
    --font-display: Marcellus, Georgia, serif;
    --font-body: Newsreader, Georgia, serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}
:root[data-theme="light"] {
    --bg: #F6F1E6;
    --bg2: #FDFAF2;
    --bg3: #EFE8D8;
    --ink: #181510;
    --muted: #6E6558;
    --line: #DDD3BE;
    --gold: #A87F2C;
    --gold-soft: rgba(168, 127, 44, 0.12);
    --on-gold: #FDFAF2;
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Smooth scrolling is enabled by JS after page load, so cross-page
   anchor jumps (e.g. /research/#latest) land instantly instead of
   animating from the top of the page. */
html.ha-smooth { scroll-behavior: smooth; }
/* Anchored sections shouldn't hide under the sticky header */
#newsletter, #partners, #latest { scroll-margin-top: 80px; }
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}
::selection { background: var(--gold); color: var(--on-gold); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
input::placeholder, textarea::placeholder { color: var(--muted); }

.ha-container { max-width: 1264px; margin: 0 auto; padding: 0 32px; }

/* Mono label utility */
.ha-kicker {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

/* Buttons */
.ha-btn {
    display: inline-block;
    background: var(--gold);
    color: var(--on-gold);
    text-decoration: none;
    padding: 15px 30px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}
.ha-btn:hover { filter: brightness(1.1); }
.ha-btn-ghost {
    display: inline-block;
    border: 1px solid var(--gold);
    color: var(--gold);
    background: transparent;
    text-decoration: none;
    padding: 15px 30px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}
.ha-btn-ghost:hover { background: var(--gold-soft); }

/* ---------- Header ---------- */
.ha-topbar { height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.ha-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.ha-header-inner { height: 68px; display: flex; align-items: center; gap: 32px; }
.ha-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.ha-brand-name {
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
}
.ha-nav {
    display: flex;
    gap: 22px;
    margin-left: auto;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.ha-nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.ha-nav a:hover, .ha-nav .nav-current a { color: var(--gold); }
.ha-theme-toggle {
    background: none;
    border: 1px solid var(--line);
    color: var(--muted);
    border-radius: 999px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 13px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.ha-theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.ha-nav-subscribe {
    background: var(--gold);
    color: var(--on-gold) !important;
    text-decoration: none;
    padding: 9px 18px;
    font-weight: 500;
    letter-spacing: 0.08em;
}
.ha-nav-subscribe:hover { filter: brightness(1.1); color: var(--on-gold) !important; }

/* Mobile nav toggle */
.ha-burger { display: none; background: none; border: 1px solid var(--line); color: var(--ink); width: 38px; height: 34px; cursor: pointer; font-size: 16px; }

/* ---------- Hero (home) ---------- */
.ha-hero {
    padding-top: 96px;
    padding-bottom: 80px;
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 56px;
    align-items: center;
}
.ha-hero-copy { display: flex; flex-direction: column; gap: 24px; }
.ha-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(44px, 5.4vw, 72px);
    line-height: 1.06;
    font-weight: 400;
    text-wrap: balance;
}
.ha-hero-dek { font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 54ch; text-wrap: pretty; }
.ha-hero-ctas { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.ha-hero-mark { display: grid; place-items: center; }
.ha-hero-mark svg { width: 280px; height: 280px; opacity: 0.9; }

/* ---------- Stats band ---------- */
.ha-stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.ha-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.ha-stat { padding: 40px 32px; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--line); }
.ha-stat-value { font-family: var(--font-display); font-size: 44px; color: var(--gold); line-height: 1; }
.ha-stat-label {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-transform: uppercase;
    line-height: 1.5;
}

/* ---------- Section headings ---------- */
.ha-section { padding-top: 80px; padding-bottom: 80px; }
.ha-section-head {
    display: flex;
    align-items: baseline;
    gap: 20px;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 14px;
}
.ha-section-head h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.ha-section-link {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    margin-left: auto;
    white-space: nowrap;
}
.ha-section-link:hover { opacity: 0.75; }
.ha-section-note { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-left: auto; }

/* ---------- Service cards (home preview) ---------- */
.ha-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-top: none;
}
.ha-card {
    background: var(--bg);
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-decoration: none;
    color: var(--ink);
}
.ha-card:hover { background: var(--gold-soft); }
.ha-card-num { font-family: var(--font-display); font-size: 30px; color: var(--gold); }
.ha-card-title { font-family: var(--font-display); font-size: 23px; }
.ha-card-dek { font-size: 16.5px; line-height: 1.55; color: var(--muted); }

/* ---------- Partners ---------- */
.ha-partners { border-top: 1px solid var(--line); background: var(--bg2); }
.ha-partners-inner { padding-top: 72px; padding-bottom: 72px; }
.ha-partners-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 36px; }
.ha-partners-head h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.ha-partners-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.ha-partner-slot {
    aspect-ratio: 5 / 3;
    background: repeating-linear-gradient(-45deg, var(--bg), var(--bg) 8px, var(--bg3) 8px, var(--bg3) 9px);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.06em;
}

/* ---------- Article list rows ---------- */
.ha-post-rows { display: flex; flex-direction: column; }
.ha-post-row {
    display: grid;
    grid-template-columns: 160px 1fr 130px;
    gap: 24px;
    align-items: baseline;
    padding: 24px 8px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
}
.ha-post-row:hover { background: var(--gold-soft); }
.ha-post-row-numbered { grid-template-columns: 64px 160px 1fr 130px; padding: 26px 8px; }
.ha-post-num { font-family: var(--font-display); font-size: 22px; color: var(--muted); }
.ha-post-tag {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
}
.ha-post-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ha-post-title { font-family: var(--font-display); font-size: 23px; line-height: 1.25; }
.ha-post-row .ha-post-title { font-size: 22px; }
.ha-post-dek { font-size: 16.5px; color: var(--muted); line-height: 1.5; }
.ha-post-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ---------- CTA band ---------- */
.ha-cta-band { border-top: 1px solid var(--line); background: var(--bg2); }
.ha-cta-band-inner { padding-top: 72px; padding-bottom: 72px; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.ha-cta-band h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 400;
    line-height: 1.15;
    flex: 1;
    min-width: 320px;
}

/* ---------- Research page: featured ---------- */
.ha-featured {
    padding-top: 72px;
    padding-bottom: 64px;
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 56px;
    align-items: center;
}
.ha-featured-copy { display: flex; flex-direction: column; gap: 20px; }
.ha-featured-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.ha-featured-meta .ha-sep { width: 32px; height: 1px; background: var(--line); }
.ha-featured-meta .ha-date { color: var(--muted); }
.ha-featured-title-link { text-decoration: none; color: var(--ink); }
.ha-featured-title-link:hover { color: var(--gold); }
.ha-featured h1 {
    font-family: var(--font-display);
    font-size: clamp(38px, 4.6vw, 58px);
    line-height: 1.08;
    font-weight: 400;
    text-wrap: balance;
}
.ha-featured-dek { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 56ch; text-wrap: pretty; }
.ha-featured-actions { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.ha-read-link {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 3px;
}
.ha-read-link:hover { opacity: 0.75; }
.ha-read-time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.ha-featured-cover {
    display: block;
    aspect-ratio: 4 / 4.6;
    background: repeating-linear-gradient(-45deg, var(--bg2), var(--bg2) 10px, var(--bg3) 10px, var(--bg3) 11px);
    border: 1px solid var(--line);
    position: relative;
    text-decoration: none;
    overflow: hidden;
}
.ha-featured-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ha-featured-cover .ha-cover-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.08em;
}
.ha-corner-tr { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.ha-corner-bl { position: absolute; bottom: 14px; left: 14px; width: 40px; height: 40px; border-bottom: 2px solid var(--gold); border-left: 2px solid var(--gold); }

/* ---------- Tag filter tabs ---------- */
.ha-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 18px 0 6px; border-bottom: 1px solid var(--line); }
.ha-tab {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 9px 16px;
    cursor: pointer;
    display: flex;
    gap: 8px;
    align-items: baseline;
    text-decoration: none;
}
.ha-tab:hover { border-color: var(--gold); color: var(--gold); }
.ha-tab.active { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.ha-tab .ha-tab-count { opacity: 0.55; font-size: 10.5px; }

/* ---------- Pagination ---------- */
.ha-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 8px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.ha-pagination a { color: var(--gold); text-decoration: none; }
.ha-pagination a:hover { opacity: 0.75; }
.ha-pagination .ha-page-num { color: var(--muted); }

/* ---------- Newsletter ---------- */
.ha-newsletter { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.ha-newsletter-inner {
    padding-top: 80px;
    padding-bottom: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.ha-newsletter-copy { display: flex; flex-direction: column; gap: 16px; }
.ha-newsletter-copy h2 { font-family: var(--font-display); font-size: 42px; font-weight: 400; line-height: 1.12; }
.ha-newsletter-copy p { font-size: 18px; color: var(--muted); line-height: 1.55; }
.ha-newsletter-form { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--gold); padding: 6px; background: var(--bg); }
.ha-newsletter-form input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 15px;
    padding: 14px 16px;
    min-width: 0;
}
.ha-newsletter-success {
    display: none;
    border: 1px solid var(--gold);
    padding: 28px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--gold);
    letter-spacing: 0.06em;
}
/* Ghost members form states */
form[data-members-form].success { display: none; }
form[data-members-form].success + .ha-newsletter-success { display: block; }
form[data-members-form].loading button { opacity: 0.6; pointer-events: none; }
form[data-members-form].error { border-color: #c0392b; }
.ha-newsletter-error {
    display: none;
    flex-basis: 100%;
    padding: 10px 16px 6px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: #c0392b;
    line-height: 1.5;
}
form[data-members-form].error .ha-newsletter-error { display: block; }

/* ---------- Article page ---------- */
.ha-article { max-width: 720px; margin: 0 auto; padding: 72px 32px 96px; }
.ha-article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.ha-article-meta .ha-sep { width: 32px; height: 1px; background: var(--line); }
.ha-article-meta .ha-date { color: var(--muted); }
.ha-article-meta a { color: var(--gold); text-decoration: none; }
.ha-article h1.ha-article-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 4.4vw, 52px);
    line-height: 1.1;
    margin: 0 0 20px;
    font-weight: 400;
    text-wrap: balance;
}
.ha-article-dek { font-size: 21px; line-height: 1.5; color: var(--muted); margin: 0 0 32px; font-style: italic; }
.ha-byline {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 40px;
}
.ha-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold-soft);
    border: 1px solid var(--gold);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 16px;
    overflow: hidden;
    flex-shrink: 0;
}
.ha-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ha-byline-info { display: flex; flex-direction: column; gap: 2px; font-family: var(--font-mono); }
.ha-byline-name { font-size: 13px; color: var(--ink); text-decoration: none; }
.ha-byline-sub { font-size: 11.5px; color: var(--muted); }
.ha-feature-image { margin-bottom: 48px; border: 1px solid var(--line); }
.ha-feature-image img { display: block; width: 100%; }
.ha-feature-image figcaption {
    padding: 10px 0 0;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--muted);
    text-align: center;
}

/* ---------- Post content (.gh-content) ---------- */
.gh-content { font-size: 19.5px; line-height: 1.72; display: flex; flex-direction: column; gap: 26px; }
.gh-content > * { margin: 0; }
.gh-content h2 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    margin-top: 22px;
    letter-spacing: 0.02em;
}
.gh-content h3 { font-family: var(--font-display); font-size: 25px; font-weight: 400; margin-top: 14px; }
.gh-content a { color: var(--gold); text-decoration-color: var(--gold); }
.gh-content strong { font-weight: 500; }
.gh-content > p:first-child::first-letter {
    font-family: var(--font-display);
    font-size: 58px;
    float: left;
    line-height: 0.85;
    padding: 6px 12px 0 0;
    color: var(--gold);
}
.gh-content blockquote {
    padding: 6px 0 6px 28px;
    border-left: 2px solid var(--gold);
    font-family: var(--font-display);
    font-size: 27px;
    line-height: 1.35;
    color: var(--ink);
    margin: 10px 0;
}
.gh-content ul, .gh-content ol { padding-left: 28px; }
.gh-content li { margin-bottom: 8px; }
.gh-content hr { border: none; border-top: 1px solid var(--line); margin: 20px 0; }
.gh-content code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--bg3);
    border: 1px solid var(--line);
    padding: 2px 6px;
}
.gh-content pre {
    background: var(--bg2);
    border: 1px solid var(--line);
    padding: 20px 24px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
}
.gh-content pre code { background: none; border: none; padding: 0; }
.gh-content figure img { display: block; width: 100%; border: 1px solid var(--line); }
.gh-content figcaption {
    padding: 10px 0 0;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--muted);
    text-align: center;
}
.gh-content table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 13.5px;
}
.gh-content table thead th {
    background: var(--bg2);
    border-bottom: 1px solid var(--gold);
    padding: 12px 16px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11.5px;
    font-weight: 400;
    text-align: left;
}
.gh-content table td { padding: 12px 16px; border-bottom: 1px solid var(--line); }

/* Koenig card widths */
.kg-width-wide { margin-left: -80px; margin-right: -80px; }
.kg-width-full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
@media (max-width: 900px) {
    .kg-width-wide { margin-left: 0; margin-right: 0; }
}
.kg-callout-card, .kg-card.kg-callout-card {
    border: 1px solid var(--gold);
    background: var(--gold-soft);
    padding: 24px 28px;
    display: flex;
    gap: 14px;
}
.kg-button-card a.kg-btn {
    background: var(--gold);
    color: var(--on-gold);
    text-decoration: none;
    padding: 13px 26px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 0;
}
.kg-bookmark-container { border: 1px solid var(--line); text-decoration: none; color: var(--ink); display: flex; }
.kg-bookmark-content { padding: 18px 20px; }
.kg-bookmark-title { font-family: var(--font-display); font-size: 18px; }
.kg-bookmark-description { font-size: 15px; color: var(--muted); margin-top: 6px; }
.kg-bookmark-metadata { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 10px; display: flex; gap: 8px; align-items: center; }
.kg-bookmark-icon { width: 16px; height: 16px; }
.kg-bookmark-thumbnail img { height: 100%; object-fit: cover; }

/* Article disclaimer + related */
.ha-disclaimer {
    font-size: 14.5px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 20px;
    font-family: var(--font-mono);
    line-height: 1.6;
}
.ha-related { margin-top: 64px; }
.ha-related-head {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 12px;
    margin-bottom: 8px;
}
.ha-related-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: baseline;
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
}
.ha-related-row:hover { background: var(--gold-soft); }
.ha-related-title { font-family: var(--font-display); font-size: 20px; }
.ha-related-date { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- Static pages ---------- */
.ha-page { max-width: 880px; margin: 0 auto; padding: 88px 32px 96px; }
.ha-page-wide { max-width: 1200px; margin: 0 auto; padding: 88px 32px 96px; }
.ha-page h1.ha-page-title, .ha-page-wide h1.ha-page-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 4.6vw, 56px);
    font-weight: 400;
    line-height: 1.12;
    margin: 0 0 28px;
    text-wrap: balance;
}
.ha-page-dek { font-size: 21px; line-height: 1.65; color: var(--muted); max-width: 62ch; margin: 0 0 56px; }
.ha-page-mark { margin-bottom: 28px; }
.ha-page-mark svg { width: 72px; height: 72px; }

/* Principles grid (about) */
.ha-principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-bottom: 56px;
}
.ha-principle { background: var(--bg2); padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.ha-principle .ha-card-num { font-size: 30px; }
.ha-principle .ha-card-title { font-size: 21px; }
.ha-principle .ha-card-dek { font-size: 16.5px; }

/* Services list */
.ha-services-list { display: flex; flex-direction: column; border-top: 1px solid var(--gold); }
.ha-service-item {
    display: grid;
    grid-template-columns: 80px 300px 1fr;
    gap: 32px;
    padding: 44px 8px;
    border-bottom: 1px solid var(--line);
    align-items: start;
}
.ha-service-num { font-family: var(--font-display); font-size: 38px; color: var(--gold); line-height: 1; }
.ha-service-title-col { display: flex; flex-direction: column; gap: 10px; }
.ha-service-title { font-family: var(--font-display); font-size: 27px; line-height: 1.2; }
.ha-service-tag {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.ha-service-body { display: flex; flex-direction: column; gap: 12px; }
.ha-service-desc { font-size: 18px; line-height: 1.6; color: var(--muted); }
.ha-service-deliverable { font-family: var(--font-mono); font-size: 13px; color: var(--gold); }

/* Gold callout box */
.ha-callout {
    margin-top: 56px;
    border: 1px solid var(--gold);
    background: var(--gold-soft);
    padding: 36px 40px;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.ha-callout-copy { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 8px; }
.ha-callout-title { font-family: var(--font-display); font-size: 26px; }
.ha-callout-dek { font-size: 17px; color: var(--muted); line-height: 1.55; }

/* ---------- Contact page ---------- */
.ha-contact {
    max-width: 1100px;
    margin: 0 auto;
    padding: 88px 32px 96px;
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 72px;
    align-items: start;
}
.ha-contact-copy { display: flex; flex-direction: column; gap: 22px; }
.ha-contact-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 4.4vw, 52px);
    font-weight: 400;
    line-height: 1.12;
    text-wrap: balance;
}
.ha-contact-copy > p { font-size: 19px; line-height: 1.6; color: var(--muted); }
.ha-contact-channels {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid var(--line);
    padding-top: 24px;
    font-family: var(--font-mono);
    font-size: 14px;
}
.ha-contact-channel { display: flex; gap: 16px; }
.ha-contact-channel .ha-channel-label { color: var(--gold); width: 90px; flex-shrink: 0; }
.ha-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid var(--line);
    background: var(--bg2);
    padding: 40px;
}
.ha-contact-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.ha-contact-form input, .ha-contact-form textarea {
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 15px;
    padding: 13px 14px;
    outline: none;
    resize: vertical;
}
.ha-contact-form input:focus, .ha-contact-form textarea:focus { border-color: var(--gold); }
.ha-contact-form .ha-btn { align-self: flex-start; }
.ha-contact-success {
    display: none;
    border: 1px solid var(--gold);
    background: var(--gold-soft);
    padding: 56px 40px;
    text-align: center;
    flex-direction: column;
    gap: 12px;
}
.ha-contact-success .ha-success-title { font-family: var(--font-display); font-size: 30px; color: var(--gold); }
.ha-contact-success .ha-success-sub { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.ha-footer { border-top: 1px solid var(--line); }
.ha-footer-inner { padding-top: 48px; padding-bottom: 48px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ha-footer-brand {
    font-family: var(--font-display);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 15px;
}
.ha-footer-note { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-left: auto; }
.ha-footer-links {
    display: flex;
    gap: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.ha-footer-links a { color: var(--muted); text-decoration: none; }
.ha-footer-links a:hover { color: var(--gold); }

/* ---------- Error page ---------- */
.ha-error { max-width: 720px; margin: 0 auto; padding: 120px 32px; text-align: center; }
.ha-error-code { font-family: var(--font-display); font-size: 96px; color: var(--gold); line-height: 1; }
.ha-error-msg { font-size: 20px; color: var(--muted); margin: 20px 0 36px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .ha-hero, .ha-featured, .ha-newsletter-inner, .ha-contact { grid-template-columns: 1fr; gap: 40px; }
    .ha-hero-mark svg { width: 180px; height: 180px; }
    .ha-partners-grid { grid-template-columns: repeat(3, 1fr); }
    .ha-service-item { grid-template-columns: 56px 1fr; }
    .ha-service-body { grid-column: 2; }
    .ha-featured-cover { aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
    .ha-container { padding: 0 20px; }
    .ha-article, .ha-page, .ha-page-wide, .ha-contact { padding-left: 20px; padding-right: 20px; }
    .ha-hero { padding-top: 56px; padding-bottom: 48px; }
    .ha-section { padding-top: 56px; padding-bottom: 56px; }
    .ha-stats-grid { grid-template-columns: 1fr; }
    .ha-cards { grid-template-columns: 1fr; }
    .ha-principles { grid-template-columns: 1fr; }
    .ha-partners-grid { grid-template-columns: repeat(2, 1fr); }
    .ha-post-row, .ha-post-row-numbered { grid-template-columns: 1fr; gap: 8px; padding: 20px 4px; }
    .ha-post-num { display: none; }
    .ha-post-meta { text-align: left; flex-direction: row; gap: 12px; }
    /* Mobile nav */
    .ha-burger { display: grid; place-items: center; margin-left: auto; }
    .ha-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        padding: 12px 20px 20px;
        margin-left: 0;
    }
    .ha-nav.open { display: flex; }
    .ha-nav a { padding: 12px 0; }
    .ha-nav-subscribe { margin-top: 8px; }
    .ha-theme-toggle { position: absolute; top: -51px; right: 68px; }
    .ha-header-inner { position: relative; }
}
