/* =========================================================
   PRIMA — navy edition
   ========================================================= */

:root {
  --navy:        #0c1b3c;
  --navy-deep:   #06112a;
  --navy-soft:   #18295a;
  --navy-line:   rgba(244, 239, 230, 0.13);
  --cream:       #f4efe6;
  --cream-dim:   #d9d1c3;
  --teal:        #5fb5c4;
  --teal-deep:   #2f7e8e;
  --orange:      #e88a3c;
  --ink:         #0c1b3c;
  --rule:        rgba(244, 239, 230, 0.18);

  --f-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-serif:   "Instrument Serif", "Times New Roman", serif;
  --f-body:    "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--navy); }
body {
  font-family: var(--f-body);
  color: var(--cream);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}

::selection { background: var(--teal); color: var(--navy-deep); }

a { color: inherit; text-decoration: none; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
img { max-width: 100%; display: block; }

/* =========================================================
   INTRO
   ========================================================= */

.intro {
  position: fixed; inset: 0;
  background: var(--navy-deep);
  z-index: 100;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 28px;
  pointer-events: none;
  animation: introOut 0.8s 1.6s cubic-bezier(.7,.0,.2,1) forwards;
}
.intro-stack {
  display: flex; gap: 4px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(56px, 12vw, 180px);
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--cream);
}
.intro-line {
  display: inline-block; overflow: hidden;
}
.intro-line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: introLetter 0.7s cubic-bezier(.2,.7,.2,1) forwards;
}
.intro-line:nth-child(1) > span { animation-delay: 0.05s; }
.intro-line:nth-child(2) > span { animation-delay: 0.13s; }
.intro-line:nth-child(3) > span { animation-delay: 0.21s; }
.intro-line:nth-child(4) > span { animation-delay: 0.29s; }
.intro-line:nth-child(5) > span { animation-delay: 0.37s; }
.intro-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  display: flex; gap: 24px;
  opacity: 0;
  animation: introFade 0.6s 0.6s ease forwards;
}
@keyframes introLetter {
  to { transform: translateY(0); }
}
@keyframes introFade { to { opacity: 1; } }
@keyframes introOut {
  to { opacity: 0; transform: translateY(-30px); visibility: hidden; }
}

/* =========================================================
   NAV
   ========================================================= */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 32px;
  background: linear-gradient(to bottom, rgba(12,27,60,0.94), rgba(12,27,60,0.7) 70%, rgba(12,27,60,0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: padding 0.3s ease;
}
.nav.is-scrolled { padding: 10px 32px; }

.nav-brand {
  display: flex; align-items: center; gap: 14px;
  justify-self: start;
}
.nav-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  padding: 4px;
  transition: height 0.3s ease, padding 0.3s ease;
  display: block;
  flex-shrink: 0;
}
.nav.is-scrolled .nav-logo {
  height: 52px;
  padding: 2px;
}
.nav-brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav-brand-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.nav-brand-sub {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-top: 6px;
  line-height: 1.4;
}

.nav-links {
  display: flex; gap: 6px;
  align-items: center;
  justify-self: center;
}
.nav-links a {
  display: inline-flex; gap: 6px; align-items: baseline;
  font-family: var(--f-body);
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--cream);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { background: rgba(244,239,230,0.08); }
.nav-links a span {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--teal);
  opacity: 0.8;
  letter-spacing: 0.05em;
}

.nav-cta {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px 12px 16px;
  background: var(--cream);
  color: var(--navy-deep);
  border-radius: 999px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 14px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-cta:hover { transform: translateY(-1px); background: #fff; }
.nav-cta-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  position: relative;
}
.nav-cta-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--teal); opacity: 0.5;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 0.5; }
  50%     { transform: scale(1.6); opacity: 0; }
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding: 160px 36px 120px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.hero-eyebrow {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 24px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--cream);
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(95,181,196,0.18);
}
.eyebrow-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.hero-headline {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(64px, 13.5vw, 220px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  margin: 0 0 80px;
  color: var(--cream);
  text-wrap: balance;
}
.hero-titlerow {
  display: flex;
  align-items: stretch;
  gap: clamp(18px, 2.6vw, 48px);
}
.hero-logo {
  align-self: stretch;
  width: auto;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: left top;
  aspect-ratio: 1156 / 1235;
  flex: 0 0 auto;
  /* Hard cap based on font-size so the brain stays in proportion with the type */
  max-height: 1.95em;
}
.hero-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hero-prima { display: block; }
.hero-headline em {
  display: block;
  font-size: clamp(32px, 5.4vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--teal);
  margin-top: 0.22em;
  text-wrap: balance;
}
.hero-subheadline {
  display: block;
  font-family: var(--f-body);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--cream-dim);
  margin-top: 0.55em;
  text-transform: none;
}

.hero-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  margin-bottom: 100px;
  align-items: end;
}
.hero-lede p {
  font-family: var(--f-body);
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.35;
  font-weight: 400;
  margin: 0;
  color: var(--cream);
  max-width: 30ch;
}
.hero-lede strong {
  font-weight: 500;
  padding: 0 2px;
}

.hero-aside {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.hero-stat { display: flex; flex-direction: column; gap: 10px; }
.stat-num {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(34px, 3.2vw, 48px);
  letter-spacing: -0.03em;
  color: var(--teal);
  line-height: 1;
}
.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--orange);
  width: clamp(34px, 3.2vw, 48px);
  height: clamp(34px, 3.2vw, 48px);
}
.stat-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.stat-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  line-height: 1.4;
}

.hero-foot {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.big-btn {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 22px 28px;
  background: var(--cream);
  color: var(--navy-deep);
  border-radius: 18px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), background 0.3s ease;
}
.big-btn:hover { transform: translateY(-2px); background: #fff; }
.big-btn-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy-deep);
  color: var(--cream);
  font-size: 18px;
  transition: transform 0.3s ease;
}
.big-btn:hover .big-btn-arrow { transform: translateY(4px); }

.hero-foot-meta {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.hero-foot-rule {
  width: 80px; height: 1px; background: var(--rule);
}

/* =========================================================
   MARQUEE
   ========================================================= */

.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
  background: var(--navy-deep);
}
.marquee-track {
  display: inline-flex; gap: 36px;
  white-space: nowrap;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(34px, 4.5vw, 64px);
  letter-spacing: -0.03em;
  color: var(--cream);
  animation: marquee 32s linear infinite;
}
.marquee-track .m-dot {
  color: var(--teal);
  font-size: 0.6em;
  display: inline-flex; align-items: center;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =========================================================
   SECTION HEAD
   ========================================================= */

.section-head {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 56px;
}
.section-num { color: var(--teal); }
.section-name { color: var(--cream); }
.section-aside { margin-left: auto; }

/* =========================================================
   MISSION
   ========================================================= */

.mission {
  padding: 140px 36px 120px;
  border-bottom: 1px solid var(--rule);
}
.mission-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.mission-lead {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--cream);
  text-wrap: balance;
}
.mission-lead em { color: var(--orange); }

.mission-cols { display: grid; gap: 36px; }
.mission-cols .col-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.mission-cols p {
  font-size: 16px; line-height: 1.55;
  color: var(--cream); margin: 0;
  max-width: 42ch;
}

.mission-pull {
  margin-top: 140px;
  max-width: none;
  width: 100%;
}
.mission-pull p {
  font-family: var(--f-serif);
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--cream);
  text-wrap: balance;
}
.mission-pull em { color: var(--orange); font-style: italic; }

/* =========================================================
   RESEARCH
   ========================================================= */

.research {
  padding: 140px 36px 120px;
  border-bottom: 1px solid var(--rule);
}
.research-headline {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 130px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 80px;
  color: var(--cream);
}
.research-headline em { color: var(--teal); }

.research-list {
  list-style: none;
  padding: 0; margin: 0;
  border-top: 1px solid var(--rule);
}
.research-row {
  display: grid;
  grid-template-columns: 60px 1.4fr 1fr 200px;
  gap: 36px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  position: relative;
  transition: background 0.3s ease;
}
.research-row:hover { background: rgba(244,239,230,0.025); }
.research-row::before {
  content: ''; position: absolute;
  left: 0; right: 100%;
  top: 0; height: 1px;
  background: var(--teal);
  transition: right 0.5s cubic-bezier(.4,.1,.2,1);
}
.research-row:hover::before { right: 0; }

.row-idx {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.06em;
}
.row-body h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 32px);
  margin: 0 0 8px;
  color: var(--cream);
  letter-spacing: -0.02em;
  transition: transform 0.3s ease, color 0.3s ease;
}
.research-row:hover .row-body h3 { color: var(--teal); }
.row-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cream-dim);
  max-width: 56ch;
}
.row-meta {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.row-meta span:first-child { color: var(--cream); }

.row-thumb {
  width: 200px; height: 120px;
  background: var(--navy-deep);
  border: 1px solid var(--rule);
  color: var(--teal);
  overflow: hidden;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
}
.row-thumb svg { width: 100%; height: 100%; }
.research-row:hover .row-thumb { transform: scale(1.04); }

/* =========================================================
   APPROACH
   ========================================================= */

.approach {
  padding: 100px 36px;
  background: var(--cream);
  color: var(--navy-deep);
  border-bottom: 1px solid var(--rule);
}
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.approach-num {
  display: block;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--teal-deep);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.approach h4 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--navy-deep);
}
.approach p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(12, 27, 60, 0.72);
}

/* =========================================================
   PROJECTS
   ========================================================= */

.projects {
  padding: 140px 36px 120px;
  border-bottom: 1px solid var(--rule);
}
.projects-headline {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 130px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 80px;
  color: var(--cream);
}
.projects-headline em { color: var(--teal); }

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.project {
  display: flex; flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 32px;
  background: rgba(244,239,230,0.018);
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease;
  position: relative;
  overflow: hidden;
}
.project:hover {
  border-color: rgba(95,181,196,0.55);
  background: rgba(95,181,196,0.04);
  transform: translateY(-3px);
}
.project--feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.project--feature .project-viz {
  grid-row: 1 / span 4;
  grid-column: 2;
  margin-top: 0;
}

.project-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.project-code {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}
.project-status {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  color: var(--cream-dim);
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}
.project-status--live { color: #7fd8a4; }
.project-status--validation { color: #f0c47a; }
.project-status--pilot { color: var(--teal); }
.project-status--trial { color: #c79df0; }

.project h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--cream);
  line-height: 1.15;
  text-wrap: balance;
}
.project--feature h3 {
  font-size: clamp(28px, 2.8vw, 40px);
}
.project p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cream-dim);
  max-width: 56ch;
}
.project--feature p { font-size: 17px; max-width: 50ch; }

.project-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin: 0 0 24px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.project-meta > div { display: flex; flex-direction: column; gap: 4px; }
.project-meta dt {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin: 0;
}
.project-meta dd {
  margin: 0;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--cream);
  line-height: 1.35;
}

.project-viz {
  margin-top: auto;
  background: var(--navy-deep);
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--teal);
  aspect-ratio: 2 / 1;
  overflow: hidden;
}
.project-viz svg { width: 100%; height: 100%; display: block; }
.project--feature .project-viz { aspect-ratio: auto; height: 100%; min-height: 320px; }

/* =========================================================
   PEOPLE
   ========================================================= */


.people {
  padding: 140px 36px 120px;
  border-bottom: 1px solid var(--rule);
}
.people-headline {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 130px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 80px;
  color: var(--cream);
}
.people-headline em { color: var(--teal); }

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 36px;
}
.person {
  display: flex; flex-direction: column;
  gap: 18px;
}
.person-portrait {
  aspect-ratio: 4 / 5;
  background: var(--navy-deep);
  border: 1px solid var(--rule);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.person-portrait::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg,
      transparent 0 14px,
      rgba(95,181,196,0.07) 14px 15px);
}
.person-portrait::after {
  content: attr(data-initials);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 72px;
  letter-spacing: -0.04em;
  color: var(--teal);
  opacity: 0.55;
  position: relative;
}
.person:hover .person-portrait { transform: translateY(-4px); }

.person-body h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--cream);
}
.person-role {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.person-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cream-dim);
  max-width: 38ch;
}

.people-more {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 60px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--cream);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule);
  transition: gap 0.3s ease, color 0.3s ease;
}
.people-more:hover { color: var(--teal); gap: 16px; }

/* =========================================================
   PAPERS
   ========================================================= */

.papers {
  padding: 140px 36px 120px;
  border-bottom: 1px solid var(--rule);
}
.papers-list {
  list-style: none;
  padding: 0; margin: 0;
  border-top: 1px solid var(--rule);
}
.paper {
  display: grid;
  grid-template-columns: 100px 1fr 40px;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  cursor: pointer;
  transition: padding 0.35s cubic-bezier(.2,.7,.2,1);
}
.paper:hover { padding-left: 16px; }
.paper-year {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--teal);
  letter-spacing: 0.05em;
}
.paper-body h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 1.9vw, 28px);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--cream);
  transition: color 0.3s ease;
  text-wrap: balance;
  max-width: 60ch;
}
.paper:hover .paper-body h3 { color: var(--teal); }
.paper-venue {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.paper-arrow {
  font-family: var(--f-display);
  font-size: 24px;
  color: var(--cream-dim);
  text-align: right;
  transition: transform 0.3s ease, color 0.3s ease;
}
.paper:hover .paper-arrow { color: var(--teal); transform: translate(4px, -4px); }

/* =========================================================
   NEWS
   ========================================================= */

.news {
  padding: 140px 36px 120px;
  border-bottom: 1px solid var(--rule);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.news-card {
  padding: 28px 24px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 14px;
  background: rgba(244,239,230,0.015);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
  position: relative;
  min-height: 280px;
}
.news-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  background: rgba(95,181,196,0.04);
}
.news-date {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
}
.news-card h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--cream);
  line-height: 1.2;
}
.news-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cream-dim);
  flex: 1;
}
.news-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 5px 9px;
  border: 1px solid rgba(95,181,196,0.3);
  border-radius: 999px;
  margin-top: auto;
}

/* =========================================================
   JOIN
   ========================================================= */

.join {
  padding: 160px 36px;
  background: var(--cream);
  color: var(--navy-deep);
  position: relative;
  overflow: hidden;
}
.join::before {
  content: '';
  position: absolute;
  top: -200px; right: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95,181,196,0.18), transparent 70%);
  pointer-events: none;
}
.join-inner { position: relative; }
.join-eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 32px;
}
.join-headline {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(50px, 8vw, 130px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 80px;
  color: var(--navy-deep);
  text-wrap: balance;
}
.join-headline em { color: var(--teal-deep); }

.join-tracks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid rgba(12,27,60,0.15);
}
.join-track {
  display: flex; flex-direction: column; gap: 14px;
  padding: 32px 24px 28px 0;
  border-bottom: 1px solid rgba(12,27,60,0.15);
  transition: padding 0.35s ease;
}
.join-track + .join-track {
  border-left: 1px solid rgba(12,27,60,0.15);
  padding-left: 24px;
}
.join-track:hover { padding-top: 24px; }
.track-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.track-name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(24px, 2.5vw, 36px);
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  transition: transform 0.3s ease;
}
.join-track:hover .track-name { transform: translateX(6px); }
.track-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(12,27,60,0.6);
  letter-spacing: 0.06em;
}

/* =========================================================
   FOOT
   ========================================================= */

.foot {
  padding: 100px 36px 36px;
  background: var(--navy-deep);
  border-top: 1px solid var(--rule);
}
.foot-big {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(80px, 18vw, 280px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin: 0 0 80px;
  color: var(--cream);
  display: flex; align-items: baseline; gap: 0.15em;
}
.foot-big em { color: var(--teal); font-size: 0.55em; letter-spacing: -0.03em; }
.foot-big-sep { color: var(--teal); font-size: 0.5em; }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--rule);
}
.foot-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.foot-cols p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cream);
}
.foot-cols a {
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.foot-cols a:hover { color: var(--teal); border-color: var(--teal); }

.foot-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
  flex-wrap: wrap;
  gap: 12px;
}
.foot-meta-tick { color: var(--teal); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {
  .nav { grid-template-columns: 1fr auto; padding: 12px 16px; }
  .nav-links { display: none; }
  .nav-logo { height: 56px; padding: 2px; }
  .nav.is-scrolled .nav-logo { height: 46px; padding: 2px; }
  .hero, .mission, .research, .projects, .people, .papers, .news, .join, .foot { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 120px; }
  .hero-body { grid-template-columns: 1fr; gap: 48px; }
  .hero-aside { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .mission-grid { grid-template-columns: 1fr; gap: 48px; }
  .research-row {
    grid-template-columns: 40px 1fr;
    gap: 14px;
  }
  .row-meta, .row-thumb { display: none; }
  .approach-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .projects-grid { grid-template-columns: 1fr; gap: 20px; }
  .project--feature { grid-template-columns: 1fr; }
  .project--feature .project-viz { grid-row: auto; grid-column: auto; min-height: 220px; }
  .project { padding: 24px; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .join-tracks { grid-template-columns: 1fr; }
  .join-track + .join-track { border-left: none; padding-left: 0; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .paper { grid-template-columns: 70px 1fr 30px; gap: 16px; }
}

@media (max-width: 560px) {
  .approach-grid, .people-grid, .news-grid { grid-template-columns: 1fr; }
  .hero-aside { grid-template-columns: 1fr; }
  .nav-logo { height: 48px; padding: 2px; }
  .nav-brand-sub { display: none; }
}

/* Reveal animations (for in-view) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Coming-soon section stub ===== */
.coming-soon {
  padding: clamp(90px, 11vw, 160px) var(--gutter);
  border-top: 1px solid var(--rule);
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(40px, 6vw, 80px);
}
.coming-soon-msg {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--cream);
  opacity: 0.55;
  margin: 0;
}
/* Accent on placeholder pages is orange so it visually contrasts with the front page (teal). */
.coming-soon .section-num { color: var(--orange); }

/* Collaborate contact block */
.collab-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 900px;
}
.collab-label,
.collab-name,
.collab-role,
.collab-email {
  font-family: var(--f-mono);
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}
.collab-label { color: var(--cream-dim); margin-bottom: 24px; }
.collab-name  { color: var(--cream); }
.collab-role  { color: var(--orange); }
.collab-email {
  color: var(--cream);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  align-self: flex-start;
  margin-top: 16px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.collab-email:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
