/* Member files (ara.html, yuri.html, minji.html, hana.html), following the user's mockups in
   source-art/mockups/. Loads after chrome.css, site.css and archive.css. Static by design: no animation.
   Each section sits in a .member-zone whose ::before holds a piece of the member's scenery
   (assets/members/art/, cut by scripts/export-member-art.mjs) that fades into the page with CSS masks.
   Everything she owns uses --member; ARCHIVE's file stays green. */

.member-ara { --member: var(--ara); }
.member-yuri { --member: var(--yuri); }
.member-minji { --member: var(--minji); }
.member-hana { --member: var(--hana); }

/* Scenery reaches the viewport edges; clip (not hidden) so nothing scrolls sideways and sticky still works. */
.member-page { overflow-x: clip; }
.member-file { width: min(1240px, 94%); margin: 0 auto; padding-bottom: 56px; }
.member-zone { position: relative; isolation: isolate; }
.member-zone::before { content: ''; position: absolute; z-index: -1; background-repeat: no-repeat; background-size: cover; pointer-events: none; }

/* Shared panel language: thin border in her colour with a soft glow. */
.member-card-art, .member-facts, .member-profile, .profile-grid > div { --edge: color-mix(in srgb, var(--member) 55%, transparent); }

/* ---------- Opening screen ---------- */
.zone-hero { padding: 40px 0 16px; }
/* Full-width scenery behind the card and text, fading out at the bottom; a dark field keeps the text readable. */
.zone-hero::before { top: 0; bottom: -80px; left: 50%; width: 100vw; transform: translateX(-50%); background-image: var(--art-hero); background-position: center top;
    -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.zone-hero::after { content: ''; position: absolute; z-index: -1; top: 0; bottom: -80px; left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none;
    background: radial-gradient(ellipse 40% 55% at 58% 48%, rgba(3, 3, 5, .86), rgba(3, 3, 5, .5) 65%, transparent), linear-gradient(90deg, rgba(3, 3, 5, .35), rgba(3, 3, 5, .1) 40%, rgba(3, 3, 5, .1) 80%, rgba(3, 3, 5, .3)); }
.member-hero { display: grid; grid-template-columns: minmax(260px, 400px) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.member-card-art { position: relative; margin: 0; padding: 7px; border: 1px solid var(--member); background: #050508; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 0 24px color-mix(in srgb, var(--member) 50%, transparent), 0 0 70px -10px color-mix(in srgb, var(--member) 40%, transparent); }
.member-card-art::after { content: ''; position: absolute; inset: 3px; border: 1px solid var(--edge); pointer-events: none; }
.member-card-art img { width: 100%; height: auto; aspect-ratio: 2 / 3; }
.member-intro { text-shadow: 0 0 18px rgba(0, 0, 0, .8); }
.member-eyebrow { color: var(--member); font-family: 'Courier New', monospace; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.member-name { margin-top: 6px; color: var(--member); font-size: clamp(64px, 10vw, 128px); line-height: .92; letter-spacing: .06em; text-transform: uppercase; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .member-name { background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--member) 45%, #fff) 50%, var(--member) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px color-mix(in srgb, var(--member) 45%, transparent)); }
}
.member-identity { margin-top: 14px; color: #ece6f0; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: .04em; }
.member-role { margin-top: 6px; color: var(--member); font-family: 'Orbitron', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.member-quote { margin: 24px 0 0; padding-left: 18px; border-left: 2px solid var(--member); }
.member-quote p { color: #f1edf4; font-size: clamp(18px, 1.8vw, 21px); font-style: italic; line-height: 1.55; }

/* Fact boxes and profile cards: framed, with her marker on each joint. */
.member-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; border: 1px solid var(--edge); background: rgba(5, 4, 8, .78); box-shadow: 0 0 22px -8px color-mix(in srgb, var(--member) 55%, transparent); }
.member-facts div { position: relative; padding: 14px 16px; }
.member-facts div + div { border-left: 1px solid var(--edge); }
.member-facts dt, .profile-grid dt { color: var(--muted); font-family: 'Courier New', monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.member-facts dd, .profile-grid dd { margin: 6px 0 0; color: #ece6f0; font-size: 15px; line-height: 1.5; }
.member-facts div:first-child dd { color: var(--member); }
.member-facts div + div::before, .profile-grid > div + div::before { content: ''; position: absolute; top: 50%; left: -8px; width: 15px; height: 15px; background: var(--joint) center / contain no-repeat; transform: translateY(-50%); filter: drop-shadow(0 0 4px var(--member)); }
.member-cta { margin-top: 26px; min-width: 300px; border-color: var(--member); background: rgba(5, 4, 8, .7); color: var(--member); box-shadow: 0 0 16px -6px var(--member); }
.member-cta:hover { background: var(--member); color: #050508; }

.member-heading h2 { color: var(--member); font-size: 21px; letter-spacing: .26em; text-transform: uppercase; }
.member-heading p { margin-top: 4px; color: var(--muted); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }

/* ---------- Signal Profile: framed, with her signal running across the heading ---------- */
.zone-profile { padding: 8px 0 0; }
/* Scenery at both edges, faded towards the centre and top and bottom. */
.zone-profile::before { top: -60px; bottom: -60px; left: 50%; width: 100vw; transform: translateX(-50%); background-image: var(--art-profile); background-position: center;
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 26%, transparent 74%, #000), linear-gradient(transparent, #000 25%, #000 75%, transparent); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, #000, transparent 26%, transparent 74%, #000), linear-gradient(transparent, #000 25%, #000 75%, transparent); mask-composite: intersect; }
.member-profile { padding: 22px 24px 24px; border: 1px solid var(--edge); background: rgba(5, 4, 8, .82); box-shadow: 0 0 30px -12px color-mix(in srgb, var(--member) 60%, transparent); }
.profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 20px; }
/* The wave is her painted strip from SignalWaves.png (assets/members/art/{member}-wave.webp). "Screen" drops its
   dark background into the panel, and the masks fade its ends and edges so no rectangle shows. */
.signal-wave { width: 100%; height: auto; max-height: 96px; object-fit: contain; mix-blend-mode: screen;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(transparent, #000 15%, #000 85%, transparent); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(transparent, #000 15%, #000 85%, transparent); mask-composite: intersect; }
.profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; }
.profile-grid > div { position: relative; padding: 16px 20px; border: 1px solid var(--edge); background: rgba(8, 7, 12, .7); }
.profile-grid > div + div { border-left: 0; }

/* ---------- ARCHIVE file: the green console, see-through on the right where her world shows ---------- */
.zone-archive { margin-top: 44px; }
.zone-archive::before { top: -40px; bottom: -40px; right: calc(50% - 50vw); width: min(64vw, 980px); background-image: var(--art-archive); background-position: left center;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%), linear-gradient(transparent, #000 18%, #000 82%, transparent); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 38%), linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-composite: intersect; }
/* The console matches the homepage's Recovered Transmissions: header with a live tag, a camera feed and her
   asset file on the left, her incident records on the right, and the signal strip with her records lit.
   Records and strip are generated by scripts/member-archive.mjs. */
/* Compact console: camera thumbnail | asset fields | incident records, then one status row and a short strip. */
/* Padding comes from the device bezel (.archive-device in css/archive.css). */
.member-archive .archive-head { margin-bottom: 14px; }
.member-archive .archive-body { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.member-archive .feed-cam { aspect-ratio: 4 / 3; }
/* Her energy silhouette from the Great Ignition art (assets/members/art/{member}-feed.webp), as ARCHIVE sees her. */
.member-archive .feed-cam img { object-position: center 25%; }
.member-archive .archive-fields { grid-template-columns: max-content minmax(0, 1fr); column-gap: 14px; border-top: 0; }
.member-archive .archive-fields dt, .member-archive .archive-fields dd { padding: 5px 0; }
.member-archive .archive-fields dd { padding-left: 0; font-size: 13px; line-height: 1.45; }
.member-archive .archive-records h3 { margin-bottom: 4px; }
.member-archive .archive-records li a { min-height: 42px; }
.archive-status-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px 24px; align-items: center; margin-top: 14px; }
.archive-status-row .archive-alert { margin: 0; }
.archive-status-row .archive-notes { margin: 0; font-size: 12px; line-height: 1.6; }
.member-archive .signal-strip { margin-top: 14px; padding-top: 10px; }
.member-archive .strip-label { margin-bottom: 6px; }
.member-archive .strip-ticks { height: 26px; gap: 3px; }
.member-archive .strip-key { margin-top: 6px; }
.tick-tagged { height: 100%; background: var(--archive-bright); box-shadow: 0 0 10px var(--archive); }
.tick-other { height: 32%; background: var(--archive-dim); opacity: .7; }
.key-tagged::before { height: 16px; background: var(--archive-bright); }
.key-other::before { height: 7px; background: var(--archive-dim); }

/* ---------- Origin Fragment: label column, timeline, wide story column ---------- */
.zone-origin { margin-top: 48px; }
.zone-origin::before { top: -20px; left: calc(50% - 50vw); width: min(48vw, 680px); height: min(100%, 1150px); background-image: var(--art-origin); background-position: right top;
    -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 78%), linear-gradient(#000 55%, transparent); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, #000 30%, transparent 78%), linear-gradient(#000 55%, transparent); mask-composite: intersect; }
.member-origin { display: grid; grid-template-columns: minmax(180px, 250px) 40px minmax(0, 720px); column-gap: 24px; justify-content: center; }
/* The label sits over the edge of the scenery: a dark field behind it keeps it readable. */
.origin-label { position: relative; align-self: start; padding: 34px 0 20px; text-shadow: 0 0 10px #000, 0 0 3px #000; }
.origin-label::before { content: ''; position: absolute; z-index: -1; inset: 0 -40px 0 -60px; background: radial-gradient(ellipse at 40% 45%, rgba(3, 3, 5, .9), rgba(3, 3, 5, .6) 55%, transparent 75%); }
.origin-label .member-heading h2 { font-size: 24px; line-height: 1.3; }
.origin-meta { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; color: var(--member); font-family: 'Courier New', monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.origin-meta span + span { color: var(--muted); }
/* The timeline: a thin line in her colour with her marker every so often, and an emblem at the top. */
.origin-timeline { position: relative; background: var(--timeline) center 70px / 18px 220px repeat-y, linear-gradient(transparent, var(--member) 40px, color-mix(in srgb, var(--member) 40%, transparent) 85%, transparent) center / 1px 100% no-repeat; }
.origin-timeline::before { content: ''; position: absolute; top: 0; left: 50%; width: 40px; height: 40px; background: var(--emblem) center / contain no-repeat; transform: translateX(-50%); filter: drop-shadow(0 0 6px var(--member)); }
.origin-body { padding-top: 30px; }
.origin-text p { color: #e6e0ea; font-size: 17px; line-height: 1.85; }
/* The scenery fades out before the story column (mask above); this dark field and halo keep any
   remaining bright art (Yuri's ice) from sitting behind the words. */
.origin-body { position: relative; }
.origin-body::before { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: -40px; width: 160px; background: linear-gradient(90deg, transparent, rgba(3, 3, 5, .85) 45%, rgba(3, 3, 5, .85)); pointer-events: none; }
.origin-text p { text-shadow: 0 0 2px #000, 0 0 10px rgba(0, 0, 0, .9); }
.origin-text p + p { margin-top: 1em; }
.origin-text em { color: #fff; }
.origin-link { display: flex; justify-content: space-between; align-items: center; gap: 14px; max-width: 360px; min-height: 49px; margin-top: 28px; padding: 0 16px; border: 1px solid var(--edge, var(--line)); color: var(--member); font-family: 'Orbitron', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.origin-link:hover { background: var(--member); color: #050508; }

/* ---------- The Unit: landscape banners (closeups stand in until the banner art exists) ---------- */
.zone-unit { margin-top: 56px; }
.unit-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.unit-card { --card: var(--violet); position: relative; display: block; overflow: hidden; aspect-ratio: 12 / 5; border: 1px solid color-mix(in srgb, var(--card) 50%, var(--line)); background: #050508; transition: box-shadow .2s, border-color .2s; }
.unit-card.unit-ara { --card: var(--ara); }
.unit-card.unit-yuri { --card: var(--yuri); }
.unit-card.unit-minji { --card: var(--minji); }
.unit-card.unit-hana { --card: var(--hana); }
/* Stand-in: the homepage closeup, pushed right and framed on the face until the banner art exists. */
.unit-card img { position: absolute; top: 0; right: 0; width: 62%; height: 100%; object-fit: cover; object-position: center 30%; }
.unit-card::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(3, 3, 5, .92) 0, rgba(3, 3, 5, .55) 45%, transparent 75%), linear-gradient(0deg, rgba(3, 3, 5, .7), transparent 60%); }
.unit-card-name, .unit-card-identity { position: absolute; z-index: 2; left: 14px; }
.unit-card-name { bottom: 30px; color: var(--card); font-family: 'Orbitron', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.unit-card-identity { bottom: 10px; color: #e6e0ea; font-size: 13px; }
.unit-card:hover, .unit-card:focus-visible, .unit-card[aria-current] { border-color: var(--card); box-shadow: 0 0 0 1px var(--card), 0 0 22px color-mix(in srgb, var(--card) 45%, transparent); }
.unit-card[aria-current]::after { content: 'You are here'; position: absolute; z-index: 2; top: 10px; left: 12px; padding: 2px 8px; border: 1px solid var(--card); background: rgba(3, 3, 5, .8); color: var(--card); font-family: 'Courier New', monospace; font-size: 12px; letter-spacing: .08em; }

/* ---------- Per member: scenery and marker shapes ---------- */
/* Ara: electricity. Joints and timeline marks are crosshairs; the timeline opens on a target. */
.member-ara {
    --art-hero: url('../assets/members/art/ara-hero.webp'); --art-profile: url('../assets/members/art/ara-profile.webp');
    --art-archive: url('../assets/members/art/ara-archive.webp'); --art-origin: url('../assets/members/art/ara-origin.webp');
    --joint: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ff6464' stroke-width='1.4'><circle cx='8' cy='8' r='4'/><path d='M8 0v5M8 11v5M0 8h5M11 8h5'/></svg>");
    --timeline: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='220' fill='none' stroke='%23ff6464' stroke-width='1.4'><circle cx='9' cy='9' r='4'/><path d='M9 2v3M9 13v3M2 9h3M13 9h3'/></svg>");
    --emblem: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23ff6464' stroke-width='1.3'><circle cx='20' cy='20' r='14'/><circle cx='20' cy='20' r='6'/><path d='M20 0v12M20 28v12M0 20h12M28 20h12'/></svg>");
}
/* Yuri: ice and precision. Four-point sparkles. */
.member-yuri {
    --art-hero: url('../assets/members/art/yuri-hero.webp'); --art-profile: url('../assets/members/art/yuri-profile.webp');
    --art-archive: url('../assets/members/art/yuri-archive.webp'); --art-origin: url('../assets/members/art/yuri-origin.webp');
    --joint: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%23eef4ff' d='M8 0l1.6 6.4L16 8l-6.4 1.6L8 16l-1.6-6.4L0 8l6.4-1.6z'/></svg>");
    --timeline: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='220'><path fill='%23eef4ff' d='M9 0l1.8 7.2L18 9l-7.2 1.8L9 18l-1.8-7.2L0 9l7.2-1.8z'/></svg>");
    --emblem: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><path fill='%23eef4ff' d='M20 0l3.4 16.6L40 20l-16.6 3.4L20 40l-3.4-16.6L0 20l16.6-3.4z'/></svg>");
}
/* Minji: neon pulse. Glowing dots. */
.member-minji {
    --art-hero: url('../assets/members/art/minji-hero.webp'); --art-profile: url('../assets/members/art/minji-profile.webp');
    --art-archive: url('../assets/members/art/minji-archive.webp'); --art-origin: url('../assets/members/art/minji-origin.webp');
    --joint: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='7' fill='%2359c9ff' fill-opacity='.3'/><circle cx='8' cy='8' r='3.5' fill='%23c9eeff'/></svg>");
    --timeline: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='220'><circle cx='9' cy='9' r='8' fill='%2359c9ff' fill-opacity='.3'/><circle cx='9' cy='9' r='4' fill='%23c9eeff'/></svg>");
    --emblem: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none'><circle cx='20' cy='20' r='17' stroke='%2359c9ff' stroke-width='1.3'/><circle cx='20' cy='20' r='9' fill='%2359c9ff' fill-opacity='.35'/><circle cx='20' cy='20' r='4.5' fill='%23c9eeff'/></svg>");
}
/* Hana: thermal build. Diamonds in rings, like embers held in place. */
.member-hana {
    --art-hero: url('../assets/members/art/hana-hero.webp'); --art-profile: url('../assets/members/art/hana-profile.webp');
    --art-archive: url('../assets/members/art/hana-archive.webp'); --art-origin: url('../assets/members/art/hana-origin.webp');
    --joint: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23e2b8ff' stroke-width='1.3'><path d='M8 1l7 7-7 7-7-7z'/><circle cx='8' cy='8' r='2' fill='%23ffd2a6' stroke='none'/></svg>");
    --timeline: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='220' fill='none' stroke='%23e2b8ff' stroke-width='1.3'><circle cx='9' cy='9' r='8'/><path d='M9 4l5 5-5 5-5-5z'/></svg>");
    --emblem: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23e2b8ff' stroke-width='1.3'><circle cx='20' cy='20' r='14'/><path d='M20 9l11 11-11 11L9 20z'/><path d='M20 0v6M20 34v6M0 20h6M34 20h6'/></svg>");
}

@media (max-width: 1050px) {
    .member-facts, .profile-grid { grid-template-columns: 1fr; }
    .member-facts div + div { border-left: 0; border-top: 1px solid var(--edge); }
    .profile-grid > div + div { border-left: 1px solid var(--edge); border-top: 0; }
    .member-facts div + div::before, .profile-grid > div + div::before { top: -8px; left: 50%; transform: translateX(-50%); }
    .unit-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .member-origin { grid-template-columns: minmax(150px, 200px) 32px minmax(0, 1fr); column-gap: 18px; }
}
@media (max-width: 800px) {
    .member-hero { grid-template-columns: 1fr; }
    .member-card-art { width: min(400px, 100%); margin-inline: auto; }
    .zone-hero::after { background: linear-gradient(rgba(3, 3, 5, .25), rgba(3, 3, 5, .8) 55%); }
    /* Side scenery needs width to work; on narrow screens only the opening scenery stays. */
    .zone-profile::before, .zone-archive::before, .zone-origin::before { display: none; }
    .member-archive .archive-body { grid-template-columns: 160px minmax(0, 1fr); gap: 16px 20px; }
    .member-archive .archive-records { grid-column: 1 / -1; }
    .archive-status-row { grid-template-columns: 1fr; }
    .profile-head { grid-template-columns: 1fr; gap: 10px; }
    .member-origin { grid-template-columns: 1fr; }
    .origin-timeline { display: none; }
    .origin-label { padding-top: 0; }
    .origin-meta { flex-direction: row; flex-wrap: wrap; gap: 4px 20px; }
    .origin-body { padding-top: 18px; }
}
@media (max-width: 600px) {
    .member-file { width: 90%; }
    .member-cta { width: 100%; min-width: 0; }
    .member-profile { padding: 18px 16px; }
    .origin-text p { font-size: 16px; line-height: 1.8; }
    .origin-link { max-width: none; }
    .unit-cards { grid-template-columns: 1fr; }
    .member-archive .archive-body { grid-template-columns: 1fr; }
    .member-archive .feed-cam { aspect-ratio: 16 / 9; }
    .member-archive .archive-fields { grid-template-columns: 1fr; }
    .member-archive .archive-fields dt { padding-bottom: 0; }
    .member-archive .archive-fields dd { padding-top: 2px; }
}

/* ---------- Dossier opening screen (all four member files) ----------
   Everything about her on the first screen: a smaller card, the name beside identity and role, the wave,
   all six profile facts in one grid, ARCHIVE's alert and her links. Replaces the separate Signal Profile. */
.member-dossier { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
.member-dossier .member-card-art img { max-height: calc(100vh - 150px); object-fit: cover; }
.member-dossier .member-name { font-size: clamp(56px, 7vw, 88px); }
.dossier-title { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 28px; margin-top: 4px; }
.dossier-title .member-identity { margin-top: 0; }
.member-dossier .member-quote { margin-top: 16px; }
.member-dossier .member-quote p { font-size: 18px; }
.dossier-profile { margin-top: 18px; }
.dossier-profile .profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; margin: 0 0 6px; }
.dossier-label { color: var(--member); font-size: 14px; letter-spacing: .24em; text-transform: uppercase; }
.dossier-label span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; letter-spacing: .18em; }
.dossier-profile .signal-wave { max-height: 56px; }
.dossier-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.dossier-facts div { padding: 11px 14px; }
.dossier-facts div:nth-child(n + 4) { border-top: 1px solid var(--edge); }
.dossier-facts div:nth-child(4) { border-left: 0; }
.dossier-facts div:nth-child(4)::before { content: none; }
.dossier-facts dd { font-size: 14px; line-height: 1.45; }
/* ARCHIVE's hook, in its own green, jumping to the full file below. */
.dossier-alert { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 9px 14px; border: 1px solid #2f7052; border-left: 2px solid #ff514b; background: rgba(4, 10, 7, .88); color: #ff8a84; font-family: 'Courier New', monospace; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-shadow: none; }
.dossier-alert span { color: #85efb1; letter-spacing: .16em; }
.dossier-alert::after { content: '_'; margin-left: -8px; }
.dossier-alert:hover { background: rgba(10, 30, 20, .95); color: #ffb0ab; }
/* Left column: the card, then ARCHIVE's alert and her two links, stacked to the card's width. */
.dossier-side { display: flex; flex-direction: column; gap: 12px; }
.dossier-side .dossier-alert { margin-top: 4px; align-items: flex-start; font-size: 12px; line-height: 1.5; }
.dossier-side .member-cta { margin-top: 0; min-width: 0; width: 100%; }
/* Her own transmission: label line, then its title. */
.dossier-side .member-cta span { display: flex; flex-direction: column; gap: 3px; }
.dossier-side .member-cta b { color: #f1edf4; font-family: 'Cinzel', Georgia, serif; font-size: 16px; font-weight: 400; letter-spacing: .02em; text-transform: none; }
.dossier-side .member-cta:hover b { color: #050508; }
/* In the narrow column: the alert's label sits on its own line with the cursor after the status, and the
   transmission link puts its T-number above its title. */
.dossier-side .dossier-alert { display: block; }
.dossier-side .dossier-alert span { display: block; margin-bottom: 2px; }
.dossier-side .dossier-alert::after { margin-left: 2px; }
.dossier-side .dossier-link { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; min-height: 0; padding: 4px 0; font-size: 16px; line-height: 1.35; }
.dossier-side .dossier-link span { grid-column: 1; }
.dossier-side .dossier-link .arrow { grid-column: 2; grid-row: 1 / 3; }
.dossier-lore { max-width: 62ch; margin-top: 14px; color: #e6e0ea; font-size: 17px; line-height: 1.7; }
/* Readability over bright scenery: a soft dark halo on the intro and quote on every page, and a deeper
   field behind the text column on Yuri, whose ice scenery is near-white. */
.member-dossier .dossier-lore, .member-dossier .member-quote p { text-shadow: 0 0 2px #000, 0 0 10px rgba(0, 0, 0, .9), 0 0 24px rgba(0, 0, 0, .8); }
.member-yuri .zone-hero::after, .member-minji .zone-hero::after { background: radial-gradient(ellipse 52% 72% at 60% 46%, rgba(3, 3, 5, .93), rgba(3, 3, 5, .8) 55%, rgba(3, 3, 5, .35) 80%, transparent), linear-gradient(90deg, rgba(3, 3, 5, .35), rgba(3, 3, 5, .15) 40%, rgba(3, 3, 5, .15) 80%, rgba(3, 3, 5, .35)); }
/* Both columns run the same height: the right column stretches to the card column and its table sits on
   the bottom edge, level with the button under the card; the spare height goes between name, intro and quote. */
.member-dossier { align-items: stretch; }
.member-dossier .member-intro { display: flex; flex-direction: column; }
.member-dossier .dossier-lore { margin-top: auto; padding-top: 14px; }
.member-dossier .member-quote { margin-top: auto; }
.member-dossier .dossier-profile { margin-top: auto; padding-top: 16px; }
/* Colour signature: the canon palette as labelled swatches, plus her lighting from the colour canon. */
.swatches { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; padding: 0; list-style: none; }
.swatches li { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-family: 'Courier New', monospace; font-size: 12px; letter-spacing: .04em; }
.swatches li::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 8px var(--swatch); }
/* Palettes from lore/blaze_lace_color_aura_canon_lock.md (primary, accent or undertone, lighting). The canon names the colours; the values are approximations. */
.swatch-crimson { --swatch: #e0242f; }
.swatch-ember { --swatch: #ff6464; }
.swatch-uv { --swatch: #8b5cff; }
.swatch-platinum { --swatch: #d2dce8; }
.swatch-blue-white { --swatch: #e6f2ff; }
.swatch-chrome { --swatch: #8e9cb0; }
.swatch-neon-blue { --swatch: #2f6bff; }
.swatch-cyan { --swatch: #3ff0ff; }
.swatch-magenta { --swatch: #ff4fd8; }
.swatch-violet-black { --swatch: #4a1a63; }
.swatch-amethyst { --swatch: #9a4fd6; }
.swatch-ember-smoke { --swatch: #ff9a5a; }
.fact-note { display: block; margin-top: 8px; color: #d6cfdc; font-size: 13px; line-height: 1.45; }
.dossier-link { display: inline-flex; align-items: center; gap: 12px; min-height: 49px; color: #ece6f0; font-size: 15px; }
.dossier-link span { color: var(--member); font-family: 'Courier New', monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.dossier-link:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--member); }
.member-dossier + .zone-archive, .zone-hero:has(.member-dossier) + .zone-archive { margin-top: 24px; }
@media (max-width: 1050px) {
    .dossier-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dossier-facts div + div { border-left: 0; border-top: 0; }
    .dossier-facts div:nth-child(even) { border-left: 1px solid var(--edge); }
    .dossier-facts div:nth-child(n + 3) { border-top: 1px solid var(--edge); }
    .dossier-facts div + div::before { content: none; }
}
@media (max-width: 800px) {
    .member-dossier { grid-template-columns: 1fr; }
    /* Phones: card, then who she is, then ARCHIVE's alert and her links. */
    .dossier-side { display: contents; }
    .member-dossier .member-card-art { order: 1; }
    .member-dossier .member-intro { order: 2; }
    .dossier-side .dossier-alert, .dossier-side .member-cta, .dossier-side .dossier-link { order: 3; }
    .member-dossier .member-card-art { width: min(300px, 70%); }
    .dossier-profile .profile-head { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 600px) {
    .dossier-facts { grid-template-columns: 1fr; }
    .dossier-facts div:nth-child(even) { border-left: 0; }
    .dossier-facts div:nth-child(n + 2) { border-top: 1px solid var(--edge); }
    .dossier-alert { font-size: 12px; }
}

/* Section dividers, kept tight: her own colour (MemberDividers) between the opening screen and ARCHIVE; the
   four-colour divider closes the story and leads into The Unit. Painted on black, blended with "screen". */
.member-divider { display: block; width: min(680px, 86%); height: auto; margin: 0 auto -4px; mix-blend-mode: screen; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.member-divider.energy-divider { width: min(1300px, 100%); margin: 24px auto 0; }
.member-divider.energy-divider + .zone-unit { margin-top: 24px; }
.member-divider-own + .zone-archive { margin-top: 0; }

/* Return from the system console to her story without a second large section gap. */
.member-divider-return { margin-top: 16px; }
.member-divider-return + .zone-origin { margin-top: 12px; }

/* Keep the Unit introduction on one compact row above its member banners. */
.unit-row > .member-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; }
.unit-row > .member-heading p { margin: 0; letter-spacing: .12em; }
@media (max-width: 600px) {
    .unit-row > .member-heading { flex-direction: column; gap: 4px; }
}
