.living-habitat {
    --lh-ink: #29261f;
    --lh-gold: #b98b2f;
    --lh-blue: #395d79;
    --lh-green: #5f7750;
    --lh-paper: #fbfaf5;
    position: relative;
    width: 100%;
    min-height: 100svh;
    overflow: hidden;
    color: var(--lh-ink);
    background: var(--lh-paper);
    font-family: inherit;
}

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

.lh-stage {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    isolation: isolate;
    padding: clamp(2rem, 7vw, 6rem) clamp(1.25rem, 6vw, 5rem);
}

.lh-stage[hidden] {
    display: none;
}

.lh-stage-content {
    position: relative;
    z-index: 2;
    width: min(70rem, 100%);
    margin-inline: auto;
    text-align: center;
}

.lh-kicker {
    margin: 0 0 0.7rem;
    color: var(--lh-gold);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lh-stage h1,
.lh-stage h2,
.lh-stage h3 {
    color: inherit;
}

.lh-stage h1,
.lh-stage h2 {
    margin: 0;
    text-wrap: balance;
}

.lh-stage h1 {
    font-size: clamp(2.2rem, 6vw, 5.5rem);
}

.lh-stage h2 {
    font-size: clamp(2rem, 5vw, 4.25rem);
}

.lh-orientation-copy {
    max-width: 42rem;
    margin: 1.25rem auto 2rem;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.lh-sketch,
.lh-courtyard-field {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.lh-sketch {
    background-image:
        linear-gradient(rgba(251, 250, 245, 0.16), rgba(251, 250, 245, 0.78)),
        var(--lh-sketch-image, radial-gradient(circle at center, #e4c873, #f7f2df 45%, #d9e1e4));
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: saturate(0.82);
}

.lh-courtyard {
    background:
        radial-gradient(circle at 50% 42%, rgba(221, 190, 111, 0.26), transparent 28%),
        radial-gradient(circle at 25% 40%, rgba(70, 103, 126, 0.14), transparent 38%),
        radial-gradient(circle at 75% 65%, rgba(96, 125, 81, 0.16), transparent 36%),
        #f7f4e9;
}

.lh-courtyard-field {
    opacity: 0.72;
    background-image: repeating-radial-gradient(circle at center, transparent 0 64px, rgba(185, 139, 47, 0.1) 65px 66px);
}

.lh-inquiry-panel {
    width: min(48rem, 100%);
    padding: clamp(1.5rem, 4vw, 3.5rem);
    border: 1px solid rgba(80, 67, 39, 0.2);
    border-radius: 1.25rem;
    background: rgba(255, 255, 252, 0.88);
    box-shadow: 0 1.25rem 4rem rgba(51, 45, 32, 0.11);
    backdrop-filter: blur(8px);
}

.lh-inquiry {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
    text-align: left;
}

.lh-inquiry label {
    font-weight: 700;
}

.lh-inquiry textarea {
    width: 100%;
    min-height: 8rem;
    padding: 1rem;
    border: 1px solid rgba(41, 38, 31, 0.4);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--lh-ink);
    font: inherit;
    resize: vertical;
}

.lh-action {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 3rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--lh-ink);
    border-radius: 999px;
    color: #fff;
    background: var(--lh-ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.lh-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.7rem 1.5rem rgba(41, 38, 31, 0.18);
}

.lh-action:focus-visible,
.lh-inquiry textarea:focus-visible {
    outline: 3px solid #f2b73c;
    outline-offset: 4px;
}

.lh-acknowledgment {
    margin-top: 2rem;
}

.lh-acknowledgment-signal {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 1rem;
    border: 1px solid var(--lh-gold);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(185, 139, 47, 0.35);
    animation: lh-acknowledge 1.8s ease-out both;
}

.lh-acknowledgment blockquote {
    margin: 1.25rem auto;
    padding: 1rem 1.25rem;
    border-inline-start: 3px solid var(--lh-gold);
    text-align: left;
    background: rgba(185, 139, 47, 0.08);
}

.lh-passage-context {
    margin: 1.5rem auto;
}

.lh-plaza {
    display: block;
    padding: 0;
    color: var(--lh-ink);
    background: #f6f2e9;
}

.lh-plaza-banner {
    padding: clamp(1.5rem, 4vw, 3rem) 1.25rem;
    text-align: center;
    background: linear-gradient(90deg, #f6f2e9, #fbf9f4 50%, #f6f2e9);
    border-block: 1px solid rgba(185, 139, 47, 0.48);
}

.lh-plaza-banner h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.lh-plaza-banner > p:last-child {
    max-width: 52rem;
    margin: 0.8rem auto 0;
}

.lh-plaza-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #ebe4d6;
}

.lh-plaza-image {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(246, 242, 233, 0.05), rgba(246, 242, 233, 0.12)),
        var(--lh-plaza-image, radial-gradient(circle at center, #b98b2f, #405c6b 42%, #1e2a2f));
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.lh-center-role {
    margin: 0.7rem 0 0;
    color: #9a6d20;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lh-semantic-layer {
    position: absolute;
    inset: 0;
}

.lh-region {
    position: absolute;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.lh-region-institution { left: 32%; top: 12%; width: 36%; height: 34%; }
.lh-region-oi { left: 34%; top: 45%; width: 32%; height: 25%; }
.lh-region-kc { left: 3%; top: 23%; width: 29%; height: 21%; }
.lh-region-sc { left: 68%; top: 23%; width: 29%; height: 21%; }
.lh-region-lq { left: 67%; top: 47%; width: 30%; height: 38%; }
.lh-region-ct { left: 3%; top: 47%; width: 30%; height: 38%; }

.lh-recognition {
    position: absolute;
    left: 50%;
    top: 54%;
    width: max-content;
    max-width: 88%;
    padding: 0.65rem 1rem;
    transform: translate(-50%, -44%);
    color: #fffaf0;
    background: rgba(16, 43, 78, 0.88);
    border: 1px solid rgba(214, 177, 91, 0.82);
    border-radius: 3px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

.lh-recognition strong,
.lh-recognition small {
    display: block;
}

.lh-recognition strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(0.85rem, 1.35vw, 1.35rem);
}

.lh-recognition small {
    margin-top: 0.35rem;
    color: #e7c879;
    font-size: clamp(0.62rem, 0.82vw, 0.84rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lh-institution-recognition {
    top: 60%;
    color: #102b4e;
    background: rgba(251, 249, 244, 0.94);
    border-inline: 0;
    border-block: 1px solid rgba(181, 139, 61, 0.9);
}

.lh-institution-recognition small {
    color: #9a6d20;
}

.lh-region:hover .lh-recognition,
.lh-region:focus-visible .lh-recognition,
.lh-region.is-recognized .lh-recognition {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.lh-region:focus-visible {
    outline: 3px solid #f2b73c;
    outline-offset: -3px;
}

.lh-relationship-gate {
    width: min(48rem, calc(100% - 2rem));
    margin: 2rem auto;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid rgba(185, 139, 47, 0.55);
    background: #fbf9f4;
    text-align: center;
    box-shadow: 0 1rem 3rem rgba(41, 38, 31, 0.1);
}

.lh-relationship-gate h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.75rem, 4vw, 3rem);
}

.lh-relationship-operation {
    margin: 0.6rem 0 1.25rem;
    color: #9a6d20;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lh-return {
    display: block;
    margin: 1rem auto 0;
    padding: 0.4rem 0.7rem;
    border: 0;
    color: #102b4e;
    background: transparent;
    text-decoration: underline;
    cursor: pointer;
}

.lh-system-footer {
    width: 100%;
    display: grid;
    grid-template-columns: 1.25fr auto 1fr;
    align-items: center;
    gap: 1.75rem;
    padding: 1.4rem clamp(1.25rem, 4vw, 2rem);
    color: #102b4e;
    background: linear-gradient(90deg, #f6f2e9, #fbf9f4 50%, #f6f2e9);
    border-block: 1px solid rgba(181, 139, 61, 0.58);
}

.lh-footer-identity {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.2;
}

.lh-footer-name {
    font-size: 1.15rem;
}

.lh-footer-institution {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.lh-system-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.35rem;
    font-size: 0.88rem;
}

.lh-system-links span {
    white-space: nowrap;
}

.lh-footer-copyright {
    text-align: right;
    font-size: 0.78rem;
    line-height: 1.45;
}

.lh-sr-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lh-district-threshold {
    --lh-ink: #29261f;
    --lh-gold: #b98b2f;
    --lh-blue: #102b4e;
    width: 100%;
    min-height: 100svh;
    color: var(--lh-ink);
    background: #f6f2e9;
}

.lh-district-threshold *,
.lh-district-threshold *::before,
.lh-district-threshold *::after {
    box-sizing: border-box;
}

.lh-district-arrival {
    position: relative;
    min-height: calc(100svh - 7rem);
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: clamp(2rem, 7vw, 6rem) clamp(1.25rem, 6vw, 5rem);
    isolation: isolate;
}

.lh-district-field {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 50% 42%, rgba(185, 139, 47, 0.2), transparent 26%),
        repeating-radial-gradient(circle at center, transparent 0 82px, rgba(16, 43, 78, 0.055) 83px 84px),
        linear-gradient(135deg, #fbf9f4, #eee7d9);
}

.lh-district-content {
    width: min(62rem, 100%);
    margin-inline: auto;
    text-align: center;
}

.lh-district-content h1 {
    margin: 0;
    color: var(--lh-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 7vw, 6.5rem);
    font-weight: 400;
    line-height: 1.02;
    text-wrap: balance;
}

.lh-district-operation {
    margin: 1.25rem 0 2rem;
    color: #9a6d20;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lh-district-arrival-statement {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.8vw, 2rem);
}

.lh-district-continuation {
    max-width: 48rem;
    margin: 1.25rem auto 2.25rem;
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    line-height: 1.65;
}

@keyframes lh-acknowledge {
    0% { opacity: 0; transform: scale(0.8); box-shadow: 0 0 0 0 rgba(185, 139, 47, 0.4); }
    35% { opacity: 1; }
    100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 1.5rem rgba(185, 139, 47, 0); }
}

@media (max-width: 900px) {
    .lh-plaza-shell { aspect-ratio: 4 / 3; }

    .lh-system-footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .lh-footer-copyright {
        text-align: center;
    }
}

@media (max-width: 560px) {
    .lh-plaza-shell { aspect-ratio: 3 / 4; }
    .lh-recognition { padding: 0.4rem 0.55rem; }
}

@media (prefers-reduced-motion: reduce) {
    .living-habitat *,
    .living-habitat *::before,
    .living-habitat *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Stewardship Continuity only. Shared district, Plaza, and footer rules remain intact. */
.lh-stewardship .lh-district-content h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); overflow-wrap: anywhere; }
.lh-stewardship .lh-district-continuation { max-width: 42rem; }
.lh-stewardship .lh-sc-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; }
.lh-stewardship .lh-action { text-align: center; text-decoration: none; line-height: 1.4; }
.lh-stewardship .lh-action:hover { color: #fff; background: #403a2d; }
.lh-stewardship .lh-sc-secondary { color: #29261f; background: transparent; }
.lh-stewardship .lh-sc-secondary:hover { color: #29261f; background: #e9dfcd; }
.lh-stewardship .lh-sc-plaza { display: inline-block; margin-top: 1.5rem; color: #102b4e; text-decoration: underline; text-underline-offset: 0.2em; }
.lh-stewardship a:focus-visible { outline: 3px solid #9a6d20; outline-offset: 5px; }
.lh-stewardship .lh-sc-section { padding: clamp(3rem, 7vw, 6rem) max(1.25rem, calc((100% - 68rem) / 2)); border-top: 1px solid #d7cbb5; background: #fbf9f4; }
.lh-stewardship .lh-sc-section h2 { margin: 0 0 1rem; color: #29261f; font-family: Georgia, serif; font-weight: 400; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.15; scroll-margin-top: 3rem; }
.lh-stewardship .lh-sc-section h3 { margin: 0 0 0.65rem; color: #29261f; font-size: 1.2rem; line-height: 1.4; }
.lh-stewardship .lh-sc-section p, .lh-stewardship .lh-sc-section li, .lh-stewardship dd { line-height: 1.7; }
.lh-stewardship .lh-sc-intro { max-width: 48rem; margin-bottom: 2.5rem; font-size: 1.15rem; }
.lh-stewardship .lh-sc-trusts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 3rem; margin: 0; }
.lh-stewardship .lh-sc-trusts > div { border-top: 1px solid #d7cbb5; padding-top: 1rem; }
.lh-stewardship dt { font-family: Georgia, serif; font-size: 1.4rem; color: #102b4e; }
.lh-stewardship dd { margin: 0.5rem 0 0; }
.lh-stewardship .lh-sc-covenant, .lh-stewardship .lh-sc-participation { background: #f2ecdf; }
.lh-stewardship .lh-sc-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.lh-stewardship .lh-sc-columns ul { padding-left: 1.25rem; margin: 0; }
.lh-stewardship .lh-sc-columns li { margin-bottom: 0.6rem; }
.lh-stewardship .lh-sc-rhythms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 3rem; padding-left: 1.5rem; }
.lh-stewardship .lh-sc-rhythms li { padding-left: 0.4rem; }
.lh-stewardship .lh-sc-rhythms p { margin: 0; }
.lh-stewardship .lh-sc-source { margin: 2.5rem 0 0; font-size: 0.9rem; color: #595349; }
.lh-stewardship .lh-sc-participation .lh-sc-actions { justify-content: flex-start; margin-top: 2rem; }
.lh-stewardship .lh-sc-participation .lh-sc-plaza { margin-top: 0; }
@media (max-width: 640px) {
    .lh-stewardship .lh-sc-trusts, .lh-stewardship .lh-sc-columns, .lh-stewardship .lh-sc-rhythms { grid-template-columns: 1fr; }
    .lh-stewardship .lh-district-operation { letter-spacing: 0.08em; }
    .lh-stewardship .lh-sc-actions .lh-action { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .lh-stewardship .lh-action { transition: none; }
    .lh-stewardship .lh-action:hover { transform: none; }
}

/* 0.3.8: opening invitation; scope all refinements to orientation. */
.living-habitat .lh-orientation {
    min-height: calc(100svh - var(--lh-arrival-admin-offset, 0px));
    padding: clamp(1.25rem, 4svh, 3rem) clamp(1.25rem, 5vw, 4rem);
}
body.admin-bar .living-habitat { --lh-arrival-admin-offset: 32px; }
.living-habitat .lh-orientation .lh-stage-content { width: min(66rem, 100%); }
.living-habitat .lh-orientation .lh-kicker { margin: 0 0 .5rem; font-size: .8rem; }
.living-habitat .lh-orientation h1 {
    font-size: clamp(1.6rem, 3.25vw, 3rem); font-weight: 600; line-height: 1.15;
    letter-spacing: -.025em; margin: 0;
}
.living-habitat .lh-orientation-copy {
    max-width: 45rem; margin: .75rem auto 0;
    font-size: clamp(.95rem, 1.35vw, 1.15rem); line-height: 1.5;
}
.living-habitat .lh-arrival-invitation { margin: clamp(1.5rem, 5svh, 3.25rem) auto 1.5rem; }
.living-habitat .lh-orientation .lh-arrival-hook {
    margin: 0; font-size: clamp(1.8rem, 3.4vw, 3.1rem);
    font-weight: 650; line-height: 1.16; letter-spacing: -.025em;
}
.living-habitat .lh-arrival-hook span {
    display: block; margin-top: .4rem; font-size: .76em; font-weight: 500;
    line-height: 1.3; letter-spacing: -.015em;
}
.living-habitat .lh-arrival-context {
    max-width: 43rem; margin: 1rem auto 0;
    font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.6;
    text-wrap: pretty;
}
.living-habitat .lh-orientation .lh-enter {
    flex-direction: column; gap: .3rem; max-width: 100%;
    padding: .9rem 1.8rem; white-space: normal; text-align: center; line-height: 1.3;
}
.living-habitat .lh-enter-label { font-size: 1.05rem; font-weight: 700; }
.living-habitat .lh-enter-prompt { font-size: .82rem; font-weight: 400; line-height: 1.4; }
@media (max-width: 782px) {
    body.admin-bar .living-habitat { --lh-arrival-admin-offset: 46px; }
}
@media (max-height: 650px) {
    .living-habitat .lh-orientation { padding-block: 1rem; }
    .living-habitat .lh-arrival-invitation { margin-block: 1.25rem; }
    .living-habitat .lh-arrival-context { margin-top: .75rem; line-height: 1.45; }
}

/* Opening typography refinement: institution leads; invitation follows. */
.living-habitat .lh-orientation h1 {
    font-size: clamp(1.8rem, 3.4vw, 3.1rem);
    font-weight: 650;
}
.living-habitat .lh-orientation .lh-arrival-hook {
    font-size: clamp(1.6rem, 3.25vw, 3rem);
    font-weight: 600;
}
.living-habitat .lh-orientation-copy,
.living-habitat .lh-arrival-context {
    color: #17150f;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(255,255,250,.9);
}
