/* ==========================================================================
   How AI Actually Works — page design layer
   Namespaced .haw-* so nothing here can collide with main.css.
   Inherits the site tokens (--bg, --accent, --accent-strong, --card, --text).
   ========================================================================== */

.haw {
    --haw-line: rgba(255, 255, 255, 0.1);
    --haw-line-soft: rgba(255, 255, 255, 0.06);
    --haw-panel: rgba(6, 24, 38, 0.72);
    --haw-panel-solid: #061826;
    --haw-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --haw-mind: #22d3ee;
    --haw-machine: #8b5cf6;
    --haw-work: #f0abfc;
    --haw-warn: #fbbf24;
    --haw-good: #34d399;
}

/* Wider than the default .site-main so the modules can breathe */
body.haw-page .site-main {
    max-width: 1240px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.haw-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--haw-line);
    margin-bottom: clamp(3rem, 7vw, 5.5rem);
    min-height: clamp(480px, 74vh, 720px);
    display: flex;
    align-items: flex-end;
}

.haw-hero__media,
.haw-hero__media video,
.haw-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.haw-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 23, 36, 0.35) 0%, rgba(4, 23, 36, 0.82) 58%, rgba(4, 23, 36, 0.97) 100%),
        radial-gradient(circle at 78% 18%, rgba(139, 92, 246, 0.3), transparent 55%);
}

.haw-hero__inner {
    position: relative;
    z-index: 1;
    padding: clamp(2rem, 5vw, 4rem);
    max-width: 900px;
}

.haw-hero h1 {
    font-size: clamp(2.3rem, 6vw, 4.1rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
    margin: 0.6rem 0 1.1rem;
    text-wrap: balance;
}

.haw-hero h1 em {
    font-style: normal;
    background: linear-gradient(115deg, var(--haw-mind), var(--accent), var(--haw-machine));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.haw-hero__lede {
    font-size: clamp(1.05rem, 1.9vw, 1.32rem);
    color: rgba(244, 251, 255, 0.86);
    max-width: 62ch;
    margin: 0 0 1.9rem;
    line-height: 1.62;
}

.haw-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.4rem;
    font-family: var(--haw-mono);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(244, 251, 255, 0.6);
}

/* Jump nav */
.haw-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.haw-jump a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--haw-line);
    background: rgba(2, 16, 26, 0.6);
    backdrop-filter: blur(8px);
    color: rgba(244, 251, 255, 0.86);
    text-decoration: none;
    font-size: 0.86rem;
    transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.haw-jump a:hover,
.haw-jump a:focus-visible {
    border-color: rgba(59, 130, 246, 0.6);
    color: #fff;
    transform: translateY(-2px);
}

.haw-jump a span {
    font-family: var(--haw-mono);
    font-size: 0.7rem;
    color: rgba(244, 251, 255, 0.45);
}

/* --------------------------------------------------------------------------
   Act structure
   -------------------------------------------------------------------------- */
.haw-act {
    margin-bottom: clamp(4rem, 9vw, 7.5rem);
    scroll-margin-top: 100px;
}

.haw-act__head {
    max-width: 780px;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.haw-act__num {
    font-family: var(--haw-mono);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--act-tint, var(--accent));
    display: block;
    margin-bottom: 0.85rem;
}

.haw-act__head h2 {
    font-size: clamp(1.85rem, 4vw, 2.9rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    text-wrap: balance;
}

.haw-act__head p {
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.14rem);
    line-height: 1.68;
    margin: 0 0 1rem;
    max-width: 68ch;
}

.haw-act--mind { --act-tint: var(--haw-mind); }
.haw-act--machine { --act-tint: var(--haw-machine); }
.haw-act--work { --act-tint: var(--haw-work); }
.haw-act--forecast { --act-tint: var(--haw-warn); }

/* Prose blocks between modules */
.haw-prose {
    max-width: 68ch;
    margin: 0 0 clamp(1.8rem, 3vw, 2.6rem);
}

.haw-prose p {
    color: rgba(244, 251, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.72;
    margin: 0 0 1.05rem;
}

.haw-prose p:last-child { margin-bottom: 0; }

.haw-prose strong { color: #fff; font-weight: 600; }

.haw-lede-big {
    font-size: clamp(1.2rem, 2.4vw, 1.62rem);
    line-height: 1.5;
    color: #fff;
    letter-spacing: -0.015em;
    max-width: 26ch;
    margin: 0 0 1.4rem;
    text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Module shell
   -------------------------------------------------------------------------- */
.haw-module {
    border: 1px solid var(--haw-line);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 40%),
        var(--haw-panel);
    padding: clamp(1.4rem, 3vw, 2.4rem);
    margin: 0 0 clamp(2rem, 4vw, 3.2rem);
    position: relative;
    overflow: hidden;
}

.haw-module::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--act-tint, var(--accent)), transparent);
    opacity: 0.55;
}

.haw-module__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-bottom: 0.6rem;
}

.haw-module__label {
    font-family: var(--haw-mono);
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--act-tint, var(--accent));
}

.haw-module h3 {
    font-size: clamp(1.2rem, 2.3vw, 1.6rem);
    margin: 0;
    letter-spacing: -0.015em;
    flex: 1 1 100%;
}

.haw-module__hint {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.62;
    margin: 0.35rem 0 1.6rem;
    max-width: 70ch;
}

.haw-module__takeaway {
    margin: 1.6rem 0 0;
    padding: 1rem 1.2rem;
    border-left: 2px solid var(--act-tint, var(--accent));
    background: rgba(255, 255, 255, 0.035);
    border-radius: 0 12px 12px 0;
    font-size: 0.99rem;
    line-height: 1.65;
    color: rgba(244, 251, 255, 0.9);
}

.haw-module__takeaway b {
    color: #fff;
    display: block;
    font-family: var(--haw-mono);
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--act-tint, var(--accent));
    margin-bottom: 0.45rem;
}

/* Two-column module layout */
.haw-split {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(1.2rem, 3vw, 2.4rem);
    align-items: start;
}

.haw-split--even { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); }

@media (max-width: 860px) {
    .haw-split,
    .haw-split--even { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Controls
   -------------------------------------------------------------------------- */
.haw-controls {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.haw-control label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.88rem;
    color: rgba(244, 251, 255, 0.8);
    margin-bottom: 0.45rem;
}

.haw-control label b {
    font-family: var(--haw-mono);
    font-weight: 500;
    color: var(--act-tint, var(--accent));
    font-size: 0.86rem;
    font-variant-numeric: tabular-nums;
}

.haw-control input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    outline: none;
    cursor: pointer;
}

.haw-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--act-tint, var(--accent));
    border: 2px solid #041724;
    box-shadow: 0 0 0 1px var(--act-tint, var(--accent));
    cursor: pointer;
}

.haw-control input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--act-tint, var(--accent));
    border: 2px solid #041724;
    box-shadow: 0 0 0 1px var(--act-tint, var(--accent));
    cursor: pointer;
}

.haw-control input[type="range"]:focus-visible {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
}

.haw-control__note {
    font-size: 0.8rem;
    color: rgba(244, 251, 255, 0.55);
    margin: 0.4rem 0 0;
    line-height: 1.5;
}

.haw-btnrow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.35rem;
}

.haw-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.62rem 1.15rem;
    border-radius: 999px;
    border: 1px solid var(--haw-line);
    background: rgba(255, 255, 255, 0.05);
    color: #f4fbff;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.haw-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.haw-btn:disabled { opacity: 0.42; cursor: not-allowed; }

.haw-btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--act-tint, var(--accent-strong)));
    border-color: transparent;
    color: #01141f;
    font-weight: 600;
}

.haw-btn--primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent), var(--act-tint, var(--accent-strong)));
    filter: brightness(1.1);
}

.haw-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--haw-line);
    background: rgba(2, 16, 26, 0.75);
    color: #f4fbff;
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.haw-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.haw-select {
    width: 100%;
    padding: 0.72rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--haw-line);
    background: rgba(2, 16, 26, 0.9);
    color: #f4fbff;
    font: inherit;
    font-size: 0.95rem;
    cursor: pointer;
}

.haw-select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.7);
}

/* --------------------------------------------------------------------------
   Canvas stage
   -------------------------------------------------------------------------- */
.haw-stage {
    position: relative;
    border-radius: 16px;
    border: 1px solid var(--haw-line-soft);
    background: rgba(1, 12, 20, 0.72);
    overflow: hidden;
}

.haw-stage canvas {
    display: block;
    width: 100%;
    height: auto;
}

.haw-stage__caption {
    font-family: var(--haw-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(244, 251, 255, 0.45);
    padding: 0.6rem 0.9rem;
    border-top: 1px solid var(--haw-line-soft);
}

/* Readouts */
.haw-readout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.haw-readout div {
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--haw-line-soft);
}

.haw-readout dt,
.haw-readout span {
    display: block;
    font-family: var(--haw-mono);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(244, 251, 255, 0.5);
    margin-bottom: 0.3rem;
}

.haw-readout strong {
    display: block;
    font-size: 1.22rem;
    font-family: var(--haw-mono);
    font-weight: 500;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Stat band
   -------------------------------------------------------------------------- */
.haw-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--haw-line-soft);
    border: 1px solid var(--haw-line);
    border-radius: 20px;
    overflow: hidden;
    margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.haw-stats > div {
    background: var(--haw-panel-solid);
    padding: clamp(1.3rem, 2.6vw, 1.9rem);
}

.haw-stats strong {
    display: block;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.haw-stats span {
    display: block;
    color: rgba(244, 251, 255, 0.76);
    font-size: 0.94rem;
    line-height: 1.5;
}

/* Source chips */
.haw-src {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.7rem;
    font-family: var(--haw-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(244, 251, 255, 0.48);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.haw-src:hover,
.haw-src:focus-visible {
    color: rgba(244, 251, 255, 0.9);
    border-color: rgba(59, 130, 246, 0.7);
}

/* --------------------------------------------------------------------------
   Next-word predictor
   -------------------------------------------------------------------------- */
.haw-context {
    padding: 1rem 1.15rem;
    border-radius: 14px;
    background: rgba(1, 12, 20, 0.8);
    border: 1px solid var(--haw-line-soft);
    font-size: clamp(1rem, 2vw, 1.24rem);
    line-height: 1.65;
    min-height: 4.5em;
    margin-bottom: 1.1rem;
    word-break: break-word;
}

.haw-context__cursor {
    display: inline-block;
    width: 2px;
    height: 1.05em;
    background: var(--haw-machine);
    vertical-align: text-bottom;
    animation: haw-blink 1.05s steps(2, start) infinite;
    margin-left: 2px;
}

@keyframes haw-blink { to { visibility: hidden; } }

.haw-context em {
    font-style: normal;
    color: var(--haw-machine);
}

.haw-candidates {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.haw-cand {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    padding: 0.62rem 0.9rem;
    border-radius: 11px;
    border: 1px solid var(--haw-line-soft);
    background: rgba(255, 255, 255, 0.028);
    color: #f4fbff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.haw-cand:hover,
.haw-cand:focus-visible {
    border-color: rgba(139, 92, 246, 0.65);
    transform: translateX(3px);
}

.haw-cand__bar {
    position: absolute;
    inset: 0 auto 0 0;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.4), rgba(59, 130, 246, 0.16));
    z-index: 0;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.haw-cand__word,
.haw-cand__pct {
    position: relative;
    z-index: 1;
}

.haw-cand__word {
    font-size: 1.02rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.haw-cand__pct {
    font-family: var(--haw-mono);
    font-size: 0.82rem;
    color: rgba(244, 251, 255, 0.72);
    font-variant-numeric: tabular-nums;
}

.haw-cand--top .haw-cand__word { color: #fff; }

/* Tokenizer */
.haw-tokens {
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(1, 12, 20, 0.8);
    border: 1px solid var(--haw-line-soft);
    min-height: 5rem;
    align-content: flex-start;
}

.haw-token {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.14rem;
    padding: 0.32rem 0.55rem;
    border-radius: 7px;
    font-family: var(--haw-mono);
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: pre;
    animation: haw-pop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.haw-token small {
    font-size: 0.56rem;
    opacity: 0.65;
    letter-spacing: 0.04em;
}

@keyframes haw-pop {
    from { opacity: 0; transform: scale(0.82); }
    to { opacity: 1; transform: scale(1); }
}

/* --------------------------------------------------------------------------
   Job exposure explorer
   -------------------------------------------------------------------------- */
.haw-job__result {
    padding: clamp(1.1rem, 2.4vw, 1.6rem);
    border-radius: 16px;
    background: rgba(1, 12, 20, 0.72);
    border: 1px solid var(--haw-line-soft);
}

.haw-job__name {
    font-size: clamp(1.05rem, 2.2vw, 1.38rem);
    margin: 0 0 0.35rem;
    color: #fff;
    letter-spacing: -0.015em;
}

.haw-job__band {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-family: var(--haw-mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.15rem;
}

.haw-job__band[data-band="high"] { background: rgba(251, 191, 36, 0.16); color: #fcd34d; border: 1px solid rgba(251, 191, 36, 0.35); }
.haw-job__band[data-band="mid"] { background: rgba(59, 130, 246, 0.16); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.35); }
.haw-job__band[data-band="none"] { background: rgba(52, 211, 153, 0.14); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.32); }

.haw-meter {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.haw-meter__fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--haw-work));
    width: 0;
    transition: width 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.haw-meter__legend {
    display: flex;
    justify-content: space-between;
    font-family: var(--haw-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(244, 251, 255, 0.5);
    margin-bottom: 1.15rem;
}

.haw-job__read {
    font-size: 1rem;
    line-height: 1.68;
    color: rgba(244, 251, 255, 0.85);
    margin: 0 0 0.9rem;
}

.haw-job__read b { color: #fff; }

/* --------------------------------------------------------------------------
   Forecast timeline
   -------------------------------------------------------------------------- */
.haw-timeline__track {
    position: relative;
    margin: 2.2rem 0 1.4rem;
}

.haw-timeline__years {
    display: flex;
    justify-content: space-between;
    font-family: var(--haw-mono);
    font-size: 0.7rem;
    color: rgba(244, 251, 255, 0.45);
    margin-top: 0.6rem;
}

.haw-forecast {
    display: grid;
    gap: 0.85rem;
}

.haw-forecast__item {
    padding: 1rem 1.2rem;
    border-radius: 14px;
    border: 1px solid var(--haw-line-soft);
    background: rgba(255, 255, 255, 0.028);
    opacity: 0.3;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
}

.haw-forecast__item.is-active {
    opacity: 1;
    transform: translateY(0);
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.05);
}

.haw-forecast__year {
    font-family: var(--haw-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: var(--haw-warn);
    display: block;
    margin-bottom: 0.4rem;
}

.haw-forecast__item h4 {
    margin: 0 0 0.4rem;
    font-size: 1.02rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.haw-forecast__item p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.6;
    color: rgba(244, 251, 255, 0.78);
}

/* --------------------------------------------------------------------------
   Figures / photography
   -------------------------------------------------------------------------- */
.haw-figures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.1rem;
    margin: clamp(2rem, 4vw, 3rem) 0;
}

.haw-figure {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--haw-line);
    background: var(--haw-panel-solid);
    display: flex;
    flex-direction: column;
}

.haw-figure img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    filter: saturate(0.88) contrast(1.04);
}

.haw-figure figcaption {
    padding: 1rem 1.15rem 1.15rem;
    font-size: 0.94rem;
    line-height: 1.6;
    color: rgba(244, 251, 255, 0.8);
    flex: 1;
}

.haw-figure figcaption b {
    display: block;
    color: #fff;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.haw-figure--wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
}

.haw-figure--wide img { aspect-ratio: auto; height: 100%; min-height: 240px; }
.haw-figure--wide figcaption { padding: clamp(1.3rem, 3vw, 2.2rem); align-self: center; }

@media (max-width: 720px) {
    .haw-figure--wide { grid-template-columns: minmax(0, 1fr); }
    .haw-figure--wide img { min-height: 200px; }
}

/* --------------------------------------------------------------------------
   Callouts, sources, close
   -------------------------------------------------------------------------- */
.haw-callout {
    border: 1px solid rgba(251, 191, 36, 0.28);
    background: rgba(251, 191, 36, 0.055);
    border-radius: 18px;
    padding: clamp(1.2rem, 2.6vw, 1.8rem);
    margin: clamp(1.8rem, 3.5vw, 2.6rem) 0;
}

.haw-callout__label {
    font-family: var(--haw-mono);
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--haw-warn);
    display: block;
    margin-bottom: 0.6rem;
}

.haw-callout p {
    margin: 0 0 0.8rem;
    font-size: 1rem;
    line-height: 1.68;
    color: rgba(244, 251, 255, 0.88);
}

.haw-callout p:last-child { margin-bottom: 0; }

.haw-sources {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.haw-sources li {
    padding: 0.95rem 1.15rem;
    border-radius: 13px;
    border: 1px solid var(--haw-line-soft);
    background: rgba(255, 255, 255, 0.025);
}

.haw-sources a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(59, 130, 246, 0.5);
    transition: border-color 0.2s ease;
}

.haw-sources a:hover { border-color: #fff; }

.haw-sources p {
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
    line-height: 1.58;
    color: rgba(244, 251, 255, 0.65);
}

.haw-sources__meta {
    font-family: var(--haw-mono);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(244, 251, 255, 0.42);
    display: block;
    margin-top: 0.5rem;
}

.haw-close {
    border-radius: 26px;
    border: 1px solid var(--haw-line);
    background:
        radial-gradient(circle at 15% 0%, rgba(139, 92, 246, 0.2), transparent 55%),
        radial-gradient(circle at 85% 100%, rgba(59, 130, 246, 0.18), transparent 55%),
        var(--haw-panel-solid);
    padding: clamp(2rem, 5vw, 3.6rem);
    text-align: center;
}

.haw-close h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.haw-close p {
    max-width: 60ch;
    margin: 0 auto 1.9rem;
    color: rgba(244, 251, 255, 0.82);
    font-size: 1.06rem;
    line-height: 1.68;
}

.haw-close__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* Reveal on scroll */
.haw-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.haw-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .haw-reveal { opacity: 1; transform: none; transition: none; }
    .haw-context__cursor { animation: none; }
    .haw-token { animation: none; }
    .haw-hero__media video { display: none; }
}
