/* ==========================================================================
   MOVE SYSTEM — Design system
   Brand kit derived from the MOVE System deck (05 Apr 2026)
   Primary: deep burgundy   #7A1F2E
   Ground : warm cream      #F5F2EE
   Ink    : graphite         #1A1A1A
   Grid   : faint dots       #D8D2C8
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/inter-300.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700.ttf") format("truetype");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-400.ttf") format("truetype");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-600.ttf") format("truetype");
}

:root {
  --burgundy: #7A1F2E;
  --burgundy-dark: #4E121C;
  --burgundy-soft: #B8606D;
  --cream: #F5F2EE;
  --cream-dark: #EDE7DD;
  --ink: #1A1A1A;
  --ink-soft: #3A3A3A;
  --muted: #6E6760;
  --grid: #D8D2C8;
  --gold: #B89264;
  /* subtle accent for data highlights */

  --font-display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  --nav-h: 64px;
  --radius-sm: 2px;
  --radius-md: 6px;
  --max-w: 1280px;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(circle at 1px 1px, var(--grid) 1px, transparent 0);
  background-size: 22px 22px;
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--burgundy);
  text-decoration: none
}

a:hover {
  color: var(--burgundy-dark)
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none
}

img,
svg {
  display: block;
  max-width: 100%
}

/* ---------- responsive research framework panels ---------- */
.research-framework {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .75fr);
  gap: 1rem;
  align-items: stretch;
}

.rf-streams {
  display: grid;
  gap: .75rem;
}

.rf-stream {
  border: 1px solid rgba(245, 242, 238, .14);
  background: rgba(245, 242, 238, .045);
  border-left: 3px solid var(--rf-color, #B89264);
  padding: 1rem 1.05rem;
  min-height: 92px;
}

.rf-stream-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .45rem;
}

.rf-stream h3,
.rf-platform h3 {
  margin: 0;
  color: var(--rf-color, #B89264);
  font-size: .92rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.rf-code {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  color: rgba(245, 242, 238, .38);
  font-size: .68rem;
  letter-spacing: .12em;
}

.rf-stream p,
.rf-platform p,
.rf-output p {
  margin: 0;
  color: rgba(245, 242, 238, .55);
  font-size: .86rem;
  line-height: 1.6;
}

.rf-platform {
  border: 1px solid rgba(245, 242, 238, .16);
  background: linear-gradient(160deg, rgba(122, 31, 46, .25), rgba(0, 0, 0, .14));
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.rf-platform::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(245, 242, 238, .08);
  pointer-events: none;
}

.rf-platform h3 {
  text-align: center;
  margin-bottom: .6rem;
}

.rf-platform p {
  text-align: center;
}

.rf-output-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .55rem;
  margin-top: 1rem;
}

.rf-output {
  border: 1px solid rgba(245, 242, 238, .12);
  background: rgba(245, 242, 238, .045);
  padding: .7rem .55rem;
  text-align: center;
}

.rf-output strong {
  display: block;
  color: var(--rf-color, #B89264);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .25rem;
}

.rf-output p {
  font-size: .72rem;
  line-height: 1.45;
}

.rf-note {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(245, 242, 238, .22);
}

@media (max-width: 900px) {
  .research-framework {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .rf-stream-head,
  .rf-output-grid {
    grid-template-columns: 1fr;
  }
  .rf-output-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 .4em
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -.02em
}

h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 500
}

h3 {
  font-size: 1.15rem;
  font-weight: 600
}

.eyebrow {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-shadow: 0 1px 8px rgba(245, 242, 238, 0.95);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--burgundy)
}

.kicker {
  color: var(--muted);
  font-size: .95rem
}

.serif {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--burgundy)
}

/* ---------- layout ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem)
}

section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem
}

@media (max-width:900px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr
  }
}

/* ---------- global nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 2rem);
  background: rgba(245, 242, 238, .78);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-bottom: 1px solid rgba(122, 31, 46, .08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-brand .logo-box {
  background: var(--ink);
  color: var(--cream);
  padding: 5px 9px;
  font-size: .72rem;
  letter-spacing: .12em;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-brand .logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-brand .logo-wordmark {
  font-weight: 700;
  font-size: .86rem;
  color: var(--burgundy);
  line-height: 1.1;
}

.nav-brand .logo-caption {
  color: var(--muted);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.1;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2.3rem);
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--burgundy);
  transition: all .25s;
  transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--burgundy)
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--burgundy);
  border-radius: 999px;
  overflow: hidden;
  font-size: .68rem;
  letter-spacing: .12em;
  font-weight: 700;
}

.lang-toggle button {
  padding: 5px 11px;
  color: var(--burgundy);
  transition: all .2s;
}

.lang-toggle button.active {
  background: var(--burgundy);
  color: var(--cream)
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  overflow: hidden;
}

#hub3d {
  position: absolute;
  inset: 0;
  z-index: 1
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem clamp(1rem, 4vw, 3rem) clamp(5rem, 12vh, 8rem);
  pointer-events: none;
  /* Soft vignette over white architectural canvas */
  background: radial-gradient(ellipse 72% 60% at 50% 50%,
      rgba(250, 248, 245, 0.88) 0%,
      rgba(250, 248, 245, 0.65) 42%,
      rgba(250, 248, 245, 0.20) 70%,
      transparent 100%);
}

.hero-content>* {
  pointer-events: auto;

}

.hero-title {
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 300;
  color: var(--burgundy);
  letter-spacing: -.03em;
  line-height: .95;
  margin: 0;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.90),
    0 2px 16px rgba(250, 248, 245, 0.95);
}

.hero-title em {
  font-style: normal;
  color: var(--burgundy-dark);
  font-weight: 500;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.90),
    0 2px 16px rgba(250, 248, 245, 0.95);
}

.hero-sub {
  margin-top: 1rem;
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  color: var(--ink);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 0 rgba(255,255,255,0.95), 0 2px 12px rgba(250,248,245,0.90);
}

.hero-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 3;
  white-space: nowrap;
}

.hero-hint::after {
  content: "";
  display: block;
  margin: .6rem auto 0;
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--burgundy), transparent);
  animation: hint 2.4s ease-in-out infinite;
}

@keyframes hint {

  0%,
  100% {
    opacity: .3;
    transform: scaleY(.7)
  }

  50% {
    opacity: 1;
    transform: scaleY(1)
  }
}

/* ---------- lab cards ---------- */
.lab-card {
  border: 1px solid rgba(122, 31, 46, .2);
  background: rgba(255, 253, 250, .6);
  padding: 1.6rem 1.4rem 1.8rem;
  transition: all .3s;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.lab-card:hover {
  background: var(--cream);
  border-color: var(--burgundy);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(122, 31, 46, .25);
}

.lab-card .num {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--burgundy);
  letter-spacing: .18em;
  margin-bottom: .8rem;
}

.lab-card h3 {
  color: var(--burgundy);
  margin-bottom: .3rem
}

.lab-card p {
  font-size: .9rem;
  color: var(--ink-soft);
  margin: 0
}

.lab-card .arrow {
  position: absolute;
  right: 1.4rem;
  bottom: 1.4rem;
  font-size: 1.2rem;
  color: var(--burgundy);
  transition: transform .3s;
}

.lab-card:hover .arrow {
  transform: translateX(6px)
}

/* ---------- stats / stat cards ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 2rem 0
}

@media (max-width:900px) {
  .stat-row {
    grid-template-columns: repeat(2, 1fr)
  }
}

.stat {
  border-left: 2px solid var(--burgundy);
  padding: .8rem 0 .8rem 1.1rem;
}

.stat .val {
  font-size: 2rem;
  font-weight: 300;
  color: var(--burgundy);
  line-height: 1
}

.stat .lbl {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .3rem
}

/* ---------- feature rows ---------- */
.feature-row {
  display: flex;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--grid);
}

.feature-row:last-child {
  border-bottom: 1px solid var(--grid)
}

.feature-row .idx {
  font-family: var(--font-mono);
  color: var(--burgundy);
  font-size: .78rem;
  letter-spacing: .1em;
  min-width: 60px;
  padding-top: 3px;
}

.feature-row h4 {
  margin: 0 0 .25rem;
  font-size: 1rem;
  font-weight: 600
}

.feature-row p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem
}

/* ---------- people ---------- */
.person-card {
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(122, 31, 46, .12);
  transition: all .25s;
}

.person-card:hover {
  border-color: var(--burgundy);
  transform: translateY(-2px)
}

.person-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
  color: var(--cream);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: .9rem;
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 1px var(--burgundy);
}

.person-card .role {
  color: var(--burgundy);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .2rem
}

.person-card h4 {
  margin: .1rem 0 .3rem;
  font-size: 1rem
}

.person-card .email {
  font-size: .78rem;
  color: var(--muted);
  word-break: break-all;
  font-family: var(--font-mono)
}

.person-note {
  margin: .85rem 0 0;
  padding-top: .75rem;
  border-top: 1px solid rgba(122, 31, 46, .12);
  color: var(--ink-soft);
  font-size: .82rem;
  line-height: 1.5;
}

/* ---------- pills / chips ---------- */
.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .08em;
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
  margin: 3px 4px 3px 0;
}

.pill.dark {
  background: var(--burgundy);
  color: var(--cream)
}

/* ---------- section title block ---------- */
.section-head {
  margin-bottom: 3rem;
  max-width: 780px
}

.section-head p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0
}

/* ---------- funding map ---------- */
.funding-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.funding-card {
  position: relative;
  min-height: 250px;
  padding: 1.35rem;
  border: 1px solid rgba(122, 31, 46, .16);
  background:
    linear-gradient(180deg, rgba(255, 253, 250, .82), rgba(255, 253, 250, .56)),
    radial-gradient(circle at 100% 0, var(--funding-glow, rgba(122, 31, 46, .12)), transparent 46%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.funding-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(122, 31, 46, .08);
  pointer-events: none;
}

.funding-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 118px;
  height: 118px;
  border: 1px solid var(--funding-line, rgba(122, 31, 46, .25));
  border-radius: 50%;
  opacity: .7;
}

.funding-card--intl {
  --funding-glow: rgba(96, 144, 208, .16);
  --funding-line: rgba(96, 144, 208, .35);
}

.funding-card--national {
  --funding-glow: rgba(184, 146, 100, .18);
  --funding-line: rgba(184, 146, 100, .42);
}

.funding-card--private {
  --funding-glow: rgba(111, 207, 151, .16);
  --funding-line: rgba(111, 207, 151, .4);
}

.funding-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  position: relative;
  z-index: 1;
}

.funding-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  border-radius: 3px;
}

.funding-scale {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.funding-card h3 {
  position: relative;
  z-index: 1;
  margin: .15rem 0 0;
  color: var(--burgundy);
}

.funding-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.65;
}

.funding-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: auto;
}

.funding-tags span {
  border: 1px solid rgba(122, 31, 46, .18);
  background: rgba(245, 242, 238, .72);
  color: var(--burgundy);
  padding: .32rem .55rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  white-space: nowrap;
}

.funding-flow {
  margin-top: 1.4rem;
  border-top: 1px solid rgba(122, 31, 46, .16);
  border-bottom: 1px solid rgba(122, 31, 46, .16);
  padding: 1rem 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.funding-flow__item {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
}

.funding-flow__item span {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--burgundy);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: .72rem;
}

.funding-flow__item strong {
  color: var(--burgundy);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .funding-map,
  .funding-flow {
    grid-template-columns: 1fr;
  }
}

/* ---------- lab page hero ---------- */
.lab-hero {
  padding-top: calc(var(--nav-h) + 3.5rem);
  padding-bottom: 3rem;
  position: relative;
  border-bottom: 1px solid var(--grid);
}

.lab-hero .letters {
  position: absolute;
  top: 8vw;
  right: -3vw;
  font-size: clamp(10rem, 26vw, 28rem);
  font-weight: 300;
  color: rgba(122, 31, 46, .07);
  letter-spacing: -.05em;
  line-height: .8;
  pointer-events: none;
  user-select: none;
}

.lab-hero h1 {
  color: var(--burgundy);
  max-width: 900px;
  position: relative
}

.lab-hero .lead {
  max-width: 720px;
  font-size: 1.08rem;
  color: var(--ink-soft);
  position: relative
}

/* ---------- interactive demo canvas ---------- */
.demo-wrap {
  border: 1px solid var(--grid);
  background: var(--cream-dark);
  padding: 1rem;
  position: relative;
  margin-top: 1rem;
  border-radius: var(--radius-md);
}

.demo-canvas {
  width: 100%;
  height: 440px;
  background: #1a1a1a;
  display: block;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .8rem;
  align-items: center;
}

.btn {
  padding: 7px 16px;
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
  background: transparent;
  font-size: .82rem;
  letter-spacing: .06em;
  transition: all .2s;
  font-weight: 500;
}

.btn:hover {
  background: var(--burgundy);
  color: var(--cream)
}

.btn.primary {
  background: var(--burgundy);
  color: var(--cream)
}

.btn.primary:hover {
  background: var(--burgundy-dark)
}

.demo-status {
  margin-left: auto;
  font-size: .8rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ---------- timeline ---------- */
.timeline {
  position: relative;
  padding-left: 1.8rem;
  margin-top: 1rem
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--burgundy);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.6rem
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.8rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--burgundy);
}

.timeline-item .yr {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--burgundy);
  font-weight: 600;
}

.timeline-item h4 {
  margin: .2rem 0 .3rem;
  font-size: 1rem
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--grid);
  padding: 3rem 0 2rem;
  color: var(--muted);
  font-size: .88rem;
}

.footer .grid-2 {
  gap: 2rem
}

.footer a {
  color: var(--ink-soft)
}

.footer a:hover {
  color: var(--burgundy)
}

.footer .tiny {
  font-size: .76rem;
  color: var(--muted);
  margin-top: 1.5rem
}

/* ---------- helpers ---------- */
.hide {
  display: none !important
}

.mono {
  font-family: var(--font-mono)
}

.muted {
  color: var(--muted)
}

/* ---------- tech bento grid ---------- */
.tech-index {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}

.tech-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.tech-tools span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: .2rem .52rem;
  border: 1px solid rgba(122, 31, 46, .16);
  background: rgba(122, 31, 46, .05);
  color: var(--burgundy);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tech-bento {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 300px 280px 270px;
  gap: .75rem;
  margin-top: 2rem;
}

.tech-tile--abm { grid-row: span 2; }
.tech-tile--twin { grid-column: span 2; }

.tech-tile {
  position: relative;
  overflow: hidden;
  background: #0e060a;
}

.tech-tile-media {
  position: absolute;
  inset: 0;
}

.tech-tile-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}

.tech-tile:hover .tech-tile-media img {
  transform: scale(1.04);
}

.tech-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(
    to top,
    rgba(8, 3, 6, .94) 0%,
    rgba(8, 3, 6, .52) 52%,
    transparent 100%
  );
  color: #F5F2EE;
}

.tech-tile-overlay .tech-index {
  color: rgba(245, 242, 238, .48);
  margin-bottom: .3rem;
}

.tech-tile-overlay h3 {
  margin: 0 0 .55rem;
  font-size: clamp(1.05rem, 1.8vw, 1.42rem);
  line-height: 1.12;
  color: #F5F2EE;
}

.tech-tile-overlay p {
  margin: 0 0 .85rem;
  color: rgba(245, 242, 238, .68);
  font-size: .88rem;
  line-height: 1.55;
}

.tech-tile-overlay .tech-tools span {
  border-color: rgba(245, 242, 238, .2);
  background: rgba(245, 242, 238, .07);
  color: rgba(245, 242, 238, .72);
}

/* ML/AI card: invert the white-bg infographic for a dark-theme look */
.tech-tile--ai {
  background: #0a0f1a;
}

.tech-tile--ai .tech-tile-media img {
  filter: invert(1) brightness(.85);
  opacity: .92;
}

/* Digital Twin full-width layout */
.tech-tile--twin {
  display: grid;
  grid-template-columns: 3fr 2fr;
  min-height: 270px;
  position: relative;
}

.tech-tile-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  background: #0e060a;
  overflow: hidden;
  height: 100%;
}

.tech-tile-images img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}

.tech-tile-images img:first-child {
  grid-row: span 2;
}

.tech-tile--twin:hover .tech-tile-images img {
  transform: scale(1.04);
}

.tech-tile-twin-copy {
  background: #12080c;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #F5F2EE;
}

.tech-tile-twin-copy .tech-index {
  color: rgba(245, 242, 238, .48);
  margin-bottom: .3rem;
}

.tech-tile-twin-copy h3 {
  margin: 0 0 .65rem;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: #F5F2EE;
  line-height: 1.15;
}

.tech-tile-twin-copy p {
  margin: 0 0 1rem;
  color: rgba(245, 242, 238, .65);
  font-size: .88rem;
  line-height: 1.6;
}

.tech-tile-twin-copy .tech-tools span {
  border-color: rgba(245, 242, 238, .2);
  background: rgba(245, 242, 238, .07);
  color: rgba(245, 242, 238, .72);
}

/* tech facilities bar */
.tech-facilities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.tech-facilities > div {
  border-left: 3px solid var(--burgundy);
  background: rgba(255, 253, 250, .7);
  padding: 1rem 1.1rem;
}

.tech-facilities span {
  display: block;
  margin-bottom: .45rem;
  color: var(--burgundy);
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tech-facilities strong {
  display: block;
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .tech-bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .tech-tile--abm,
  .tech-tile--twin {
    grid-row: auto;
    grid-column: auto;
  }

  .tech-tile {
    min-height: 340px;
  }

  .tech-tile--twin {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .tech-tile-images {
    min-height: 260px;
  }

  .tech-tile-twin-copy {
    padding: 1.25rem;
  }

  .tech-facilities {
    grid-template-columns: 1fr;
  }
}

.divider {
  height: 1px;
  background: var(--grid);
  margin: 2.5rem 0
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--burgundy);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}

.back-link::before {
  content: "←"
}

/* ---------- about two-column ---------- */
.about-two-col {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  align-items: start;
  margin-bottom: 3.5rem;
}

@media (max-width: 900px) {
  .about-two-col {
    grid-template-columns: 1fr;
  }

  .about-divider {
    display: none;
  }

  .about-col-left {
    padding-right: 0 !important;
  }

  .about-col-right {
    padding-left: 0 !important;
    margin-top: 2rem;
  }
}

/* ---------- mobile nav ---------- */
@media (max-width:820px) {
  .nav-links {
    display: none
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--grid);
    z-index: 51;
  }
}

.burger {
  display: none;
  padding: .5rem;
  color: var(--burgundy);
  font-size: 1.3rem
}

@media (max-width:820px) {
  .burger {
    display: block
  }
}
