/* ───────────────────────────────────────────────────────────────────────
   REKRUTEN-SCHMIEDE — Page / component styles
   ─────────────────────────────────────────────────────────────────────── */

.page { position: relative; overflow-x: clip; }

/* shared container */
.wrap { width: min(1240px, 100% - 2 * var(--s-2xl)); margin-inline: auto; }
@media (max-width: 720px) { .wrap { width: calc(100% - 2 * var(--s-lg)); } }

/* faint top radial wash (allowed ≤4%) + grid texture */
.page::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 900px;
    background:
        radial-gradient(120% 60% at 50% -10%, oklch(40% 0.02 250 / 0.35), transparent 70%);
    pointer-events: none; z-index: 0;
}
.grid-tex {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(var(--hairline) 1px, transparent 1px),
        linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(180deg, oklch(0% 0 0 / 0.5), transparent 70%);
            mask-image: linear-gradient(180deg, oklch(0% 0 0 / 0.5), transparent 70%);
    opacity: 0.5;
}

/* ── Classification banner (top strip) ── */
.classbar {
    position: relative; z-index: 5;
    display: flex; align-items: center; justify-content: center; gap: var(--s-md);
    height: 28px;
    background: var(--surface-deep);
    border-bottom: 1px solid var(--border-subtle);
    font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--fg-faint);
}
.classbar .live { display: inline-flex; align-items: center; gap: 6px; color: var(--signal); }
.classbar .dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--signal);
    box-shadow: 0 0 0 0 var(--signal-line); animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 oklch(80% 0.115 84 / 0.5); }
    70% { box-shadow: 0 0 0 7px oklch(80% 0.115 84 / 0); }
    100% { box-shadow: 0 0 0 0 oklch(80% 0.115 84 / 0); }
}
.classbar .sep { color: var(--border-strong); }
@media (max-width: 560px) { .classbar .hide-sm { display: none; } }

/* ── Header ── */
.hdr {
    position: sticky; top: 0; z-index: 40;
    background: var(--surface-dock);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
}
.hdr-in { display: flex; align-items: center; gap: var(--s-xl); height: 60px; }
.brand { display: flex; align-items: center; gap: var(--s-md); text-decoration: none; flex-shrink: 0; }
.brand .mark {
    width: 34px; height: 34px; position: relative; flex-shrink: 0;
    border: 1.5px solid var(--fg-primary); border-radius: var(--r-sm);
    display: grid; place-items: center;
    background: linear-gradient(180deg, var(--surface-lifted), var(--surface-raised));
    box-shadow: var(--shadow-sm);
}
.brand .mark span {
    font-family: var(--font-display); font-weight: 900; font-size: 19px;
    color: var(--fg-primary); line-height: 1;
}
.brand .mark::after {
    content: ""; position: absolute; inset: 3px; border: 1px solid var(--hairline); border-radius: 2px;
}
.brand .wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand .wordmark b {
    font-family: var(--font-display); font-weight: 800; font-size: 1.0rem;
    letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-primary);
    white-space: nowrap;
}
.brand .wordmark small {
    font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.28em;
    text-transform: uppercase; color: var(--fg-faint); margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: var(--s-2xs); margin-inline: auto; }
.nav a {
    position: relative; padding: 8px 14px; border-radius: var(--r-sm);
    font-size: var(--fs-ui); font-weight: var(--fw-semi); color: var(--fg-muted);
    text-decoration: none; letter-spacing: 0.01em; transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav a:hover { color: var(--fg-primary); background: oklch(100% 0 0 / 0.04); }
.nav a.active { color: var(--fg-primary); }
.nav a.active::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
    background: var(--signal); border-radius: 2px;
}

.hdr-actions { display: flex; align-items: center; gap: var(--s-sm); flex-shrink: 0; }

/* language switch */
.lang { display: inline-flex; border: 1px solid var(--border-default); border-radius: var(--r-pill); overflow: hidden; }
.lang button {
    appearance: none; border: 0; background: transparent; cursor: pointer;
    font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em;
    color: var(--fg-muted); padding: 6px 11px; transition: background var(--t-fast), color var(--t-fast);
}
.lang button.on { background: var(--fg-primary); color: var(--fg-inverse); }

/* buttons */
.btn {
    appearance: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    gap: var(--s-sm); font-family: var(--font-sans); font-weight: var(--fw-bold); font-size: var(--fs-ui);
    letter-spacing: 0.02em; padding: 11px 20px; border-radius: var(--r-btn); border: 1px solid transparent;
    text-decoration: none; white-space: nowrap; transition: transform var(--t-fast) var(--ease),
        background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: var(--fg-primary); color: var(--fg-inverse);
    box-shadow: var(--shadow-sm), 0 0 0 1px oklch(100% 0 0 / 0.06) inset;
}
.btn-primary:hover { background: var(--primary-100); }
.btn-ghost { background: transparent; color: var(--fg-secondary); border-color: var(--border-default); }
.btn-ghost:hover { color: var(--fg-primary); border-color: var(--border-strong); background: oklch(100% 0 0 / 0.04); }
.btn-signal { background: transparent; color: var(--fg-primary); border-color: var(--signal-line); }
.btn-signal:hover { background: var(--signal-bg); border-color: var(--signal); }
.btn-lg { padding: 15px 28px; font-size: var(--fs-body); }
.btn-sm { padding: 8px 14px; font-size: var(--fs-caption); }
.btn .ico { width: 17px; height: 17px; }

/* hamburger */
.burger { display: none; appearance: none; cursor: pointer; background: transparent; border: 1px solid var(--border-default);
    border-radius: var(--r-sm); width: 40px; height: 40px; padding: 0; place-items: center; color: var(--fg-secondary); }
.burger svg { width: 20px; height: 20px; }

/* ── HERO (centered) ── */
.hero { position: relative; z-index: 2; padding: clamp(56px, 7vw, 120px) 0 clamp(48px, 5vw, 84px); }
.hero-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero .tag { justify-content: center; margin-bottom: var(--s-xl); }
.hero .tag::before, .hero .tag::after {
    content: ""; width: 26px; height: 1px; background: var(--signal-line);
}
.hero h1 {
    margin: 0; font-family: var(--font-display); font-weight: 800;
    font-size: var(--fs-hero); line-height: 1.06; letter-spacing: 0.01em;
    text-transform: uppercase; color: var(--fg-primary); text-align: center;
}
.hero h1 .l1, .hero h1 .l2 { display: block; }
.hero h1 .l2 { white-space: nowrap; }
.hero h1 .sig { display: inline; }
@media (max-width: 600px) { .hero h1 .l2 { white-space: normal; } }
.hero h1 .em {
    color: transparent; -webkit-text-stroke: 1.5px var(--fg-faint);
    paint-order: stroke fill;
}
.hero h1 .sig { color: var(--signal); }
.hero .lead {
    max-width: 60ch; margin: var(--s-xl) auto 0; font-size: var(--fs-lead);
    color: var(--fg-secondary); line-height: 1.5; text-wrap: pretty;
}
.hero-cta { display: flex; gap: var(--s-md); justify-content: center; flex-wrap: wrap; margin-top: var(--s-2xl); }

/* hero stat strip */
.hero-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    margin-top: clamp(40px, 5vw, 72px); width: min(1000px, 100%);
    background: var(--border-subtle); border: 1px solid var(--border-subtle);
    border-radius: var(--r-card); overflow: hidden;
}
.hero-stats .cell { background: var(--surface-base); padding: var(--s-xl) var(--s-lg); text-align: center; }
.hero-stats .num {
    font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem);
    line-height: 1; color: var(--fg-primary);
}
.hero-stats .num .u { font-size: 0.5em; color: var(--fg-muted); margin-left: 2px; }
.hero-stats .lbl { margin-top: var(--s-sm); font-family: var(--font-mono); font-size: 0.68rem;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-faint); }
@media (max-width: 720px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* hero image rail (placeholder slots) */
.hero-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-md); width: min(1000px,100%);
    margin-top: clamp(40px,5vw,64px); }
.hero-rail image-slot { width: 100%; height: clamp(160px, 20vw, 240px); }
.hero-rail .ovl { position: relative; }
.hero-rail .ovl .cap {
    position: absolute; left: 12px; bottom: 12px; z-index: 3; font-family: var(--font-mono);
    font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-secondary);
    background: var(--surface-dock); padding: 4px 8px; border-radius: var(--r-xs); pointer-events: none;
}
@media (max-width: 720px) { .hero-rail { grid-template-columns: 1fr; } }

/* ── Section scaffold ── */
.section { position: relative; z-index: 2; padding: clamp(56px, 6vw, 104px) 0; }
.section.alt { background: var(--surface-base); border-block: 1px solid var(--border-subtle); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-xl);
    margin-bottom: var(--s-3xl); }
.sec-head .l { max-width: 60ch; }
.sec-head .idx { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.2em; color: var(--signal-dim);
    text-transform: uppercase; }
.sec-head h2 { margin: var(--s-md) 0 0; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h2);
    text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.04; }
.sec-head p { margin: var(--s-md) 0 0; color: var(--fg-muted); font-size: var(--fs-body); }
@media (max-width: 720px) { .sec-head { flex-direction: column; align-items: flex-start; gap: var(--s-lg); margin-bottom: var(--s-2xl);} }

/* filter chips */
.filters { display: flex; gap: var(--s-sm); flex-wrap: wrap; }
.chip {
    appearance: none; cursor: pointer; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--fg-muted); background: var(--surface-raised);
    border: 1px solid var(--border-default); border-radius: var(--r-pill); padding: 8px 14px;
    transition: all var(--t-fast) var(--ease);
}
.chip:hover { color: var(--fg-secondary); border-color: var(--border-strong); }
.chip.on { color: var(--fg-inverse); background: var(--fg-primary); border-color: var(--fg-primary); }

/* ── Mission cards ── */
.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-lg); }
@media (max-width: 980px) { .mission-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .mission-grid { grid-template-columns: 1fr; } }

.mcard {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--r-card);
    box-shadow: var(--shadow-md); overflow: hidden; cursor: pointer;
    transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.mcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-default); background: var(--surface-lifted); }
.mcard.sel { border-color: var(--signal); box-shadow: var(--shadow-lg), 0 0 0 1px var(--signal-line); }
.mcard .thumb { position: relative; height: 168px; border-bottom: 1px solid var(--border-subtle); }
.mcard .thumb image-slot { width: 100%; height: 100%; }
.mcard .code {
    position: absolute; top: 10px; left: 10px; z-index: 3; font-family: var(--font-mono); font-size: 0.66rem;
    letter-spacing: 0.12em; color: var(--fg-secondary); background: var(--surface-dock); padding: 4px 8px; border-radius: var(--r-xs);
}
.mcard .body { padding: var(--s-lg); display: flex; flex-direction: column; gap: var(--s-md); flex: 1; }
.mcard h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase;
    letter-spacing: 0.01em; line-height: 1.0; }
.mcard .desc { margin: 0; color: var(--fg-muted); font-size: var(--fs-ui); line-height: 1.45; flex: 1; }
.mcard .meta { display: flex; align-items: center; gap: var(--s-md); padding-top: var(--s-md);
    border-top: 1px dashed var(--border-divider); font-family: var(--font-mono); font-size: 0.7rem; color: var(--fg-faint);
    letter-spacing: 0.06em; }
.mcard .meta .m { display: inline-flex; align-items: center; gap: 5px; }
.mcard .meta .m svg { width: 13px; height: 13px; opacity: 0.8; }
.mcard .meta .grow { margin-left: auto; }

/* difficulty / status badge */
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.64rem;
    letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--r-pill);
    border: 1px solid var(--border-default); color: var(--fg-secondary); background: var(--surface-floating); white-space: nowrap; }
.badge.b-signal { color: var(--signal); border-color: var(--signal-line); background: var(--signal-bg); }
.badge.b-ok { color: var(--ok); border-color: oklch(74% 0.13 160 / 0.4); background: var(--ok-bg); }
.badge.b-warn { color: var(--warn); border-color: oklch(80% 0.13 75 / 0.4); background: var(--warn-bg); }
.badge.b-crit { color: var(--crit); border-color: oklch(67% 0.19 25 / 0.4); background: var(--crit-bg); }
.badge .pip { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.mcard .topbadge { position: absolute; top: 10px; right: 10px; z-index: 3; }

/* ── Wochenbefehl (weekly order) ── */
.order {
    position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 0;
    background: linear-gradient(180deg, var(--surface-raised), var(--surface-base));
    border: 1px solid var(--border-default); border-radius: var(--r-modal); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.order .left { padding: clamp(28px, 4vw, 52px); position: relative; }
.order .stamp-row { display: flex; align-items: center; gap: var(--s-md); margin-bottom: var(--s-xl); }
.order .ribbon { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--signal); border: 1px solid var(--signal-line); padding: 5px 10px; border-radius: var(--r-xs); white-space: nowrap; }
.order h2 { margin: 0 0 var(--s-md); font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h2);
    text-transform: uppercase; line-height: 1.02; letter-spacing: 0.01em; }
.order .otext { margin: 0 0 var(--s-xl); color: var(--fg-secondary); font-size: var(--fs-lead); line-height: 1.5; max-width: 46ch; }
.order .checklist { display: flex; flex-direction: column; gap: var(--s-md); margin: 0 0 var(--s-2xl); padding: 0; list-style: none; }
.order .checklist li { display: flex; gap: var(--s-md); align-items: flex-start; color: var(--fg-secondary); font-size: var(--fs-ui); line-height: 1.4; }
.order .checklist .box { flex-shrink: 0; width: 18px; height: 18px; border: 1px solid var(--border-strong);
    border-radius: var(--r-xs); display: grid; place-items: center; margin-top: 1px; }
.order .checklist .box svg { width: 12px; height: 12px; color: var(--signal); }
.order .checklist li.done .box { background: var(--signal-bg); border-color: var(--signal-line); }
.order .checklist li.done span { color: var(--fg-muted); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.order-cta { display: flex; align-items: center; gap: var(--s-lg); flex-wrap: wrap; }

.order .right { position: relative; border-left: 1px solid var(--border-default);
    background: var(--surface-deep); display: flex; flex-direction: column; }
.order .right .seal { flex: 1; position: relative; min-height: 200px; }
.order .right .seal image-slot { width: 100%; height: 100%; }
.order .deadline { border-top: 1px solid var(--border-default); padding: var(--s-lg) var(--s-xl);
    display: flex; align-items: center; gap: var(--s-md); }
.order .deadline .k { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); }
.order .deadline .timer { margin-left: auto; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--signal); letter-spacing: 0.04em; }
@media (max-width: 860px) { .order { grid-template-columns: 1fr; } .order .right { border-left: 0; border-top: 1px solid var(--border-default); } .order .right .seal { min-height: 220px; } }

/* ── Ausrüstungskammer (equipment) ── */
.kit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-md); }
@media (max-width: 980px) { .kit-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .kit-grid { grid-template-columns: repeat(2, 1fr); } }

.kit {
    position: relative; background: var(--surface-raised); border: 1px solid var(--border-subtle);
    border-radius: var(--r-card); padding: var(--s-md); display: flex; flex-direction: column; gap: var(--s-md);
    transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.kit:hover { border-color: var(--border-default); background: var(--surface-lifted); transform: translateY(-2px); }
.kit .pic { position: relative; aspect-ratio: 1 / 1; background: var(--surface-deep); border-radius: var(--r-sm);
    border: 1px solid var(--border-subtle); overflow: hidden; }
.kit .pic image-slot { width: 100%; height: 100%; }
.kit .pic .qty { position: absolute; top: 7px; right: 7px; font-family: var(--font-mono); font-size: 0.6rem;
    color: var(--fg-secondary); background: var(--surface-dock); padding: 2px 6px; border-radius: var(--r-xs); letter-spacing: 0.06em; }
.kit .name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-transform: uppercase;
    letter-spacing: 0.02em; line-height: 1.05; }
.kit .spec { font-family: var(--font-mono); font-size: 0.66rem; color: var(--fg-faint); letter-spacing: 0.06em; margin-top: -4px; }
.kit .foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-sm); margin-top: auto;
    padding-top: var(--s-sm); border-top: 1px dashed var(--border-divider); }

/* ── CTA band ── */
.enlist { position: relative; z-index: 2; padding: clamp(64px, 7vw, 120px) 0; text-align: center; }
.enlist .tag { justify-content: center; }
.enlist h2 { margin: var(--s-lg) 0 0; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h1);
    text-transform: uppercase; line-height: 0.98; text-wrap: balance; }
.enlist p { max-width: 52ch; margin: var(--s-lg) auto 0; color: var(--fg-muted); font-size: var(--fs-lead); }
.enlist .enlist-cta { display: flex; gap: var(--s-md); justify-content: center; flex-wrap: wrap; margin-top: var(--s-2xl); }

/* ── Footer ── */
.foot { position: relative; z-index: 2; border-top: 1px solid var(--border-subtle); background: var(--surface-deep);
    padding: var(--s-3xl) 0 var(--s-xl); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-2xl); margin-bottom: var(--s-3xl); }
.foot .brand { margin-bottom: var(--s-lg); }
.foot .blurb { color: var(--fg-muted); font-size: var(--fs-ui); max-width: 34ch; }
.foot .col h4 { margin: 0 0 var(--s-md); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--fg-faint); }
.foot .col a { display: block; color: var(--fg-muted); text-decoration: none; font-size: var(--fs-ui); padding: 5px 0;
    transition: color var(--t-fast); }
.foot .col a:hover { color: var(--fg-primary); }
.foot-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-lg);
    padding-top: var(--s-lg); border-top: 1px solid var(--border-subtle); }
.foot-bar .mono { color: var(--fg-faint); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: var(--s-xl); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } .foot-bar { flex-direction: column; align-items: flex-start; gap: var(--s-sm); } }

/* ── Modal ── */
.scrim { position: fixed; inset: 0; z-index: 90; background: var(--surface-overlay);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: none; place-items: center; padding: var(--s-xl); }
.scrim.open { display: grid; }
.modal {
    width: min(460px, 100%); background: var(--surface-lifted); border: 1px solid var(--border-default);
    border-radius: var(--r-modal); box-shadow: var(--shadow-xl); overflow: hidden;
    animation: rise var(--t-base) var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal .m-head { padding: var(--s-xl) var(--s-xl) var(--s-md); border-bottom: 1px solid var(--border-subtle); position: relative; }
.modal .m-head .tag { margin-bottom: var(--s-sm); }
.modal .m-head h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; }
.modal .x { position: absolute; top: var(--s-lg); right: var(--s-lg); appearance: none; cursor: pointer; background: transparent;
    border: 1px solid var(--border-default); border-radius: var(--r-sm); width: 32px; height: 32px; color: var(--fg-muted); display: grid; place-items: center; }
.modal .x:hover { color: var(--fg-primary); border-color: var(--border-strong); }
.modal .m-body { padding: var(--s-xl); display: flex; flex-direction: column; gap: var(--s-md); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); }
.field input, .field select {
    appearance: none; font-family: var(--font-sans); font-size: var(--fs-ui); color: var(--fg-primary);
    background: var(--surface-deep); border: 1px solid var(--border-default); border-radius: var(--r-md);
    padding: 11px 13px; box-shadow: var(--inset-strong); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.field input:focus, .field select:focus { outline: none; border-color: var(--primary-400);
    box-shadow: var(--inset-strong), 0 0 0 3px oklch(55% 0.01 255 / 0.4); }
.modal .m-foot { padding: 0 var(--s-xl) var(--s-xl); display: flex; gap: var(--s-md); }
.modal .m-foot .btn { flex: 1; }

/* ── Mobile drawer ── */
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.open { display: block; }
.drawer .d-scrim { position: absolute; inset: 0; background: var(--surface-overlay); }
.drawer .d-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 84vw);
    background: var(--surface-lifted); border-left: 1px solid var(--border-default); box-shadow: var(--shadow-xl);
    padding: var(--s-xl); display: flex; flex-direction: column; gap: var(--s-xs);
    animation: slidein var(--t-base) var(--ease); }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer .d-panel .d-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-lg); }
.drawer .d-panel a { padding: 13px 12px; border-radius: var(--r-sm); color: var(--fg-secondary); text-decoration: none;
    font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.02em;
    border-bottom: 1px solid var(--border-subtle); }
.drawer .d-panel a:hover { color: var(--fg-primary); background: oklch(100% 0 0 / 0.04); }
.drawer .d-panel .d-actions { margin-top: auto; display: flex; flex-direction: column; gap: var(--s-md); }

/* ── Responsive header swaps ── */
@media (max-width: 900px) {
    .nav { display: none; }
    .hdr-actions .lang { display: none; }
    .hdr-actions .enlist-btn { display: none; }
    .burger { display: grid; }
}
@media (max-width: 420px) {
    .brand .wordmark small { display: none; }
}

/* entrance */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(16px); }
    .reveal.in { opacity: 1; transform: none; transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
}
