/*  ROOT */
:root {
  --font-body: "Manrope", sans-serif;
  --font-heading: "DM Serif Display", serif;
  --ink: #111111;
  --muted: #6b6b6b;
  --soft: #8a8a8a;
  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.22);
  --paper: #fafafa;
  --white: #ffffff;
  --panel: rgba(255, 255, 255, 0.72);
  --dark: #111111;
  --accent: #555555;
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.08);
  --scroll-progress: 0%;
  --visual-shift: 0px;
}

/*  RESET */
* {
  box-sizing: border-box;
  font-family: var(--font-body);
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/*  NETWORK BACKGROUND */
#network-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  pointer-events: none;
  opacity: 0.8;
}

/*  PAGE PROGRESS */
.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 9990;
  background: rgba(0, 0, 0, 0.04);
}

.page-progress-bar {
  width: 0;
  height: 100%;
  background: #111;
  transition: width 0.08s linear;
}

/*  RIGHT NAVBAR */
.right-navbar {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5000;
  padding: 11px 7px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  animation: navAppear 0.9s ease forwards;
}

.right-navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    #111 var(--scroll-progress),
    rgba(17, 17, 17, 0.08) var(--scroll-progress)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.nav-track {
  position: absolute;
  left: 50%;
  top: 18px;
  bottom: 18px;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(17, 17, 17, 0.22),
    transparent
  );
}

.nav-links {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: #777;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.5px;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease;
}

.nav-item:hover {
  transform: translateX(-7px) scale(1.08);
  color: #fff;
  background: #111;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
}

.nav-item.active {
  color: #fff;
  background: #111;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
}

.nav-item::after {
  content: "";
  position: absolute;
  right: calc(100% + 13px);
  width: 0;
  height: 1px;
  background: #111;
  opacity: 0;
  transition:
    width 0.3s ease,
    opacity 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 18px;
  opacity: 0.6;
}

@keyframes navAppear {
  from {
    opacity: 0;
    transform: translate(30px, -50%);
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

/*  HERO */
.project-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 42px 9vw 35px;
  overflow: hidden;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 300px;
  gap: 55px;
  align-items: center;
}

.hero-index {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  color: #777;
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 1.8px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero-main {
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: #777;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 3px;
}

.hero-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: #111;
}

.hero-title {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(4rem, 8vw, 8.8rem);
  font-weight: 500;
  font-style: normal;
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.hero-title span {
  display: block;
  margin-left: 8vw;
  color: transparent;
  -webkit-text-stroke: 1px rgba(17, 17, 17, 0.65);
}

.hero-description {
  max-width: 650px;
  margin: 46px 0 0 8vw;
  color: #555;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 38px 0 0 8vw;
}

.hero-meta-item {
  min-width: 145px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(8px);
}

.meta-label {
  display: block;
  margin-bottom: 6px;
  color: #999;
  font-size: 8px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 1.6px;
}

.hero-meta-item strong {
  font-size: 12px;
  font-weight: 600;
}

.hero-side {
  display: flex;
  justify-content: center;
  align-items: center;
}

.signal-orbit {
  position: relative;
  width: 240px;
  height: 240px;
  animation: floatingOrbit 6s ease-in-out infinite;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(17, 17, 17, 0.13);
  border-radius: 50%;
}

.orbit-ring-one {
  transform: rotate(20deg) scaleY(0.55);
}

.orbit-ring-two {
  transform: rotate(-35deg) scaleY(0.55);
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: #fff;
  background: #111;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.orbit-core span {
  font-size: 25px;
  font-weight: 700;
}

.orbit-core small {
  margin-top: 2px;
  font-size: 7px;
  font-style: normal;
  letter-spacing: 2px;
}

.orbit-node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #555;
  font-size: 8px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.node-one {
  top: 5px;
  left: 95px;
}

.node-two {
  right: 0;
  bottom: 40px;
}

.node-three {
  left: 5px;
  bottom: 40px;
}

@keyframes floatingOrbit {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}

.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  color: #8a8a8a;
  font-size: 8px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 2px;
}

.insight-visual {
  margin: 38px 0 56px;
  padding: clamp(12px, 2vw, 20px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.insight-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.insight-visual figcaption {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #333;
  font-size: 9px;
  font-style: normal;
  transition: gap 0.3s ease;
}

.portfolio-return {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #333;
  font-size: 9px;
  font-style: normal;
  transition:
    color 0.25s ease,
    gap 0.25s ease;
}

.portfolio-return:hover {
  gap: 12px;
  color: #000;
}

.portfolio-return:focus-visible,
a:focus-visible {
  outline: 2px solid #111;
  outline-offset: 4px;
}

.scroll-cue:hover {
  gap: 18px;
}

/*  SECTIONS */
.project-section {
  position: relative;
  max-width: 1380px;
  margin: 0 auto;
  padding: 150px 8vw;
  scroll-margin-top: 50px;
  opacity: 0;
  transform: translateY(45px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8vw;
  right: 8vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.section-header {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 75px;
}

.section-number {
  color: #aaa;
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
}

.section-label {
  display: block;
  margin-bottom: 14px;
  color: #888;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 2.2px;
}

.section-title {
  max-width: 800px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 500;
  font-style: normal;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

/*  STORY */
.story-content {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 75px;
  align-items: center;
}

.story-lead {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 500;
  font-style: normal;
  line-height: 1.08;
}

.story-copy {
  max-width: 680px;
}

.story-copy p {
  margin: 0 0 22px;
  color: #555;
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.9;
}

.story-copy strong {
  color: #111;
}

.story-highlight {
  grid-column: 1 / -1;
  position: relative;
  margin-top: 25px;
  padding: 34px 40px;
  border-left: 2px solid #111;
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.045), transparent);
  transform: translateY(var(--visual-shift));
}

.highlight-mark {
  display: block;
  margin-bottom: 14px;
  color: #888;
  font-size: 8px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 2px;
}

.story-highlight p {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.3vw, 2.2rem);
  font-style: normal;
  line-height: 1.3;
}

/*  DATA CARDS */
.data-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.data-card {
  position: relative;
  min-height: 310px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition:
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.55s ease,
    border-color 0.3s ease;
  overflow: hidden;
}

.data-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.035);
  transition: transform 0.6s ease;
}

.data-card:hover {
  transform: translateY(-10px);
  border-color: rgba(17, 17, 17, 0.24);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
}

.data-card:hover::before {
  transform: scale(1.5);
}

.data-index {
  color: #aaa;
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
}

.data-icon {
  margin-top: 60px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #fff;
  background: #111;
  font-size: 15px;
}

.data-card h3 {
  margin: 25px 0 10px;
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 500;
  font-style: normal;
}

.data-card p {
  margin: 0;
  color: #707070;
  font-size: 12px;
  font-style: normal;
  line-height: 1.75;
}

/*  METRIC PANEL */
.metric-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 45px;
  margin-top: 55px;
  padding: 30px;
  border-radius: 20px;
  background: #111;
  color: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.14);
}

.metric-intro span {
  color: #888;
  font-size: 8px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 2px;
}

.metric-intro p {
  max-width: 280px;
  margin-top: 18px;
  color: #bbb;
  font-size: 12px;
  font-style: normal;
  line-height: 1.7;
}

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

.metric-card {
  min-height: 155px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  transition:
    transform 0.4s ease,
    background 0.4s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.09);
}

.metric-label {
  display: block;
  color: #777;
  font-size: 8px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 1.5px;
}

.metric-card strong {
  display: block;
  margin-top: 20px;
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 500;
  font-style: normal;
}

.metric-card small {
  color: #888;
  font-size: 9px;
  font-style: normal;
}

/*  FEATURE MATRIX */
.feature-matrix {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
}

.feature-row {
  display: grid;
  grid-template-columns: 70px 1fr 120px;
  gap: 25px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition:
    padding 0.4s ease,
    background 0.4s ease;
}

.feature-row:hover {
  padding-left: 18px;
  padding-right: 18px;
  background: rgba(255, 255, 255, 0.65);
}

.feature-number {
  color: #aaa;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
}

.feature-main h3 {
  margin: 0 0 7px;
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 500;
  font-style: normal;
}

.feature-main p {
  max-width: 650px;
  margin: 0;
  color: #707070;
  font-size: 12px;
  font-style: normal;
  line-height: 1.7;
}

.feature-tag {
  justify-self: end;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: #777;
  font-size: 7px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 1px;
}

/* ARCHITECTURE */
.architecture-flow {
  display: grid;
  grid-template-columns: 1fr 55px 1fr 55px 1fr 55px 1fr;
  align-items: center;
}

.architecture-node {
  min-height: 240px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
}

.architecture-node:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.architecture-index {
  color: #aaa;
  font-size: 8px;
  font-weight: 700;
  font-style: normal;
}

.architecture-node i {
  display: block;
  margin: 38px 0 20px;
  font-size: 22px;
}

.architecture-node h3 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-style: normal;
}

.architecture-node p {
  margin: 0;
  color: #777;
  font-size: 10px;
  font-style: normal;
  line-height: 1.6;
}

.architecture-connector {
  display: flex;
  justify-content: center;
}

.architecture-connector span {
  width: 100%;
  height: 1px;
  background: var(--line);
}

/* PIPELINE */
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 60px;
  position: relative;
}

.pipeline-line {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  z-index: 0;
}

.pipeline-step {
  position: relative;
  z-index: 1;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}

.pipeline-step span {
  display: block;
  margin-bottom: 8px;
  color: #999;
  font-size: 8px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 1.5px;
}

.pipeline-step strong {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  font-style: normal;
}

/* ENGINEERING */
.engineering-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.engineering-card {
  min-height: 300px;
  padding: 30px;
  border-top: 1px solid #111;
  border-bottom: 1px solid var(--line);
  transition:
    transform 0.45s ease,
    background 0.45s ease;
}

.engineering-card:hover {
  transform: translateY(-7px);
  background: rgba(255, 255, 255, 0.6);
}

.engineering-card > span {
  color: #aaa;
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
}

.engineering-card i {
  display: block;
  margin-top: 55px;
  font-size: 21px;
}

.engineering-card h3 {
  margin: 22px 0 10px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-style: normal;
}

.engineering-card p {
  margin: 0;
  color: #777;
  font-size: 11px;
  font-style: normal;
  line-height: 1.75;
}

/* EVALUATION */
.evaluation-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.evaluation-copy h3 {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 500;
  font-style: normal;
  line-height: 1.15;
}

.evaluation-copy p {
  color: #666;
  font-size: 14px;
  font-style: normal;
  line-height: 1.8;
}

.evaluation-metrics {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.evaluation-item {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  transition:
    transform 0.35s ease,
    background 0.35s ease;
}

.evaluation-item:hover {
  transform: translateX(6px);
  background: #fff;
}

.evaluation-item span {
  color: #aaa;
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
}

.evaluation-item strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 13px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.8px;
}

.evaluation-item p {
  margin: 0;
  color: #666;
  font-size: 12px;
  font-style: normal;
  line-height: 1.6;
}

/* LIMITATIONS */
.limitations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.limitation-card {
  min-height: 230px;
  padding: 30px;
  background: var(--paper);
  transition: background 0.4s ease;
}

.limitation-card:hover {
  background: #fff;
}

.limitation-card > span {
  color: #aaa;
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
}

.limitation-card h3 {
  margin: 45px 0 10px;
  font-family: var(--font-heading);
  font-size: 25px;
  font-style: normal;
}

.limitation-card p {
  max-width: 520px;
  margin: 0;
  color: #777;
  font-size: 11px;
  font-style: normal;
  line-height: 1.75;
}

.limitations-grid + .story-highlight {
  margin-top: 35px;
}

/* ROADMAP */
.roadmap {
  max-width: 1050px;
  margin: 0 auto;
}

.roadmap-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 35px;
  padding: 35px 0;
  border-bottom: 1px solid var(--line);
}

.roadmap-index {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
}

.roadmap-item span {
  color: #888;
  font-size: 8px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 2px;
}

.roadmap-item h3 {
  margin: 10px 0;
  font-family: var(--font-heading);
  font-size: 29px;
  font-weight: 500;
  font-style: normal;
}

.roadmap-item p {
  max-width: 680px;
  margin: 0;
  color: #777;
  font-size: 11px;
  font-style: normal;
  line-height: 1.8;
}

/* FINAL SECTION */
.final-section {
  padding-bottom: 100px;
}

.final-section::before {
  display: none;
}

.takeaways-content {
  max-width: 950px;
  margin-bottom: 70px;
}

.takeaways-content h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 6.8rem);
  font-weight: 500;
  font-style: normal;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.takeaways-content p {
  max-width: 650px;
  margin-top: 35px;
  color: #777;
  font-size: 13px;
  font-style: normal;
  line-height: 1.8;
}

.takeaway-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.takeaway-card {
  min-height: 180px;
  padding: 25px;
  background: var(--paper);
  transition:
    background 0.4s ease,
    transform 0.4s ease;
}

.takeaway-card:hover {
  background: #fff;
  transform: translateY(-5px);
}

.takeaway-card span {
  color: #aaa;
  font-size: 8px;
  font-weight: 700;
  font-style: normal;
}

.takeaway-card strong {
  display: block;
  margin-top: 50px;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 1.5px;
}

.takeaway-card p {
  margin: 8px 0 0;
  color: #777;
  font-size: 10px;
  font-style: normal;
  line-height: 1.6;
}

/* PROJECT RESOURCES */
.project-resources {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 8vw 130px;
  border-top: 1px solid var(--line);
}

.resources-heading h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 500;
  font-style: normal;
  line-height: 0.95;
}

.resources-heading p {
  margin: 18px 0 40px;
  color: #777;
  font-size: 11px;
  font-style: normal;
}

.project-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.project-link {
  position: relative;
  display: grid;
  grid-template-columns: 45px 1fr 30px;
  gap: 20px;
  align-items: center;
  min-height: 115px;
  padding: 20px 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.4s ease,
    box-shadow 0.4s ease;
}

.project-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(17, 17, 17, 0.06), transparent 55%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.project-link:hover {
  transform: translateY(-7px);
  background: #fff;
  box-shadow: var(--shadow);
}

.project-link:hover::before {
  transform: translateX(0);
}

.project-link-index {
  position: relative;
  z-index: 1;
  color: #aaa;
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
}

.project-link-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.project-link-content small {
  color: #999;
  font-size: 7px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 1.6px;
}

.project-link-content strong {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 500;
  font-style: normal;
}

.project-link > i {
  position: relative;
  z-index: 1;
  color: #555;
  transition: transform 0.35s ease;
}

.project-link:hover > i {
  transform: translate(4px, -4px);
}

/* FOOTER */
.footer-interesting {
  max-width: 1160px;
  margin: 38px auto 26px;
  padding: 26px clamp(20px, 4vw, 44px) 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.045);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.footer-interesting::before,
.footer-interesting::after {
  display: none;
}

.footer-interesting.visible {
  opacity: 1;
  transform: none;
}

.footer-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-simple-copy .footer-name {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 21px;
  transition: color 0.2s ease;
}

.footer-simple-copy .footer-name:hover {
  color: #555;
}

.footer-simple-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.project-footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.project-footer-actions a {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.7px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.project-footer-actions a:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.project-footer-actions a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.footer-meta {
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 9px;
  letter-spacing: 0.3px;
}

.footer-meta span:not(#year) {
  padding: 0 4px;
  color: var(--soft);
}

/* REVEAL STATES */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal--left {
  transform: translateX(-24px);
}

.reveal--right {
  transform: translateX(24px);
}

.reveal--scale {
  transform: scale(0.96);
}

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

.reduce-motion .reveal,
.reduce-motion .project-section {
  opacity: 1;
  transform: none;
  transition: none;
}

/* REDUCED MOTION */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* TABLET */
@media (max-width: 1200px) {
  .project-hero {
    padding-left: 6vw;
    padding-right: 6vw;
  }
  .hero-grid {
    grid-template-columns: 90px minmax(0, 1fr) 220px;
    gap: 35px;
  }
  .project-section {
    padding-left: 6vw;
    padding-right: 6vw;
  }
  .project-section::before {
    left: 6vw;
    right: 6vw;
  }
  .hero-title {
    font-size: clamp(4rem, 8vw, 7rem);
  }
  .architecture-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .architecture-connector {
    display: none;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .right-navbar {
    right: 10px;
    padding: 7px;
    border-radius: 16px;
  }
  .nav-links {
    gap: 5px;
  }
  .nav-item {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 8px;
  }
  .nav-item::after {
    display: none;
  }
  .project-hero {
    min-height: auto;
    padding: 35px 45px 70px 7vw;
  }
  .hero-grid {
    display: block;
  }
  .hero-index {
    display: none;
  }
  .hero-side {
    margin-top: 60px;
  }
  .hero-title {
    font-size: clamp(3.4rem, 15vw, 6rem);
  }
  .hero-title span {
    margin-left: 5vw;
  }
  .hero-description {
    margin-left: 5vw;
    font-size: 13px;
  }
  .hero-meta {
    margin-left: 5vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .hero-meta-item {
    min-width: 0;
  }
  .signal-orbit {
    width: 190px;
    height: 190px;
  }
  .node-one {
    left: 73px;
  }
  .hero-bottom {
    margin-top: 60px;
  }
  .project-section {
    padding: 100px 7vw;
  }
  .section-header {
    grid-template-columns: 45px 1fr;
    gap: 15px;
    margin-bottom: 50px;
  }
  .section-number {
    font-size: 30px;
  }
  .section-title {
    font-size: clamp(2.3rem, 10vw, 4rem);
  }
  .story-content {
    display: block;
  }
  .story-lead {
    margin-bottom: 35px;
  }
  .story-highlight {
    margin-top: 40px;
  }
  .data-grid,
  .engineering-grid {
    grid-template-columns: 1fr;
  }
  .metric-panel {
    display: block;
    margin-top: 40px;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .metric-intro {
    margin-bottom: 25px;
  }
  .architecture-flow {
    grid-template-columns: 1fr;
  }
  .pipeline {
    grid-template-columns: 1fr;
  }
  .pipeline-line {
    display: none;
  }
  .pipeline-step {
    opacity: 1;
    transform: none;
  }
  .evaluation-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .limitations-grid {
    grid-template-columns: 1fr;
  }
  .roadmap-item {
    grid-template-columns: 50px 1fr;
    gap: 20px;
  }
  .takeaway-grid {
    grid-template-columns: 1fr 1fr;
  }
  .project-links {
    grid-template-columns: 1fr;
  }
  .project-resources {
    padding-left: 7vw;
    padding-right: 7vw;
  }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
  .right-navbar {
    display: none;
  }
  .project-hero {
    padding-top: 28px;
  }
  .hero-title {
    font-size: 3.25rem;
  }
  .hero-description {
    margin-top: 32px;
  }
  .hero-meta {
    grid-template-columns: 1fr;
  }
  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .project-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .section-header {
    margin-bottom: 38px;
  }
  .section-number {
    font-size: 25px;
  }
  .section-title {
    font-size: 2.45rem;
  }
  .story-highlight {
    padding: 25px;
  }
  .data-card,
  .engineering-card {
    min-height: 260px;
  }
  .takeaway-grid {
    grid-template-columns: 1fr;
  }
  .project-link {
    grid-template-columns: 32px 1fr 22px;
    gap: 12px;
    padding: 17px;
  }
  .project-link-content strong {
    font-size: 17px;
  }
  .footer-simple {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .footer-interesting {
    margin: 26px 14px 18px;
  }

  .project-footer-actions {
    justify-content: flex-start;
  }
}

/* SELECTION */
::selection {
  color: #fff;
  background: #111;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .project-section {
    opacity: 1;
    transform: none;
  }

}
