﻿:root {
  --bg: #f4efe6;
  --bg-soft: #fbf7f1;
  --text: #181410;
  --muted: #645a50;
  --line: rgba(24, 20, 16, 0.12);
  --card: rgba(255, 252, 247, 0.78);
  --warm: #ef7b4e;
  --wine: #9d325c;
  --ink: #1f2535;
  --teal: #1f7d78;
  --shadow: 0 24px 80px rgba(26, 17, 10, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(239, 123, 78, 0.18), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(157, 50, 92, 0.16), transparent 28%),
    linear-gradient(180deg, #f8f2e8 0%, #f4efe6 42%, #efe8db 100%);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 20, 16, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 20, 16, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 82%);
  opacity: 0.35;
}
.site-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 22px 0 80px;
  position: relative;
}
.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  margin-bottom: 34px;
  border: 1px solid rgba(24, 20, 16, 0.08);
  background: rgba(251, 247, 241, 0.72);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--warm), var(--wine));
  box-shadow: 0 0 0 7px rgba(239, 123, 78, 0.14);
}
.topnav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.topnav a:hover,
.topnav a:focus-visible { color: var(--text); }
.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.install-app {
  border: 1px solid rgba(24, 20, 16, 0.12);
  background: rgba(255,255,255,0.56);
  color: var(--text);
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.install-app.is-hidden {
  display: none;
}
.lang-switch {
  display: inline-flex;
  gap: 8px;
  background: rgba(24, 20, 16, 0.05);
  padding: 6px;
  border-radius: 999px;
}
.lang-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 10px 16px;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}
.lang-btn.is-active {
  background: var(--text);
  color: #fff7ef;
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: stretch;
  margin-bottom: 48px;
}
.hero-copy,
.hero-panel,
.info-card,
.publication-card,
.timeline-item,
.stack-step,
.news-panel,
.news-overview {
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.hero-copy {
  padding: 40px;
  border-radius: 34px;
}
.eyebrow,
.section-kicker,
.signal-label,
.news-badge {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  color: var(--wine);
  margin: 0 0 14px;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 700;
  line-height: 0.95;
}
h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  max-width: 11ch;
}
h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 14ch;
}
h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}
.hero-lead,
.rich-copy p,
.info-card p,
.publication-card p,
.timeline-copy p,
.stack-step p,
.news-overview p,
.news-summary,
.news-meta {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(24,20,16,0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--warm), var(--wine));
}
.button.secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.32);
}
.hero-panel {
  padding: 28px;
  border-radius: 34px;
  display: grid;
  align-content: space-between;
  gap: 24px;
  background:
    radial-gradient(circle at 30% 28%, rgba(239,123,78,0.2), transparent 24%),
    radial-gradient(circle at 70% 62%, rgba(31,125,120,0.16), transparent 26%),
    rgba(19, 20, 31, 0.96);
  color: #f8f1eb;
}
.panel-orbit {
  position: relative;
  min-height: 260px;
}
.orbit {
  position: absolute;
  border-radius: 50%;
}
.ring {
  inset: 24px;
  border: 1px solid rgba(255,255,255,0.16);
}
.ring-b {
  inset: 52px;
  border-style: dashed;
}
.node {
  width: 22px;
  height: 22px;
}
.node-a { top: 42px; left: 52px; background: var(--warm); }
.node-b { right: 46px; top: 92px; background: #f6d365; }
.node-c { left: 124px; bottom: 36px; background: var(--teal); }
.signal-card {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 18px;
}
.signal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.signal-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.5;
}
.signal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--warm), #f6d365);
}
.section {
  margin-bottom: 34px;
  padding: 10px 2px;
}
.grid-two,
.news-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}
.section-head,
.news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.card-grid.four {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.info-card,
.publication-card,
.timeline-item,
.stack-step,
.news-overview,
.news-panel {
  padding: 24px;
  border-radius: 28px;
}
.timeline {
  display: grid;
  gap: 18px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: start;
}
.timeline-year {
  color: var(--wine);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding-top: 6px;
}
.publication-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.publication-card .pub-journal {
  display: inline-block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 0.92rem;
}
.stack-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 18px;
}
.stack-rail {
  display: grid;
  gap: 18px;
}
.stack-step {
  position: relative;
  overflow: hidden;
}
.stack-step::after {
  content: "";
  position: absolute;
  inset: auto -25% -35% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239,123,78,0.16), transparent 70%);
}
.stack-index {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--wine);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
}
.news-badge {
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
}
.news-checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}
.news-checklist li {
  padding-left: 18px;
  position: relative;
}
.news-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--teal);
}
.panel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}
.panel-meta code {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(24,20,16,0.06);
  color: var(--text);
}
.news-feed {
  display: grid;
  gap: 16px;
}
.news-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.56);
  border: 1px solid rgba(24,20,16,0.1);
}
.news-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}
.news-tag {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(157,50,92,0.08);
  color: var(--wine);
}
.news-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
@media (max-width: 1000px) {
  .hero,
  .grid-two,
  .stack-section,
  .news-layout,
  .card-grid.four,
  .publication-grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }
  .topnav { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .site-shell {
    width: min(100vw - 22px, 100%);
    padding-top: 12px;
  }
  .hero-copy,
  .hero-panel,
  .info-card,
  .publication-card,
  .timeline-item,
  .stack-step,
  .news-overview,
  .news-panel {
    padding: 20px;
    border-radius: 24px;
  }
  h1 { max-width: 100%; }
  .timeline-item { grid-template-columns: 1fr; }
}

@media (max-width: 1000px) {
  .topbar {
    top: max(10px, env(safe-area-inset-top));
    padding: 14px;
    margin-bottom: 26px;
  }

  .topnav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .topnav a {
    white-space: nowrap;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(24, 20, 16, 0.04);
    border: 1px solid rgba(24, 20, 16, 0.06);
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100vw - 16px, 100%);
    padding-top: 10px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }

  .topbar {
    gap: 12px;
    border-radius: 24px;
    padding: 12px;
  }

  .brand {
    min-height: 42px;
  }

  .topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.install-app {
  border: 1px solid rgba(24, 20, 16, 0.12);
  background: rgba(255,255,255,0.56);
  color: var(--text);
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.install-app.is-hidden {
  display: none;
}
.lang-switch {
    width: 100%;
  }

  .lang-btn {
    flex: 1 1 0;
    min-height: 42px;
  }

  .hero {
    gap: 18px;
    margin-bottom: 34px;
  }

  .hero-copy,
  .hero-panel,
  .info-card,
  .publication-card,
  .timeline-item,
  .stack-step,
  .news-overview,
  .news-panel {
    padding: 22px;
    border-radius: 22px;
  }

  h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
    line-height: 0.98;
  }

  h2 {
    max-width: 100%;
    line-height: 1.02;
  }

  .hero-lead,
  .rich-copy p,
  .info-card p,
  .publication-card p,
  .timeline-copy p,
  .stack-step p,
  .news-overview p,
  .news-summary,
  .news-meta {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .hero-tags {
    gap: 8px;
  }

  .chip {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    min-height: 50px;
  }

  .panel-orbit {
    min-height: 180px;
  }

  .section {
    margin-bottom: 26px;
  }

  .section-head,
  .news-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .news-badge {
    width: fit-content;
    max-width: 100%;
  }

  .panel-meta,
  .news-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .news-card h3,
  .publication-card h3,
  .timeline-copy h3 {
    line-height: 1.08;
  }
}

@media (max-width: 480px) {
  body::before {
    background-size: 28px 28px;
    opacity: 0.24;
  }

  .site-shell {
    width: min(100vw - 12px, 100%);
  }

  .topbar {
    top: max(8px, env(safe-area-inset-top));
    margin-bottom: 18px;
  }

  .brand-text {
    font-size: 0.96rem;
  }

  .hero-copy,
  .hero-panel,
  .info-card,
  .publication-card,
  .timeline-item,
  .stack-step,
  .news-overview,
  .news-panel,
  .news-card {
    padding: 18px;
    border-radius: 20px;
  }

  .section-kicker,
  .eyebrow,
  .signal-label,
  .news-badge {
    letter-spacing: 0.14em;
    font-size: 0.72rem;
  }

  .topnav a {
    min-height: 38px;
    padding: 0 11px;
    font-size: 0.9rem;
  }

  .signal-list li,
  .news-checklist li {
    line-height: 1.55;
  }
}

.install-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: end center;
  padding: 20px;
  background: rgba(20, 18, 26, 0.28);
  backdrop-filter: blur(8px);
}

.install-sheet.is-hidden {
  display: none;
}

.install-sheet-card {
  width: min(520px, 100%);
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(251, 247, 241, 0.96);
  box-shadow: var(--shadow);
}

.install-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--wine);
  font-size: 0.74rem;
  margin: 0 0 12px;
}

.install-sheet-card h2 {
  margin-bottom: 12px;
}

.install-sheet-card p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.install-close {
  width: 100%;
}

@media (max-width: 1000px) {
  .topbar-actions {
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .install-app {
    width: 100%;
    min-height: 44px;
  }
}

