/* Neural Night — custom visual system for amirhosseinyari2002.github.io */

:root,
html[data-theme="dark"] {
  --global-base-color: #8d9fbe;
  --global-bg-color: #030817;
  --global-footer-bg-color: #030817;
  --global-border-color: rgba(120, 158, 218, 0.18);
  --global-dark-border-color: rgba(120, 158, 218, 0.26);
  --global-code-background-color: #071022;
  --global-code-text-color: #dfe8ff;
  --global-fig-caption-color: #8d9fbe;
  --global-link-color: #37e3ff;
  --global-link-color-hover: #bd70ff;
  --global-link-color-visited: #96b5ff;
  --global-masthead-link-color: #c6d1e4;
  --global-masthead-link-color-hover: #fff;
  --global-text-color: #eff4ff;
  --global-text-color-light: #9baac5;
  --global-thead-color: #081126;
  --neural-bg: #030817;
  --neural-panel: rgba(5, 13, 31, 0.86);
  --neural-panel-solid: #071023;
  --neural-line: rgba(128, 173, 238, 0.17);
  --neural-text: #f5f8ff;
  --neural-muted: #9caac2;
  --neural-cyan: #37e3ff;
  --neural-blue: #5895ff;
  --neural-violet: #bd70ff;
  --neural-rail-width: 15.5rem;
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
  background: var(--neural-bg);
}

body {
  min-height: 100vh;
  color: var(--neural-text);
  background:
    radial-gradient(circle at 72% 12%, rgba(65, 95, 255, 0.1), transparent 31rem),
    radial-gradient(circle at 15% 52%, rgba(30, 204, 255, 0.055), transparent 27rem),
    var(--neural-bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(112, 161, 224, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 161, 224, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, #000 5%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 5%, transparent 92%);
}

a {
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

::selection {
  color: #020712;
  background: var(--neural-cyan);
}

/* Header */

.masthead {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 60;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.masthead__inner-wrap {
  max-width: 112rem;
  margin: 0 auto;
  padding: 1.2rem 1.6rem 0 calc(var(--neural-rail-width) + 1.6rem);
}

.masthead__menu {
  pointer-events: auto;
}

.neural-site-nav {
  position: relative;
  display: flex;
  min-height: 4.2rem;
  padding: 0 1.45rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid rgba(55, 227, 255, 0.34);
  border-radius: 1rem;
  background: rgba(3, 9, 24, 0.82);
  box-shadow: 0 17px 48px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.025);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}

.neural-site-nav__brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 1rem;
  color: var(--neural-text);
  text-decoration: none;
}

.site-mark {
  display: block;
  width: 4.75rem;
  height: 2.55rem;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 8px rgba(55, 227, 255, 0.24));
}

.site-title-text {
  overflow: hidden;
  color: #edf3ff;
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.neural-site-nav__links {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: clamp(0.55rem, 2.2vw, 2.75rem);
  list-style: none;
}

.neural-site-nav__links li {
  margin: 0;
}

.neural-site-nav__links a {
  position: relative;
  display: block;
  padding: 1.38rem 0.7rem;
  color: #cbd5e6;
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-decoration: none;
  text-transform: uppercase;
}

.neural-site-nav__links a::after {
  position: absolute;
  right: 0.7rem;
  bottom: 0.82rem;
  left: 0.7rem;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--neural-cyan), var(--neural-violet));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.neural-site-nav__links a:hover,
.neural-site-nav__links a:focus-visible {
  color: #fff;
}

.neural-site-nav__links a:hover::after,
.neural-site-nav__links a:focus-visible::after {
  transform: scaleX(1);
}

.neural-site-nav__links a.is-active {
  color: #fff;
}

.neural-site-nav__links a.is-active::after {
  transform: scaleX(1);
}

.neural-site-nav__toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.65rem;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.3rem;
  border: 1px solid rgba(55, 227, 255, 0.28);
  border-radius: 0.65rem;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.neural-site-nav__toggle span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.neural-site-nav.is-nav-open .neural-site-nav__toggle span:first-child { transform: translateY(0.38rem) rotate(45deg); }
.neural-site-nav.is-nav-open .neural-site-nav__toggle span:nth-child(2) { opacity: 0; }
.neural-site-nav.is-nav-open .neural-site-nav__toggle span:last-child { transform: translateY(-0.38rem) rotate(-45deg); }

/* Homepage shell and profile rail */

.neural-home-layout {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  overflow: clip;
}

.neural-observatory {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 112rem;
  min-height: 100vh;
  margin: 0 auto;
  grid-template-columns: var(--neural-rail-width) minmax(0, 1fr);
  isolation: isolate;
}

.neural-observatory::after {
  position: absolute;
  z-index: -1;
  top: 13rem;
  right: -9rem;
  width: 35rem;
  height: 35rem;
  content: "";
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(44, 119, 255, 0.08), transparent 70%);
}

.neural-profile-rail {
  position: sticky;
  z-index: 35;
  top: 1.2rem;
  align-self: start;
  height: auto;
  min-height: 0;
  margin: 1.2rem 0.55rem 1.2rem 1.2rem;
  padding: 0.8rem 0.85rem 0.2rem;
  overflow: visible;
  border: 1px solid rgba(135, 162, 207, 0.28);
  border-radius: 1rem;
  background: linear-gradient(165deg, rgba(6, 14, 32, 0.94), rgba(3, 9, 23, 0.78));
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.02);
}

.neural-profile-rail__portrait {
  position: relative;
  width: min(100%, 8.6rem);
  margin: 0 auto 0.55rem;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(55, 227, 255, 0.7);
  border-radius: 50% / 48%;
  background: #071126;
  box-shadow: 0 0 0 0.35rem rgba(31, 115, 174, 0.04), 0 0 32px rgba(34, 148, 255, 0.12);
}

.neural-profile-rail__portrait::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0.95rem rgba(2, 8, 18, 0.18);
}

.neural-profile-rail__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  object-fit: cover;
  object-position: 50% 48%;
  filter: saturate(0.97) contrast(1.015);
}

.neural-profile-rail__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.neural-profile-rail__links li {
  display: grid;
  min-height: 3.35rem;
  margin: 0;
  padding: 0 0.1rem;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  align-items: center;
  gap: 0.68rem;
  border-bottom: 1px solid rgba(132, 157, 201, 0.23);
}

.neural-profile-rail__links li:last-child {
  border-bottom: 0;
}

.neural-profile-rail__links a {
  display: grid;
  min-width: 0;
  min-height: 3.35rem;
  margin: 0 -0.1rem;
  padding: 0 0.1rem;
  grid-column: 1 / -1;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  align-items: center;
  gap: 0.68rem;
  color: #e3eaf7;
  text-decoration: none;
}

.neural-profile-rail__links a:hover,
.neural-profile-rail__links a:focus-visible {
  color: var(--neural-cyan);
  background: rgba(55, 227, 255, 0.045);
}

.neural-profile-rail__links span {
  min-width: 0;
  color: inherit;
  font-size: 0.72rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.neural-profile-icon {
  display: block;
  width: 1.48rem;
  height: 1.48rem;
  justify-self: center;
  color: #f1f5ff;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(55, 227, 255, 0.2));
}

.neural-profile-icon--line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.neural-profile-icon--brand { fill: currentColor; }
.neural-profile-icon--scholar { width: 1.56rem; height: 1.56rem; }

/* Introduction and latest news */

.neural-observatory__stage {
  min-width: 0;
  padding: 6.8rem 2rem 2rem;
}

.neural-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(22rem, 0.82fr);
  align-items: start;
  gap: clamp(1.6rem, 3vw, 3rem);
}

.neural-intro__copy {
  padding: 1.3rem 0 0.2rem;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

.neural-intro h1 {
  margin: 0 0 1.55rem;
  color: #f8faff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(3.4rem, 5vw, 5rem);
  font-weight: 470;
  letter-spacing: -0.057em;
  line-height: 0.98;
  white-space: nowrap;
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.24);
}

.neural-intro__text {
  max-width: 47rem;
}

.neural-intro__text p {
  margin: 0 0 1.25rem;
  color: #d2dbea;
  font-size: clamp(0.92rem, 1.1vw, 1.05rem);
  font-weight: 360;
  letter-spacing: -0.012em;
  line-height: 1.58;
}

.neural-intro__text p:last-child { margin-bottom: 0; }

.neural-news {
  position: relative;
  padding: 1.35rem 1.5rem 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(164, 148, 201, 0.3);
  border-radius: 1rem;
  background:
    linear-gradient(rgba(111, 143, 194, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 143, 194, 0.025) 1px, transparent 1px),
    rgba(5, 12, 29, 0.78);
  background-size: 2.25rem 2.25rem;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, 0.02);
}

.neural-news h2,
.neural-focus > h2 {
  margin: 0;
  color: #f2f6ff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  font-weight: 460;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.neural-news__timeline {
  position: relative;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.neural-news__timeline::before {
  position: absolute;
  top: 0.5rem;
  bottom: 0.75rem;
  left: 0.52rem;
  width: 1px;
  content: "";
  background: linear-gradient(to bottom, var(--neural-cyan), var(--neural-blue), var(--neural-violet));
  box-shadow: 0 0 8px rgba(55, 227, 255, 0.2);
}

.neural-news__item {
  position: relative;
  margin: 0;
  padding: 0 0 1.45rem 3rem;
}

.neural-news__item:last-child { padding-bottom: 0.25rem; }
.neural-news__item[hidden] { display: none; }

.neural-news__pulse {
  position: absolute;
  top: 0.06rem;
  left: 0;
  width: 1.08rem;
  height: 1.08rem;
  border: 2px solid var(--neural-cyan);
  border-radius: 50%;
  background: #061023;
  box-shadow: 0 0 11px rgba(55, 227, 255, 0.35);
}

.neural-news__item:nth-child(2) .neural-news__pulse { border-color: var(--neural-blue); box-shadow: 0 0 11px rgba(88, 149, 255, 0.32); }
.neural-news__item:nth-child(3n) .neural-news__pulse { border-color: var(--neural-violet); box-shadow: 0 0 11px rgba(189, 112, 255, 0.32); }

.neural-news time {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--neural-cyan);
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.neural-news__item:nth-child(2) time { color: #66b8ff; }
.neural-news__item:nth-child(3n) time { color: #dc86ff; }

.neural-news__item p {
  margin: 0;
  color: #e4eaf5;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
}

.neural-news__toggle {
  display: inline-flex;
  margin: 0.75rem 0 0 0.15rem;
  padding: 0.45rem 0;
  align-items: center;
  gap: 0.75rem;
  border: 0;
  color: var(--neural-cyan);
  background: transparent;
  cursor: pointer;
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.neural-news__toggle:hover,
.neural-news__toggle:focus-visible { color: #fff; }
.neural-news__arrow { font-size: 1rem; transition: transform 180ms ease; }
.neural-news__toggle[aria-expanded="true"] .neural-news__arrow { transform: rotate(180deg); }

/* Research focus */

.neural-focus {
  margin-top: 1rem;
}

.neural-focus > h2 {
  margin: 0 0 0.65rem 0.15rem;
}

.neural-focus__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.25rem;
}

.neural-focus-card {
  position: relative;
  min-width: 0;
  min-height: clamp(14.25rem, 17.5vw, 15.5rem);
  overflow: hidden;
  border: 1px solid rgba(55, 227, 255, 0.58);
  border-radius: 1rem;
  background:
    linear-gradient(rgba(74, 164, 220, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 164, 220, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 52% 68%, rgba(25, 202, 255, 0.11), transparent 47%),
    rgba(5, 14, 33, 0.76);
  background-size: 1.75rem 1.75rem, 1.75rem 1.75rem, auto, auto;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, 0.022);
}

.neural-focus-card--reasoning {
  border-color: rgba(189, 112, 255, 0.62);
  background:
    linear-gradient(rgba(157, 112, 222, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 112, 222, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 66% 55%, rgba(157, 81, 255, 0.11), transparent 49%),
    rgba(8, 13, 34, 0.78);
  background-size: 1.75rem 1.75rem, 1.75rem 1.75rem, auto, auto;
}

.neural-focus-card h3 {
  position: absolute;
  z-index: 3;
  top: 0.85rem;
  left: 1.2rem;
  margin: 0;
  color: var(--neural-cyan);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.1rem, 1.65vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.neural-focus-card--reasoning h3 { color: #db86ff; }

.neural-focus-card__visual {
  position: absolute;
  z-index: 1;
  inset: 2.5rem 0.3rem 0.1rem;
}

.neural-focus-card__visual svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Multilingual mark */

.multilingual-mark__globe {
  fill: none;
  stroke: rgba(69, 224, 255, 0.5);
  stroke-width: 1.1;
}

.multilingual-mark__aura { fill: url(#multilingual-glow); stroke: none; }
.multilingual-mark__fill { fill: rgba(16, 145, 207, 0.08); stroke: rgba(74, 226, 255, 0.72); stroke-width: 1.35; }
.multilingual-mark__land { fill: rgba(28, 184, 230, 0.2); stroke: rgba(94, 232, 255, 0.45); stroke-width: 0.8; }
.multilingual-mark__network { stroke: rgba(54, 228, 255, 0.76); stroke-width: 1.1; }
.multilingual-mark__network circle { fill: #74efff; stroke: #e3fdff; stroke-width: 0.6; filter: drop-shadow(0 0 4px rgba(55, 227, 255, 0.8)); }

.multilingual-mark__speech-links {
  fill: none;
  stroke: rgba(55, 227, 255, 0.58);
  stroke-width: 1.15;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(55, 227, 255, 0.34));
}

.multilingual-mark__speech-links circle {
  fill: #8bf4ff;
  stroke: #e4fdff;
  stroke-width: 0.65;
}

.language-token path {
  fill: rgba(4, 18, 39, 0.94);
  stroke: rgba(55, 227, 255, 0.73);
  stroke-width: 1.2;
}

.language-token text {
  fill: #bff9ff;
  font-family: "Inter", "Noto Sans", "Noto Sans Arabic", "Noto Sans SC", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-anchor: middle;
}

/* Verify–repair reasoning mark */

.reasoning-mark { filter: drop-shadow(0 0 6px rgba(126, 92, 255, 0.12)); }
.reasoning-mark text { font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace; font-size: 9px; font-weight: 650; letter-spacing: 0.02em; text-anchor: middle; }

.reasoning-mark__selected path {
  fill: none;
  stroke: var(--neural-cyan);
  stroke-width: 2;
  marker-end: url(#reason-arrow-cyan);
  filter: drop-shadow(0 0 4px rgba(55, 227, 255, 0.42));
}

.reasoning-mark__repair-route path {
  fill: none;
  stroke: var(--neural-violet);
  stroke-width: 1.8;
  stroke-dasharray: 5 4;
  marker-end: url(#reason-arrow-violet);
}

.reasoning-mark__abandoned path {
  fill: none;
  stroke: rgba(125, 112, 156, 0.55);
  stroke-width: 1.55;
  stroke-dasharray: 5 4;
  marker-end: url(#reason-arrow-muted);
}

#reason-arrow-cyan path { fill: var(--neural-cyan); stroke: none; }
#reason-arrow-violet path { fill: var(--neural-violet); stroke: none; }
#reason-arrow-muted path { fill: rgba(125, 112, 156, 0.72); stroke: none; }

.reasoning-capsule rect,
.reasoning-step > circle,
.reasoning-verify > path:first-child,
.reasoning-repair rect {
  fill: rgba(10, 17, 43, 0.94);
  stroke: rgba(196, 113, 255, 0.82);
  stroke-width: 1.35;
}

.reasoning-capsule--prompt rect,
.reasoning-capsule--response rect,
.reasoning-step--selected > circle,
.reasoning-verify > path:first-child {
  stroke: rgba(55, 227, 255, 0.9);
}

.reasoning-capsule text,
.reasoning-verify text,
.reasoning-repair text { fill: #f0e9ff; }

.reasoning-capsule--prompt text,
.reasoning-capsule--response text,
.reasoning-verify text { fill: #d8fbff; }

.reasoning-capsule__icon,
.reasoning-step path,
.reasoning-verify circle,
.reasoning-verify > path:nth-of-type(2),
.reasoning-repair path,
.reasoning-stop path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reasoning-capsule { color: #d07bff; }
.reasoning-capsule--prompt,
.reasoning-capsule--response,
.reasoning-step--selected,
.reasoning-verify { color: var(--neural-cyan); }
.reasoning-capsule__icon { stroke: currentColor; }
.reasoning-step { color: #c878ff; }
.reasoning-step > circle { filter: drop-shadow(0 0 4px rgba(189, 112, 255, 0.24)); }
.reasoning-step path { stroke: currentColor; }
.reasoning-step__node { fill: currentColor; stroke: none; }

.reasoning-verify circle { fill: rgba(4, 15, 34, 0.95); stroke: var(--neural-cyan); }
.reasoning-verify > path:nth-of-type(2) { stroke: var(--neural-cyan); stroke-width: 1.8; }

.reasoning-label rect { fill: rgba(4, 16, 36, 0.96); stroke-width: 1.1; }
.reasoning-label text { font-size: 8px; }
.reasoning-label--pass rect { stroke: var(--neural-cyan); }
.reasoning-label--pass text { fill: var(--neural-cyan); }
.reasoning-label--fail rect { stroke: var(--neural-violet); }
.reasoning-label--fail text { fill: #dc91ff; }

.reasoning-repair { color: #db86ff; }
.reasoning-repair path { stroke: currentColor; }
.reasoning-repair rect { filter: drop-shadow(0 0 5px rgba(189, 112, 255, 0.23)); }

.reasoning-step--muted { color: rgba(139, 123, 170, 0.5); }
.reasoning-step--muted > circle,
.reasoning-stop circle { fill: rgba(8, 14, 31, 0.84); stroke: rgba(125, 112, 156, 0.48); stroke-width: 1.2; }
.reasoning-stop { color: rgba(137, 116, 164, 0.62); }
.reasoning-stop path { stroke: currentColor; }

/* Other pages retain the same visual system */

body:not(.neural-observatory-page) #main { margin-top: 7.4rem; }

#main,
.page,
.archive,
.sidebar { color: var(--neural-text); }

.page__content,
.archive { color: #bdc9dc; }

.page__content h1,
.page__content h2,
.page__content h3,
.archive h1,
.archive h2,
.archive h3,
.page__title,
.archive__item-title { color: #f3f6ff; }

.page__title,
.archive h1 { letter-spacing: -0.035em; }

.page__content a,
.archive a,
.sidebar a {
  text-decoration-color: rgba(55, 227, 255, 0.32);
  text-underline-offset: 0.18em;
}

.author__avatar img {
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(74, 216, 255, 0.32);
  border-radius: 50% / 48%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 32px rgba(56, 121, 236, 0.13);
}

.author__urls.is-open { display: block; }

.author-profile-icon {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.55em;
  overflow: visible;
  color: currentColor;
  vertical-align: -0.14em;
}

.author-profile-icon--line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.author-profile-icon--brand { fill: currentColor; }
.author__name,
.author__bio { color: #e8eeff; }

.author__urls-wrapper button,
.btn {
  border-color: rgba(55, 227, 255, 0.25);
  color: #eaf8ff;
  background: #0a1730;
}

.archive__item,
.list__item { border-color: var(--neural-line); }

.page__footer {
  position: static;
  margin-top: 0;
  border-top: 1px solid rgba(123, 164, 222, 0.12);
  color: #7f90ac;
  background: rgba(2, 7, 18, 0.92);
}

.page__footer a { color: #a5b4cc; }

/* Responsive */

@media (max-width: 84rem) {
  :root { --neural-rail-width: 14.25rem; }
  .masthead__inner-wrap { padding-right: 1.2rem; padding-left: calc(var(--neural-rail-width) + 1.2rem); }
  .neural-profile-rail { margin-left: 0.85rem; padding-right: 0.75rem; padding-left: 0.75rem; }
  .neural-observatory__stage { padding-right: 1.25rem; padding-left: 1.25rem; }
  .neural-intro { grid-template-columns: minmax(0, 1.38fr) minmax(20.5rem, 0.82fr); gap: 1.4rem; }
  .neural-intro h1 { font-size: clamp(3.25rem, 4.7vw, 4.35rem); }
  .neural-intro__text p { font-size: 0.91rem; }
}

@media (max-width: 68rem) {
  .masthead__inner-wrap { padding: 0.8rem 1rem 0; }
  .neural-site-nav { min-height: 3.8rem; }
  .neural-observatory { display: block; }
  .neural-profile-rail {
    position: relative;
    top: auto;
    display: grid;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 5.75rem 1.25rem 0;
    padding: 1rem;
    overflow: visible;
    grid-template-columns: 9rem minmax(0, 1fr);
    align-items: center;
    gap: 1.25rem;
  }
  .neural-profile-rail__portrait { width: 8.5rem; margin: 0; }
  .neural-profile-rail__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .neural-profile-rail__links li,
  .neural-profile-rail__links a { min-height: 4rem; }
  .neural-profile-rail__links li:nth-child(odd) { border-right: 1px solid rgba(132, 157, 201, 0.23); }
  .neural-profile-rail__links li:nth-last-child(-n + 2) { border-bottom: 0; }
  .neural-observatory__stage { padding: 2.1rem 1.25rem 2rem; }
  .neural-intro { grid-template-columns: minmax(0, 1.35fr) minmax(19rem, 0.85fr); }
  .neural-focus__grid { grid-template-columns: 0.9fr 1.1fr; }
}

@media (max-width: 56rem) {
  .site-title-text { font-size: 0.68rem; letter-spacing: 0.12em; }
  .neural-intro { grid-template-columns: 1fr; }
  .neural-intro__copy { padding-top: 0; }
  .neural-intro h1 { white-space: normal; }
  .neural-news { max-width: none; }
  .neural-focus { margin-top: 1.5rem; }
  .neural-focus__grid { grid-template-columns: 1fr; }
  .neural-focus-card { min-height: 15.5rem; }
}

@media (max-width: 42rem) {
  body::before { background-size: 48px 48px; }
  .neural-site-nav { padding: 0 0.8rem; border-radius: 0.82rem; }
  .site-mark { width: 3.9rem; }
  .site-title-text { display: none; }
  .neural-site-nav__links { gap: 0.15rem; }
  .neural-site-nav__links a { padding: 1.15rem 0.48rem; font-size: 0.59rem; letter-spacing: 0.07em; }
  .neural-profile-rail { grid-template-columns: 1fr; justify-items: center; }
  .neural-profile-rail__portrait { width: 8rem; }
  .neural-profile-rail__links { width: 100%; }
  .neural-intro h1 { font-size: clamp(2.55rem, 11vw, 3.45rem); }
  .neural-intro__text p { font-size: 0.94rem; }
  .neural-focus-card { min-height: 14.5rem; }
}

@media (max-width: 34rem) {
  .neural-site-nav__toggle { display: flex; }
  .neural-site-nav__links {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: 0;
    display: none;
    padding: 0.45rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(127, 172, 238, 0.22);
    border-radius: 0.8rem;
    background: rgba(4, 10, 25, 0.98);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  }
  .neural-site-nav.is-nav-open .neural-site-nav__links { display: flex; }
  .neural-site-nav__links a { padding: 0.82rem 0.9rem; border-bottom: 1px solid rgba(120, 160, 219, 0.12); font-size: 0.64rem; }
  .neural-site-nav__links li:last-child a { border-bottom: 0; }
  .neural-site-nav__links a::after { display: none; }
  .neural-site-nav__links a.is-active {
    color: var(--neural-cyan);
    background: rgba(55, 227, 255, 0.07);
    box-shadow: inset 2px 0 0 var(--neural-cyan);
  }
  .neural-profile-rail { margin-right: 0.75rem; margin-left: 0.75rem; }
  .neural-profile-rail__links { grid-template-columns: 1fr; }
  .neural-profile-rail__links li,
  .neural-profile-rail__links li:nth-child(odd),
  .neural-profile-rail__links li:nth-last-child(-n + 2) { border-right: 0; border-bottom: 1px solid rgba(132, 157, 201, 0.23); }
  .neural-profile-rail__links li:last-child { border-bottom: 0; }
  .neural-observatory__stage { padding-right: 0.85rem; padding-left: 0.85rem; }
  .neural-news { padding-right: 1rem; padding-left: 1rem; }
  .neural-news__item { padding-left: 2.45rem; }
  .neural-focus-card { min-height: 13.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
