:root {
  --ink: #07111e;
  --ink-soft: #152638;
  --paper: #f4f1e9;
  --paper-deep: #e9e4d8;
  --line: rgba(7, 17, 30, 0.18);
  --blue: #1647ff;
  --blue-bright: #4d7dff;
  --cyan: #1bd8ff;
  --lime: #c9f067;
  --white: #ffffff;
  --shadow: 0 28px 80px rgba(0, 18, 46, 0.16);
  --max: 1500px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

body::selection {
  color: white;
  background: var(--blue);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.setup-banner {
  align-items: center;
  background: var(--lime);
  color: var(--ink);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 18px;
  justify-content: center;
  padding: 9px 20px;
  position: relative;
  z-index: 50;
}

.setup-banner a {
  border-bottom: 1px solid currentColor;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(244, 241, 233, 0.86);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: auto 1fr auto;
  min-height: 82px;
  padding: 0 clamp(24px, 4vw, 74px);
  position: sticky;
  top: 0;
  z-index: 40;
}

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

.monogram {
  align-items: center;
  background: var(--ink);
  color: white;
  display: inline-flex;
  font-size: 16px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  letter-spacing: -1px;
  transform: rotate(-2deg);
  width: 42px;
}

.brand-name {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.site-header nav {
  display: flex;
  gap: clamp(15px, 2vw, 34px);
  justify-content: center;
}

.site-header nav a {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 31px 0 27px;
  position: relative;
  text-transform: uppercase;
}

.site-header nav a::after {
  background: var(--blue);
  bottom: 20px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
  width: 100%;
}

.site-header nav a:hover::after,
.site-header nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-tabs {
  align-items: center;
  border: 1px solid var(--line);
  display: flex;
  padding: 3px;
}

.language-tabs button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  padding: 7px 8px;
}

.language-tabs button.active {
  background: var(--ink);
  color: white;
}

.menu-button {
  display: none;
}

.language-notice {
  background: var(--ink);
  bottom: 24px;
  box-shadow: var(--shadow);
  color: white;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 13px;
  left: 50%;
  max-width: calc(100vw - 30px);
  opacity: 0;
  padding: 14px 18px;
  pointer-events: none;
  position: fixed;
  text-align: center;
  transform: translate(-50%, 20px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 100;
}

.language-notice a {
  color: var(--cyan);
}

.language-notice.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hero {
  background:
    radial-gradient(circle at 78% 32%, rgba(27, 216, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #f6f3ec 0%, #e7e9e6 65%, #d9e8ec 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  min-height: calc(100vh - 82px);
  overflow: hidden;
  padding: clamp(70px, 8vw, 128px) clamp(24px, 5vw, 88px) 82px;
  position: relative;
}

.hero::before {
  background-image:
    linear-gradient(rgba(7, 17, 30, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 17, 30, 0.055) 1px, transparent 1px);
  background-size: 68px 68px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(90deg, black, transparent 70%);
  pointer-events: none;
  position: absolute;
}

.hero-copy {
  align-self: center;
  max-width: 760px;
  position: relative;
  z-index: 3;
}

.eyebrow,
.kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.role {
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 650;
  margin: 0 0 20px;
}

.hero-status {
  align-items: center;
  display: flex;
  font-size: 11px;
  font-weight: 900;
  gap: 9px;
  letter-spacing: 0.12em;
  margin: 34px 0 18px;
}

.hero-status span {
  background: var(--lime);
  border: 4px solid rgba(201, 240, 103, 0.3);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(201, 240, 103, 0.17);
  height: 10px;
  width: 10px;
}

.hero h1,
.inner-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 6.25vw, 108px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.9;
  margin: 0;
  max-width: 1000px;
}

.hero .lede {
  color: var(--ink-soft);
  font-size: clamp(17px, 1.35vw, 23px);
  line-height: 1.6;
  margin: 32px 0 0;
  max-width: 710px;
}

.hero-actions,
.about-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.primary-action,
.secondary-action {
  align-items: center;
  border: 1px solid var(--ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 24px;
  justify-content: center;
  letter-spacing: 0.08em;
  min-height: 52px;
  padding: 0 24px;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-action {
  background: var(--ink);
  color: white;
}

.primary-action:hover,
.secondary-action:hover {
  box-shadow: 7px 7px 0 var(--blue);
  transform: translate(-3px, -3px);
}

.hero-visual {
  align-self: stretch;
  min-height: 620px;
  perspective: 1100px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 160ms ease-out;
  z-index: 2;
}

.visual-grid {
  background:
    linear-gradient(90deg, rgba(22, 71, 255, 0.11) 1px, transparent 1px),
    linear-gradient(rgba(22, 71, 255, 0.11) 1px, transparent 1px);
  background-size: 52px 52px;
  border: 1px solid rgba(22, 71, 255, 0.25);
  bottom: 3%;
  left: 5%;
  mask-image: linear-gradient(black 10%, transparent);
  position: absolute;
  right: -20%;
  top: 19%;
  transform: rotateX(67deg) translateZ(-140px);
  transform-origin: center bottom;
}

.hero-globe {
  filter: saturate(0.85) contrast(1.05);
  height: 82%;
  left: -10%;
  max-width: none;
  object-fit: contain;
  opacity: 0.88;
  position: absolute;
  top: 7%;
  transform: translateZ(-20px);
  width: 118%;
}

.inference-orb {
  aspect-ratio: 1;
  left: 43%;
  position: absolute;
  top: 24%;
  transform: translateZ(85px);
  width: min(29vw, 410px);
}

.orb-core {
  align-items: center;
  background: radial-gradient(circle at 35% 30%, white 0, var(--cyan) 9%, var(--blue) 42%, #071742 80%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  box-shadow:
    0 0 60px rgba(27, 216, 255, 0.6),
    inset -28px -34px 46px rgba(1, 5, 20, 0.48);
  color: white;
  display: flex;
  font-size: clamp(25px, 3vw, 48px);
  font-weight: 900;
  height: 34%;
  justify-content: center;
  left: 33%;
  letter-spacing: -0.08em;
  position: absolute;
  top: 33%;
  transform: translateZ(70px);
  width: 34%;
  z-index: 4;
}

.orbit {
  border: 1px solid rgba(22, 71, 255, 0.6);
  border-radius: 50%;
  inset: 10%;
  position: absolute;
}

.orbit-one {
  animation: orbit-spin 14s linear infinite;
  transform: rotateX(66deg) rotateZ(12deg);
}

.orbit-two {
  animation: orbit-spin-reverse 18s linear infinite;
  transform: rotateY(67deg) rotateZ(40deg);
}

.orbit-three {
  animation: orbit-spin 24s linear infinite;
  inset: 1%;
  transform: rotateX(52deg) rotateY(48deg);
}

.orb-node {
  background: var(--lime);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(201, 240, 103, 0.9);
  height: 14px;
  position: absolute;
  width: 14px;
  z-index: 5;
}

.node-0 { left: 12%; top: 20%; }
.node-1 { right: 9%; top: 31%; }
.node-2 { bottom: 14%; left: 28%; }
.node-3 { bottom: 7%; right: 31%; }
.node-4 { left: 0; top: 56%; }
.node-5 { right: 1%; top: 62%; }
.node-6 { left: 45%; top: 0; }
.node-7 { bottom: 0; left: 51%; }

.float-card {
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 71, 255, 0.26);
  box-shadow: var(--shadow);
  display: grid;
  gap: 5px;
  padding: 15px 18px;
  position: absolute;
  transform: translateZ(115px);
  z-index: 9;
}

.float-card small {
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.float-card strong {
  font-size: 13px;
}

.card-one {
  left: 5%;
  top: 24%;
}

.card-two {
  bottom: 22%;
  right: 1%;
}

.depth-label {
  bottom: 5%;
  color: rgba(7, 17, 30, 0.45);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.3em;
  position: absolute;
  right: 1%;
  transform: translateZ(50px);
}

.scroll-next {
  align-items: center;
  bottom: 24px;
  display: flex;
  font-size: 10px;
  font-weight: 900;
  gap: 11px;
  letter-spacing: 0.15em;
  position: absolute;
  right: 50%;
  text-transform: uppercase;
  transform: translateX(50%);
  z-index: 6;
}

.scroll-next i {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  font-style: normal;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.signal-strip {
  background: var(--ink);
  color: white;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  max-width: var(--max);
}

.signal-strip article {
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.17);
  display: flex;
  gap: 20px;
  min-height: 126px;
  padding: 24px clamp(22px, 4vw, 60px);
}

.signal-strip article:last-child {
  border: 0;
}

.signal-icon {
  align-items: center;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  display: flex;
  flex: 0 0 auto;
  font-family: Georgia, serif;
  font-size: 30px;
  height: 58px;
  justify-content: center;
  transform: rotate(-4deg);
  width: 58px;
}

.signal-strip strong,
.signal-strip small {
  display: block;
}

.signal-strip strong {
  font-size: 18px;
}

.signal-strip small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  line-height: 1.45;
  margin-top: 4px;
}

.section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(50px, 8vw, 130px);
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.42fr);
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(80px, 9vw, 150px) clamp(24px, 5vw, 82px);
}

.section-intro h2,
.nis-section h2,
.about-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(45px, 5vw, 82px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 14px 0 24px;
}

.section-intro > p:last-child,
.nis-section > div > p,
.about-section > div > p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
  max-width: 620px;
}

.research-body .statement {
  border-left: 4px solid var(--blue);
  font-family: Georgia, serif;
  font-size: clamp(24px, 2.7vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin: 0 0 58px;
  padding-left: 30px;
}

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

.depth-card {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(0, 24, 56, 0.06);
  padding: 28px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.depth-card:hover {
  box-shadow: 12px 16px 0 rgba(22, 71, 255, 0.11);
  transform: translate3d(-6px, -8px, 0);
}

.depth-card > span:first-child {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.depth-card h3 {
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1.1;
  margin: 45px 0 15px;
}

.depth-card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.architecture-section {
  background: var(--ink);
  color: white;
  max-width: none;
  padding-left: max(clamp(24px, 5vw, 82px), calc((100vw - var(--max)) / 2 + 82px));
  padding-right: max(clamp(24px, 5vw, 82px), calc((100vw - var(--max)) / 2 + 82px));
}

.architecture-section .section-intro > p:last-child {
  color: rgba(255, 255, 255, 0.62);
}

.architecture-model {
  background: white;
  color: var(--ink);
  padding: 0 38px 30px;
}

.architecture-head {
  align-items: center;
  border-bottom: 2px solid var(--ink);
  display: flex;
  font-size: 10px;
  font-weight: 900;
  justify-content: space-between;
  letter-spacing: 0.15em;
  min-height: 63px;
}

.architecture-head b {
  color: var(--blue);
}

.architecture-model ol {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.architecture-model li {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: 48px minmax(160px, 0.8fr) 1fr;
  min-height: 72px;
}

.architecture-model li b {
  color: var(--blue);
}

.architecture-model li span {
  font-family: Georgia, serif;
  font-size: 20px;
}

.architecture-model li small {
  color: rgba(7, 17, 30, 0.64);
}

.text-link {
  border-bottom: 1px solid currentColor;
  color: var(--blue);
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  padding-bottom: 4px;
  text-transform: uppercase;
}

.nis-section {
  align-items: center;
  background: linear-gradient(120deg, var(--paper-deep), white);
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
}

.nis-cube {
  height: 320px;
  margin: auto;
  perspective: 900px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 180ms ease-out;
  width: 320px;
}

.nis-cube::before,
.nis-cube::after {
  border: 1px solid rgba(22, 71, 255, 0.36);
  content: "";
  inset: 12%;
  position: absolute;
  transform: rotate(45deg) skew(7deg, 7deg);
}

.nis-cube::after {
  border-color: rgba(27, 216, 255, 0.65);
  transform: rotate(-45deg) skew(-7deg, -7deg) translateZ(50px);
}

.nis-cube span {
  align-items: center;
  background: var(--blue);
  box-shadow: 28px 32px 0 #061840;
  color: white;
  display: flex;
  font-family: Georgia, serif;
  font-size: 74px;
  height: 160px;
  justify-content: center;
  left: 80px;
  position: absolute;
  top: 78px;
  transform: translateZ(70px);
  width: 160px;
  z-index: 4;
}

.nis-cube i,
.nis-cube b {
  font-size: 9px;
  letter-spacing: 0.25em;
  position: absolute;
  writing-mode: vertical-rl;
}

.nis-cube i { left: 15px; top: 40px; }
.nis-cube b { bottom: 40px; right: 10px; }

.knowledge-cycle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}

.knowledge-cycle span {
  background: var(--ink);
  color: white;
  display: grid;
  font-size: 11px;
  font-weight: 800;
  gap: 4px;
  min-width: 112px;
  padding: 13px 15px;
}

.knowledge-cycle b {
  color: var(--cyan);
  font-size: 9px;
}

.publications-section {
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1.35fr);
}

.publication-list {
  border-top: 2px solid var(--ink);
}

.publication-list article {
  border-bottom: 1px solid var(--line);
  padding: 27px 4px 31px;
}

.publication-list article > div {
  color: var(--blue);
  display: flex;
  font-size: 9px;
  font-weight: 900;
  justify-content: space-between;
  letter-spacing: 0.13em;
}

.publication-list h3 {
  font-family: Georgia, serif;
  font-size: clamp(23px, 2.5vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 16px 0 12px;
}

.publication-list p {
  color: var(--ink-soft);
  margin: 0 0 12px;
  max-width: 840px;
}

.publication-list article a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.publication-list > .text-link {
  margin-top: 30px;
}

.about-section {
  align-items: center;
  background: var(--blue);
  color: white;
  max-width: none;
  padding-left: max(clamp(24px, 5vw, 82px), calc((100vw - var(--max)) / 2 + 82px));
  padding-right: max(clamp(24px, 5vw, 82px), calc((100vw - var(--max)) / 2 + 82px));
}

.about-section .kicker {
  color: var(--lime);
}

.about-section > div > p {
  color: rgba(255, 255, 255, 0.78);
}

.about-index {
  border: 1px solid rgba(255, 255, 255, 0.44);
  display: grid;
  min-height: 280px;
  padding: 26px;
}

.about-index span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.about-index b {
  align-self: end;
  font-family: Georgia, serif;
  font-size: 48px;
}

.about-section .primary-action {
  background: white;
  border-color: white;
  color: var(--blue);
}

.about-section .secondary-action {
  border-color: white;
  color: white;
}

.site-footer {
  background: var(--ink);
  color: white;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 1fr;
  padding: 70px max(24px, calc((100vw - var(--max)) / 2 + 82px)) 32px;
}

.site-footer > div:first-child {
  align-items: center;
  display: flex;
  gap: 24px;
}

.footer-mark {
  align-items: center;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  display: flex;
  font-size: 22px;
  font-weight: 900;
  height: 68px;
  justify-content: center;
  width: 68px;
}

.site-footer p {
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}

.footer-links {
  align-content: center;
  display: grid;
  gap: 8px;
  justify-content: end;
  text-align: right;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

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

.site-footer small {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.45);
  grid-column: 1 / -1;
  padding-top: 24px;
}

/* Inner pages */
.inner-hero {
  background:
    radial-gradient(circle at 80% 15%, rgba(27, 216, 255, 0.22), transparent 30%),
    var(--ink);
  color: white;
  display: grid;
  gap: 70px;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  min-height: 720px;
  overflow: hidden;
  padding: clamp(90px, 9vw, 145px) max(24px, calc((100vw - var(--max)) / 2 + 82px));
  position: relative;
}

.inner-hero::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.inner-hero > * {
  align-self: center;
  position: relative;
  z-index: 2;
}

.inner-hero h1 span {
  color: var(--cyan);
}

.inner-hero > div:first-child > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
  font-size: 19px;
  line-height: 1.7;
  max-width: 720px;
}

.inner-hero .primary-action {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}

.inner-hero .secondary-action {
  border-color: rgba(255, 255, 255, 0.7);
  color: white;
}

.inference-core {
  aspect-ratio: 1;
  margin: auto;
  max-width: 530px;
  perspective: 900px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 180ms ease-out;
  width: 100%;
}

.core-ring {
  border: 1px solid rgba(27, 216, 255, 0.54);
  border-radius: 50%;
  inset: 11%;
  position: absolute;
}

.ring-a {
  animation: orbit-spin 16s linear infinite;
  transform: rotateX(70deg);
}

.ring-b {
  animation: orbit-spin-reverse 20s linear infinite;
  transform: rotateY(70deg);
}

.ring-c {
  animation: orbit-spin 26s linear infinite;
  inset: 1%;
  transform: rotateX(52deg) rotateY(40deg);
}

.core-center {
  align-items: center;
  background: radial-gradient(circle at 33% 26%, white 0, var(--cyan) 7%, var(--blue) 42%, #050b19 87%);
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(27, 216, 255, 0.44);
  display: flex;
  flex-direction: column;
  height: 35%;
  justify-content: center;
  left: 32.5%;
  position: absolute;
  top: 32.5%;
  transform: translateZ(80px);
  width: 35%;
}

.core-center b {
  font-family: Georgia, serif;
  font-size: 44px;
}

.core-center span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.core-satellite {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 10px 14px;
  position: absolute;
  text-transform: uppercase;
}

.sat-a { left: 4%; top: 21%; transform: translateZ(45px); }
.sat-b { right: 0; top: 35%; transform: translateZ(90px); }
.sat-c { bottom: 16%; left: 19%; transform: translateZ(100px); }
.sat-d { bottom: 4%; right: 22%; transform: translateZ(35px); }

.definition-pair {
  grid-template-columns: 1fr 1fr;
}

.definition-pair .depth-card {
  min-height: 430px;
  padding: clamp(30px, 4vw, 58px);
}

.big-code {
  color: var(--blue) !important;
  font-family: Georgia, serif;
  font-size: clamp(58px, 6vw, 95px) !important;
  font-weight: 500;
  letter-spacing: -0.07em;
}

.definition-pair .depth-card h2,
.definition-pair .depth-card h3 {
  font-family: Georgia, serif;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.05;
  margin: 25px 0;
}

.definition-pair .depth-card strong {
  color: var(--blue);
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  margin-top: 30px;
}

.relationship-section {
  background: var(--paper-deep);
  display: block;
}

.relationship-section .section-intro {
  max-width: 900px;
}

.relationship-flow {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  margin-top: 58px;
}

.relationship-flow article {
  background: white;
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
  min-height: 160px;
  padding: 30px;
}

.relationship-flow article b {
  color: var(--blue);
  font-family: Georgia, serif;
  font-size: 42px;
}

.relationship-flow article span {
  align-self: end;
  font-weight: 800;
}

.relationship-flow i {
  align-items: center;
  color: var(--blue);
  display: flex;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  justify-content: center;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.architecture-detail {
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.42fr);
}

.layer-stack {
  counter-reset: layers;
  display: grid;
  gap: 8px;
  perspective: 1100px;
}

.layer-stack article {
  align-items: center;
  background: var(--ink);
  border-left: 6px solid var(--blue);
  color: white;
  display: grid;
  gap: 18px;
  grid-template-columns: 54px minmax(180px, 0.7fr) 1fr;
  min-height: 90px;
  padding: 17px 25px;
  transform: translateZ(0);
  transition: transform 180ms ease, background 180ms ease;
}

.layer-stack article:hover {
  background: var(--blue);
  transform: translate3d(-8px, -4px, 28px);
}

.layer-stack article > b {
  color: var(--cyan);
}

.layer-stack article h3 {
  font-family: Georgia, serif;
  font-size: 22px;
  margin: 0;
}

.layer-stack article p {
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  margin: 0;
}

.cycle-section {
  background: var(--ink);
  color: white;
  max-width: none;
  padding-left: max(24px, calc((100vw - var(--max)) / 2 + 82px));
  padding-right: max(24px, calc((100vw - var(--max)) / 2 + 82px));
}

.cycle-section .section-intro > p:last-child {
  color: rgba(255, 255, 255, 0.65);
}

.cycle-wheel {
  aspect-ratio: 1;
  border: 1px solid rgba(27, 216, 255, 0.4);
  border-radius: 50%;
  margin: auto;
  max-width: 580px;
  position: relative;
  width: 100%;
}

.cycle-wheel::before,
.cycle-wheel::after {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  content: "";
  inset: 17%;
  position: absolute;
}

.cycle-wheel::after {
  inset: 34%;
}

.wheel-center {
  align-items: center;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  height: 32%;
  justify-content: center;
  left: 34%;
  position: absolute;
  top: 34%;
  width: 32%;
  z-index: 3;
}

.wheel-center b {
  font-family: Georgia, serif;
  font-size: 52px;
}

.wheel-center span {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.wheel-item {
  background: white;
  color: var(--ink);
  display: grid;
  font-size: 11px;
  font-weight: 850;
  min-width: 100px;
  padding: 9px 12px;
  position: absolute;
  text-align: center;
}

.wheel-item b {
  color: var(--blue);
  font-size: 8px;
}

.wheel-0 { left: 41%; top: -3%; }
.wheel-1 { right: 2%; top: 17%; }
.wheel-2 { right: -7%; top: 54%; }
.wheel-3 { bottom: 3%; right: 13%; }
.wheel-4 { bottom: -3%; left: 28%; }
.wheel-5 { bottom: 18%; left: -6%; }
.wheel-6 { left: -5%; top: 23%; }

.application-section {
  display: block;
}

.application-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 55px;
}

.application-grid article {
  border: 1px solid var(--line);
  min-height: 275px;
  padding: 25px;
}

.application-grid b {
  color: var(--blue);
  font-family: Georgia, serif;
  font-size: 38px;
}

.application-grid h3 {
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1.08;
  margin: 45px 0 16px;
}

.application-grid p {
  color: var(--ink-soft);
  font-size: 13px;
}

.research-agenda {
  background: var(--paper-deep);
}

.agenda-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.agenda-list li {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: 60px 1fr;
  min-height: 95px;
}

.agenda-list b {
  color: var(--blue);
}

.agenda-list span {
  font-family: Georgia, serif;
  font-size: 21px;
}

.persian-summary {
  background: var(--blue);
  color: white;
  display: block;
  max-width: none;
  padding-left: max(24px, calc((100vw - var(--max)) / 2 + 82px));
  padding-right: max(24px, calc((100vw - var(--max)) / 2 + 82px));
  text-align: right;
}

.persian-summary .kicker {
  color: var(--lime);
}

.persian-summary h2 {
  font-family: Tahoma, Arial, sans-serif;
  font-size: clamp(35px, 4vw, 66px);
  line-height: 1.35;
  margin: 10px 0 25px;
  max-width: 1100px;
}

.persian-summary p:last-child {
  color: rgba(255, 255, 255, 0.8);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 18px;
  line-height: 2;
  max-width: 1060px;
}

.compact-hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.45fr);
  min-height: 590px;
}

.publication-counter {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  flex-direction: column;
  height: 280px;
  justify-content: center;
}

.publication-counter strong {
  color: var(--cyan);
  font-family: Georgia, serif;
  font-size: 100px;
  font-weight: 400;
  line-height: 1;
}

.publication-counter span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.publications-catalog {
  display: block;
}

.catalog-filter {
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 22px;
}

.catalog-filter button {
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 10px 16px;
  text-transform: uppercase;
}

.catalog-filter button.active,
.catalog-filter button:hover {
  background: var(--ink);
  color: white;
}

.catalog-list article {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(30px, 6vw, 90px);
  grid-template-columns: 210px 1fr;
  padding: 44px 0;
}

.catalog-list article[hidden] {
  display: none;
}

.catalog-meta {
  display: grid;
  font-size: 9px;
  font-weight: 900;
  gap: 18px;
  letter-spacing: 0.12em;
}

.catalog-meta span {
  color: var(--blue);
}

.catalog-meta b {
  font-family: Georgia, serif;
  font-size: 46px;
  font-weight: 400;
}

.catalog-list h2 {
  font-family: Georgia, serif;
  font-size: clamp(30px, 3vw, 50px);
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 0 0 16px;
}

.catalog-list p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 850px;
}

.catalog-list a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.theme-section {
  background: var(--paper-deep);
}

.theme-grid,
.collaboration-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

.theme-grid span,
.collaboration-grid span {
  background: white;
  border-left: 4px solid var(--blue);
  font-family: Georgia, serif;
  font-size: 19px;
  padding: 22px;
}

.cv-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
}

.cv-card {
  background: var(--blue);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 32px 32px 0 rgba(27, 216, 255, 0.13);
  display: grid;
  min-height: 420px;
  padding: 34px;
  perspective: 800px;
  transform-style: preserve-3d;
  transition: transform 180ms ease-out;
}

.cv-monogram {
  align-items: center;
  background: white;
  color: var(--blue);
  display: flex;
  font-family: Georgia, serif;
  font-size: 64px;
  height: 140px;
  justify-content: center;
  width: 140px;
}

.cv-card > span {
  align-self: end;
  color: var(--cyan);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.cv-card > strong {
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1.1;
}

.cv-card small {
  color: rgba(255, 255, 255, 0.62);
}

.cv-profile {
  grid-template-columns: 0.75fr 1.25fr;
}

.profile-copy > p {
  font-family: Georgia, serif;
  font-size: clamp(24px, 2.7vw, 42px);
  line-height: 1.4;
  margin-top: 0;
}

.profile-copy dl {
  border-top: 2px solid var(--ink);
}

.profile-copy dl div {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 160px 1fr;
  padding: 14px 0;
}

.profile-copy dt {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-copy dd {
  margin: 0;
}

.expertise-section {
  background: var(--paper-deep);
}

.expertise-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

.expertise-grid article {
  align-items: center;
  background: white;
  display: grid;
  gap: 16px;
  grid-template-columns: 48px 1fr;
  min-height: 76px;
  padding: 14px 20px;
}

.expertise-grid b {
  color: var(--blue);
}

.expertise-grid span {
  font-family: Georgia, serif;
  font-size: 17px;
}

.cv-frameworks {
  display: block;
}

.cv-frameworks .definition-pair {
  display: grid;
  gap: 18px;
  margin-top: 50px;
}

.collaboration-section {
  background: var(--blue);
  color: white;
  max-width: none;
  padding-left: max(24px, calc((100vw - var(--max)) / 2 + 82px));
  padding-right: max(24px, calc((100vw - var(--max)) / 2 + 82px));
}

.collaboration-section .kicker {
  color: var(--lime);
}

.collaboration-grid span {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--cyan);
}

/* Animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2, .75, .25, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes orbit-spin {
  to { transform: rotateX(66deg) rotateZ(372deg); }
}

@keyframes orbit-spin-reverse {
  to { transform: rotateY(67deg) rotateZ(-320deg); }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .menu-button {
    background: transparent;
    border: 1px solid var(--line);
    display: block;
    font-size: 11px;
    font-weight: 900;
    justify-self: end;
    padding: 8px 12px;
    text-transform: uppercase;
  }

  .site-header nav {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    padding: 15px 24px;
    position: absolute;
    right: 0;
    top: 82px;
  }

  .site-header nav.open {
    display: flex;
  }

  .site-header nav a {
    border-bottom: 1px solid var(--line);
    padding: 15px 0;
  }

  .site-header nav a::after {
    display: none;
  }

  .language-tabs {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-bottom: 20px;
  }

  .hero-visual {
    min-height: 540px;
  }

  .inference-orb {
    left: 36%;
    width: 380px;
  }

  .section,
  .architecture-detail,
  .cv-profile {
    gap: 55px;
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .site-header {
    gap: 12px;
    min-height: 68px;
    padding: 0 16px;
  }

  .brand-name {
    display: none;
  }

  .monogram {
    height: 38px;
    width: 38px;
  }

  .site-header nav {
    top: 68px;
  }

  .hero {
    min-height: auto;
    padding: 74px 20px 24px;
  }

  .hero h1,
  .inner-hero h1 {
    font-size: clamp(48px, 14vw, 74px);
  }

  .hero-visual {
    min-height: 430px;
  }

  .hero-globe {
    left: -12%;
    width: 125%;
  }

  .inference-orb {
    left: 28%;
    top: 16%;
    width: min(74vw, 340px);
  }

  .float-card {
    max-width: 180px;
  }

  .card-one { left: 0; top: 12%; }
  .card-two { bottom: 10%; right: 0; }

  .scroll-next {
    display: none;
  }

  .signal-strip,
  .topic-grid,
  .definition-pair,
  .expertise-grid,
  .theme-grid,
  .collaboration-grid {
    grid-template-columns: 1fr;
  }

  .signal-strip article {
    border-bottom: 1px solid rgba(255, 255, 255, 0.17);
    border-right: 0;
  }

  .section {
    padding: 78px 20px;
  }

  .architecture-section,
  .about-section,
  .cycle-section,
  .persian-summary,
  .collaboration-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .architecture-model {
    padding: 0 18px 24px;
  }

  .architecture-model li {
    align-items: start;
    gap: 8px;
    grid-template-columns: 36px 1fr;
    padding: 16px 0;
  }

  .architecture-model li small {
    grid-column: 2;
  }

  .nis-cube {
    height: 270px;
    width: 270px;
  }

  .nis-cube span {
    height: 140px;
    left: 65px;
    top: 65px;
    width: 140px;
  }

  .inner-hero {
    gap: 50px;
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 85px 20px;
  }

  .inference-core {
    max-width: 430px;
  }

  .relationship-flow {
    grid-template-columns: 1fr;
  }

  .relationship-flow i {
    min-height: 55px;
  }

  .layer-stack article {
    align-items: start;
    grid-template-columns: 40px 1fr;
  }

  .layer-stack article p {
    grid-column: 2;
  }

  .cycle-wheel {
    margin-top: 20px;
  }

  .wheel-item {
    min-width: 78px;
    padding: 7px 8px;
  }

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

  .catalog-list article {
    gap: 20px;
    grid-template-columns: 1fr;
  }

  .catalog-meta {
    grid-template-columns: 1fr auto;
  }

  .catalog-meta b {
    font-size: 34px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 55px 20px 25px;
  }

  .footer-links {
    justify-content: start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
