* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-top: #1a1310;
    --bg-mid: #1e1611;
    --bg-low: #14100c;
    --cocoa: #251d18;
    --cocoa-hi: #2f261f;
    --void: #0d0907;
    --sage: #7caa5e;
    --sage-hi: #9ac47a;
    --coral: #e07a5f;
    --coral-hi: #f09a82;
    --honey: #e8b84b;
    --honey-hi: #f0d078;
    --blue: #7ba8c4;
    --blue-hi: #9cc4dc;
    --cream: #f5ede3;
    --muted: #9a8a78;
    --grad: linear-gradient(120deg, #7caa5e, #e8b84b, #e07a5f);
    --grad-sh: linear-gradient(120deg, #7caa5e, #e8b84b);
    --grad-ch: linear-gradient(120deg, #e07a5f, #e8b84b);
    --grad-bs: linear-gradient(120deg, #7ba8c4, #7caa5e);
    --grad-sb: linear-gradient(120deg, #7caa5e, #7ba8c4);
    --grad-shg: linear-gradient(90deg, #7caa5e, #e8b84b);
    --grad-ce: linear-gradient(180deg, #251d18, #1a1310);
    --herring: repeating-linear-gradient(45deg, rgba(232,184,75,0.035) 0 1px, transparent 1px 10px), repeating-linear-gradient(-45deg, rgba(232,184,75,0.035) 0 1px, transparent 1px 10px);
    --dots: radial-gradient(rgba(124,170,94,0.05) 1.5px, transparent 1.5px);
    --beat: repeating-linear-gradient(90deg, rgba(224,122,95,0.025) 0 1px, transparent 1px 22px);
    --head: 'Fraunces', Georgia, serif;
    --sans: 'Inter', 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
    --shadow: 0 2px 4px rgba(13,9,7,0.6), 0 8px 28px rgba(13,9,7,0.5);
    --shape-house: polygon(50% 0%, 100% 30%, 100% 100%, 0 100%, 0 30%);
    --shape-shield: polygon(50% 0%, 100% 15%, 100% 65%, 50% 100%, 0 65%, 0 15%);
    --shape-heart: polygon(50% 100%, 0 40%, 0 20%, 20% 0, 50% 15%, 80% 0, 100% 20%, 100% 40%);
    --shape-arch: polygon(0 25%, 25% 0, 75% 0, 100% 25%, 100% 100%, 0 100%);
    --shape-leaf: polygon(0 50%, 50% 0, 100% 50%, 50% 100%);
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    color: var(--cream);
    background: var(--bg-top);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.mono-tag, .mono-pill, .mono-hint { font-family: var(--mono); }

/* ===== Header: eave + lintel ===== */
.hm-header {
    position: sticky; top: 0; z-index: 60;
    height: 84px; display: flex; flex-direction: column;
    background: var(--void);
}
.hm-eave { height: 10px; display: flex; flex: 0 0 10px; overflow: hidden; }
.hm-eave-tooth {
    position: relative; flex: 1 1 0; height: 100%;
    background: var(--c);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.hm-eave-tooth::after {
    content: ''; position: absolute; left: 50%; top: 0;
    width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%;
    background: var(--c); box-shadow: 0 0 5px var(--c);
}
.hm-lintel { flex: 1 1 auto; min-height: 0; background: var(--cocoa); }
.hm-lintel-inner {
    max-width: 1280px; margin: 0 auto; height: 100%;
    display: flex; align-items: center; padding: 0 24px; gap: 12px;
}
.hm-lintel-left { flex: 0 0 34%; display: flex; align-items: center; gap: 11px; min-width: 0; }
.hm-house-mark { width: 26px; height: 26px; color: var(--coral); flex: 0 0 auto;
    filter: drop-shadow(0 0 6px rgba(224,122,95,0.45)); }
.hm-house-mark svg { width: 100%; height: 100%; }
.hm-brand-block { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hm-logo { display: flex; align-items: baseline; gap: 5px; line-height: 1; }
.hm-logo-hearth { font-family: var(--head); font-weight: 900; font-style: italic; color: var(--cream);
    font-size: 24px; letter-spacing: 0.02em; }
.hm-logo-med { font-family: var(--head); font-style: italic; font-weight: 500; color: var(--sage); font-size: 22px; }
.hm-tagline { color: var(--honey); font-size: 10px; letter-spacing: 0.16em; }

.hm-nav { flex: 0 0 44%; display: flex; align-items: center; justify-content: center; gap: 24px; }
.hm-nav a { font-size: 15px; transition: transform .2s, opacity .2s; }
.hm-nav a:hover { transform: translateY(-2px); }
.hm-nav-1 { font-family: var(--head); font-style: italic; font-weight: 600; color: var(--cream); }
.hm-nav-2 { font-family: var(--sans); font-weight: 800; text-transform: uppercase; color: var(--sage);
    letter-spacing: 0.1em; font-size: 13px; }
.hm-nav-3 { font-family: var(--head); font-style: italic; font-weight: 600; color: var(--honey); }
.hm-nav-4 { font-family: var(--sans); font-weight: 800; text-transform: uppercase; color: var(--coral);
    letter-spacing: 0.1em; font-size: 13px; }

.hm-household { flex: 0 0 22%; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.hm-avatars { position: relative; display: flex; align-items: center; gap: 0; }
.hm-avatars::before { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 1px;
    background: rgba(245,237,227,0.35); }
.hm-avatars i { position: relative; display: block; border-radius: 50%; border: 1.5px solid var(--cocoa); }
.hm-avatars .a1 { width: 14px; height: 14px; background: var(--sage); z-index: 1; }
.hm-avatars .a2 { width: 18px; height: 18px; background: var(--honey); margin-left: -3px; z-index: 2; }
.hm-avatars .a3 { width: 15px; height: 15px; background: var(--coral); margin-left: -3px; z-index: 3; }
.hm-families { color: var(--muted); font-size: 10px; letter-spacing: 0.14em; }

.hm-lintel-line { position: relative; height: 3px; flex: 0 0 3px;
    background: linear-gradient(90deg, var(--sage), var(--honey), var(--coral)); }
.hm-node { position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
    background: var(--honey-hi); box-shadow: 0 0 8px rgba(232,184,75,0.9);
    animation: hearth-pulse 2.4s ease-in-out infinite; }
.hm-node-l { left: 0; }
.hm-node-r { right: 0; animation-delay: 1.2s; }
@keyframes hearth-pulse { 0%,100% { opacity: .55; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.25); } }

/* ===== Layout ===== */
.main-content { max-width: 1280px; margin: 0 auto; padding: 0 24px 60px; }
section { position: relative; }
.hm-head { text-align: center; margin: 56px 0 30px; }
.hm-head-line { display: block; width: 90px; height: 3px; margin: 0 auto 16px;
    border-radius: 3px; position: relative; overflow: hidden; }
.hm-line-sh { background: var(--grad-sh); }
.hm-line-shg { background: var(--grad-shg); }
.hm-line-ch { background: var(--grad-ch); }
.hm-line-bs { background: var(--grad-bs); }
.hm-line-sb { background: var(--grad-sb); }
.hm-head-title { font-family: var(--head); font-weight: 700; font-size: 40px; color: var(--cream);
    letter-spacing: 0.01em; }
.hm-head-sub { color: var(--muted); font-size: 13px; letter-spacing: 0.06em; margin-top: 8px; display: block; }

/* ===== Hero: Hearth Circle ===== */
.hm-hero { padding: 26px 0 8px; }
.hm-hero-desk { position: relative; height: clamp(400px, 72vh, 640px); }

/* corner family cards */
.hm-corner { position: absolute; width: 22%; height: 30%; display: block;
    transition: transform .35s cubic-bezier(.22,1,.36,1), filter .35s; }
.hm-corner-tl { left: 0; top: 0; }
.hm-corner-tr { right: 0; top: 0; }
.hm-corner-bl { left: 0; bottom: 0; }
.hm-corner-br { right: 0; bottom: 0; }
.hm-corner.shape-house { --sh: var(--shape-house); }
.hm-corner.shape-shield { --sh: var(--shape-shield); }
.hm-corner.shape-heart { --sh: var(--shape-heart); }
.hm-corner.shape-arch { --sh: var(--shape-arch); }
.hm-corner.tone-sage { --tc: var(--sage); --tg: rgba(124,170,94,0.5); }
.hm-corner.tone-honey { --tc: var(--honey); --tg: rgba(232,184,75,0.5); }
.hm-corner.tone-coral { --tc: var(--coral); --tg: rgba(224,122,95,0.5); }
.hm-corner.tone-blue { --tc: var(--blue); --tg: rgba(123,168,196,0.5); }
.hm-corner-frame { position: absolute; inset: 0; background: var(--tc); clip-path: var(--sh); }
.hm-corner-inner { position: absolute; inset: 2px; overflow: hidden; background: var(--cocoa); clip-path: var(--sh); }
.hm-corner-img { position: absolute; inset: 0; }
.hm-corner-img img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.hm-corner-shade { position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(13,9,7,0.15) 0%, rgba(13,9,7,0.55) 58%, rgba(13,9,7,0.9) 100%); }
.hm-corner-label { position: absolute; left: 10%; right: 10%; bottom: 9%; text-align: center;
    display: flex; flex-direction: column; gap: 2px; }
.hm-corner-name { font-family: var(--head); font-style: italic; font-weight: 600; font-size: 13px; color: var(--cream); }
.hm-corner-note { font-size: 8.5px; letter-spacing: 0.06em; color: var(--tc); }
.hm-corner:hover { transform: translateY(-4px); filter: drop-shadow(0 12px 26px var(--tg)); }
.hm-corner.shape-heart:hover .hm-corner-frame { animation: heart-thump 1.5s ease-in-out infinite; }
@keyframes heart-thump { 0%,100% { transform: scale(1); } 22% { transform: scale(1.035); } 44% { transform: scale(1); } }

/* central round table */
.hm-table { position: absolute; left: 50%; top: 50%; height: 92%; aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%); border-radius: 50%; overflow: hidden; display: block;
    border: 3px solid transparent;
    background-image: linear-gradient(var(--cocoa), var(--cocoa)), var(--grad-sh);
    background-origin: border-box; background-clip: padding-box, border-box;
    transition: filter .4s; }
.hm-table-img { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.hm-table-img img { width: 100%; height: 100%; object-fit: cover; }
.hm-table-grain { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
    background: repeating-conic-gradient(from 0deg, rgba(232,184,75,0.34) 0deg 0.5deg, transparent 0.5deg 22.5deg);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 16%, #000 19%, #000 97%, transparent 100%);
    mask-image: radial-gradient(circle at 50% 50%, transparent 16%, #000 19%, #000 97%, transparent 100%);
    transition: opacity .4s; }
.hm-table-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%;
    border: 1px dashed rgba(232,184,75,0.4); pointer-events: none; }
.hm-table-ring.r1 { width: 44%; height: 44%; margin: -22% 0 0 -22%; animation: hm-spin 22s linear infinite; }
.hm-table-ring.r2 { width: 58%; height: 58%; margin: -29% 0 0 -29%; animation: hm-spin-r 30s linear infinite; }
.hm-table-ring.r3 { width: 72%; height: 72%; margin: -36% 0 0 -36%; animation: hm-spin 38s linear infinite; }
.hm-table-ring.r4 { width: 86%; height: 86%; margin: -43% 0 0 -43%; animation: hm-spin-r 46s linear infinite; }
.hm-table-ring.r5 { width: 100%; height: 100%; margin: -50% 0 0 -50%; animation: hm-spin 54s linear infinite; }
@keyframes hm-spin { to { transform: rotate(360deg); } }
@keyframes hm-spin-r { to { transform: rotate(-360deg); } }
.hm-table-tint { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
    background: radial-gradient(ellipse at 50% 34%, rgba(232,184,75,0.30), transparent 62%),
                linear-gradient(180deg, transparent 34%, rgba(13,9,7,0.72) 74%, rgba(13,9,7,0.94) 100%); }
.hm-table-dots { position: absolute; left: 50%; top: 50%; width: 30%; height: 30%; margin: -15% 0 0 -15%;
    pointer-events: none; border-radius: 50%;
    background-image: radial-gradient(rgba(232,184,75,0.55) 1.2px, transparent 1.2px);
    background-size: 8px 8px;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 52%, #000 56%, #000 76%, transparent 80%);
    mask-image: radial-gradient(circle at 50% 50%, transparent 52%, #000 56%, #000 76%, transparent 80%); }
.hm-table-core { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px;
    margin: -60px 0 0 -60px; border-radius: 50%; overflow: hidden;
    border: 3px solid var(--cocoa-hi); box-shadow: 0 0 0 3px rgba(232,184,75,0.45), 0 10px 26px rgba(13,9,7,0.7); }
.hm-table-core img { width: 100%; height: 100%; object-fit: cover; }
.hm-table-foot { position: absolute; left: 16%; right: 16%; bottom: 9%; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 7px; }
.hm-table-title { font-family: var(--head); font-style: italic; font-weight: 600; font-size: 24px;
    line-height: 1.2; color: var(--cream); }
.hm-table-pill { font-size: 9.5px; letter-spacing: 0.12em; color: var(--void); background: var(--sage);
    padding: 3px 12px; border-radius: 20px; }
.hm-table-read { position: absolute; right: 12%; bottom: 3.4%; display: inline-flex; align-items: center; gap: 5px;
    color: var(--sage-hi); font-size: 12px; font-weight: 600; }
.hm-table-read svg { width: 15px; height: 15px; }
.hm-table:hover { filter: drop-shadow(0 0 26px rgba(124,170,94,0.5)); }
.hm-table:hover .hm-table-ring { animation-duration: 8s; }
.hm-table:hover .hm-table-grain { opacity: 1; }
.hm-table:hover .hm-table-grain { filter: brightness(1.5); }
.hm-hero-hint { text-align: center; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; margin-top: 16px; }

/* Mobile hero: four houses */
.hm-mob { display: none; }
.hm-mob-row { display: flex; align-items: flex-end; justify-content: center; gap: 6px;
    height: 122px; padding: 6px 0; box-sizing: border-box; }
.hm-hut { position: relative; width: 68px; height: 100px; display: block; transition: transform .3s; }
.hm-hut.tone-sage { --tc: var(--sage); --tg: rgba(124,170,94,0.5); }
.hm-hut.tone-honey { --tc: var(--honey); --tg: rgba(232,184,75,0.5); }
.hm-hut.tone-coral { --tc: var(--coral); --tg: rgba(224,122,95,0.5); }
.hm-hut.tone-blue { --tc: var(--blue); --tg: rgba(123,168,196,0.5); }
.hm-hut-frame { position: absolute; inset: 0; background: var(--tc); clip-path: var(--shape-house); }
.hm-hut-inner { position: absolute; inset: 1.5px; overflow: hidden; background: var(--cocoa);
    clip-path: var(--shape-house); }
.hm-hut-roof { position: absolute; left: 0; right: 0; top: 0; height: 30%;
    background: linear-gradient(180deg, var(--tc), rgba(37,29,24,0.1)); }
.hm-hut-img { position: absolute; left: 0; right: 0; top: 30%; bottom: 0; }
.hm-hut-img img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.hm-hut-img::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
    background: linear-gradient(180deg, transparent, rgba(13,9,7,0.9)); }
.hm-hut-door { position: absolute; left: 50%; bottom: 14px; width: 11px; height: 15px; margin-left: -5.5px;
    background: var(--honey); border-radius: 5px 5px 0 0; box-shadow: 0 0 6px rgba(232,184,75,0.55); }
.hm-hut-window { position: absolute; left: 50%; top: 22%; width: 6px; height: 6px; margin-left: -3px;
    border-radius: 50%; background: var(--honey); animation: hearth-pulse 2.2s ease-in-out infinite; }
.hm-hut-label { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center;
    font-size: 8.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--tc);
    text-shadow: 0 1px 4px rgba(13,9,7,1), 0 0 6px rgba(13,9,7,0.95); }
.hm-hut:hover { transform: translateY(-3px); filter: drop-shadow(0 8px 16px var(--tg)); }

/* ===== Shield grid ===== */
.hm-shield-section { padding: 10px 0 20px; }
.hm-shield-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hm-shield { position: relative; display: block; height: 210px;
    transition: transform .3s, filter .3s; }
.hm-shield.tone-sage { --tc: var(--sage); --tg: rgba(124,170,94,0.42); }
.hm-shield.tone-honey { --tc: var(--honey); --tg: rgba(232,184,75,0.42); }
.hm-shield.tone-coral { --tc: var(--coral); --tg: rgba(224,122,95,0.42); }
.hm-shield.tone-blue { --tc: var(--blue); --tg: rgba(123,168,196,0.42); }
.hm-shield-frame { position: absolute; inset: 0; background: var(--grad-sh); clip-path: var(--shape-shield); }
.hm-shield-inner { position: absolute; inset: 2px; background: var(--cocoa); clip-path: var(--shape-shield);
    display: flex; flex-direction: column; align-items: center; padding: 30px 16px 34px; text-align: center; }
.hm-shield-badge { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; color: var(--void); flex: 0 0 auto;
    background: linear-gradient(150deg, var(--tc), rgba(245,237,227,0.85)); }
.hm-shield-badge svg { width: 24px; height: 24px; }
.hm-shield-name { font-family: var(--head); font-style: italic; font-weight: 600; font-size: 14px;
    color: var(--cream); margin-top: 10px; line-height: 1.2; }
.hm-shield-count { font-size: 10px; color: var(--muted); letter-spacing: 0.06em; margin-top: 4px; }
.hm-shield-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 9px; }
.hm-shield-pill { font-family: var(--mono); font-size: 8px; letter-spacing: 0.03em; padding: 2px 7px;
    border-radius: 20px; color: var(--cream); background: rgba(245,237,227,0.08); }
.hm-shield-pill.p0 { background: rgba(124,170,94,0.24); color: var(--sage-hi); }
.hm-shield-pill.p1 { background: rgba(232,184,75,0.22); color: var(--honey-hi); }
.hm-shield-pill.p2 { background: rgba(224,122,95,0.22); color: var(--coral-hi); }
.hm-shield-rule { position: absolute; left: 24%; right: 24%; bottom: 20px; height: 1px;
    background: var(--tc); opacity: .55; }
.hm-shield-rule i { position: absolute; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
    border-radius: 50%; background: var(--tc); }
.hm-shield-rule i:nth-child(1) { left: 0; }
.hm-shield-rule i:nth-child(2) { left: 50%; margin-left: -2.5px; }
.hm-shield-rule i:nth-child(3) { right: 0; }
.hm-shield-nubs i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--tc); opacity: .7; }
.hm-shield-nubs i:nth-child(1) { left: -2px; top: 32%; }
.hm-shield-nubs i:nth-child(2) { right: -2px; top: 32%; }
.hm-shield-nubs i:nth-child(3) { left: 26%; top: -2px; }
.hm-shield-nubs i:nth-child(4) { right: 26%; top: -2px; }
.hm-shield:hover { transform: translateY(-6px) scale(1.02); filter: drop-shadow(0 14px 26px var(--tg)); }

/* ===== Heartbeat rail ===== */
.hm-beat-section { padding: 10px 0 20px; }
.hm-beat { position: relative; background: rgba(224,122,95,0.08); border: 1px dashed var(--honey);
    border-radius: 18px; padding: 24px 18px 30px; }
.hm-beat-track { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 12px; cursor: grab;
    scrollbar-width: thin; scrollbar-color: var(--coral) transparent; }
.hm-beat-track.dragging { cursor: grabbing; }
.hm-beat-track::-webkit-scrollbar { height: 6px; }
.hm-beat-track::-webkit-scrollbar-thumb { background: var(--coral); border-radius: 6px; }
.hm-beat-dots { position: absolute; left: 18px; right: 18px; bottom: 6px; height: 16px;
    background-image: var(--dots); background-size: 12px 12px; opacity: .9; pointer-events: none; }
.hm-beat-card { position: relative; flex: 0 0 296px; display: block; background: var(--cocoa);
    border: 1px solid rgba(232,184,75,0.3); border-radius: 14px; padding: 0 18px 16px;
    box-shadow: var(--shadow); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.hm-beat-wave { position: relative; display: block; height: 74px; margin: 0 -18px 14px;
    background: linear-gradient(120deg, rgba(224,122,95,0.35), rgba(232,184,75,0.16));
    color: var(--cream); overflow: hidden; }
.hm-beat-wave svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .95; }
.hm-beat-dot { position: absolute; top: 50%; left: 0; width: 7px; height: 7px; margin-top: -3.5px;
    border-radius: 50%; background: var(--coral-hi); box-shadow: 0 0 10px var(--coral);
    animation: beat-run 3.2s linear infinite; }
@keyframes beat-run { 0% { left: 2%; } 100% { left: 96%; } }
.hm-beat-mid { display: flex; flex-direction: column; gap: 2px; }
.hm-beat-num { font-size: 10px; letter-spacing: 0.12em; color: var(--muted); }
.hm-beat-name { font-family: var(--head); font-style: italic; font-weight: 600; font-size: 16px; color: var(--cream); }
.hm-beat-desc { font-size: 9.5px; line-height: 1.3; letter-spacing: 0.02em; color: var(--muted); }
.hm-beat-bar { display: block; height: 5px; margin-top: 12px; border-radius: 5px;
    background: rgba(245,237,227,0.1); overflow: hidden; }
.hm-beat-bar i { display: block; height: 100%; border-radius: 5px; background: var(--grad-ch); }
.hm-beat-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; }
.hm-beat-bpm { font-size: 17px; font-weight: 600; color: var(--coral-hi); }
.hm-beat-time { font-size: 10px; color: var(--muted); }
.hm-beat-card:hover { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(224,122,95,0.35); }
.hm-beat-card:hover .hm-beat-dot { animation-duration: 1.1s; }
.hm-beat-card:hover .hm-beat-wave svg { animation: wave-redraw 1.4s ease-in-out infinite; }
@keyframes wave-redraw { 0%,100% { opacity: .6; } 50% { opacity: 1; } }
.hm-beat-hint { text-align: center; color: var(--muted); font-size: 12px; letter-spacing: 0.06em; margin-top: 16px; }

/* ===== Family arc ===== */
.hm-arc-section { padding: 10px 0 20px; }
.hm-arc { display: flex; justify-content: center; align-items: flex-start; gap: 16px;
    flex-wrap: wrap; padding: 44px 0 52px; }
.hm-door { position: relative; width: 176px; height: 208px;
    transform: rotate(var(--ang)) translateY(var(--ty)); transition: transform .35s; }
.hm-door-frame { position: absolute; inset: 0; background: var(--grad-bs); clip-path: var(--shape-arch); }
.hm-door-inner { position: absolute; inset: 2px; background: var(--cocoa); clip-path: var(--shape-arch);
    display: flex; flex-direction: column; align-items: center; padding: 24px 16px 16px; text-align: center; }
.hm-door-jamb { position: absolute; inset: 8px 8px auto; height: 100%; border-left: 1px solid rgba(245,237,227,0.16);
    border-right: 1px solid rgba(245,237,227,0.16); border-radius: 60px 60px 0 0; pointer-events: none; }
.hm-door-img { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--cocoa-hi);
    border: 3px solid var(--cream); box-shadow: 0 4px 14px rgba(13,9,7,0.6); margin-top: 4px; }
.hm-door-img img { width: 100%; height: 100%; object-fit: cover; }
.hm-door-cross { width: 16px; height: 16px; color: var(--cream); margin-top: 8px; opacity: .85; }
.hm-door-cross svg { width: 100%; height: 100%; }
.hm-door-name { font-family: var(--head); font-style: italic; font-weight: 600; font-size: 13px;
    color: var(--cream); margin-top: 6px; }
.hm-door-spec { font-size: 9.5px; letter-spacing: 0.06em; color: var(--blue-hi); }
.hm-door-dots { display: flex; gap: 6px; margin-top: 10px; }
.hm-door-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(245,237,227,0.2); }
.hm-door-dots i.on { background: var(--cream); }
.hm-door:hover { transform: rotate(0deg) translateY(calc(var(--ty) - 8px)); }
.hm-door:hover .hm-door-frame { filter: drop-shadow(0 16px 30px rgba(123,168,196,0.5)); }

/* ===== Leaf tags ===== */
.hm-leaf-section { padding: 10px 0 20px; }
.hm-leaf-stage { position: relative; display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 30px; padding: 44px 0; border-radius: 18px;
    background: rgba(123,168,196,0.05); border: 1px dashed rgba(124,170,94,0.45); }
.hm-leaf-link { position: absolute; border-top: 1px dashed rgba(245,237,227,0.25); }
.hm-leaf-link.l1 { top: 46%; left: 14%; width: 12%; }
.hm-leaf-link.l2 { top: 54%; left: 32%; width: 12%; }
.hm-leaf-link.l3 { top: 46%; left: 54%; width: 12%; }
.hm-leaf-link.l4 { top: 54%; left: 72%; width: 12%; }
.hm-leaf { position: relative; width: 118px; height: 118px; transition: transform .35s; }
.hm-leaf-shape { position: absolute; inset: 0; clip-path: var(--shape-leaf); }
.hm-leaf-1 .hm-leaf-shape, .hm-leaf-3 .hm-leaf-shape, .hm-leaf-5 .hm-leaf-shape { background: var(--grad-sb); }
.hm-leaf-2 .hm-leaf-shape, .hm-leaf-4 .hm-leaf-shape { background: var(--grad-bs); }
.hm-leaf-vein { position: absolute; left: 12%; right: 12%; top: 50%; height: 1px;
    background: rgba(13,9,7,0.45); }
.hm-leaf-teeth i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); opacity: .8; }
.hm-leaf-teeth i:nth-child(1) { left: -2px; top: 50%; margin-top: -3px; }
.hm-leaf-teeth i:nth-child(2) { right: -2px; top: 50%; margin-top: -3px; background: var(--blue); }
.hm-leaf-teeth i:nth-child(3) { left: 50%; top: -2px; margin-left: -3px; }
.hm-leaf-body { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 3px; text-align: center; }
.hm-leaf-name { font-family: var(--head); font-style: italic; font-weight: 700; font-size: 12px; color: var(--bg-low); }
.hm-leaf-note { font-size: 9px; color: rgba(13,9,7,0.72); }
.hm-leaf:hover { transform: scale(1.08); }
.hm-leaf:hover .hm-leaf-shape { filter: drop-shadow(0 12px 22px rgba(124,170,94,0.55)); }
.hm-leaf:hover .hm-leaf-body { animation: leaf-sway 1.6s ease-in-out infinite; }
@keyframes leaf-sway { 0%,100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
.hm-leaf-hot { text-align: center; color: var(--muted); font-size: 13px; letter-spacing: 0.04em; margin-top: 18px; }
.hm-leaf-hot strong { color: var(--sage-hi); }

/* ===== Masonry + sidebar ===== */
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; margin-top: 40px; align-items: start; }
.masonry-section { padding: 10px 0; }
.masonry-stream { display: flex; flex-direction: column; gap: 24px; }
.masonry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hm-card { position: relative; display: block; background: var(--grad-ce);
    border: 1px solid rgba(124,170,94,0.34); border-radius: 12px; overflow: hidden;
    box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s, border-color .3s; }
.hm-card-flap { display: block; height: 11px; position: relative;
    border-bottom: 1px dashed rgba(124,170,94,0.45); }
.hm-card-flap i { position: absolute; left: 50%; top: 0; margin-left: -7px; width: 0; height: 0;
    border-left: 7px solid transparent; border-right: 7px solid transparent;
    border-top: 8px solid rgba(124,170,94,0.7); }
.hm-card-record { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.hm-card-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); flex: 0 0 auto; }
.hm-card-dept { font-family: var(--head); font-style: italic; font-weight: 600; font-size: 11px; color: var(--cream); }
.hm-card-date { margin-left: auto; font-size: 10px; color: var(--muted); }
.masonry-img-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.masonry-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.masonry-badge { position: absolute; top: 10px; left: 12px; background: var(--sage); color: var(--void);
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; padding: 3px 10px; border-radius: 20px; }
.masonry-body { padding: 14px 16px 22px; }
.masonry-cat { color: var(--honey); font-size: 11px; letter-spacing: 0.08em; }
.masonry-title { font-family: var(--sans); font-weight: 600; font-size: 16px; color: var(--cream);
    margin: 6px 0 10px; line-height: 1.4; }
.masonry-meta { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px;
    color: rgba(154,138,120,0.95); }
.masonry-meta svg { width: 13px; height: 13px; color: var(--coral); }
.masonry-read { position: absolute; right: 16px; bottom: 14px; background: var(--sage); color: var(--void);
    font-size: 11px; padding: 5px 14px; border-radius: 20px; opacity: 0; transform: translateY(6px);
    transition: opacity .3s, transform .3s; }
.hm-card:hover { transform: translateY(-8px); border-color: rgba(124,170,94,0.7);
    box-shadow: 0 18px 40px rgba(124,170,94,0.3), 0 0 0 1px rgba(232,184,75,0.25); }
.hm-card:hover .masonry-img { transform: scale(1.06); }
.hm-card:hover .masonry-read { opacity: 1; transform: translateY(0); }
.hm-card:hover .hm-card-flap { border-bottom-color: rgba(232,184,75,0.85); }
.masonry-hidden { display: none; }
.masonry-ad-slot { position: relative; margin: 4px 0 18px; padding: 14px 0; }
.masonry-ad-slot::before, .masonry-ad-slot::after { content: ''; position: absolute; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124,170,94,0.65), transparent); }
.masonry-ad-slot::before { top: 0; }
.masonry-ad-slot::after { bottom: 0; }

.load-more-wrap { display: flex; justify-content: center; align-items: center; margin: 30px 0 10px; position: relative; }
.load-more-btn { position: relative; display: inline-flex; align-items: center; gap: 10px;
    background: var(--sage); color: var(--void); border: none; cursor: pointer;
    font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: 0.03em;
    padding: 13px 30px; border-radius: 30px; box-shadow: 0 10px 26px rgba(124,170,94,0.35);
    transition: transform .25s, box-shadow .25s; }
.load-more-btn:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(124,170,94,0.5); }
.load-ring { width: 15px; height: 15px; border: 2px solid rgba(13,9,7,0.28); border-top-color: var(--honey);
    border-radius: 50%; opacity: 0; }
.load-more-btn.loading .load-ring { opacity: 1; animation: spin2 0.8s linear infinite; }
@keyframes spin2 { to { transform: rotate(360deg); } }
.infinite-ring { position: absolute; width: 30px; height: 30px; border: 3px solid rgba(232,184,75,0.25);
    border-top-color: var(--honey); border-radius: 50%; opacity: 0; }
.infinite-ring.spin { opacity: 1; animation: spin2 0.8s linear infinite; }
.scroll-sentinel { height: 1px; }

/* Sidebar widget */
.sidebar { position: sticky; top: 104px; }
.hm-widget { background: var(--cocoa); border-radius: 16px; padding: 20px 18px; box-shadow: var(--shadow);
    border: 1px solid rgba(124,170,94,0.3); }
.hm-widget-title { font-family: var(--head); font-weight: 700; font-size: 17px; color: var(--cream);
    display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.hm-widget-title svg { width: 17px; height: 17px; color: var(--sage); }
.hm-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--honey);
    animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }
.hm-rank-list { display: flex; flex-direction: column; gap: 8px; }
.hm-rank-row { position: relative; display: flex; align-items: center; gap: 10px;
    background: var(--bg-top); border-radius: 10px; padding: 10px 12px 10px 16px; }
.hm-rank-bar { position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--rc); }
.hm-rank-name { flex: 1; font-family: var(--head); font-style: italic; font-weight: 600; font-size: 14px; color: var(--cream); }
.hm-rank-count { color: var(--honey); font-size: 13px; font-weight: 600; }
.hm-widget-note { color: var(--muted); font-size: 10px; letter-spacing: 0.06em; margin-top: 12px; text-align: center; }

/* ===== Footer ===== */
.hm-footer { position: relative; background: var(--void); color: var(--cream); margin-top: 60px; overflow: hidden; }
.hm-footer-weave { display: block; height: 40px; background-image: var(--herring);
    animation: plx 6s linear infinite; }
@keyframes plx { to { background-position: 14px 14px; } }
.hm-footer-edge { display: block; height: 3px;
    background: linear-gradient(90deg, rgba(124,170,94,0.75), rgba(232,184,75,0.75)); }
.hm-footer-inner { max-width: 1280px; margin: 0 auto; padding: 34px 24px 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hm-footer-brand { display: flex; flex-direction: column; gap: 6px; }
.hm-footer-logo { font-family: var(--head); font-size: 24px; display: flex; align-items: baseline; gap: 5px; }
.hm-footer-hearth { font-weight: 900; font-style: italic; color: var(--cream); letter-spacing: 0.02em; }
.hm-footer-med { font-style: italic; font-weight: 500; color: var(--sage); }
.hm-footer-tagline { color: rgba(245,237,227,0.55); font-size: 11px; letter-spacing: 0.1em; }
.hm-footer-nav { display: flex; gap: 28px; }
.hm-footer-nav a { font-size: 15px; transition: transform .2s; }
.hm-footer-nav a:hover { transform: translateY(-2px); }
.hm-footer-nav-1 { font-family: var(--head); font-style: italic; font-weight: 600; color: var(--sage); }
.hm-footer-nav-2 { font-family: var(--sans); font-weight: 800; text-transform: uppercase; color: var(--honey);
    letter-spacing: 0.08em; font-size: 13px; }
.hm-footer-nav-3 { font-family: var(--head); font-style: italic; font-weight: 600; color: var(--coral); }
.hm-footer-copy { color: rgba(245,237,227,0.45); font-size: 11px; letter-spacing: 0.06em; }

/* ===== Ad slots ===== */
.ad-slot { margin: 26px auto; }
.ad-slot-top, .ad-slot-bottom { background: rgba(124,170,94,0.06); border-radius: 12px; padding: 6px 0; }
.masonry-ad-slot { background: rgba(124,170,94,0.06); border-radius: 12px; }
#adv1 > div:first-child, #adv2 > div:first-child, #adv3 > div:first-child { color: var(--muted) !important; }

/* ===== Article detail ===== */
.article-main { max-width: 900px; margin: 0 auto; padding: 0 24px 60px; }
.article-hero { position: relative; height: 56vh; min-height: 320px; max-height: 520px; margin: 24px 0 0;
    border-radius: 20px; overflow: hidden;
    background: radial-gradient(ellipse at 50% 32%, rgba(124,170,94,0.34), transparent 62%), var(--cocoa); }
.article-hero-glow { position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(232,184,75,0.5), transparent 70%); filter: blur(20px); }
.article-hero-edge { position: absolute; left: 0; top: 0; bottom: 0; width: 30px; z-index: 2;
    background-image: var(--herring); animation: plx 6s linear infinite; }
.article-hero-actions { position: absolute; top: 18px; left: 18px; display: flex; gap: 12px; z-index: 3; }
.hero-chip { display: inline-flex; align-items: center; gap: 7px; background: rgba(13,9,7,0.62);
    border: 1px solid var(--sage); color: var(--cream); border-radius: 30px; padding: 8px 16px;
    font-family: var(--mono); font-size: 12px; cursor: pointer; transition: transform .25s; }
.hero-chip svg { width: 15px; height: 15px; }
.hero-chip:hover { transform: scale(1.08); }
.article-cover-wrap { position: absolute; inset: 0; }
.article-cover { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in;
    mask-image: linear-gradient(to bottom, #000 60%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); }

.article-headline { text-align: left; margin: 28px 0 20px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.mono-pill { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; padding: 4px 12px; border-radius: 20px; }
.article-cat { border: 1px solid var(--sage); color: var(--sage-hi); }
.detail-badge { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; padding: 4px 12px; border-radius: 20px;
    background: var(--sage); color: var(--void); }
.article-popularity { border: 1px solid var(--honey); color: var(--honey); }
.article-heat { border: 1px solid var(--coral); color: var(--coral); display: inline-flex; align-items: center; gap: 5px; }
.article-heat svg { width: 12px; height: 12px; }
.article-title { font-family: var(--head); font-weight: 700; font-size: 32px; line-height: 1.25; color: var(--cream); }
.at-hearth { color: var(--sage); font-weight: 900; font-style: italic; letter-spacing: 0.02em; }
.at-guide { font-style: italic; font-weight: 500; color: var(--honey); }
.article-meta-row { color: var(--muted); font-size: 12px; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.meta-dot { opacity: 0.5; }

/* Vital signs panel */
.vital-panel { position: relative; background: var(--cocoa); border: 1px solid rgba(124,170,94,0.55);
    border-radius: 12px; padding: 24px 24px 18px; margin: 26px 0; box-shadow: var(--shadow); overflow: hidden; }
.vital-beat { position: absolute; top: 0; left: 0; right: 0; height: 16px;
    background-image: repeating-linear-gradient(90deg, rgba(224,122,95,0.12) 0 1px, transparent 1px 22px); }
.vital-head { position: relative; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin: 6px 0 20px; }
.vital-title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700;
    font-size: 19px; color: var(--cream); }
.vital-title svg { width: 20px; height: 20px; color: var(--coral); }
.vital-sub { color: var(--muted); font-size: 11px; letter-spacing: 0.06em; }
.vital-rings { position: relative; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.vit-item { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1 1 0; min-width: 84px; }
.vit-ring { position: relative; width: 72px; height: 72px; display: block; transition: transform .3s; }
.vit-ring svg { width: 100%; height: 100%; }
.vit-track { fill: none; stroke: rgba(245,237,227,0.13); stroke-width: 4; }
.vit-arc { fill: none; stroke-width: 4; stroke-linecap: round; transition: stroke-width .3s; }
.vit-ring.st-normal .vit-arc { stroke: var(--sage); }
.vit-ring.st-watch .vit-arc { stroke: var(--honey); }
.vit-ring.st-alert .vit-arc { stroke: var(--coral); }
.vit-val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 600; color: var(--cream); }
.vit-name { font-size: 10px; letter-spacing: 0.05em; color: var(--muted); }
.vit-unit { font-size: 9px; letter-spacing: 0.05em; color: rgba(154,138,120,0.75); }
.vital-panel:hover .vit-arc { stroke-width: 6; }
.vital-panel:hover .vit-val { color: var(--honey-hi); }
.vital-note { position: relative; margin-top: 18px; padding-top: 14px; color: var(--muted); font-size: 11px;
    letter-spacing: 0.06em; border-top: 1px dashed rgba(245,237,227,0.14); }

/* Family health map */
.family-map { position: relative; background: var(--cocoa); border: 1px solid var(--coral);
    border-radius: 12px; padding: 24px; margin: 26px 0; box-shadow: var(--shadow); overflow: hidden; }
.family-weave { position: absolute; top: 0; left: 0; right: 0; height: 16px; background-image: var(--herring); }
.family-head { position: relative; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.family-theme { font-family: var(--head); font-style: italic; font-weight: 600; font-size: 20px; color: var(--cream); }
.family-rel { color: var(--honey); font-size: 11px; letter-spacing: 0.06em; }
.family-subject { color: var(--muted); font-size: 11px; letter-spacing: 0.06em; margin: 6px 0 22px; }
.map-track { position: relative; display: flex; justify-content: space-between; align-items: flex-start;
    gap: 12px; }
.map-line { position: absolute; left: 12%; right: 12%; top: 24px; height: 1px;
    background: rgba(245,237,227,0.22); }
.map-node { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center;
    gap: 4px; background: none; border: none; cursor: pointer; padding: 0; transition: transform .25s; }
.map-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; border: 2px solid var(--cream);
    background: var(--cocoa-hi); box-shadow: 0 4px 12px rgba(13,9,7,0.55); }
.map-avatar img { width: 100%; height: 100%; object-fit: cover; }
.map-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: -2px; }
.map-node.st-normal .map-dot { background: var(--sage); }
.map-node.st-watch .map-dot { background: var(--honey); }
.map-node.st-alert .map-dot { background: var(--coral); }
.map-name { font-family: var(--head); font-style: italic; font-weight: 600; font-size: 12px; color: var(--cream); }
.map-role { font-size: 9.5px; color: var(--muted); letter-spacing: 0.05em; }
.map-node:hover { transform: translateY(-4px); }
.map-risks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.map-risk { font-family: var(--mono); font-size: 11px; line-height: 1.4; padding: 8px 14px;
    border-radius: 12px; flex: 1 1 30%; min-width: 160px; color: var(--cream); }
.map-risk.risk-0 { background: rgba(124,170,94,0.16); border-left: 3px solid var(--sage); }
.map-risk.risk-1 { background: rgba(232,184,75,0.16); border-left: 3px solid var(--honey); }
.map-risk.risk-2 { background: rgba(224,122,95,0.16); border-left: 3px solid var(--coral); }
.family-foot { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 11px;
    letter-spacing: 0.04em; border-top: 1px dashed rgba(245,237,227,0.14); padding-top: 14px; margin-top: 20px; }

.article-body { max-width: 680px; margin: 20px auto; font-size: 18px; line-height: 1.8; color: var(--cream); }
.article-body p { margin-bottom: 22px; }
.article-body p:nth-child(odd) { border-left: 3px solid var(--honey); padding-left: 18px; }
.article-body p:first-of-type::first-letter { font-family: var(--head); font-weight: 700; font-size: 46px;
    color: var(--sage); float: left; line-height: 0.8; padding: 6px 8px 0 0; }
.article-body img { border-radius: 14px; margin: 20px 0; width: 100%; }
.tech-term { color: var(--coral-hi); border-bottom: 1px solid var(--coral); cursor: pointer; }
.tech-term:hover { background: rgba(224,122,95,0.18); color: var(--coral-hi); }

.related-section { margin: 40px 0 10px; }
.related-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hm-related-card { position: relative; display: block; background: var(--grad-ce);
    border: 1px solid rgba(124,170,94,0.34); border-radius: 12px; overflow: hidden;
    box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.hm-related-flap { display: block; height: 9px; position: relative;
    border-bottom: 1px dashed rgba(124,170,94,0.45); }
.hm-related-flap i { position: absolute; left: 50%; top: 0; margin-left: -6px; width: 0; height: 0;
    border-left: 6px solid transparent; border-right: 6px solid transparent;
    border-top: 7px solid rgba(124,170,94,0.7); }
.hm-related-record { display: flex; align-items: center; gap: 8px; padding: 7px 12px; }
.hm-related-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); flex: 0 0 auto; }
.hm-related-dept { font-family: var(--head); font-style: italic; font-weight: 600; font-size: 10px; color: var(--cream); }
.hm-related-date { margin-left: auto; font-size: 9px; color: var(--muted); }
.hm-related-img-wrap { height: 110px; overflow: hidden; }
.hm-related-img { width: 100%; height: 100%; object-fit: cover; }
.hm-related-body { padding: 12px 14px 16px; }
.hm-related-cat { color: var(--honey); font-size: 10px; letter-spacing: 0.08em; }
.hm-related-title { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--cream);
    margin: 6px 0 8px; line-height: 1.35; }
.hm-related-heat { display: inline-flex; align-items: center; gap: 5px; color: var(--coral);
    font-family: var(--mono); font-size: 11px; }
.hm-related-heat svg { width: 12px; height: 12px; }
.hm-related-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(124,170,94,0.3); }

/* Drawers */
.term-drawer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: var(--cocoa); border-top: 3px solid var(--sage); border-radius: 18px 18px 0 0;
    padding: 22px 24px 30px; box-shadow: 0 -14px 40px rgba(13,9,7,0.7);
    transform: translateY(120%); transition: transform .35s cubic-bezier(.22,1,.36,1); }
.term-drawer.open { transform: translateY(0); }
.term-drawer-close { position: absolute; top: 10px; right: 16px; border: none; background: none;
    font-size: 26px; color: var(--muted); cursor: pointer; line-height: 1; }
.term-drawer-text { font-size: 15px; color: var(--cream); line-height: 1.6; }

.cover-gallery { position: fixed; inset: 0; z-index: 90; background: rgba(13,9,7,0.94);
    display: none; align-items: center; justify-content: center; padding: 30px; }
.cover-gallery.open { display: flex; }
.cover-gallery img { max-width: 92%; max-height: 92%; border-radius: 12px; object-fit: contain; }
.cover-gallery-close { position: absolute; top: 20px; right: 26px; border: none; background: none;
    color: var(--cream); font-size: 34px; cursor: pointer; line-height: 1; }

/* ===== Static pages ===== */
.static-main { max-width: 900px; margin: 0 auto; padding: 30px 24px 60px; }
.back-btn { display: inline-block; color: var(--sage-hi); font-size: 13px; margin-bottom: 20px; }
.static-article { background: var(--cocoa); border: 1px solid rgba(124,170,94,0.32); border-radius: 16px;
    padding: 34px 32px; box-shadow: var(--shadow); }
.static-cat { border: 1px solid var(--sage); color: var(--sage-hi); }
.static-title { font-family: var(--head); font-weight: 700; font-size: 30px; color: var(--cream); margin: 14px 0 20px; }
.static-content { font-size: 16px; line-height: 1.8; color: var(--cream); }
.static-content h2 { font-family: var(--head); font-size: 20px; color: var(--honey); margin: 22px 0 8px; }
.static-content p { margin-bottom: 14px; }
.static-content strong { color: var(--sage-hi); }

/* ===== Reveal ===== */
.hm-reveal { opacity: 0; }
.hm-reveal.revealed { opacity: 1; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .masonry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-shield-grid { grid-template-columns: repeat(4, 1fr); }
    .hm-table-core { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
    .hm-table-title { font-size: 19px; }
    .hm-corner-name { font-size: 12px; }
}
@media (max-width: 860px) {
    .hm-nav { display: none; }
    .hm-lintel-left { flex: 1 1 auto; }
    .hm-household { flex: 0 0 auto; }
    .hm-head-title { font-size: 34px; }
    .hm-shield { height: 196px; }
}
@media (max-width: 767px) {
    .hm-header { height: 66px; }
    .hm-eave { height: 8px; flex: 0 0 8px; }
    .hm-lintel-line { height: 2px; flex: 0 0 2px; }
    .hm-lintel-inner { padding: 0 16px; }
    .hm-household { display: none; }
    .hm-logo-hearth { font-size: 20px; }
    .hm-logo-med { font-size: 18px; }
    .hm-tagline { font-size: 9px; letter-spacing: 0.1em; }
    .main-content { padding: 0 14px 40px; }
    .hm-hero-desk, .hm-hero-hint { display: none; }
    .hm-mob { display: block; }
    .hm-hero { padding: 4px 0; max-height: 130px; overflow: hidden; }
    .hm-shield-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hm-shield { height: 200px; }
    .hm-shield-inner { padding: 18px 10px 44px; }
    .hm-shield-badge { width: 34px; height: 34px; }
    .hm-shield-badge svg { width: 18px; height: 18px; }
    .hm-shield-name { font-size: 12px; margin-top: 6px; }
    .hm-shield-count { font-size: 8.5px; margin-top: 2px; }
    .hm-shield-pills { gap: 4px; margin-top: 5px; max-width: 88%; }
    .hm-shield-pill { font-size: 7px; padding: 2px 5px; letter-spacing: 0; }
    .hm-arc { gap: 30px 14px; }
    .hm-door { width: 168px; height: 196px; }
    .hm-leaf-stage { gap: 18px; padding: 30px 0; }
    .hm-leaf { width: 104px; height: 104px; }
    .hm-leaf-link { display: none; }
    .article-title { font-size: 26px; }
    .related-track { grid-template-columns: minmax(0, 1fr); }
    .vital-rings { gap: 10px; }
    .vit-item { min-width: 70px; }
    .vit-ring { width: 64px; height: 64px; }
    .vit-val { font-size: 13px; }
    .map-risk { flex: 1 1 100%; }
    .hero-chip span { display: none; }
    .hero-chip { padding: 9px 11px; border-radius: 50%; }
    .hm-head { margin: 40px 0 22px; }
}
@media (max-width: 600px) {
    .masonry-grid { grid-template-columns: minmax(0, 1fr); }
    .masonry-img-wrap { aspect-ratio: 1 / 1; }
    .hm-head-title { font-size: 28px; }
    .hm-shield { height: 192px; }
    .hm-beat-card { flex-basis: 260px; }
    .hm-leaf { width: 92px; height: 92px; }
    .hm-leaf-name { font-size: 11px; }
    .map-line { display: none; }
    .map-track { gap: 6px; }
    .map-avatar { width: 42px; height: 42px; }
    .map-name { font-size: 11px; }
    .vital-rings { justify-content: center; }
    .vit-item { flex: 0 0 44%; }
}
