:root {
  --ink: #40354a;
  --muted: #746979;
  --paper: #fff9f2;
  --surface: #fffdf9;
  --line: #ebded4;
  --violet: #8a5d91;
  --blue: #5c86a8;
  --green: #4f8b7b;
  --gold: #b67c35;
  --red: #bd5d70;
  --teal: #4e9194;
  --shadow: 0 18px 50px rgba(103, 72, 80, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(248, 177, 135, .20), transparent 24rem),
    radial-gradient(circle at 88% 3%, rgba(205, 167, 218, .19), transparent 26rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--violet); border-radius: 50%; font-family: Georgia, serif; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-link { color: var(--muted); text-decoration: none; font-size: .92rem; }
.nav-link:hover, .nav-link:focus-visible { color: var(--violet); }
.nav-link-accent { color: var(--violet); font-weight: 750; }

.hero { padding: 72px 0 38px; text-align: center; }
.home-logo { display: block; width: min(820px, 94%); height: auto; margin: -22px auto 18px; }
.eyebrow { margin: 0 0 14px; color: var(--violet); font-weight: 750; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; }
h1 { max-width: 900px; margin: 0 auto; font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -.045em; }
.hero-copy { max-width: 720px; margin: 20px auto 0; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.2rem); }

.map-wrap { position: relative; padding: 28px 0 70px; }
.map-wrap::before {
  content: ""; position: absolute; inset: 3% 12% 14%; pointer-events: none;
  background: radial-gradient(circle, rgba(91,61,144,.12), rgba(23,116,102,.05) 36%, transparent 70%);
  border-radius: 50%;
}
.map-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; align-items: stretch; }
.hub {
  grid-column: 2; grid-row: 2 / span 2; min-height: 310px;
  border-radius: 44% 56% 51% 49% / 52% 40% 60% 48%;
  background: linear-gradient(145deg, #b87591, #80639a);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 38px; box-shadow: 0 24px 60px rgba(55, 35, 95, .26);
}
.hub strong { font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; }
.hub span { margin-top: 16px; opacity: .84; max-width: 260px; }
.domain-card {
  --accent: var(--blue); position: relative; display: flex; flex-direction: column; min-height: 220px;
  padding: 24px; border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 96%, var(--accent));
  box-shadow: var(--shadow); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.domain-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 22px 56px rgba(25,40,75,.14); }
.domain-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, white); outline-offset: 3px; }
.domain-number { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--accent); font-weight: 800; font-size: .85rem; }
.domain-card h2 { margin: 20px 0 10px; font-size: 1.35rem; }
.domain-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.domain-card .explore { margin-top: auto; padding-top: 20px; color: var(--accent); font-weight: 750; font-size: .9rem; }
.blue { --accent: var(--blue); } .green { --accent: var(--green); } .gold { --accent: var(--gold); }
.red { --accent: var(--red); } .teal { --accent: var(--teal); } .violet { --accent: var(--violet); }

.lenses { padding: 64px 0 84px; border-top: 1px solid var(--line); }
.network-preview { padding: 74px 0; color: #4a3449; background: linear-gradient(135deg, #fde7dc, #f7e9f2 48%, #e9f3ef); }
.network-preview .eyebrow { color: #a25070; }
.network-preview .section-heading p { color: #766272; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.preview-card { position: relative; min-height: 330px; overflow: hidden; border: 1px solid rgba(112,73,88,.15); border-radius: 24px; color: white; text-decoration: none; background: #d9a7a0; box-shadow: 0 18px 40px rgba(103,72,80,.12); }
.preview-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: .92; transition: transform .45s ease, opacity .3s ease; }
.preview-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 22%, rgba(79,47,64,.82) 100%); }
.preview-card span { position: absolute; z-index: 1; inset: auto 24px 24px; }
.preview-card b { display: block; font: 700 1.55rem/1.1 Georgia, serif; }
.preview-card small { display: block; margin-top: 8px; color: #fff4ef; line-height: 1.4; }
.preview-card:hover img { transform: scale(1.035); opacity: .88; }
.primary-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 12px 17px; border-radius: 999px; color: #17233d; background: white; font-weight: 800; text-decoration: none; }
.section-heading { max-width: 650px; margin-bottom: 28px; }
.section-heading h2 { margin: 0 0 10px; font-size: clamp(2rem, 4vw, 3rem); }
.section-heading p { margin: 0; color: var(--muted); }
.lens-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lens { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.lens b { display: block; margin-bottom: 6px; color: var(--violet); }
.lens p { margin: 0; color: var(--muted); }

.detail-hero { padding: 62px 0 34px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .9rem; }
.breadcrumb a { text-decoration: none; color: var(--violet); }
.detail-title { display: grid; grid-template-columns: 68px 1fr; gap: 22px; align-items: center; margin-top: 28px; }
.detail-title .domain-number { width: 68px; height: 68px; font-size: 1.25rem; }
.detail-title h1 { margin: 0; max-width: none; font-size: clamp(2.25rem, 5vw, 4.5rem); }
.lead-question { margin: 22px 0 0 90px; color: var(--muted); font-size: 1.18rem; }
.detail-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; padding: 18px 0 72px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.panel h2 { margin: 0 0 18px; font-size: 1.7rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { padding: 8px 12px; border-radius: 999px; background: #eef1f7; color: #38435a; font-size: .92rem; }
.author-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.author-list li { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.author-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.author-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--violet); font-weight: 750; text-decoration: none; }
.author-link:hover, .author-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.connections { grid-column: 1 / -1; }
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related-link { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 15px; text-decoration: none; background: #fbfcff; }
.related-link:hover { border-color: var(--violet); color: var(--violet); }

footer { padding: 30px 0 50px; color: var(--muted); border-top: 1px solid var(--line); font-size: .9rem; }

.genealogy-page { padding-bottom: 82px; }
.genealogy-hero { padding: 62px 0 42px; }
.genealogy-hero h1 { margin: 22px 0 0; max-width: 1040px; font-size: clamp(2.4rem, 5.5vw, 4.8rem); }
.genealogy-hero .hero-copy { margin: 18px 0 0; max-width: 820px; }
.map-key { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 0 0 28px; color: var(--muted); font-size: .88rem; }
.map-key span { display: inline-flex; align-items: center; gap: 8px; }
.map-key i { width: 11px; height: 11px; border-radius: 50%; background: var(--key); }
.genealogy-map { display: grid; gap: 0; }
.gene-tier { position: relative; padding: 26px 0; }
.gene-tier + .gene-tier::before { content: ""; position: absolute; width: 2px; height: 26px; left: 50%; top: 0; background: var(--line); }
.gene-tier + .gene-tier::after { content: "↓"; position: absolute; left: 50%; top: 4px; transform: translateX(-50%); padding: 0 5px; color: var(--violet); background: var(--paper); font-weight: 800; }
.tier-title { margin: 0 0 16px; color: var(--muted); font: 750 .76rem/1.2 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.gene-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.gene-grid.ideas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gene-node { --node: var(--blue); min-height: 170px; padding: 20px; border: 1px solid var(--line); border-top: 5px solid var(--node); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.gene-node h2, .gene-node h3 { margin: 0 0 9px; font-size: 1.15rem; }
.gene-node p { margin: 0; color: var(--muted); font-size: .9rem; }
.gene-node .node-label { display: block; margin-bottom: 10px; color: var(--node); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.gene-node.influence { --node: var(--blue); }
.gene-node.idea { --node: var(--violet); }
.gene-node.debate { --node: var(--red); }
.gene-node.continuation { --node: var(--green); }
.comte-node { max-width: 720px; margin: 0 auto; padding: 32px; border-radius: 28px; color: #fff; background: linear-gradient(145deg, #6b4ba1, #3f276d); box-shadow: 0 24px 60px rgba(55, 35, 95, .24); text-align: center; }
.comte-node .portrait-mark { width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.14); font: 750 1.25rem/1 Georgia, serif; }
.comte-node h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); }
.comte-node p { max-width: 560px; margin: 12px auto 0; color: rgba(255,255,255,.82); }
.split-lineage { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.branch { padding-top: 10px; }
.branch .gene-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.branch.continuers .gene-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.gene-note { margin-top: 30px; padding: 24px 26px; border-left: 5px solid var(--gold); border-radius: 0 16px 16px 0; background: color-mix(in srgb, var(--surface) 88%, var(--gold)); }
.gene-note h2 { margin: 0 0 8px; font-size: 1.4rem; }
.gene-note p { margin: 0; color: var(--muted); }
.works-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.work { padding: 18px; border-top: 3px solid var(--violet); background: var(--surface); }
.work time { color: var(--violet); font-weight: 800; }
.work strong { display: block; margin-top: 6px; font-family: Georgia, serif; }
.sources { margin-top: 32px; color: var(--muted); font-size: .88rem; }
.sources h2 { color: var(--ink); font-size: 1.25rem; }
.sources ul { margin: 0; padding-left: 20px; }
.sources a { color: var(--violet); }

/* Redes genealógicas */
body[data-family="poder"] { --family: #bd5d70; --family-dark: #7d445d; --family-soft: #fbe9e7; }
body[data-family="lenguaje"] { --family: #5a9994; --family-dark: #4d7180; --family-soft: #e5f5ef; }
body[data-family="subjectividad"] { --family: #aa6b98; --family-dark: #72577e; --family-soft: #f5e8f3; }
body[data-family="fenomenologia"] { --family: #7a7fbd; --family-dark: #65618d; --family-soft: #efeffb; }
body[data-family="metodos"] { --family: #c48758; --family-dark: #8b6557; --family-soft: #fff0df; }
.network-page { padding-bottom: 80px; }
.network-hero { padding-top: 28px; }
.network-hero .breadcrumb { margin-bottom: 22px; }
.network-hero-media { position: relative; min-height: 460px; overflow: hidden; border-radius: 30px; color: white; background: var(--family-dark); box-shadow: 0 24px 64px rgba(23,35,61,.2); }
.network-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.network-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(79,47,64,.86) 0%, rgba(112,73,91,.56) 47%, rgba(255,238,219,.08) 100%); }
.network-hero-copy { position: relative; z-index: 1; display: flex; min-height: 460px; width: min(660px, 76%); padding: 56px; flex-direction: column; justify-content: center; align-items: flex-start; }
.network-hero-copy .eyebrow { color: #e2d9ff; }
.network-hero-copy h1 { margin: 0; font-size: clamp(3rem, 7.5vw, 6rem); text-align: left; }
.network-years { margin: 8px 0 24px; color: rgba(255,255,255,.72); font-weight: 750; letter-spacing: .08em; }
.network-hero-copy h2 { max-width: 590px; margin: 0; font-size: clamp(1.35rem, 2.7vw, 2rem); font-weight: 500; }
.network-intro { max-width: 900px; margin: 28px auto 0; color: var(--muted); font: 1.15rem/1.7 Georgia, serif; text-align: center; }
.branch-filter { position: sticky; top: 78px; z-index: 12; display: flex; gap: 8px; justify-content: center; margin-top: 38px; margin-bottom: 34px; padding: 10px; border: 1px solid rgba(235,222,212,.92); border-radius: 999px; background: rgba(255,253,249,.88); backdrop-filter: blur(14px); box-shadow: 0 10px 34px rgba(103,72,80,.09); }
.branch-filter button { padding: 10px 15px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font: 700 .88rem/1 Inter, sans-serif; cursor: pointer; }
.branch-filter button:hover { color: var(--family); }
.branch-filter button.is-active { color: white; background: var(--family); }
.semantic-network { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 230px minmax(0,1fr); gap: 32px; align-items: center; }
.semantic-network::before { content: ""; position: absolute; left: 25%; right: 25%; top: 50%; height: 2px; z-index: -1; background: linear-gradient(90deg, var(--blue), var(--family), var(--violet)); }
.network-column { transition: opacity .25s ease, filter .25s ease; }
.lane-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.lane-heading > span { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: white; background: var(--family); font-weight: 900; font-size: .8rem; }
.lane-heading p { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.lane-heading h2 { margin: 2px 0 0; font-size: 1.55rem; }
.relation-stack { display: grid; gap: 14px; }
.relation-card { border: 1px solid var(--line); border-radius: 18px; padding: 19px; background: var(--surface); box-shadow: var(--shadow); }
.relation-card.influence { border-left: 5px solid var(--blue); }
.relation-card.concept { border-left: 5px solid var(--violet); }
.relation-card h3 { margin: 0 0 11px; color: var(--ink); font-size: 1.07rem; }
.relation-card ul { list-style: none; display: grid; gap: 9px; margin: 0; padding: 0; }
.relation-card li { display: grid; gap: 1px; padding-top: 8px; border-top: 1px solid #edf0f6; }
.relation-card li:first-child { padding-top: 0; border-top: 0; }
.relation-card strong, .node-person { color: var(--ink); font-weight: 800; font-size: .9rem; text-decoration: none; }
.node-person { display: inline-flex; align-items: center; gap: 5px; width: fit-content; color: var(--family); }
.node-person:hover { text-decoration: underline; text-underline-offset: 3px; }
.node-person span { font-size: .72rem; }
.relation-card li > span, .network-list-panel li > span { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.network-center { position: sticky; top: 180px; min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 16px; border: 1px solid color-mix(in srgb, var(--family) 60%, white); border-radius: 50%; color: white; background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--family) 80%, white), var(--family-dark)); box-shadow: 0 24px 52px color-mix(in srgb, var(--family) 25%, transparent); text-align: center; }
.network-center::before, .network-center::after { content: ""; position: absolute; width: 32px; height: 2px; top: 50%; background: var(--family); }
.network-center::before { right: 100%; }.network-center::after { left: 100%; }
.network-center p { margin: 0 0 6px; color: rgba(255,255,255,.68); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.network-center h2 { margin: 0; font-size: 1.75rem; }
.network-center > span:not(.center-orbit) { margin-top: 4px; color: rgba(255,255,255,.72); font-size: .86rem; }
.network-center small { max-width: 165px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.88); }
.center-orbit { position: absolute; inset: -11px; border: 1px solid color-mix(in srgb, var(--family) 45%, transparent); border-radius: 48% 52% 49% 51%; transform: rotate(17deg); pointer-events: none; }
.center-orbit.orbit-two { inset: -22px; transform: rotate(-13deg); opacity: .55; }
.after-network { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 54px; }
.network-list-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); transition: opacity .25s ease, filter .25s ease; }
.panel-title { padding: 24px 26px 20px; color: white; background: var(--red); }
.network-list-panel.reception .panel-title { background: var(--green); }
.panel-title span { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.panel-title h2 { margin: 4px 0 0; font-size: 1.7rem; }
.network-list-panel ol { columns: 2; column-gap: 0; list-style: none; margin: 0; padding: 10px 18px 20px; }
.network-list-panel li { break-inside: avoid; display: grid; gap: 3px; padding: 11px 8px; border-bottom: 1px solid #edf0f6; }
.fields-strip { display: grid; grid-template-columns: .7fr 1.3fr; gap: 28px; align-items: center; margin-top: 24px; padding: 30px; border: 1px solid color-mix(in srgb, var(--green) 25%, var(--line)); border-radius: 24px; background: color-mix(in srgb, white 92%, var(--green)); transition: opacity .25s ease, filter .25s ease; }
.fields-strip h2 { margin: 0; font-size: 1.8rem; }
.field-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.field-cloud span { padding: 9px 13px; border-radius: 999px; color: #126052; background: white; box-shadow: inset 0 0 0 1px rgba(24,116,102,.22); font-size: .86rem; }
.timeline { margin-top: 52px; }
.timeline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.timeline-grid article { min-height: 128px; padding: 20px; border-top: 4px solid var(--family); border-radius: 0 0 15px 15px; background: var(--surface); box-shadow: var(--shadow); }
.timeline-grid time { display: block; color: var(--family); font-size: .78rem; font-weight: 900; }
.timeline-grid strong { display: block; margin-top: 8px; font-family: Georgia, serif; line-height: 1.25; }
.source-note { margin-top: 30px; padding: 22px 25px; border-left: 5px solid var(--gold); border-radius: 0 16px 16px 0; background: #fff8e9; }
.source-note strong { font-family: Georgia, serif; font-size: 1.15rem; }
.source-note p { margin: 6px 0 0; color: var(--muted); }
[data-branch].is-muted { opacity: .16; filter: grayscale(1); }

/* Índice de redes */
.gallery-page { padding-bottom: 80px; }
.gallery-hero { padding: 78px 0 36px; text-align: center; }
.gallery-hero h1 { max-width: 980px; }
.gallery-hero > p:last-child { max-width: 740px; margin: 20px auto 0; color: var(--muted); font-size: 1.12rem; }
.family-nav { position: sticky; top: 80px; z-index: 10; display: flex; justify-content: center; gap: 8px; margin-bottom: 42px; padding: 10px; border-radius: 999px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.family-nav a { padding: 9px 14px; border-radius: 999px; color: var(--muted); font-size: .86rem; font-weight: 750; text-decoration: none; }
.family-nav a:hover { color: white; background: var(--violet); }
.family-section { scroll-margin-top: 150px; margin-bottom: 58px; }
.family-banner { position: relative; min-height: 310px; overflow: hidden; display: flex; align-items: flex-end; border-radius: 28px; color: white; background: #d7a7a1; }
.family-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .96; }
.family-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(79,47,64,.86), rgba(94,66,81,.20)); }
.family-banner > div { position: relative; z-index: 1; max-width: 680px; padding: 38px; }
.family-banner .eyebrow { color: #cbbcf2; }
.family-banner h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); }
.family-banner p:last-child { margin: 10px 0 0; color: #e0e4ec; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.gallery-card { display: grid; grid-template-columns: 48px 1fr 34px; gap: 16px; align-items: center; min-height: 152px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.gallery-card:hover { transform: translateY(-3px); border-color: var(--violet); }
.gallery-index { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--violet); font-weight: 900; font-size: .76rem; }
.gallery-card p { margin: 0; color: var(--violet); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.gallery-card h3 { margin: 5px 0; font-size: 1.5rem; }
.gallery-card div > span { color: var(--muted); font-size: .86rem; }
.gallery-card > b { color: var(--violet); font-size: 1.4rem; }
.missing-network { min-height: 70vh; padding: 100px 0; }

@media (max-width: 900px) {
  .map-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hub { grid-column: 1 / -1; grid-row: 1; min-height: 240px; border-radius: 28px; }
  .lens-grid, .link-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .connections { grid-column: 1; }
  .gene-grid, .gene-grid.ideas { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gene-grid .gene-node:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .split-lineage { grid-template-columns: 1fr; }
  .works-strip { grid-template-columns: repeat(2, 1fr); }
  .preview-grid { grid-template-columns: 1fr; }
  .preview-card { min-height: 250px; }
  .semantic-network { grid-template-columns: 1fr; }
  .semantic-network::before { top: 0; bottom: 0; left: 50%; right: auto; width: 2px; height: auto; }
  .network-center { position: relative; top: auto; width: 230px; min-height: 230px; justify-self: center; grid-row: 1; }
  .network-center::before, .network-center::after { left: 50%; right: auto; width: 2px; height: 32px; }
  .network-center::before { top: 100%; }
  .network-center::after { top: auto; bottom: 100%; display: none; }
  .network-roots { grid-row: 2; }
  .network-concepts { grid-row: 3; }
  .after-network { grid-template-columns: 1fr; }
  .timeline-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 22px, 1180px); }
  .nav-links .nav-link:first-child { display: none; }
  .nav-links { gap: 8px; }
  .nav-link { font-size: .8rem; }
  .brand span:last-child { display: none; }
  .hero { padding-top: 46px; }
  .home-logo { width: 100%; margin: -16px auto 14px; }
  .map-grid, .lens-grid, .link-grid { grid-template-columns: 1fr; }
  .domain-card { min-height: 190px; }
  .detail-title { grid-template-columns: 50px 1fr; gap: 14px; }
  .detail-title .domain-number { width: 50px; height: 50px; }
  .lead-question { margin-left: 0; }
  .genealogy-hero { padding-top: 42px; }
  .gene-grid, .gene-grid.ideas, .branch .gene-grid, .branch.continuers .gene-grid, .works-strip { grid-template-columns: 1fr; }
  .gene-grid .gene-node:last-child:nth-child(odd) { grid-column: auto; }
  .gene-node { min-height: 0; }
  .comte-node { padding: 26px 20px; }
  .network-hero { padding-top: 18px; }
  .network-hero-media, .network-hero-copy { min-height: 390px; }
  .network-hero-copy { width: 100%; padding: 30px 24px; }
  .network-hero-overlay { background: linear-gradient(90deg, rgba(79,47,64,.88), rgba(112,73,91,.48)); }
  .network-hero-copy h1 { font-size: clamp(2.8rem, 14vw, 4.8rem); }
  .network-intro { text-align: left; font-size: 1.05rem; }
  .branch-filter { top: 72px; justify-content: flex-start; overflow-x: auto; border-radius: 16px; }
  .branch-filter button { white-space: nowrap; }
  .semantic-network { gap: 28px; }
  .after-network { margin-top: 36px; }
  .network-list-panel ol { columns: 1; }
  .fields-strip { grid-template-columns: 1fr; padding: 24px; }
  .timeline-grid, .gallery-grid { grid-template-columns: 1fr; }
  .family-nav { top: 72px; justify-content: flex-start; overflow-x: auto; border-radius: 16px; }
  .family-nav a { white-space: nowrap; }
  .gallery-hero { padding-top: 50px; }
  .family-banner { min-height: 360px; }
  .family-banner > div { padding: 26px; }
  .gallery-card { grid-template-columns: 42px 1fr 20px; gap: 12px; padding: 18px; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
