:root {
  color-scheme: dark;
  --bg: #07100f;
  --panel: #101b19;
  --panel-2: #14231f;
  --text: #eef7ef;
  --muted: #afc2b9;
  --line: rgba(216, 242, 226, 0.16);
  --green: #78f0b4;
  --cyan: #7bd9ff;
  --amber: #f1c86a;
  --coral: #ff8a71;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(123, 217, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 85% 18%, rgba(255, 138, 113, 0.13), transparent 24rem),
    linear-gradient(180deg, #07100f 0%, #0b1314 48%, #10120e 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 15, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  color: var(--text);
  font-weight: 760;
  text-decoration: none;
}

.brand span {
  max-width: 260px;
  line-height: 1.05;
}

.brand-logo,
.brand-logo-shell {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(120, 240, 180, 0.28);
}

.brand-logo-shell {
  position: relative;
  flex: 0 0 72px;
  overflow: hidden;
  background: #020503;
  border: 1px solid rgba(186, 255, 194, 0.46);
}

.brand-logo-video,
.brand-logo-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.32);
  transform-origin: center;
}

.brand-logo-shell::before,
.brand-logo-shell::after {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  content: "";
  border-radius: 50%;
}

.brand-logo-shell::before {
  inset: 5px;
  border: 1px solid rgba(235, 246, 239, 0.68);
  box-shadow:
    inset 0 0 10px rgba(120, 255, 150, 0.16),
    0 0 16px rgba(91, 255, 128, 0.18);
  animation: ali-ring-transmission 4.4s ease-out infinite;
}

.brand-logo-shell::after {
  inset: 10px;
  border: 1px solid rgba(235, 246, 239, 0.42);
  box-shadow: inset 0 0 8px rgba(91, 255, 128, 0.12);
  animation: ali-ring-transmission 4.4s ease-out infinite;
  animation-delay: 1.55s;
}

@keyframes ali-ring-transmission {
  0% {
    transform: scale(0.9);
    opacity: 0.16;
  }

  20% {
    opacity: 0.86;
  }

  66% {
    opacity: 0.34;
  }

  100% {
    transform: scale(1.08);
    opacity: 0.1;
  }
}

.brand-logo-fallback {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.brand-logo {
  height: auto;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo-shell::before,
  .brand-logo-shell::after {
    animation: none;
  }

  .brand-logo-video {
    display: none;
  }

  .brand-logo-fallback {
    position: static;
    opacity: 1;
  }
}

.top-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.top-nav a {
  padding: 9px 11px;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.top-nav .lang-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  margin-left: 4px;
  border: 1px solid rgba(123, 217, 255, 0.35);
  border-radius: 999px;
  background: rgba(123, 217, 255, 0.08);
  color: var(--cyan);
  font-weight: 820;
}

.top-nav .nav-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-height: 34px;
  margin-left: 4px;
  border: 1px solid rgba(238, 247, 239, 0.18);
  border-radius: 999px;
  background: rgba(238, 247, 239, 0.045);
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 820;
  line-height: 1;
  padding: 0;
}

.top-nav .nav-icon-link:hover,
.top-nav .nav-icon-link:focus-visible,
.top-nav .lang-link:hover,
.top-nav .lang-link:focus-visible {
  border-color: rgba(120, 240, 180, 0.62);
  color: var(--green);
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--text);
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 96px;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.project-subtitle {
  margin: 18px 0 0;
  color: var(--green);
  font-size: clamp(1.15rem, 2.3vw, 1.75rem);
  font-weight: 820;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.welcome-signal {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.welcome-signal p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.signal-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(123, 217, 255, 0.32);
  border-radius: 8px;
  background: rgba(123, 217, 255, 0.08);
  color: var(--cyan);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 760;
  cursor: pointer;
}

.signal-button:hover,
.signal-button:focus-visible,
.signal-button.is-playing {
  border-color: rgba(123, 217, 255, 0.74);
  background: rgba(123, 217, 255, 0.14);
}

.soundcloud-signal {
  position: fixed;
  width: 1px;
  height: 1px;
  right: 0;
  bottom: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 760;
  text-decoration: none;
}

.button.primary {
  background: var(--green);
  color: #06100c;
  border-color: transparent;
}

.button.secondary {
  background: rgba(238, 247, 239, 0.06);
  color: var(--text);
}

.hero-photo {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(123, 217, 255, 0.16), rgba(255, 138, 113, 0.08) 45%, rgba(120, 240, 180, 0.12));
  box-shadow: var(--shadow);
}

.hero-photo img {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(92%, 720px);
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: saturate(1.12) contrast(1.12);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.45);
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 16, 15, 0.02), rgba(7, 16, 15, 0.78)),
    linear-gradient(90deg, rgba(7, 16, 15, 0.28), transparent 46%);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(120, 240, 180, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 240, 180, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mix-blend-mode: screen;
  opacity: 0.75;
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 86px 0;
  border-top: 1px solid var(--line);
}

.section-title {
  max-width: 760px;
  margin-bottom: 30px;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 1;
  letter-spacing: 0;
}

.domain-grid,
.research-list,
.tool-board,
.sources-grid,
.project-grid,
.exobio-questions,
.exobio-methods,
.motif-facts,
.decode-grid {
  display: grid;
  gap: 16px;
}

.project-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1080px;
}

.project-intro p {
  margin-top: 0;
  font-size: 1.08rem;
}

.project-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.project-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(238, 247, 239, 0.045);
  padding: 24px;
}

.project-grid span {
  display: block;
  margin-bottom: 24px;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: uppercase;
}

.exobio-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}

.exobio-definition {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(120, 240, 180, 0.1), rgba(123, 217, 255, 0.08));
  padding: 26px;
}

.exobio-definition p:first-of-type {
  color: var(--text);
  font-size: 1.08rem;
}

.exobio-questions {
  grid-template-columns: repeat(2, 1fr);
}

.exobio-questions article,
.exobio-methods article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(238, 247, 239, 0.045);
  padding: 22px;
}

.exobio-questions span {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--green);
  color: #06100c;
  font-weight: 860;
  line-height: 30px;
  text-align: center;
}

.exobio-methods {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 16px;
}

.culture-intro {
  max-width: 860px;
}

.art-intro {
  max-width: 900px;
}

.art-intro p {
  margin-top: 0;
  font-size: 1.08rem;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.art-grid article {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(120, 240, 180, 0.075), rgba(123, 217, 255, 0.045)),
    rgba(238, 247, 239, 0.045);
  padding: 0 22px 22px;
}

.art-grid article::before {
  content: "";
  display: block;
  width: calc(100% + 44px);
  height: 190px;
  margin: 0 -22px 20px;
  border-bottom: 1px solid var(--line);
  background-color: #050807;
  background-position: center;
  background-size: cover;
}

.art-grid article:nth-child(1)::before {
  background-image: url("/ali/assets/artistic-references/a-sign-in-space.jpg");
}

.art-grid article:nth-child(2)::before {
  background-image: url("/ali/assets/artistic-references/the-last-pictures.jpg");
}

.art-grid article:nth-child(3)::before {
  background-image: url("/ali/assets/artistic-references/earth-moon-earth.jpg");
}

.art-grid article:nth-child(4)::before {
  background-image: url("/ali/assets/artistic-references/elemental-message.jpg");
}

.art-grid article:nth-child(5)::before {
  background-image: url("/ali/assets/artistic-references/codex-virtualis.jpg");
}

.art-grid article:nth-child(6)::before {
  background-image: url("/ali/assets/artistic-references/cogito-in-space.jpg");
}

.art-grid article:nth-child(7)::before {
  background-image: url("/ali/assets/artistic-references/sonar-calling.jpg");
}

.art-grid article:nth-child(8)::before {
  background-image: url("/ali/assets/artistic-references/moon-goose-analogue.jpg");
}

.art-grid article:nth-child(9)::before {
  background-image: url("/ali/assets/artistic-references/drosophila-titanus.webp");
}

.art-grid article:nth-child(10)::before {
  background-image: url("/ali/assets/artistic-references/moonmeme.jpg");
}

.art-grid article:nth-child(11)::before {
  background-image: url("/ali/assets/artistic-references/ghosts-air-glow.jpg");
}

.art-grid article:nth-child(12)::before {
  background-image: url("/ali/assets/artistic-references/orbital-reflector.jpg");
}

.art-grid article:nth-child(13)::before {
  background-image: url("/ali/assets/artistic-references/free-the-air.jpg");
}

.art-grid article:nth-child(14)::before {
  background-image: url("/ali/assets/artistic-references/paulina-peavy.png");
}

.art-grid article:nth-child(15)::before {
  background-image: url("/ali/assets/artistic-references/making-contact.webp");
}

.art-grid article:nth-child(16)::before {
  background-image: url("/ali/assets/artistic-references/seti-air.jpg");
}

.art-grid article:nth-child(17)::before {
  background-image: url("/ali/assets/artistic-references/moon-museum.jpg");
}

.art-grid span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 860;
}

.art-grid p {
  margin-bottom: 18px;
}

.art-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(123, 217, 255, 0.28);
  border-radius: 8px;
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 760;
  text-decoration: none;
}

.art-grid a:hover,
.art-grid a:focus-visible {
  border-color: rgba(123, 217, 255, 0.7);
  background: rgba(123, 217, 255, 0.08);
}

.art-note {
  margin-top: 16px;
}

.home-definition {
  padding-top: 104px;
}

.home-definition .section-title {
  max-width: 920px;
}

.home-definition h1 {
  margin: 0;
  font-size: clamp(4rem, 15vw, 12rem);
  line-height: 0.82;
}

.definition-panel,
.section-lead {
  max-width: 920px;
}

.definition-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.definition-panel p,
.section-lead {
  color: rgba(238, 247, 239, 0.84);
  font-size: 1.1rem;
}

.home-labo .labo-grid {
  margin-top: 28px;
}

.labo-search {
  max-width: 920px;
  margin: 28px 0 0;
  padding: 16px;
  border: 1px solid rgba(123, 217, 255, 0.24);
  border-radius: 8px;
  background: rgba(238, 247, 239, 0.045);
}

.labo-search label {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.labo-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.labo-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(238, 247, 239, 0.22);
  border-radius: 8px;
  background: rgba(2, 8, 7, 0.76);
  color: var(--text);
  font: inherit;
  padding: 0 14px;
}

.labo-search input:focus {
  border-color: rgba(123, 217, 255, 0.75);
  outline: 2px solid rgba(123, 217, 255, 0.2);
}

.labo-search button {
  min-height: 46px;
  border: 1px solid rgba(120, 240, 180, 0.45);
  border-radius: 8px;
  background: rgba(120, 240, 180, 0.14);
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-weight: 760;
  padding: 0 14px;
}

.labo-search button.secondary {
  border-color: rgba(123, 217, 255, 0.28);
  background: rgba(123, 217, 255, 0.08);
  color: var(--cyan);
}

.labo-search button:hover,
.labo-search button:focus-visible {
  border-color: rgba(245, 211, 111, 0.75);
  color: var(--amber);
}

.labo-search-count {
  min-height: 1.4em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.culture-intro p {
  margin-top: 0;
  font-size: 1.08rem;
}

.culture-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  margin-top: 28px;
}

.culture-columns > div > h3 {
  margin: 0 0 14px;
  color: var(--green);
}

.culture-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.culture-list article {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(238, 247, 239, 0.045);
  min-width: 0;
  min-height: 100%;
  padding: 0 16px 16px;
}

.culture-list img {
  display: block;
  width: calc(100% + 32px);
  height: 190px;
  margin: 0 -16px 16px;
  object-fit: contain;
  background: #050807;
  border-bottom: 1px solid var(--line);
}

.culture-list span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 860;
}

.culture-list h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.culture-list p {
  margin-bottom: 0;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.culture-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: auto;
  padding-top: 14px;
}

.culture-links a {
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 760;
}

.culture-sound {
  margin-top: 34px;
}

.culture-sound > h3 {
  margin-bottom: 14px;
  color: var(--green);
}

.sound-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sound-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(241, 200, 106, 0.08), rgba(123, 217, 255, 0.055)),
    rgba(238, 247, 239, 0.045);
  padding: 20px;
}

.sound-list span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 860;
}

.sound-list h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.3;
}

.sound-list p {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.sound-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(123, 217, 255, 0.28);
  border-radius: 8px;
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 760;
  text-decoration: none;
}

.sound-link:hover,
.sound-link:focus-visible {
  border-color: rgba(123, 217, 255, 0.7);
  background: rgba(123, 217, 255, 0.08);
}

.voyager-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: stretch;
}

.record-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(241, 200, 106, 0.18), transparent 16rem),
    linear-gradient(rgba(241, 200, 106, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 217, 255, 0.045) 1px, transparent 1px),
    rgba(238, 247, 239, 0.045);
  background-size: cover, 32px 32px, 32px 32px, cover;
}

.record-panel img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.48);
}

.record-panel figcaption {
  padding: 12px 16px 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.voyager-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.voyager-copy > p {
  margin-top: 0;
  font-size: 1.08rem;
}

.voyager-facts {
  grid-template-columns: repeat(3, 1fr);
}

.motif-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: stretch;
}

.motif-image-panel {
  display: grid;
  place-items: center;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(120, 240, 180, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 240, 180, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 30% 20%, rgba(123, 217, 255, 0.18), transparent 18rem),
    rgba(238, 247, 239, 0.045);
  background-size: 32px 32px, 32px 32px, cover, cover;
}

.motif-image-panel img {
  width: auto;
  max-width: min(72%, 260px);
  height: min(500px, 82vh);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.5);
}

.motif-image-panel img.arecibo-vertical {
  aspect-ratio: 25 / 75;
}

.motif-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.motif-copy > p {
  margin-top: 0;
  font-size: 1.08rem;
}

.motif-facts {
  grid-template-columns: repeat(3, 1fr);
}

.motif-facts article,
.decode-grid article,
.study-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(238, 247, 239, 0.045);
  padding: 22px;
}

.motif-facts span {
  display: block;
  margin-bottom: 10px;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: uppercase;
}

.motif-facts strong {
  display: block;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.1;
}

.motif-facts p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.decode-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 16px;
}

.study-note {
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(120, 240, 180, 0.1), rgba(123, 217, 255, 0.08));
}

.study-note p {
  max-width: 880px;
  margin-bottom: 0;
}

.domain-grid {
  grid-template-columns: repeat(3, 1fr);
}

.domain-grid article,
.research-list article,
.tool-board article,
.source-card,
.fact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(238, 247, 239, 0.045);
  padding: 24px;
}

h3 {
  margin: 0 0 10px;
  line-height: 1.2;
}

p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: start;
}

.split.reverse {
  grid-template-columns: 360px minmax(0, 1fr);
}

.split.reverse > div {
  grid-column: 2;
}

.split.reverse > aside {
  grid-column: 1;
  grid-row: 1;
}

.fact-panel {
  background: linear-gradient(180deg, rgba(123, 217, 255, 0.11), rgba(238, 247, 239, 0.045));
}

.fact-panel.amber {
  background: linear-gradient(180deg, rgba(241, 200, 106, 0.16), rgba(238, 247, 239, 0.045));
}

.fact-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.research-list {
  grid-template-columns: repeat(3, 1fr);
}

.tool-board {
  grid-template-columns: repeat(3, 1fr);
}

.tool-board article span {
  display: block;
  margin-bottom: 28px;
  color: var(--amber);
  font-weight: 820;
}

.source-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(238, 247, 239, 0.04);
  color: var(--muted);
  cursor: pointer;
}

.filter.active {
  background: var(--text);
  color: #07100f;
}

.sources-grid {
  grid-template-columns: repeat(4, 1fr);
}

.source-card p:first-child {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
}

.source-card a {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--cyan);
  overflow-wrap: anywhere;
}

.source-card.is-hidden {
  display: none;
}

.labo-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.labo-hero {
  max-width: 880px;
  margin-bottom: 42px;
}

.labo-hero.compact {
  max-width: 620px;
}

.labo-hero h1,
.labo-entry h1,
.admin-page h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.admin-page h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.labo-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.12rem;
}

.labo-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
}

.labo-filter a,
.labo-tags a,
.tag-suggestion {
  border: 1px solid rgba(123, 217, 255, 0.28);
  border-radius: 999px;
  background: rgba(123, 217, 255, 0.08);
  color: var(--cyan);
  padding: 7px 11px;
  font-size: 0.86rem;
  font-weight: 760;
  text-decoration: none;
}

.labo-filter a.is-active,
.labo-filter a:hover,
.labo-tags a:hover,
.tag-suggestion:hover {
  border-color: rgba(120, 240, 180, 0.6);
  color: var(--green);
}

.labo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.labo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 27, 25, 0.96), rgba(20, 35, 31, 0.82));
  box-shadow: var(--shadow);
}

.labo-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  background: #020807;
}

.labo-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.labo-card-body {
  padding: 20px;
}

.labo-date {
  margin: 0 0 8px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: uppercase;
}

.labo-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.labo-card h2 a,
.labo-card-link,
.labo-back {
  color: var(--text);
  text-decoration: none;
}

.labo-card h2 a:hover,
.labo-card-link:hover,
.labo-back:hover {
  color: var(--green);
}

.labo-card p {
  color: var(--muted);
}

.labo-card-summary {
  display: -webkit-box;
  min-height: 4.65em;
  max-height: 4.65em;
  overflow: hidden;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.labo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.labo-entry {
  max-width: 900px;
  margin: 0 auto;
}

.labo-related {
  max-width: 1180px;
  margin: 72px auto 0;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.labo-related .section-title {
  margin-bottom: 22px;
}

.labo-related .labo-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  margin-top: 0;
}

.labo-related .labo-card-image {
  aspect-ratio: 16 / 8;
}

.labo-related .labo-card-body {
  padding: 12px;
}

.labo-related .labo-date {
  font-size: 0.68rem;
}

.labo-related .labo-card h2 {
  font-size: 0.98rem;
}

.labo-related .labo-card-summary {
  min-height: 3.6em;
  max-height: 3.6em;
  font-size: 0.86rem;
  line-height: 1.4;
}

.labo-related .labo-tags {
  gap: 5px;
  margin-top: 10px;
}

.labo-related .labo-tags a {
  padding: 4px 7px;
  font-size: 0.72rem;
}

.labo-entry-summary {
  margin: 18px 0 24px;
  padding: 18px 22px;
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  background: rgba(120, 240, 180, 0.08);
  color: rgba(238, 247, 239, 0.92);
  font-size: 1.12rem;
  line-height: 1.62;
}

.labo-back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--cyan);
  font-weight: 760;
}

.labo-entry-cover {
  display: block;
  width: 100%;
  max-height: 560px;
  margin: 32px 0;
  border-radius: 8px;
  object-fit: cover;
}

.article-content.labo-content {
  color: var(--text);
  font-size: 1.06rem;
}

.article-content.labo-content h1,
.article-content.labo-content h2,
.article-content.labo-content h3 {
  margin: 1.4em 0 0.45em;
  line-height: 1.12;
}

.article-content.labo-content p,
.article-content.labo-content li {
  color: rgba(238, 247, 239, 0.88);
}

.article-content.labo-content blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--green);
  background: rgba(120, 240, 180, 0.08);
}

.article-content.labo-content figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 28px 0;
}

.article-content.labo-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  border-radius: 8px;
}

.article-content.labo-content figure img {
  margin-left: auto;
  margin-right: auto;
}

.article-content.labo-content figcaption {
  width: 100%;
  margin-top: 10px;
  color: rgba(238, 247, 239, 0.74);
  font-size: 0.94rem;
}

.article-content .media-embed {
  margin: 28px 0;
}

.article-content .media-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.article-content .media-embed audio,
.article-content .media-embed video {
  display: block;
  width: 100%;
}

.admin-page {
  max-width: 1100px;
}

.admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.admin-stats article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(238, 247, 239, 0.045);
  padding: 18px;
}

.admin-stats span {
  display: block;
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 860;
  text-transform: uppercase;
}

.admin-stats strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(120, 240, 180, 0.55);
  border-radius: 999px;
  background: rgba(120, 240, 180, 0.16);
  color: var(--green);
  padding: 9px 14px;
  font: inherit;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary,
button.secondary {
  border-color: rgba(123, 217, 255, 0.35);
  background: rgba(123, 217, 255, 0.08);
  color: var(--cyan);
}

.form-panel {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 27, 25, 0.88);
  padding: 22px;
}

.form-panel label,
.field-title {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 760;
}

.form-panel input,
.form-panel select,
.form-panel textarea {
  width: 100%;
  border: 1px solid rgba(216, 242, 226, 0.18);
  border-radius: 6px;
  background: rgba(4, 10, 9, 0.78);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
}

.form-panel textarea {
  min-height: 120px;
}

.admin-error {
  color: var(--coral);
  font-weight: 760;
}

.admin-success {
  color: var(--green);
  font-weight: 760;
}

.admin-intro {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-row-note {
  max-width: 460px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.status-pill.published {
  border: 1px solid rgba(120, 240, 180, 0.45);
  background: rgba(120, 240, 180, 0.12);
  color: var(--green);
}

.draft-preview-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 210, 104, 0.38);
  border-radius: 8px;
  background: rgba(22, 24, 18, 0.94);
  color: var(--text);
  padding: 12px;
  margin: 0 0 22px;
  backdrop-filter: blur(12px);
}

.draft-preview-bar strong {
  color: var(--amber);
}

.draft-preview-bar span {
  color: var(--muted);
  margin-right: auto;
}

.newsletter-admin-panel {
  margin: 0 0 28px;
}

.newsletter-admin-panel h2 {
  margin: 0 0 14px;
  font-size: 1.65rem;
}

.newsletter-add-form {
  grid-template-columns: minmax(160px, 0.9fr) minmax(220px, 1.2fr) minmax(120px, 0.6fr) auto;
  align-items: end;
}

.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: rgba(16, 27, 25, 0.72);
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.admin-thumb {
  display: block;
  width: 92px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #050807;
}

.editor-field {
  display: grid;
  gap: 8px;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  border: 1px solid rgba(216, 242, 226, 0.18);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: rgba(238, 247, 239, 0.94);
  padding: 8px;
}

.editor-toolbar .ql-formats {
  display: inline-flex;
  gap: 2px;
  margin-right: 6px;
}

.editor-toolbar button {
  min-height: 28px;
  width: 30px;
  border-radius: 4px;
  border-color: transparent;
  background: transparent;
  color: #10201c;
  padding: 0;
}

.editor-toolbar .media-button {
  width: auto;
  min-width: 32px;
  padding: 0 7px;
  color: #10201c;
}

.rich-editor {
  display: none;
  min-height: 380px;
  border: 1px solid rgba(216, 242, 226, 0.18);
  border-radius: 0 0 6px 6px;
  background: #fff;
  color: #10201c;
}

.editor-field.enhanced .rich-editor {
  display: block;
}

.editor-field.enhanced .rich-editor-source {
  display: none;
}

.rich-editor .ql-editor {
  min-height: 380px;
  color: #10201c;
  font-size: 1rem;
  line-height: 1.62;
}

.rich-editor .media-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.rich-editor .media-embed audio,
.rich-editor .media-embed video {
  width: 100%;
}

.tag-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.newsletter-modal[hidden] {
  display: none;
}

.newsletter-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

.newsletter-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 8, 0.72);
  backdrop-filter: blur(8px);
}

.newsletter-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid rgba(216, 242, 226, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(20, 35, 31, 0.98), rgba(10, 19, 19, 0.98)),
    var(--panel);
  box-shadow: var(--shadow);
}

.newsletter-dialog h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.1;
}

.newsletter-dialog p {
  color: var(--muted);
}

.newsletter-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(238, 247, 239, 0.06);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.newsletter-form {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.newsletter-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: start;
}

.newsletter-inline-panel {
  border: 1px solid rgba(120, 240, 180, 0.3);
  border-radius: 8px;
  background: rgba(8, 18, 17, 0.72);
  padding: 26px;
}

.newsletter-inline-panel p {
  margin: 0;
  color: var(--muted);
}

.newsletter-form label {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 760;
}

.newsletter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.newsletter-row input {
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(238, 247, 239, 0.06);
  color: var(--text);
  font: inherit;
}

.newsletter-row button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #06100c;
  font: inherit;
  font-weight: 820;
  cursor: pointer;
}

.newsletter-status {
  min-height: 24px;
  margin: 0;
  font-size: 0.9rem;
}

.newsletter-status.is-error {
  color: var(--coral);
}

.newsletter-status.is-success {
  color: var(--green);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
}

.footer-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-author img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 1px solid rgba(231, 238, 255, 0.22);
  border-radius: 50%;
}

.footer-author a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.footer-author a:hover {
  color: var(--cyan);
}

.footer-meta {
  display: grid;
  gap: 6px;
  text-align: right;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 24px;
  }

  .hero,
  .split,
  .split.reverse,
  .voyager-layout {
    grid-template-columns: 1fr;
  }

  .split.reverse > div,
  .split.reverse > aside {
    grid-column: auto;
    grid-row: auto;
  }

  .domain-grid,
  .research-list,
  .tool-board,
  .sources-grid,
  .project-grid,
  .art-grid,
  .exobio-questions,
  .exobio-methods,
  .decode-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .motif-layout,
  .exobio-layout,
  .project-intro,
  .culture-columns,
  .motif-facts,
  .voyager-facts {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    min-height: 420px;
  }

  .sound-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .labo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .brand-logo,
  .brand-logo-shell {
    width: 60px;
    height: 60px;
  }

  .brand-logo-shell {
    flex-basis: 60px;
  }

  .top-nav {
    gap: 0;
  }

  .top-nav a {
    padding: 7px 9px;
  }

  .hero,
  .section,
  .site-footer {
    width: min(100% - 32px, 1180px);
  }

  .hero {
    padding-top: 48px;
  }

  .hero-copy h1 {
    font-size: 3.25rem;
  }

  .domain-grid,
  .research-list,
  .tool-board,
  .sources-grid,
  .project-grid,
  .art-grid,
  .exobio-questions,
  .exobio-methods,
  .sound-list,
  .decode-grid {
    grid-template-columns: 1fr;
  }

  .motif-image-panel {
    min-height: 220px;
  }

  .record-panel {
    min-height: 360px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .newsletter-dialog {
    padding: 24px 18px;
  }

  .newsletter-row {
    grid-template-columns: 1fr;
  }

  .labo-search-row {
    grid-template-columns: 1fr;
  }

  .newsletter-section {
    grid-template-columns: 1fr;
  }

  .newsletter-add-form {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    text-align: left;
  }

  .labo-page {
    width: min(100% - 32px, 1180px);
    padding-top: 48px;
  }

  .labo-grid {
    grid-template-columns: 1fr;
  }

  .admin-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .table {
    display: block;
    overflow-x: auto;
  }
}
