/**
 * Historical Memory Landing Page
 * Version: 1.2.0
 */
.hm-page {
    --hm-green: #1e4724;
    --hm-green-dark: #123318;
    --hm-gold: #d4af37;
    --hm-gold-soft: rgba(212, 175, 55, .18);
    --hm-beige: #fff9ed;
    --hm-card: rgba(255,255,255,.88);
    --hm-border: rgba(30, 71, 36, .14);
    --hm-text: #1f2a1f;
    --hm-muted: #6f766d;
    background: linear-gradient(180deg, #fff9ed 0%, #ffffff 48%, #fff9ed 100%);
    color: var(--hm-text);
    font-family: inherit;
    overflow: hidden;
}

.hm-container {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
}

.hm-hero {
    min-height: 545px;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at 12% 28%, rgba(212, 175, 55, .22), transparent 32%),
        radial-gradient(circle at 84% 72%, rgba(30, 71, 36, .10), transparent 34%),
        linear-gradient(135deg, rgba(255,249,237,.98), rgba(255,249,237,.76)),
        linear-gradient(135deg, #ead7ad, #fff9ed);
    border-bottom: 1px solid var(--hm-border);
}

.hm-hero__inner {
    padding: 34px 0 24px;
}

.hm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .08;
    background-image:
        linear-gradient(45deg, rgba(30,71,36,.35) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(212,175,55,.35) 1px, transparent 1px);
    background-size: 38px 38px;
}

.hm-logo-mark {
    display: block;
    width: min(138px, 32vw);
    height: auto;
    margin: 0 auto 14px;
    filter: drop-shadow(0 12px 22px rgba(18, 51, 24, .10));
}

.hm-hero h1 {
    margin: 18px 0 14px;
    color: var(--hm-green);
    font-size: clamp(54px, 8vw, 96px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -1px;
}

.hm-kicker {
    display: inline-flex;
    padding: 9px 20px;
    border: 1px solid rgba(212, 175, 55, .62);
    border-radius: 999px;
    color: var(--hm-green);
    background: rgba(255,255,255,.72);
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(18,51,24,.06);
}

.hm-lead {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    text-wrap: balance;
    text-wrap: pretty;

    color: #2f3b2f;
    font-size: clamp(22px, 2.3vw, 30px);
    line-height: 2;
    font-weight: 400;
}

.hm-lead br {
    display: block;
}

.hm-lead span {
    display: block;
    text-align: center;
}

.hm-hero blockquote,
.hm-quote {
    max-width: 820px;
    margin: 26px auto 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6d5414;
    font-size: clamp(21px, 2.25vw, 30px);
    font-weight: 800;
    line-height: 1.9;
}

.hm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 14px;
    color: #fff !important;
    background: var(--hm-green);
    text-decoration: none !important;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(30, 71, 36, .22);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.hm-button:hover {
    transform: translateY(-2px);
    color: var(--hm-green) !important;
    background: var(--hm-gold);
    box-shadow: 0 18px 36px rgba(30, 71, 36, .27);
}

.hm-section {
    padding: 56px 0;
}

.hm-section h2 {
    margin: 0 0 26px;
    text-align: center;
    color: var(--hm-green);
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.3;
    font-weight: 900;
}

.hm-section h2::after {
    content: "";
    display: block;
    width: 150px;
    height: 1px;
    margin: 16px auto 0;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .85), transparent);
}

.hm-section-lead {
    max-width: 850px;
    margin: -8px auto 34px;
    text-align: center;
    font-size: 19px;
    line-height: 2;
    color: #415041;
}

.hm-notice,
.hm-panel,
.hm-card,
.hm-contribute-banner {
    background: var(--hm-card);
    border: 1px solid var(--hm-border);
    border-radius: 22px;
    box-shadow: 0 16px 38px rgba(18, 51, 24, .07);
}

.hm-notice {
    padding: 28px 34px;
    text-align: center;
    border-color: rgba(212,175,55,.32);
    background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,249,237,.9));
}

.hm-notice strong {
    display: block;
    color: var(--hm-green);
    font-size: 26px;
    margin-bottom: 10px;
}

.hm-notice p,
.hm-panel p,
.hm-card p,
.hm-about p,
.hm-contribute-banner p {
    margin: 0;
    line-height: 1.95;
    font-size: 17px;
}

.hm-card p {
    text-align: center;
    text-align-last: center;
    word-spacing: normal;
    letter-spacing: normal;
}

.hm-panel--wide {
    max-width: 920px;
    margin: 0 auto;
    padding: 34px 38px;
    text-align: center;
}

.hm-panel--wide p + p {
    margin-top: 16px;
}

.hm-grid {
    display: grid;
    gap: 20px;
}

.hm-grid--stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hm-grid--services {
    grid-template-columns: repeat(4, minmax(260px, 1fr));
}

.hm-grid--workflow {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.hm-card {
    padding: 30px 20px;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease;
}

.hm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(18, 51, 24, .10);
}

.hm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: var(--hm-green);
    background: radial-gradient(circle, rgba(212,175,55,.18), rgba(212,175,55,.08));
}

.hm-icon svg {
    width: 46px;
    height: 46px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hm-icon--link,
.hm-icon--pen {
    color: #9b7625;
}

.hm-card h3 {
    margin: 0 0 10px;
    color: var(--hm-green);
    font-size: 21px;
    font-weight: 900;
}

.hm-card h3::after {
    content: "";
    display: block;
    width: 54px;
    height: 2px;
    margin: 12px auto 0;
    background: var(--hm-gold);
    border-radius: 999px;
}

.hm-stat-card .hm-icon {
    margin-bottom: 18px;
}

.hm-stat-card strong {
    display: block;
    margin: 10px 0 8px;
    color: var(--hm-green);
    font-size: clamp(40px, 4vw, 56px);
    line-height: 1;
    font-weight: 950;
}

.hm-stat-card small {
    color: #6a6a6a;
    font-size: 15px;
    font-weight: 800;
}

.hm-note {
    margin: 24px 0 0;
    text-align: center;
    color: #6d5414;
    font-weight: 800;
}

.hm-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.hm-vision-card {
    background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,249,237,.88));
}

.hm-vision .hm-card h2 {
    text-align: center;
    font-size: clamp(26px, 2.6vw, 34px);
    margin-bottom: 14px;
}

.hm-vision .hm-card h2::after {
    display: none;
}

.hm-step {
    position: relative;
    padding: 24px 14px;
    min-height: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--hm-border);
    border-radius: 18px;
    background: rgba(255,255,255,.80);
    color: var(--hm-green);
    text-align: center;
    box-shadow: 0 12px 28px rgba(18, 51, 24, .06);
}

.hm-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--hm-gold-soft);
    color: #765b12;
    font-weight: 900;
    font-size: 13px;
}

.hm-step strong {
    font-size: 17px;
    line-height: 1.5;
}

.hm-contribute {
    padding-bottom: 64px;
}

.hm-contribute-banner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 38px;
    background:
        radial-gradient(circle at left center, rgba(212,175,55,.20), transparent 36%),
        linear-gradient(135deg, var(--hm-green), var(--hm-green-dark));
    color: #fff;
    border-color: rgba(212,175,55,.32);
}

.hm-contribute-banner h2 {
    color: #fff;
    text-align: right;
    margin-bottom: 12px;
}

.hm-contribute-banner h2::after {
    display: none;
}

.hm-contribute-banner p {
    color: rgba(255,255,255,.88);
}

.hm-contribute-banner span {
    display: inline-flex;
    max-width: 330px;
    padding: 16px 18px;
    border: 1px solid rgba(212,175,55,.55);
    border-radius: 16px;
    color: #fff4c5;
    font-weight: 900;
    line-height: 1.8;
    text-align: center;
}

@media (max-width: 1080px) {
    .hm-grid--stats,
    .hm-grid--workflow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .hm-container {
        width: min(100% - 28px, 1120px);
    }

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

    .hm-hero__inner {
        padding: 0;
    }

    .hm-logo-mark {
        width: min(118px, 44vw);
    }

    .hm-lead br {
        display: none;
    }

    .hm-section {
        padding: 44px 0;
    }

    .hm-grid--stats,
    .hm-grid--services,
    .hm-grid--workflow,
    .hm-two-col,
    .hm-contribute-banner {
        grid-template-columns: 1fr;
    }

    .hm-panel--wide,
    .hm-contribute-banner {
        padding: 28px 22px;
    }

    .hm-contribute-banner h2 {
        text-align: center;
    }

    .hm-contribute-banner span {
        max-width: none;
    }
}
