.laca-portal.theme-hallmarks {
    --portal-accent: #ff6eb7;
    --portal-accent-2: #62e5ff;
    --hallmark-primary: #62e5ff;
    --hallmark-antagonistic: #f9bf4a;
    --hallmark-integrative: #ff6eb7;
    --hallmark-line: rgba(255, 255, 255, .105);
    cursor: default;
}

.laca-portal.theme-hallmarks .portal-hero {
    isolation: isolate;
    min-height: min(650px, 72vh);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: clamp(2rem, 35vw, 31rem);
    border-color: rgba(255, 110, 183, .28);
    background:
        radial-gradient(circle at 83% 48%, rgba(98, 229, 255, .12), transparent 17%),
        radial-gradient(circle at 83% 48%, transparent 0 23%, rgba(255, 110, 183, .13) 23.3% 23.7%, transparent 24% 35%, rgba(249, 191, 74, .1) 35.3% 35.7%, transparent 36%),
        linear-gradient(125deg, rgba(6, 4, 20, .98) 0%, rgba(20, 9, 39, .94) 58%, rgba(16, 6, 34, .82) 100%);
    box-shadow: 0 32px 95px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .05);
}

.laca-portal.theme-hallmarks .portal-hero::before {
    content: "5 · 3 · 4";
    position: absolute;
    z-index: -1;
    right: clamp(2.2rem, 9vw, 8rem);
    top: 50%;
    display: grid;
    place-items: center;
    width: clamp(190px, 24vw, 320px);
    aspect-ratio: 1;
    translate: 0 -50%;
    border: 1px solid rgba(98, 229, 255, .28);
    border-radius: 50%;
    color: rgba(255, 255, 255, .86);
    background:
        radial-gradient(circle, rgba(255, 110, 183, .2) 0 10%, transparent 10.5% 27%, rgba(98, 229, 255, .08) 27.5% 28%, transparent 28.5% 44%, rgba(249, 191, 74, .06) 44.5% 45%, transparent 45.5%);
    box-shadow: 0 0 70px rgba(255, 110, 183, .12), inset 0 0 45px rgba(98, 229, 255, .05);
    font: 800 clamp(1.1rem, 2vw, 1.65rem)/1 'Orbitron', sans-serif;
    letter-spacing: .18em;
}

.laca-portal.theme-hallmarks .portal-hero::after {
    right: clamp(1rem, 6vw, 5rem);
    bottom: 50%;
    width: clamp(230px, 29vw, 380px);
    height: clamp(230px, 29vw, 380px);
    translate: 0 50%;
    border-color: rgba(255, 110, 183, .2);
    box-shadow: 0 0 0 34px rgba(255, 110, 183, .025), 0 0 0 72px rgba(249, 191, 74, .018);
}

.laca-portal.theme-hallmarks .portal-hero h1 {
    max-width: 760px;
    font-size: clamp(2.3rem, 5.2vw, 4.65rem);
}

.laca-portal.theme-hallmarks .portal-lede,
.laca-portal.theme-hallmarks .portal-tags,
.laca-portal.theme-hallmarks .portal-actions {
    max-width: 800px;
}

.laca-portal.theme-hallmarks .portal-tag { backdrop-filter: blur(14px); }

.laca-portal.theme-hallmarks .portal-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.laca-portal.theme-hallmarks .portal-metric {
    position: relative;
    overflow: hidden;
    min-height: 108px;
    padding: 1.25rem 1.3rem;
    border-color: var(--hallmark-line);
    background: linear-gradient(145deg, rgba(16, 9, 38, .92), rgba(7, 4, 21, .83));
}

.laca-portal.theme-hallmarks .portal-metric::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: linear-gradient(90deg, var(--hallmark-primary), var(--hallmark-antagonistic), var(--hallmark-integrative));
    opacity: .68;
}

.laca-portal.theme-hallmarks .portal-metric strong { color: #fff; }
.laca-portal.theme-hallmarks .portal-metric span { color: rgba(255, 255, 255, .6); line-height: 1.45; }

.laca-portal.theme-hallmarks .hallmark-section-nav {
    position: sticky;
    z-index: 20;
    top: var(--hallmark-sticky-top, calc(var(--laca-nav-height, 76px) + 48px));
    display: flex;
    align-items: center;
    gap: .28rem;
    overflow-x: auto;
    margin: 1rem 0 0;
    padding: .48rem;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 999px;
    background: rgba(8, 5, 23, .86);
    box-shadow: 0 16px 44px rgba(0, 0, 0, .28);
    backdrop-filter: blur(22px);
    scrollbar-width: none;
}

.laca-portal.theme-hallmarks .hallmark-section-nav::-webkit-scrollbar { display: none; }

.laca-portal.theme-hallmarks .hallmark-section-nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    min-height: 38px;
    padding: .55rem .8rem;
    border: 1px solid transparent;
    border-radius: 999px;
    color: rgba(255, 255, 255, .68);
    text-decoration: none;
    font: 650 .7rem/1 'JetBrains Mono', monospace;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.laca-portal.theme-hallmarks .hallmark-section-nav a:hover {
    color: #fff;
    border-color: rgba(255, 110, 183, .32);
    background: rgba(255, 110, 183, .08);
}

.laca-portal.theme-hallmarks .hallmark-section-nav span {
    display: grid;
    place-items: center;
    min-width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    color: #130719;
    background: var(--hallmark-integrative);
    font-weight: 900;
}

.laca-portal.theme-hallmarks .hallmark-section-nav a:nth-child(3) span { background: var(--hallmark-primary); }
.laca-portal.theme-hallmarks .hallmark-section-nav a:nth-child(4) span { background: var(--hallmark-antagonistic); }

.laca-portal.theme-hallmarks :is(.portal-button, .portal-link, .hallmark-section-nav a, .hallmark-map-nodes a):focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.laca-portal.theme-hallmarks :is(#hallmark-mechanism-map, #hallmark-data-explorer, #framework, #primary-hallmarks, #antagonistic-hallmarks, #integrative-hallmarks, #evidence-guide, #interpretation-limits, #references) {
    scroll-margin-top: calc(var(--hallmark-sticky-top, calc(var(--laca-nav-height, 76px) + 48px)) + 4.2rem);
}

.laca-portal.theme-hallmarks .portal-section-head h2 {
    max-width: 1050px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.laca-portal.theme-hallmarks .portal-section-head > p {
    max-width: 980px;
    color: rgba(255, 255, 255, .7);
    font: 400 clamp(.94rem, 1.1vw, 1.03rem)/1.78 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.laca-portal.theme-hallmarks .hallmark-mechanism-section {
    position: relative;
    padding: clamp(1.35rem, 3.5vw, 2.5rem);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 24px;
    background: radial-gradient(circle at 8% 0, rgba(98, 229, 255, .08), transparent 25%), radial-gradient(circle at 100% 100%, rgba(255, 110, 183, .08), transparent 28%), rgba(7, 4, 21, .64);
    box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

.laca-portal.theme-hallmarks .hallmark-map {
    display: grid;
    grid-template-columns: minmax(0, 5fr) 44px minmax(0, 3fr) 44px minmax(0, 4fr);
    align-items: stretch;
    gap: .75rem;
}

.laca-portal.theme-hallmarks .hallmark-map-layer {
    --layer: var(--hallmark-integrative);
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 1rem;
    border: 1px solid color-mix(in srgb, var(--layer) 28%, transparent);
    border-radius: 18px;
    background: linear-gradient(155deg, color-mix(in srgb, var(--layer) 8%, rgba(18, 9, 37, .92)), rgba(4, 2, 15, .9));
}

.laca-portal.theme-hallmarks .hallmark-map-layer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--layer), transparent);
}

.laca-portal.theme-hallmarks .hallmark-map-layer.is-primary { --layer: var(--hallmark-primary); }
.laca-portal.theme-hallmarks .hallmark-map-layer.is-antagonistic { --layer: var(--hallmark-antagonistic); }
.laca-portal.theme-hallmarks .hallmark-map-layer.is-integrative { --layer: var(--hallmark-integrative); }

.laca-portal.theme-hallmarks .hallmark-map-layer header > span {
    color: var(--layer);
    font: 750 .65rem/1 'JetBrains Mono', monospace;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.laca-portal.theme-hallmarks .hallmark-map-layer h3 {
    margin: .38rem 0 .32rem;
    color: #fff;
    font: 800 clamp(1.05rem, 1.8vw, 1.4rem)/1.15 'Orbitron', sans-serif;
}

.laca-portal.theme-hallmarks .hallmark-map-layer header p {
    min-height: 2.7em;
    margin: 0 0 .9rem;
    color: rgba(255, 255, 255, .58);
    font-size: .74rem;
    line-height: 1.45;
}

.laca-portal.theme-hallmarks .hallmark-map-nodes { display: grid; gap: .48rem; }

.laca-portal.theme-hallmarks .hallmark-map-nodes a {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: .62rem;
    min-height: 42px;
    padding: .46rem .55rem;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 10px;
    color: rgba(255, 255, 255, .75);
    background: rgba(255, 255, 255, .026);
    text-decoration: none;
    font-size: .71rem;
    line-height: 1.35;
    transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease;
}

.laca-portal.theme-hallmarks .hallmark-map-nodes a:hover {
    transform: translateX(2px);
    color: #fff;
    border-color: color-mix(in srgb, var(--layer) 38%, transparent);
    background: color-mix(in srgb, var(--layer) 7%, transparent);
}

.laca-portal.theme-hallmarks .hallmark-map-nodes b {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: var(--layer);
    background: color-mix(in srgb, var(--layer) 10%, transparent);
    font: 800 .62rem/1 'Orbitron', sans-serif;
}

.laca-portal.theme-hallmarks .hallmark-map-link {
    display: grid;
    place-content: center;
    align-content: center;
    gap: .25rem;
    color: rgba(255, 255, 255, .58);
    text-align: center;
}

.laca-portal.theme-hallmarks .hallmark-map-link span { font-size: 1.4rem; }
.laca-portal.theme-hallmarks .hallmark-map-link small { writing-mode: vertical-rl; color: rgba(255, 255, 255, .38); font: 600 .54rem/1 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }

.laca-portal.theme-hallmarks .hallmark-map-note {
    margin-top: 1rem;
    padding: .9rem 1rem;
    border: 1px dashed rgba(255, 255, 255, .14);
    border-radius: 12px;
    color: rgba(255, 255, 255, .61);
    background: rgba(255, 255, 255, .025);
    font-size: .78rem;
    line-height: 1.65;
}

.laca-portal.theme-hallmarks .hallmark-map-note strong { color: #fff; }

.laca-portal.theme-hallmarks .portal-card {
    overflow: hidden;
    padding: 1.25rem;
    border-color: var(--hallmark-line);
    background: linear-gradient(150deg, rgba(17, 9, 37, .88), rgba(5, 3, 17, .86));
}

.laca-portal.theme-hallmarks .portal-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, var(--section-accent, var(--portal-accent)), transparent 72%);
    opacity: .76;
}

.laca-portal.theme-hallmarks #framework { --section-accent: #b899ff; }
.laca-portal.theme-hallmarks #primary-hallmarks { --section-accent: var(--hallmark-primary); }
.laca-portal.theme-hallmarks #antagonistic-hallmarks { --section-accent: var(--hallmark-antagonistic); }
.laca-portal.theme-hallmarks #integrative-hallmarks { --section-accent: var(--hallmark-integrative); }
.laca-portal.theme-hallmarks #evidence-guide { --section-accent: #9ce886; }
.laca-portal.theme-hallmarks #interpretation-limits { --section-accent: #c8b5ff; }

.laca-portal.theme-hallmarks :is(#framework, #primary-hallmarks, #antagonistic-hallmarks, #integrative-hallmarks, #evidence-guide, #interpretation-limits) .portal-kicker { color: var(--section-accent); }
.laca-portal.theme-hallmarks :is(#framework, #primary-hallmarks, #antagonistic-hallmarks, #integrative-hallmarks, #evidence-guide, #interpretation-limits) :is(.portal-card-icon, .portal-badge) {
    color: var(--section-accent);
    border-color: color-mix(in srgb, var(--section-accent) 28%, transparent);
    background: color-mix(in srgb, var(--section-accent) 8%, transparent);
}

.laca-portal.theme-hallmarks #primary-hallmarks .portal-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.laca-portal.theme-hallmarks #antagonistic-hallmarks .portal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.laca-portal.theme-hallmarks #integrative-hallmarks .portal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.laca-portal.theme-hallmarks .portal-card h3 { font-size: clamp(.92rem, 1.15vw, 1.04rem); }

.laca-portal.theme-hallmarks .portal-card p,
.laca-portal.theme-hallmarks .portal-list {
    color: rgba(255, 255, 255, .68);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .79rem;
    line-height: 1.68;
}

.laca-portal.theme-hallmarks .portal-list { margin-left: 1rem; padding-left: .2rem; }
.laca-portal.theme-hallmarks .portal-list strong { color: rgba(255, 255, 255, .9); }
.laca-portal.theme-hallmarks :is(.portal-card-meta, .portal-reference, .portal-notice) { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

.laca-portal.theme-hallmarks .hallmark-data-embed {
    position: relative;
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid rgba(255, 110, 183, .15);
    border-radius: 22px;
    background: rgba(8, 4, 24, .52);
}

.laca-portal.theme-hallmarks .hallmark-embed-frame-shell { border-radius: 15px; }
.laca-portal.theme-hallmarks .hallmark-embed-actions { align-items: center; }

@media (max-width: 1280px) {
    .laca-portal.theme-hallmarks .portal-hero { min-height: 0; padding-right: clamp(2rem, 31vw, 22rem); }
    .laca-portal.theme-hallmarks .hallmark-map { grid-template-columns: 1fr; }
    .laca-portal.theme-hallmarks .hallmark-map-link { grid-template-columns: auto auto; min-height: 28px; }
    .laca-portal.theme-hallmarks .hallmark-map-link span { transform: rotate(90deg); }
    .laca-portal.theme-hallmarks .hallmark-map-link small { writing-mode: initial; }
    .laca-portal.theme-hallmarks #primary-hallmarks .portal-grid,
    .laca-portal.theme-hallmarks #integrative-hallmarks .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .laca-portal.theme-hallmarks #primary-hallmarks .portal-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
    .laca-portal.theme-hallmarks .portal-hero { padding-right: clamp(1.2rem, 5vw, 2.5rem); padding-bottom: clamp(12rem, 53vw, 18rem); }
    .laca-portal.theme-hallmarks .portal-hero::before { right: 50%; top: auto; bottom: 1.2rem; width: clamp(170px, 44vw, 240px); translate: 50% 0; }
    .laca-portal.theme-hallmarks .portal-hero::after { right: 50%; bottom: clamp(1rem, 4vw, 2rem); width: clamp(205px, 53vw, 285px); height: clamp(205px, 53vw, 285px); translate: 50% 0; }
    .laca-portal.theme-hallmarks .portal-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .laca-portal.theme-hallmarks .hallmark-section-nav { border-radius: 15px; }
    .laca-portal.theme-hallmarks #antagonistic-hallmarks .portal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .laca-portal.theme-hallmarks .portal-hero { padding-bottom: 13.2rem; }
    .laca-portal.theme-hallmarks .portal-actions { display: grid; grid-template-columns: 1fr; }
    .laca-portal.theme-hallmarks .portal-button { width: 100%; }
    .laca-portal.theme-hallmarks .portal-metrics,
    .laca-portal.theme-hallmarks #primary-hallmarks .portal-grid,
    .laca-portal.theme-hallmarks #integrative-hallmarks .portal-grid,
    .laca-portal.theme-hallmarks #evidence-guide .portal-grid { grid-template-columns: 1fr; }
    .laca-portal.theme-hallmarks #primary-hallmarks .portal-card:last-child { grid-column: auto; }
    .laca-portal.theme-hallmarks .hallmark-mechanism-section,
    .laca-portal.theme-hallmarks .hallmark-data-embed { padding: 1rem; border-radius: 18px; }
    .laca-portal.theme-hallmarks .hallmark-embed-frame { height: 680px; }
}

@media (prefers-reduced-motion: reduce) {
    .laca-portal.theme-hallmarks *,
    .laca-portal.theme-hallmarks *::before,
    .laca-portal.theme-hallmarks *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .laca-portal.theme-hallmarks .portal-card:hover,
    .laca-portal.theme-hallmarks .hallmark-map-nodes a:hover { transform: none; }
}
