/* =====================================================================
   NguliQ: site styles
   ===================================================================== */
@import url("../fonts/bricolage/wght.css");
@import url("../fonts/literata/wght.css");
@import url("../fonts/literata/wght-italic.css");

:root {
  --ink: #17123A;
  --violet: #4B2A8C;
  --crimson: #B0244F;
  --amber: #F4B942;
  --paper: #F6F6FA;
  --surface: #FFFFFF;
  --surface-2: #EFEEF6;
  --text: #232036;
  --muted: #615D7A;
  --line: #E0DEEB;
  --link: #A01F47;
  --focus: #F4B942;

  --font-ui: "Bricolage Grotesque Variable", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-read: "Literata Variable", Georgia, "Times New Roman", serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.563rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;
  --step-5: 3.052rem;

  --radius-s: 6px;
  --radius-m: 12px;
  --header-h: 72px;
  --wrap: 1180px;
  color-scheme: light;
}
[data-theme="dark"] {
  --paper: #0F0C22;
  --surface: #18143A;
  --surface-2: #211C48;
  --text: #ECEAF7;
  --muted: #A9A5C6;
  --line: #2D2856;
  --link: #F27BA0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 var(--step-0)/1.6 var(--font-ui);
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
body.no-scroll { overflow: hidden; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-ui); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; color: var(--text); }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 200; background: var(--amber); color: var(--ink); padding: .5rem 1rem; border-radius: var(--radius-s); font-weight: 600; }
.skip-link:focus { top: 1rem; }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); }
.brand img { width: 40px; height: 40px; }
.brand__word { font-weight: 750; font-size: 1.6rem; letter-spacing: -0.03em; }
.brand__word span { color: var(--crimson); }
[data-theme="dark"] .brand__word span { color: #F27BA0; }
.main-nav { display: flex; gap: .25rem; margin-left: auto; }
.main-nav a {
  position: relative; padding: .5rem .9rem; border-radius: var(--radius-s);
  color: var(--text); text-decoration: none; font-weight: 560; font-size: 1.02rem;
}
.main-nav a:hover { background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--crimson); }
[data-theme="dark"] .main-nav a[aria-current="page"] { color: #F27BA0; }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .15rem; height: 2px; background: currentColor; border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: .35rem; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-width: 40px; height: 40px; padding: 0 .6rem; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface); color: var(--text); cursor: pointer; font: inherit;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn kbd { font: 500 .75rem var(--font-ui); color: var(--muted); }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .search-trigger kbd { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s;
  }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: .85rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.1rem; }
  .main-nav a[aria-current="page"]::after { display: none; }
  .header-actions { margin-left: auto; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.3rem; border-radius: 999px;
  font: 600 1rem var(--font-ui); text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: #FFD067; }
.btn--ghost-light { color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--primary { background: var(--crimson); color: #fff; }
.btn--primary:hover { background: #8F1C40; }
.btn--outline { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn--outline:hover { border-color: var(--text); }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: min(86vh, 760px); display: flex; align-items: center;
  background: linear-gradient(115deg, #17123A 0%, #2E1E6E 38%, #5B2470 66%, #9A2150 100%);
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { /* soft vignette so text stays readable over the field */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 22% 55%, rgba(23,18,58,.72) 0%, rgba(23,18,58,.2) 55%, transparent 75%);
}
.hero__inner { padding-block: 6rem 5rem; }
.hero__welcome { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); font-weight: 500; margin: 0; opacity: .9; letter-spacing: -0.01em; }
.hero__title {
  font-size: clamp(3.6rem, 1.5rem + 9vw, 8.5rem); line-height: .95; font-weight: 780; letter-spacing: -0.045em;
  margin: .1em 0 .25em; color: #fff; display: flex; align-items: baseline; flex-wrap: nowrap;
}
.hero__title .ket { font-weight: 200; color: var(--amber); letter-spacing: 0; }
.hero__title .ket--l { margin-right: .04em; }
.hero__title .ket--r { margin-left: .02em; }
.hero__subtitle { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); max-width: 34ch; margin: 0 0 .9rem; color: #EDEAFB; font-weight: 450; }
.hero__tagline { font-family: var(--font-read); font-style: italic; color: var(--amber); font-size: 1.15rem; margin: 0 0 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__hint { position: absolute; right: 1.5rem; bottom: 1.2rem; font-size: .85rem; color: rgba(255,255,255,.6); margin: 0; }
@media (max-width: 640px) { .hero__hint { display: none; } .hero__inner { padding-block: 4rem 3.5rem; } }

/* ---------- generic sections ---------- */
.section { padding-block: clamp(3.5rem, 2rem + 5vw, 6rem); }
.section--tint { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.section-head h2 { font-size: clamp(2rem, 1.5rem + 2vw, var(--step-5)); margin: 0; }
.section-head p { margin: .5rem 0 0; color: var(--muted); max-width: 52ch; }
.text-link { font-weight: 600; text-decoration: none; color: var(--link); white-space: nowrap; }
.text-link:hover { text-decoration: underline; }

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* page header for inner pages */
.page-head { padding-block: 3.5rem 2.5rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-head h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); letter-spacing: -0.035em; margin-bottom: .35rem; }
.page-head p { color: var(--muted); font-size: var(--step-1); max-width: 56ch; margin: 0; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

/* ---------- about (home) ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
.about h2 { font-size: clamp(2rem, 1.5rem + 2vw, var(--step-5)); }
.about__prose { font-family: var(--font-read); font-size: 1.15rem; line-height: 1.75; max-width: 62ch; }
.about__prose strong { font-family: var(--font-ui); font-weight: 700; }
.orbital { width: 100%; max-width: 380px; margin-inline: auto; aspect-ratio: 1; }
.orbital .orb-ring { fill: none; stroke: var(--violet); stroke-opacity: .35; stroke-width: 1.2; }
[data-theme="dark"] .orbital .orb-ring { stroke: #B9A6F5; }
.orbital .orb-core { fill: var(--crimson); }
.orbital .orb-e { fill: var(--amber); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 2rem; } .orbital { max-width: 260px; } }

/* ---------- research list (home + research page) ---------- */
.rlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rlist li { border-bottom: 1px solid var(--line); }
.rrow {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto; gap: 1.5rem; align-items: center;
  padding: 1.4rem .25rem; color: inherit; text-decoration: none;
}
a.rrow:hover .rrow__title { color: var(--link); }
.rrow__symbol { font-family: var(--font-read); font-style: italic; font-size: 1.35rem; color: var(--violet); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-theme="dark"] .rrow__symbol { color: #C3B3FA; }
.rrow__title { font-size: var(--step-1); font-weight: 650; margin: 0 0 .2rem; transition: color .15s; }
.rrow__summary { color: var(--muted); margin: 0; max-width: 70ch; }
.rrow__lead { font-size: .9rem; color: var(--muted); text-align: right; }
@media (max-width: 720px) { .rrow { grid-template-columns: 1fr; gap: .35rem; } .rrow__lead { text-align: left; } }

/* ---------- book covers ---------- */
.cover {
  --w: 200px; position: relative; width: var(--w); aspect-ratio: 2 / 3; border-radius: 4px 10px 10px 4px; overflow: hidden;
  background: linear-gradient(150deg, var(--c1), var(--c2)); color: #fff; padding: 12% 10% 10% 16%;
  display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(23,18,58,.2), 0 14px 28px -12px rgba(23,18,58,.55);
  container-type: inline-size;
}
.cover--sm { --w: 120px; }
.cover--lg { --w: 240px; }
.cover__spine { position: absolute; left: 0; top: 0; bottom: 0; width: 7%; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.08) 70%, rgba(0,0,0,.15)); }
.cover__symbol { position: absolute; right: -6%; bottom: 8%; font: italic 400 62cqw/1 var(--font-read); color: rgba(255,255,255,.16); white-space: nowrap; }
.cover, .cover * { text-decoration: none; }
.cover__title { font: 700 11cqw/1.1 var(--font-ui); letter-spacing: -0.02em; position: relative; }
.cover__authors { font-size: 6.5cqw; margin-top: .6em; opacity: .85; position: relative; }
.cover__brand { margin-top: auto; font-size: 5.5cqw; font-weight: 600; color: var(--amber); position: relative; }

/* home: book shelf */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2.5rem 2rem; }
.shelf-item { display: flex; gap: 1.25rem; align-items: flex-start; text-decoration: none; color: inherit; }
.shelf-item .cover { --w: 118px; flex: none; transition: transform .25s; }
.shelf-item:hover .cover { transform: translateY(-4px) rotate(-1deg); }
.shelf-item h3 { font-size: 1.15rem; margin: .2rem 0 .3rem; }
.shelf-item:hover h3 { color: var(--link); }
.shelf-item p { font-size: .95rem; color: var(--muted); margin: 0; }

/* status pill */
.status { display: inline-block; font-size: .78rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; border: 1px solid currentColor; }
.status--completed { color: #1F7A4D; }
.status--ongoing { color: #A35F00; }
.status--coming-soon { color: var(--muted); }
[data-theme="dark"] .status--completed { color: #6FD3A0; }
[data-theme="dark"] .status--ongoing { color: #F4B942; }

/* ---------- news (a real timeline, so it is ordered) ---------- */
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.news li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.news time { color: var(--muted); font-size: .95rem; padding-top: .15rem; }
.news h3 { font-size: 1.15rem; margin: 0 0 .25rem; }
.news p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .news li { grid-template-columns: 1fr; gap: .25rem; } }

/* ---------- people ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip {
  font: 560 .95rem var(--font-ui); padding: .45rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.chip .count { opacity: .6; margin-left: .3rem; }

.people-group + .people-group { margin-top: 3rem; }
.people-group > h2 { font-size: var(--step-2); padding-bottom: .6rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem 1.5rem; }
.person { text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }
.person__photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius-m); overflow: hidden; margin-bottom: .9rem; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--violet), var(--crimson)); color: #fff; font: 700 3rem var(--font-ui); letter-spacing: -0.03em;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.person:hover .person__photo img { transform: scale(1.04); }
.person h3 { font-size: 1.12rem; margin: 0 0 .1rem; }
.person:hover h3 { color: var(--link); }
.person p { margin: 0; color: var(--muted); font-size: .95rem; }

/* dialog (person detail) */
dialog.sheet {
  width: min(100% - 2rem, 640px); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 0;
  background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -20px rgba(15,12,34,.6);
}
dialog.sheet::backdrop { background: rgba(15,12,34,.55); backdrop-filter: blur(3px); }
.sheet__body { display: grid; grid-template-columns: 180px 1fr; gap: 1.75rem; padding: 1.75rem; }
.sheet__body .person__photo { margin: 0; font-size: 2.6rem; }
.sheet h2 { font-size: var(--step-2); margin-bottom: .2rem; }
.sheet .role { color: var(--muted); margin-bottom: 1rem; }
.sheet dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 1rem 0; font-size: .95rem; }
.sheet dt { color: var(--muted); }
.sheet dd { margin: 0; }
.sheet__close { position: absolute; top: .75rem; right: .75rem; }
.sheet__links { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 560px) { .sheet__body { grid-template-columns: 1fr; } .sheet__body .person__photo { max-width: 160px; } }

/* ---------- research page detail ---------- */
.research-detail { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; padding-block: 3rem; border-bottom: 1px solid var(--line); }
.research-detail:last-child { border-bottom: 0; }
.research-detail__symbol { font: italic 400 2rem/1.2 var(--font-read); color: var(--violet); position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
[data-theme="dark"] .research-detail__symbol { color: #C3B3FA; }
.research-detail h2 { font-size: var(--step-3); }
.research-detail .lead { font-family: var(--font-read); font-size: 1.15rem; line-height: 1.75; max-width: 64ch; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 1.25rem 0; }
.tags li { font-size: .88rem; padding: .25rem .7rem; background: var(--surface-2); border-radius: var(--radius-s); }
.research-meta { color: var(--muted); font-size: .95rem; }
.research-index { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.5rem; }
.research-index a { font-weight: 560; }
@media (max-width: 760px) { .research-detail { grid-template-columns: 1fr; gap: .5rem; } .research-detail__symbol { position: static; } }

/* ---------- library (books page) ---------- */
.lib-tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2.5rem; }
.lib-search { position: relative; flex: 1 1 280px; max-width: 420px; }
.lib-search .icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.lib-search input {
  width: 100%; padding: .75rem 1rem .75rem 2.7rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--text); font: inherit;
}
.library { display: grid; gap: 0; }
.lib-book { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 2.5rem; padding-block: 2.5rem; border-top: 1px solid var(--line); }
.lib-book:first-child { border-top: 0; padding-top: 0; }
.lib-book .cover { --w: 200px; transition: transform .25s; }
.lib-book a.cover-link { display: block; text-decoration: none; }
.lib-book a.cover-link:hover .cover { transform: translateY(-4px) rotate(-1deg); }
.lib-book__meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; color: var(--muted); font-size: .95rem; margin-bottom: .6rem; }
.lib-book h2 { font-size: var(--step-3); margin-bottom: .15rem; }
.lib-book h2 a { color: inherit; text-decoration: none; }
.lib-book h2 a:hover { color: var(--link); }
.lib-book .subtitle { font-family: var(--font-read); font-style: italic; color: var(--muted); font-size: 1.15rem; margin-bottom: .9rem; }
.lib-book .desc { max-width: 64ch; }
.lib-book .actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.toc-peek { margin-top: 1.25rem; }
.toc-peek summary { cursor: pointer; font-weight: 600; color: var(--link); }
.toc-peek ol { margin: .75rem 0 0; padding-left: 1.25rem; columns: 2 16rem; column-gap: 2rem; }
.toc-peek li { break-inside: avoid; margin-bottom: .3rem; }
.empty-state { padding: 3rem 0; color: var(--muted); }
@media (max-width: 680px) { .lib-book { grid-template-columns: 1fr; gap: 1.5rem; } .lib-book .cover { --w: 160px; } }

.chapter-author {
  font-size: 0.95rem;
  font-weight: 500;
  color: #555555;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid currentColor;
}

[data-theme="dark"] .chapter-author {
  color: #a3a3a3;
}

#r-article p {
  text-align: justify;
}

/* ---------- search modal ---------- */
.search-modal { position: fixed; inset: 0; z-index: 100; display: grid; justify-items: center; align-items: start; padding: 10vh 1rem 1rem; }
.search-modal[hidden] { display: none; }
.search-backdrop { position: absolute; inset: 0; background: rgba(15,12,34,.55); backdrop-filter: blur(3px); }
.search-panel {
  position: relative; width: min(100%, 640px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: 0 30px 80px -20px rgba(15,12,34,.6); overflow: hidden;
}
.search-field { display: flex; align-items: center; gap: .6rem; padding: .6rem .6rem .6rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-field input { flex: 1; border: 0; background: none; font: 1.1rem var(--font-ui); color: var(--text); padding: .5rem 0; outline: none; }
.search-results { list-style: none; margin: 0; padding: .4rem; max-height: 52vh; overflow: auto; }
.search-results a { display: flex; gap: .8rem; align-items: center; padding: .65rem .75rem; border-radius: var(--radius-s); color: var(--text); text-decoration: none; }
.search-results li[aria-selected="true"] a, .search-results a:hover { background: var(--surface-2); }
.search-results b { display: block; font-weight: 600; }
.search-results small { color: var(--muted); }
.search-results .icon { color: var(--muted); }
.search-empty { padding: 1.25rem; color: var(--muted); }
.search-hint { margin: 0; padding: .6rem 1rem; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #D9D5EE; margin-top: auto; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1.3fr; gap: 2rem; padding-block: 3.5rem 2.5rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-h { font-size: 1rem; color: var(--amber); margin-bottom: .9rem; letter-spacing: 0; }
.brand--footer { color: #fff; margin-bottom: .75rem; }
.brand--footer .brand__word span { color: #F27BA0; }
.footer-brand p { color: #B9B4D6; max-width: 30ch; }
.footer-contact li { display: flex; gap: .5rem; align-items: flex-start; }
.footer-contact .icon { margin-top: .2rem; color: var(--amber); }
.footer-social { display: flex !important; flex-wrap: wrap; gap: .5rem 1rem !important; margin-top: 1rem !important; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; color: #A9A4C8; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: 6rem; }
.notfound h1 { font-size: clamp(3rem, 2rem + 6vw, 6rem); }
.notfound .ket { color: var(--crimson); font-weight: 200; }
