:root {
  color-scheme: dark;
  --bg: #08090d;
  --surface: #12141c;
  --surface-raised: #191c27;
  --surface-soft: rgba(20, 22, 32, .84);
  --violet: #8b5cf6;
  --violet-bright: #b39aff;
  --violet-deep: #5127a8;
  --crimson: #e53950;
  --silver: #c6c9d4;
  --text: #f4f5fa;
  --muted: #a3a8b8;
  --faint: #73798a;
  --line: rgba(192, 181, 232, .14);
  --line-strong: rgba(173, 146, 255, .28);
  --card-height: 252px;
  --grid-gap: 15px;
  --header-height: 76px;
  --ease: cubic-bezier(.2, .75, .2, 1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
html { min-width: 320px; height: 100%; background: var(--bg); }
body { margin: 0; min-width: 320px; height: 100%; min-height: 100%; overflow: hidden; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--violet-bright); outline-offset: 4px; }
button:disabled { opacity: .42; cursor: not-allowed; }
[hidden] { display: none !important; }

.ambient-backdrop { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; background: radial-gradient(ellipse at 50% 0%, rgba(81, 39, 168, .12), transparent 52%), #08090d; }
.ambient-glow { position: absolute; width: 48vw; height: 48vw; min-width: 380px; min-height: 380px; border-radius: 50%; filter: blur(95px); opacity: .10; }
.ambient-glow-one { top: -28vw; left: 2vw; background: #8759fa; }
.ambient-glow-two { right: -30vw; bottom: -30vw; background: #e53950; opacity: .065; }
.ambient-grid { position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(174, 154, 222, .10) 1px, transparent 1px), linear-gradient(90deg, rgba(174, 154, 222, .10) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, black, transparent 88%); }
.ambient-stars { position: absolute; inset: 0; opacity: .4; background-image: radial-gradient(circle at 12% 22%, rgba(220, 209, 255, .54) 0 1px, transparent 1.3px), radial-gradient(circle at 76% 18%, rgba(220, 209, 255, .4) 0 1px, transparent 1.2px), radial-gradient(circle at 60% 70%, rgba(220, 209, 255, .28) 0 1px, transparent 1.2px), radial-gradient(circle at 31% 83%, rgba(229, 57, 80, .45) 0 1px, transparent 1.2px), radial-gradient(circle at 90% 57%, rgba(139, 92, 246, .65) 0 1px, transparent 1.3px); }
.app-shell { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; height: 100dvh; min-height: 0; }
.site-header { height: var(--header-height); flex: 0 0 var(--header-height); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 5.2vw, 80px); border-bottom: 1px solid rgba(188, 175, 232, .12); background: rgba(8, 9, 13, .78); backdrop-filter: blur(18px); position: relative; z-index: 10; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.brand-mark { width: 37px; height: 37px; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { font-size: 15px; font-weight: 760; letter-spacing: .19em; color: var(--text); white-space: nowrap; }
.brand-name span { color: var(--violet-bright); }
.header-right { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 32px); }
.header-state { display: flex; align-items: center; gap: 9px; color: #8d93a4; font-size: 9px; font-weight: 720; letter-spacing: .2em; white-space: nowrap; }
.status-pulse { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #9a7aff; box-shadow: 0 0 12px rgba(139, 92, 246, .6); }
.icon-button { width: 41px; height: 41px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(195, 177, 255, .23); border-radius: 13px; background: rgba(24, 22, 37, .72); cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.icon-button:hover { border-color: rgba(179, 154, 255, .75); background: rgba(57, 39, 88, .6); transform: translateY(-1px); }
.icon-button svg, .button svg, .text-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.app-main { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.screen { width: 100%; height: 100%; min-height: 0; }
.home-screen { display: flex; flex-direction: column; padding: clamp(24px, 4vh, 42px) clamp(20px, 7.4vw, 116px) 0; }
.hero-layout { width: min(1480px, 100%); min-height: 0; flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(320px, .96fr); align-items: center; gap: clamp(16px, 4.5vw, 86px); margin: 0 auto; }
.hero-copy { position: relative; z-index: 1; padding-bottom: clamp(4px, 1.5vh, 18px); }
.eyebrow { margin: 0 0 23px; display: flex; align-items: center; gap: 11px; color: #a49bbd; font-size: 9px; font-weight: 750; letter-spacing: .21em; line-height: 1.6; }
.eyebrow-line { display: inline-block; height: 1px; width: 27px; flex: 0 0 auto; background: linear-gradient(90deg, var(--crimson), var(--violet)); }
.hero-copy h1 { max-width: 760px; margin: 0; font-size: clamp(36px, 4.3vw, 70px); font-weight: 760; letter-spacing: -.065em; line-height: 1.04; }
.hero-copy h1 span { color: transparent; background: linear-gradient(100deg, #d7ccf8 0%, #a98bff 42%, #8158db 72%, #e36c7e 120%); background-clip: text; -webkit-background-clip: text; }
.hero-description { max-width: 510px; margin: 24px 0 0; color: #a4a7b7; font-size: clamp(13px, 1.1vw, 15px); line-height: 1.85; letter-spacing: .005em; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 31px; }
.button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; border-radius: 12px; padding: 0 18px; font-size: 12px; font-weight: 690; letter-spacing: .01em; cursor: pointer; text-decoration: none; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { border: 1px solid rgba(191, 164, 255, .7); color: #fff; background: linear-gradient(115deg, #7850d8, #663ab4 64%, #55319b); box-shadow: 0 8px 24px rgba(81, 39, 168, .2), inset 0 1px rgba(255, 255, 255, .12); }
.button-primary:hover { box-shadow: 0 10px 28px rgba(113, 74, 198, .28); background: linear-gradient(115deg, #8861e5, #7143c0 64%, #6540ab); }
.button-primary svg { width: 18px; height: 18px; }
.button-quiet { border: 1px solid transparent; color: #c0c1ce; background: rgba(20, 21, 29, .52); }
.button-quiet:hover { border-color: var(--line); background: rgba(28, 26, 42, .8); }
.mini-search { font-family: Georgia, serif; font-size: 24px; line-height: 1; transform: rotate(-20deg); }
.hero-signature { margin-top: clamp(27px, 5vh, 53px); display: flex; align-items: center; gap: 10px; color: #74798a; font-size: 8px; font-weight: 700; letter-spacing: .17em; white-space: nowrap; }
.signature-rule { width: 25px; height: 1px; background: #66528e; }
.signature-dot { color: var(--crimson); font-size: 12px; }
.hero-art { position: relative; width: min(100%, 550px); aspect-ratio: 1 / .88; min-height: 285px; justify-self: end; display: flex; align-items: center; justify-content: center; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(114, 76, 200, .2), rgba(80, 49, 138, .08) 38%, transparent 70%); filter: blur(12px); }
.art-orbit { position: absolute; border: 1px solid rgba(157, 137, 210, .2); border-radius: 50%; transform: rotate(-27deg); }
.orbit-outer { width: 88%; height: 61%; border-color: rgba(174, 147, 255, .27); transform: rotate(-30deg); }
.orbit-middle { width: 76%; height: 80%; border-style: dashed; border-color: rgba(174, 147, 255, .18); transform: rotate(38deg); }
.orbit-inner { width: 57%; height: 57%; border-color: rgba(229, 57, 80, .22); transform: rotate(0deg); }
.art-axis { position: absolute; background: linear-gradient(90deg, transparent, rgba(161, 134, 222, .23), transparent); }
.art-axis-horizontal { left: 1%; right: 1%; height: 1px; top: 50%; }
.art-axis-vertical { width: 1px; height: 96%; top: 2%; left: 50%; background: linear-gradient(180deg, transparent, rgba(161, 134, 222, .24), transparent); }
.art-core-halo { position: absolute; width: 41%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(175, 146, 255, .24); box-shadow: 0 0 60px rgba(139, 92, 246, .12), inset 0 0 35px rgba(139, 92, 246, .08); }
.art-emblem { position: relative; z-index: 2; width: 60%; max-width: 340px; overflow: visible; filter: drop-shadow(0 0 24px rgba(139, 92, 246, .14)); }
.art-node { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #b9a2ff; box-shadow: 0 0 14px rgba(139, 92, 246, .8); }
.node-one { top: 22%; left: 23%; }.node-two { top: 73%; right: 17%; background: #e36c7e; box-shadow: 0 0 14px rgba(229, 57, 80, .7); }.node-three { right: 19%; top: 24%; width: 4px; height: 4px; opacity: .7; }
.art-label { position: absolute; width: 100%; display: flex; align-items: center; justify-content: space-between; color: #77758b; font-size: 8px; font-weight: 730; letter-spacing: .18em; }
.art-label-top { top: 4%; }.art-label-bottom { bottom: 5%; }
.hero-footer { width: min(1480px, 100%); min-height: 94px; flex: 0 0 auto; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: clamp(13px, 2vw, 30px); border-top: 1px solid rgba(188, 175, 232, .13); }
.capability { display: flex; align-items: center; gap: 12px; min-width: 0; }
.capability-number { color: #ac8aff; font-size: 10px; font-weight: 740; letter-spacing: .05em; }
.capability div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.capability strong { color: #c9cad5; font-size: 8px; font-weight: 750; letter-spacing: .12em; white-space: nowrap; }
.capability span:last-child { color: #777c8b; font-size: 10px; line-height: 1.4; }
.hero-footer-mark { align-self: center; color: #7e718f; font-size: 8px; font-weight: 800; letter-spacing: .19em; white-space: nowrap; }
.hero-footer-mark span { display: block; margin-top: 6px; color: #656979; font-size: 7px; font-weight: 600; letter-spacing: .12em; }

.feed-screen { display: flex; flex-direction: column; padding: 28px clamp(20px, 5.2vw, 80px) 12px; min-height: 0; }
.feed-heading { flex: 0 0 auto; width: min(1480px, 100%); margin: 0 auto; display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 0 0 24px; }
.feed-heading .eyebrow { margin-bottom: 12px; }
.feed-heading h2 { margin: 0; font-size: clamp(25px, 3vw, 39px); line-height: 1.12; font-weight: 700; letter-spacing: -.055em; }
.feed-heading h2 span { color: var(--violet-bright); }
.feed-subtitle { max-width: 650px; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.feed-heading-actions { display: flex; align-items: center; gap: 14px; padding-bottom: 2px; }
.live-chip { display: inline-flex; align-items: center; gap: 8px; color: #a39cb6; white-space: nowrap; font-size: 8px; font-weight: 750; letter-spacing: .16em; }
.live-chip .status-pulse { width: 5px; height: 5px; }
.button-outline { min-height: 39px; padding: 0 14px; border: 1px solid rgba(190, 172, 241, .25); color: #dbd6ed; background: rgba(17, 17, 27, .66); font-size: 10px; border-radius: 10px; }
.button-outline:hover { border-color: rgba(179, 154, 255, .68); background: rgba(55, 39, 82, .44); }
.button-outline svg { width: 15px; height: 15px; }
.feed-scroll { position: relative; flex: 1 1 auto; min-height: 0; width: min(1480px, 100%); margin: 0 auto; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(139, 92, 246, .48) rgba(255, 255, 255, .035); padding: 2px 2px 8px; }
.feed-scroll::-webkit-scrollbar { width: 8px; }.feed-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,.025); border-radius: 6px; }.feed-scroll::-webkit-scrollbar-thumb { border-radius: 6px; background: rgba(139, 92, 246, .35); border: 2px solid rgba(8, 9, 13, .8); }
.profile-grid { display: flex; flex-direction: column; align-content: start; gap: 0; }
.profile-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: var(--card-height); gap: var(--grid-gap); margin-bottom: var(--grid-gap); }
.virtual-spacer { display: block; flex: 0 0 auto; width: 100%; height: 0; min-height: 0; pointer-events: none; }
.virtual-spacer-bottom { height: 0; }
.profile-card { position: relative; display: flex; min-width: 0; height: 100%; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 17px 17px 15px; border: 1px solid rgba(183, 169, 222, .14); border-radius: 17px; background: linear-gradient(140deg, rgba(24, 25, 37, .94), rgba(15, 16, 24, .95) 70%); isolation: isolate; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.profile-card::before { content: ""; position: absolute; z-index: -1; width: 125px; height: 125px; top: -66px; right: -40px; border-radius: 50%; background: var(--card-accent, var(--violet)); opacity: .13; filter: blur(25px); }
.profile-card::after { content: ""; position: absolute; inset: auto 20px 0; height: 1px; background: linear-gradient(90deg, transparent, var(--card-accent, var(--violet)), transparent); opacity: .4; }
.profile-card:hover { border-color: color-mix(in srgb, var(--card-accent, var(--violet)) 52%, transparent); transform: translateY(-2px); background: linear-gradient(140deg, rgba(31, 29, 47, .98), rgba(16, 17, 26, .97) 72%); }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.card-type { min-width: 0; color: #9289a8; font-size: 8px; font-weight: 760; letter-spacing: .14em; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-id { max-width: 52%; color: #73798b; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; overflow-wrap: anywhere; text-align: right; }
.card-main { display: flex; align-items: center; gap: 13px; min-width: 0; margin: 12px 0 10px; }
.card-avatar { width: 62px; height: 62px; display: block; flex: 0 0 62px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--card-accent, var(--violet)) 45%, transparent); border-radius: 50%; background: #181725; object-fit: cover; box-shadow: 0 0 24px color-mix(in srgb, var(--card-accent, var(--violet)) 12%, transparent); }
.card-name-area { min-width: 0; }
.card-name { margin: 0; overflow-wrap: anywhere; color: #f1eff7; font-size: clamp(13px, 1.2vw, 16px); font-weight: 690; letter-spacing: -.025em; line-height: 1.3; }
.card-role { margin: 5px 0 0; color: #a99bcb; font-size: 9px; font-weight: 610; letter-spacing: .055em; line-height: 1.35; }
.card-bio { display: -webkit-box; min-height: 34px; margin: 0; overflow: hidden; color: #989dad; font-size: 10px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; overflow: hidden; max-height: 23px; }
.card-tag { display: inline-flex; align-items: center; max-width: 49%; padding: 4px 7px; border: 1px solid rgba(178, 162, 219, .12); border-radius: 6px; color: #b1a9c8; background: rgba(136, 101, 200, .06); font-size: 8px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(183, 169, 222, .1); }
.card-classification { overflow: hidden; color: #73798a; font-size: 8px; font-weight: 730; letter-spacing: .1em; text-overflow: ellipsis; white-space: nowrap; }
.view-profile-button { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; border: 0; padding: 4px 0 4px 7px; color: #c4b0ff; background: transparent; font-size: 9px; font-weight: 700; cursor: pointer; }
.view-profile-button svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.view-profile-button:hover svg { transform: translateX(3px); }
.feed-scroll-fade { position: sticky; z-index: 2; bottom: -8px; height: 18px; margin-top: -18px; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(8, 9, 13, .7)); }
.feed-footnote { width: min(1480px, 100%); min-height: 30px; flex: 0 0 auto; margin: 3px auto 0; display: flex; align-items: center; gap: 9px; color: #73758a; font-size: 8px; font-weight: 730; letter-spacing: .16em; }
.footnote-mark { color: #9472ef; font-family: Georgia, serif; font-size: 19px; font-weight: 400; line-height: 1; }
.footnote-right { margin-left: auto; color: #565a6a; }

.profile-screen { display: flex; flex-direction: column; min-height: 0; }
.profile-toolbar { width: min(1180px, calc(100% - 48px)); height: 60px; flex: 0 0 60px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(188, 175, 232, .1); }
.text-button { display: inline-flex; align-items: center; gap: 9px; border: 0; padding: 9px 2px; color: #beb4d5; background: transparent; font-size: 11px; font-weight: 660; cursor: pointer; }
.text-button:hover { color: #fff; }.text-button svg { width: 17px; height: 17px; }
.profile-toolbar-code { display: flex; align-items: center; gap: 8px; color: #7e8193; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; letter-spacing: .08em; }
.profile-toolbar-code .status-pulse { width: 5px; height: 5px; }

.profile-detail-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(139, 92, 246, .4) transparent; }
.profile-detail-wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: clamp(26px, 5vh, 55px) 0 45px; }
.detail-hero { position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 65px); padding: clamp(22px, 4vw, 42px); border: 1px solid rgba(183, 169, 222, .18); border-radius: 23px; background: linear-gradient(125deg, rgba(25, 25, 39, .96), rgba(15, 16, 24, .94) 68%); overflow: hidden; }
.detail-hero::before { content: ""; position: absolute; top: -150px; right: -70px; width: 370px; height: 370px; border-radius: 50%; background: var(--detail-accent, var(--violet)); opacity: .12; filter: blur(75px); pointer-events: none; }
.detail-avatar-wrap { position: relative; width: 100%; max-width: 220px; aspect-ratio: 1; border-radius: 50%; padding: 8px; border: 1px solid color-mix(in srgb, var(--detail-accent, var(--violet)) 45%, transparent); box-shadow: 0 0 60px color-mix(in srgb, var(--detail-accent, var(--violet)) 14%, transparent), inset 0 0 30px rgba(139, 92, 246, .08); }
.detail-avatar-wrap::before { content: ""; position: absolute; inset: -8px; border: 1px dashed rgba(173, 153, 223, .18); border-radius: 50%; }
.detail-avatar { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 50%; background: #171623; }
.detail-overline { margin: 0 0 12px; color: #a797cf; font-size: 9px; font-weight: 760; letter-spacing: .18em; }
.detail-name { margin: 0; color: #f4f3fa; font-size: clamp(28px, 4.5vw, 54px); line-height: 1.05; letter-spacing: -.055em; font-weight: 735; overflow-wrap: anywhere; }
.detail-idline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 15px; color: #9499aa; font-size: 10px; }
.detail-id { color: #d2c4ff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.detail-badge { padding: 5px 8px; border: 1px solid rgba(179, 154, 255, .2); border-radius: 6px; color: #baa8e3; background: rgba(139, 92, 246, .07); font-size: 8px; font-weight: 720; letter-spacing: .12em; }
.detail-description { max-width: 730px; margin: 18px 0 0; color: #a8aaba; font-size: 13px; line-height: 1.9; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.detail-actions .button { min-height: 39px; padding: 0 13px; font-size: 10px; }
.detail-actions .button svg { width: 15px; height: 15px; }
.detail-section-heading { display: flex; align-items: center; gap: 14px; margin: 34px 0 16px; color: #aaa2bf; font-size: 9px; font-weight: 760; letter-spacing: .19em; }
.detail-section-heading::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, rgba(183, 169, 222, .18), transparent); }
.detail-data-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.detail-data { min-width: 0; padding: 16px; border: 1px solid rgba(183, 169, 222, .13); border-radius: 13px; background: rgba(18, 19, 28, .82); }
.detail-data-label { display: block; margin-bottom: 8px; color: #817a96; font-size: 8px; font-weight: 760; letter-spacing: .17em; }
.detail-data-value { display: block; color: #e1ddeb; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.detail-quote { margin: 21px 0 0; padding: 18px 20px; border-left: 2px solid var(--detail-accent, var(--violet)); border-radius: 0 12px 12px 0; color: #c5badf; background: rgba(139, 92, 246, .055); font-size: 13px; line-height: 1.7; }
.detail-quote::before { content: "IDENTITY FRAGMENT / "; display: block; margin-bottom: 7px; color: #817a96; font-size: 8px; font-weight: 760; letter-spacing: .16em; }
.detail-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 23px; }
.detail-nav .button { border: 1px solid rgba(183, 169, 222, .16); color: #c8c1d8; background: rgba(18, 19, 28, .6); }
.detail-nav .button:hover { border-color: rgba(179, 154, 255, .6); }

.search-overlay { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 22px; }
.search-backdrop { position: absolute; inset: 0; background: rgba(4, 4, 8, .76); backdrop-filter: blur(14px); animation: fade-in .16s ease both; }
.search-dialog { position: relative; width: min(520px, 100%); padding: 26px clamp(20px, 5vw, 34px) 23px; overflow: hidden; border: 1px solid rgba(191, 170, 247, .24); border-radius: 22px; background: linear-gradient(150deg, rgba(25, 25, 39, .99), rgba(12, 13, 20, .99)); box-shadow: 0 30px 100px rgba(0, 0, 0, .54), 0 0 65px rgba(81, 39, 168, .12); animation: dialog-in .2s var(--ease) both; }
.search-dialog::before { content: ""; position: absolute; right: -90px; top: -170px; width: 280px; height: 280px; border-radius: 50%; background: rgba(139, 92, 246, .13); filter: blur(55px); pointer-events: none; }
.dialog-topline, .dialog-bottomline { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #837996; font-size: 8px; font-weight: 760; letter-spacing: .16em; }
.dialog-close { width: 34px; height: 34px; border-radius: 10px; }
.dialog-close svg { width: 16px; height: 16px; }
.dialog-symbol { width: 45px; height: 45px; margin-top: 25px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(179, 154, 255, .3); border-radius: 13px; color: #b8a0ff; background: rgba(139, 92, 246, .09); }
.dialog-symbol svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.search-dialog h2 { position: relative; margin: 18px 0 0; font-size: 29px; line-height: 1.14; font-weight: 725; letter-spacing: -.05em; }
.search-lede { position: relative; max-width: 405px; margin: 10px 0 24px; color: #a2a5b5; font-size: 12px; line-height: 1.75; }
#searchForm { position: relative; }
#searchForm label { display: block; margin-bottom: 9px; color: #9a91b0; font-size: 8px; font-weight: 760; letter-spacing: .17em; }
.search-field-wrap { display: flex; align-items: center; gap: 9px; min-height: 53px; padding: 0 14px; border: 1px solid rgba(179, 154, 255, .26); border-radius: 11px; background: rgba(7, 8, 13, .74); transition: border-color .18s ease, box-shadow .18s ease; }
.search-field-wrap:focus-within { border-color: rgba(179, 154, 255, .72); box-shadow: 0 0 0 3px rgba(139, 92, 246, .1); }
.field-prefix { color: #a88aff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 18px; }
.search-field-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 14px 0; color: #f4f5fa; background: transparent; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.search-field-wrap input::placeholder { color: #5f6273; font-family: inherit; }
.search-field-wrap input:focus-visible { outline: 0; }
.field-help, .field-error { margin: 8px 0 0; color: #73788b; font-size: 9px; line-height: 1.55; }
.field-error { color: #ff8797; }
.search-submit { width: 100%; margin-top: 18px; }
.dialog-bottomline { margin-top: 23px; padding-top: 17px; border-top: 1px solid rgba(183, 169, 222, .12); color: #646a7c; font-size: 7px; }
.toast-region { position: fixed; z-index: 70; right: 22px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; pointer-events: none; }
.toast { max-width: min(360px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid rgba(179, 154, 255, .28); border-radius: 12px; color: #eae5f5; background: rgba(22, 20, 34, .96); box-shadow: 0 15px 38px rgba(0, 0, 0, .3); font-size: 11px; line-height: 1.5; animation: toast-in .2s ease both; }
.toast.toast-error { border-color: rgba(229, 57, 80, .42); color: #ffc3cc; }
.noscript-message { position: fixed; z-index: 100; inset: 20px 20px auto; padding: 18px; border: 1px solid var(--crimson); border-radius: 12px; color: #fff; background: #1c1016; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(9px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1600px) {
  .profile-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feed-screen { padding-top: 32px; }
}
@media (max-width: 1190px) {
  .home-screen { padding-left: clamp(24px, 5vw, 60px); padding-right: clamp(24px, 5vw, 60px); }
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); gap: 20px; }
  .hero-copy h1 { font-size: clamp(34px, 4.3vw, 55px); }
  .hero-footer-mark { display: none; }
  .hero-footer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feed-screen { padding-left: 28px; padding-right: 28px; }
}
@media (max-width: 900px) {
  :root { --header-height: 68px; --card-height: 252px; }
  .home-screen { padding-top: 20px; }
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(220px, .72fr); gap: 10px; }
  .hero-copy h1 { font-size: clamp(32px, 5.7vw, 52px); }
  .hero-description { margin-top: 17px; font-size: 12px; }
  .hero-art { min-height: 230px; }
  .hero-signature { gap: 7px; font-size: 7px; letter-spacing: .1em; }
  .hero-footer { min-height: 82px; gap: 10px; }
  .capability { gap: 8px; }
  .capability strong { font-size: 7px; letter-spacing: .08em; }
  .capability span:last-child { font-size: 9px; }
  .profile-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed-heading { align-items: flex-start; }
  .feed-heading-actions { flex-direction: column-reverse; align-items: flex-end; gap: 11px; }
}
@media (max-width: 640px) {
  :root { --header-height: 63px; --card-height: 250px; --grid-gap: 12px; }
  .site-header { padding: 0 17px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 13px; letter-spacing: .16em; }
  .header-state { display: none; }
  .icon-button { width: 38px; height: 38px; border-radius: 12px; }
  .home-screen { padding: 23px 22px 0; }
  .hero-layout { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 0; }
  .hero-copy { padding: 7px 0 0; }
  .eyebrow { margin-bottom: 17px; font-size: 8px; letter-spacing: .15em; }
  .hero-copy h1 { font-size: clamp(35px, 9.1vw, 52px); }
  .hero-description { max-width: 450px; margin-top: 17px; font-size: 12px; line-height: 1.75; }
  .hero-actions { margin-top: 23px; gap: 7px; }
  .button { min-height: 44px; padding: 0 13px; gap: 8px; font-size: 11px; }
  .hero-signature { margin-top: 23px; overflow: hidden; font-size: 6px; letter-spacing: .105em; gap: 7px; }
  .hero-signature span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .hero-art { width: min(82%, 320px); min-height: 0; aspect-ratio: 1.35 / 1; margin: -3px auto 0; }
  .art-label { font-size: 6px; }
  .art-emblem { width: 65%; }
  .hero-footer { min-height: 73px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .capability { align-items: flex-start; gap: 5px; }
  .capability-number { font-size: 8px; }
  .capability strong { white-space: normal; font-size: 6px; line-height: 1.5; }
  .capability span:last-child { display: none; }
  .feed-screen { padding: 21px 14px 9px; }
  .feed-heading { padding-bottom: 18px; gap: 12px; }
  .feed-heading .eyebrow { max-width: 250px; margin-bottom: 8px; font-size: 7px; }
  .feed-heading h2 { font-size: 25px; }
  .feed-subtitle { max-width: 420px; margin-top: 7px; font-size: 10px; line-height: 1.55; }
  .feed-heading-actions { gap: 10px; padding-top: 0; }
  .live-chip { font-size: 6px; letter-spacing: .1em; }
  .button-outline { min-height: 34px; padding: 0 9px; font-size: 9px; gap: 6px; white-space: nowrap; }
  .button-outline svg { width: 13px; height: 13px; }
  .profile-card-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-card { padding: 16px 16px 14px; border-radius: 15px; }
  .card-name { font-size: 15px; }
  .card-bio { font-size: 10px; }
  .feed-footnote { font-size: 6px; letter-spacing: .11em; gap: 6px; }
  .footnote-mark { font-size: 16px; }
  .footnote-right { display: none; }
  .profile-toolbar { width: calc(100% - 34px); height: 53px; flex-basis: 53px; }
  .profile-toolbar-code { font-size: 7px; gap: 5px; }
  .profile-detail-wrap { width: calc(100% - 34px); padding-top: 22px; }
  .detail-hero { grid-template-columns: 1fr; gap: 24px; padding: 22px 18px; border-radius: 18px; }
  .detail-avatar-wrap { width: 126px; max-width: 126px; margin: 0 auto; }
  .detail-copy { text-align: center; }
  .detail-overline { font-size: 8px; }
  .detail-name { font-size: clamp(28px, 8vw, 40px); }
  .detail-idline { justify-content: center; font-size: 9px; }
  .detail-description { margin-top: 14px; font-size: 11px; text-align: left; }
  .detail-actions { justify-content: center; }
  .detail-data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .detail-data { padding: 13px; }
  .detail-data-value { font-size: 11px; }
  .detail-quote { font-size: 11px; }
  .detail-nav .button { font-size: 9px; }
  .search-overlay { padding: 13px; }
  .search-dialog { border-radius: 18px; padding: 19px 18px 17px; }
  .dialog-symbol { margin-top: 18px; }
  .search-dialog h2 { font-size: 25px; }
  .search-lede { margin-bottom: 20px; font-size: 11px; }
  .dialog-bottomline { font-size: 6px; letter-spacing: .1em; }
  .toast-region { right: 12px; bottom: 12px; }
}
@media (max-width: 380px) {
  .hero-copy h1 { font-size: 32px; }
  .hero-art { width: 70%; }
  .hero-footer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feed-heading { flex-direction: column; }
  .feed-heading-actions { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .live-chip { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-height: 680px) and (max-width: 640px) {
  .home-screen { padding-top: 12px; }
  .hero-art { display: none; }
  .hero-signature { margin-top: 15px; }
  .hero-footer { min-height: 58px; }
}
