:root {
  --bg: #eef2f7;
  --bg-deep: #e3e8f0;
  --surface: rgba(249, 252, 255, 0.74);
  --surface-strong: rgba(247, 250, 255, 0.92);
  --surface-edge: rgba(73, 96, 128, 0.12);
  --ink: #1d2d44;
  --muted: #61738a;
  --soft: #7f90a7;
  --line: #4b637f;
  --accent: #bcc8d7;
  --accent-bright: #edf2f8;
  --shadow: 0 22px 60px rgba(50, 68, 92, 0.12);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 32%),
    radial-gradient(circle at top right, rgba(225, 232, 243, 0.75), rgba(225, 232, 243, 0) 30%),
    linear-gradient(180deg, #f8fafd 0%, var(--bg) 48%, var(--bg-deep) 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(61, 89, 118, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 89, 118, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 48px;
}

.topbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(237, 243, 250, 0.8);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(52, 66, 85, 0.06);
}

.topbar-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.98) 0 25%, transparent 26%),
    conic-gradient(from 30deg, #e2e8f0, #4c647f, #c6d2e0, #e2e8f0);
  box-shadow: 0 0 22px rgba(203, 214, 228, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: "Sora", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.93rem;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  transform: translateY(-1px);
}

.hero {
  display: block;
  padding: 58px 0 40px;
}

.hero-header {
  margin-bottom: 34px;
}

.hero-copy,
.paper-card,
.section-intro {
  position: relative;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--soft);
  font-family: "Azeret Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero h1,
.paper-card h3 {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.05em;
}

.hero-title-line {
  margin: 0;
  white-space: nowrap;
  font-size: clamp(4rem, 8.5vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.92;
  color: transparent;
  background: linear-gradient(110deg, #223651, #5a6f89 44%, #b2bcc9 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-subtitle {
  margin: 18px 0 0;
  /* max-width: 18ch; */
  color: var(--ink);
  font-family: "Sora", sans-serif;
  font-size: clamp(1.9rem, 3.1vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(480px, 1.02fr);
  gap: 46px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.hero-lead {
  max-width: 690px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.24rem;
  line-height: 1.86;
  text-align: justify;
  text-wrap: pretty;
}

.hero-actions,
.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #f7fbff;
  background: linear-gradient(135deg, #506883, #314964);
  box-shadow: 0 12px 28px rgba(43, 63, 88, 0.18);
}

.button-secondary {
  border-color: rgba(61, 89, 118, 0.18);
  background: rgba(248, 251, 255, 0.72);
  color: var(--ink);
}

.hero-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.mini-panel,
.paper-card,
.paper-figure,
.section-intro {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.88), rgba(239, 244, 250, 0.7));
  box-shadow: var(--shadow);
}

.mini-panel {
  padding: 18px 18px 20px;
  border-radius: 22px;
}

.mini-index {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: "Azeret Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.mini-panel h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.mini-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.hero-visual {
  position: relative;
  padding-top: 22px;
}

.hero-visual::before,
.hero-visual::after {
  content: none;
}

.hero-visual-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 25px;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.82), rgba(238, 243, 250, 0.64));
  box-shadow: var(--shadow);
}

.hero-visual-frame img {
  width: 100%;
  height: auto;
}

.flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.flow-lines path {
  fill: none;
  stroke: url(#flowStroke);
  stroke-width: 3.1;
  stroke-linecap: round;
  opacity: 0.96;
  animation: breathe 7s ease-in-out infinite;
}

.flow-lines path:nth-child(4) {
  animation-delay: -1.2s;
}

.flow-lines path:nth-child(5) {
  animation-delay: -2.4s;
}

.flow-lines path:nth-child(6) {
  animation-delay: -3.1s;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.82;
  }

  50% {
    opacity: 1;
  }
}

.modality,
.core-note {
  position: absolute;
  z-index: 2;
}

.modality {
  left: 42px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-family: "Sora", sans-serif;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.modality span:last-child {
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.42);
}

.modality-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(61, 89, 118, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(8px);
}

.modality-icon > span {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
}

.modality-image .modality-icon > span::before,
.modality-image .modality-icon > span::after,
.modality-video .modality-icon > span::before,
.modality-video .modality-icon > span::after,
.modality-3d .modality-icon > span::before,
.modality-3d .modality-icon > span::after,
.modality-pixel .modality-icon > span::before,
.modality-pixel .modality-icon > span::after {
  content: "";
  position: absolute;
}

.modality-image {
  top: 76px;
}

.modality-image .modality-icon > span::before {
  inset: 2px;
  border: 2px solid rgba(61, 89, 118, 0.8);
  border-radius: 4px;
}

.modality-image .modality-icon > span::after {
  left: 7px;
  bottom: 7px;
  width: 12px;
  height: 8px;
  border-left: 2px solid rgba(61, 89, 118, 0.8);
  border-bottom: 2px solid rgba(61, 89, 118, 0.8);
  transform: skewX(-28deg) rotate(-18deg);
}

.modality-video {
  top: 179px;
}

.modality-video .modality-icon > span::before {
  inset: 2px;
  border: 2px solid rgba(61, 89, 118, 0.8);
  border-radius: 50%;
}

.modality-video .modality-icon > span::after {
  left: 9px;
  top: 7px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid rgba(61, 89, 118, 0.9);
}

.modality-3d {
  top: 292px;
}

.modality-3d .modality-icon > span::before {
  inset: 3px;
  border: 2px solid rgba(61, 89, 118, 0.8);
  transform: rotate(45deg);
}

.modality-3d .modality-icon > span::after {
  left: 10px;
  top: 4px;
  width: 12px;
  height: 18px;
  border: 2px solid rgba(210, 180, 120, 0.95);
  background: rgba(255, 249, 237, 0.15);
}

.modality-pixel {
  top: 405px;
}

.modality-pixel .modality-icon > span::before {
  left: 2px;
  top: 2px;
  width: 7px;
  height: 7px;
  background: rgba(61, 89, 118, 0.82);
  box-shadow: 10px 0 0 rgba(61, 89, 118, 0.82), 0 10px 0 rgba(210, 180, 120, 0.96), 10px 10px 0 rgba(61, 89, 118, 0.82), 20px 10px 0 rgba(210, 180, 120, 0.96);
}

.modality-pixel .modality-icon > span::after {
  right: 0;
  bottom: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 246, 224, 0.95);
  box-shadow: 0 0 18px rgba(234, 214, 174, 0.85);
}

.core {
  position: absolute;
  right: 102px;
  top: 122px;
  width: 300px;
  height: 300px;
  z-index: 1;
}

.core-ring,
.core-wire,
.core-center {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.core-ring {
  border: 2px solid rgba(255, 246, 224, 0.78);
  box-shadow: inset 0 0 18px rgba(255, 252, 244, 0.5), 0 0 32px rgba(245, 232, 202, 0.54);
}

.core-ring-a {
  transform: rotate(15deg) scale(0.88, 1);
  animation: spinA 12s linear infinite;
}

.core-ring-b {
  transform: rotate(-24deg) scale(1, 0.72);
  animation: spinB 15s linear infinite;
}

.core-wire {
  border: 1px solid rgba(255, 245, 220, 0.7);
}

.core-wire-a {
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  transform: scale(0.92) rotate(10deg);
}

.core-wire-b {
  clip-path: polygon(15% 15%, 85% 15%, 100% 50%, 85% 85%, 15% 85%, 0% 50%);
  transform: scale(0.82) rotate(-14deg);
}

.core-center {
  inset: 96px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(255, 252, 242, 0.98), rgba(241, 225, 191, 0.82));
  box-shadow: 0 0 34px rgba(245, 227, 191, 0.9);
}

.core-center span {
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

@keyframes spinA {
  from {
    transform: rotate(15deg) scale(0.88, 1);
  }

  to {
    transform: rotate(375deg) scale(0.88, 1);
  }
}

@keyframes spinB {
  from {
    transform: rotate(-24deg) scale(1, 0.72);
  }

  to {
    transform: rotate(-384deg) scale(1, 0.72);
  }
}

.core-note {
  right: 58px;
  max-width: 230px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.55);
  backdrop-filter: blur(10px);
}

.core-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.core-note span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.note-top {
  top: 54px;
}

.note-bottom {
  bottom: 62px;
}

.research {
  padding-top: 34px;
}

.section-intro {
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.section-summary {
  margin: 0;
  color: var(--muted);
  max-width: 100%;
  font-size: 1.08rem;
  line-height: 1.82;
  text-align: justify;
  text-wrap: pretty;
}

.thread {
  position: relative;
  display: grid;
  gap: 26px;
  padding-left: 28px;
}

.thread::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(180deg, rgba(75, 99, 127, 0.24), rgba(191, 201, 216, 0.58), rgba(75, 99, 127, 0.08));
}

.paper-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.paper-card::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 52px;
  width: 22px;
  height: 22px;
  border: 4px solid rgba(242, 246, 251, 0.98);
  border-radius: 50%;
  background: #56708c;
  box-shadow: 0 0 0 6px rgba(246, 249, 253, 0.84);
}

.paper-card-alt {
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.9), rgba(236, 241, 248, 0.74));
}

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.paper-head {
  width: 100%;
}

.paper-body {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
  gap: 30px;
  align-items: start;
  width: 100%;
}

.paper-year,
.paper-venue {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-family: "Azeret Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paper-year {
  color: #f7fbff;
  background: #48627f;
}

.paper-venue {
  color: #70839a;
  background: rgba(231, 237, 245, 0.96);
}

.paper-card h3 {
  margin: 0;
  max-width: none;
  font-size: clamp(1.7rem, 2.55vw, 2.15rem);
  line-height: 1.04;
  text-wrap: balance;
}

.paper-tagline {
  margin: 14px 0 16px;
  color: #36526f;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.65;
}

.paper-copy p {
  color: var(--muted);
  line-height: 1.82;
  text-align: justify;
  text-wrap: pretty;
}

.paper-points {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.paper-points li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.7;
  text-align: justify;
}

.paper-points li + li {
  margin-top: 10px;
}

.paper-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--line), var(--accent));
  box-shadow: 0 0 12px rgba(189, 201, 218, 0.34);
}

.paper-links {
  margin-top: 22px;
}

.paper-figure {
  padding: 16px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(253, 254, 255, 0.98), rgba(237, 242, 249, 0.86));
  align-self: start;
}

.paper-figure img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: contain;
}

.footer {
  margin-top: 54px;
  padding: 44px 0 20px;
  border-top: 1px solid rgba(123, 143, 167, 0.2);
  text-align: center;
  color: var(--soft);
}

.footer-copy,
.footer-contact {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.85;
}

.footer-contact {
  margin-top: 10px;
}

.footer a {
  color: #35527a;
  transition: color 180ms ease, opacity 180ms ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: #1f3652;
}

.footer-contact a[href^="mailto:"] {
  color: var(--muted);
}

@media (max-width: 1120px) {
  .hero-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-title-line,
  .paper-card h3 {
    max-width: none;
  }

  .hero-title-line {
    white-space: normal;
  }

  .hero-visual {
    padding-top: 0;
  }

  .paper-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 18px, 1240px);
    padding-top: 18px;
  }

  .topbar {
    top: 0;
  }

  .topbar-inner {
    width: min(100% - 18px, 1240px);
    min-height: 78px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 12px 0;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    padding-top: 28px;
  }

  .paper-card {
    padding: 22px;
  }
}

@media (max-width: 620px) {
  body::before {
    opacity: 0.45;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-title-line {
    font-size: clamp(2.3rem, 11vw, 3.4rem);
    line-height: 0.98;
  }

  .hero-subtitle {
    margin-top: 14px;
    font-size: clamp(1.45rem, 7vw, 2.15rem);
    line-height: 1.12;
  }

  .hero-lead,
  .section-summary,
  .paper-copy p,
  .paper-tagline,
  .mini-panel p {
    font-size: 1rem;
    line-height: 1.72;
  }

  .hero-visual-frame {
    border-radius: 28px;
  }

  .thread {
    padding-left: 20px;
  }

  .paper-card::before {
    left: -20px;
  }

  .paper-figure {
    padding: 10px;
  }

  .footer {
    margin-top: 42px;
    padding-top: 32px;
  }

  .footer-copy,
  .footer-contact {
    font-size: 0.94rem;
    line-height: 1.8;
  }
}
