:root {
  --navy-950: #050b14;
  --navy-900: #07111f;
  --navy-850: #0a1628;
  --navy-800: #0e1c31;
  --navy-700: #183150;
  --blue-600: #1769e0;
  --blue-500: #2f80ed;
  --cyan-400: #41c7e8;
  --violet-500: #7d6cf2;
  --green-400: #46d39a;
  --red-500: #cc0000;
  --slate-900: #172033;
  --slate-700: #46536a;
  --slate-600: #607087;
  --slate-500: #7b8799;
  --slate-300: #cad2de;
  --slate-200: #e2e7ee;
  --slate-100: #f2f5f8;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 12px 32px rgba(7, 17, 31, 0.08);
  --shadow-md: 0 22px 60px rgba(7, 17, 31, 0.12);
  --shadow-dark: 0 22px 70px rgba(0, 0, 0, 0.26);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: 1220px;
  --header-height: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--slate-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
::selection { background: rgba(47, 128, 237, .22); }

.skip-link {
  position: fixed;
  left: 18px;
  top: -80px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--white);
  color: var(--navy-900);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.skip-link:focus { top: 16px; }

.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
.section { padding: 108px 0; }
.section-light { background: var(--white); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(5, 11, 20, .88);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { background: rgba(5, 11, 20, .96); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.nav-shell { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); min-width: max-content; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.17);
  background: linear-gradient(145deg, rgba(47,128,237,.24), rgba(65,199,232,.10));
  border-radius: 11px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.12; }
.brand-copy strong { font-size: 14px; }
.brand-copy small { margin-top: 4px; color: rgba(255,255,255,.56); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.site-nav { display: flex; align-items: center; gap: 27px; color: rgba(255,255,255,.72); font-size: 13px; font-weight: 600; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover, .site-nav a.active { color: var(--white); }
.nav-cta { padding: 10px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; }
.nav-cta:hover { border-color: rgba(255,255,255,.42); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--white); border-radius: 5px; transition: transform .2s ease, opacity .2s ease; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-height));
  padding: 82px 0 0;
  color: var(--white);
  background:
    radial-gradient(circle at 72% 28%, rgba(38,113,218,.21), transparent 28%),
    radial-gradient(circle at 14% 85%, rgba(65,199,232,.11), transparent 25%),
    linear-gradient(145deg, var(--navy-950), var(--navy-900) 54%, #0b1830);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: .17;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .17; pointer-events: none; }
.hero-glow-one { width: 420px; height: 420px; background: var(--blue-500); right: -190px; top: 40px; }
.hero-glow-two { width: 320px; height: 320px; background: var(--cyan-400); left: -180px; bottom: 80px; }
.hero-layout { position: relative; display: grid; grid-template-columns: 1.14fr .86fr; align-items: center; gap: 80px; min-height: 610px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.eyebrow { color: rgba(255,255,255,.64); }
.eyebrow::before, .section-kicker::before { content: ""; width: 25px; height: 1px; background: currentColor; }
.section-kicker-light { color: #81b8ff; }
.hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(48px, 6.1vw, 82px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 800;
}
.hero-lead { max-width: 735px; margin: 28px 0 0; color: rgba(255,255,255,.70); font-size: 18px; line-height: 1.75; }
.hero-lead strong { color: var(--white); font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { color: var(--white); background: linear-gradient(135deg, var(--blue-600), #2f80ed); box-shadow: 0 10px 30px rgba(23,105,224,.28); }
.button.primary:hover { box-shadow: 0 14px 36px rgba(23,105,224,.34); }
.button.secondary { border-color: var(--slate-200); color: var(--slate-900); background: var(--white); }
.button.secondary:hover { border-color: var(--blue-500); color: var(--blue-600); }
.button.light { color: var(--navy-900); background: var(--white); }
.button.outline-light { color: var(--white); border-color: rgba(255,255,255,.24); background: transparent; }
.button.outline-light:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.05); }
.hero .button.secondary { color: var(--white); background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); }
.hero .button.secondary:hover { background: rgba(255,255,255,.10); }
.text-link { color: rgba(255,255,255,.70); font-size: 13px; font-weight: 600; padding: 10px 3px; }
.text-link:hover { color: var(--white); }
.research-signature { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 32px; }
.research-signature span { padding: 8px 11px; border: 1px solid rgba(255,255,255,.10); border-radius: 8px; background: rgba(255,255,255,.035); color: rgba(255,255,255,.62); font-size: 11px; font-weight: 600; }
.hero-profile { position: relative; min-height: 535px; display: grid; place-items: center; }
.portrait-frame { position: relative; width: min(100%, 415px); height: 505px; border-radius: 30px; overflow: hidden; border: 1px solid rgba(255,255,255,.13); box-shadow: var(--shadow-dark); background: var(--navy-800); }
.portrait-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.portrait-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,11,20,.73), transparent 40%); }
.portrait-caption { position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(5,11,20,.62); backdrop-filter: blur(14px); color: rgba(255,255,255,.78); font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-400); box-shadow: 0 0 0 6px rgba(70,211,154,.11); }
.hero-metric { position: absolute; min-width: 155px; padding: 15px 17px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(10,22,40,.83); backdrop-filter: blur(12px); box-shadow: 0 16px 38px rgba(0,0,0,.18); }
.hero-metric strong { display: block; font-size: 23px; line-height: 1; }
.hero-metric span { display: block; margin-top: 6px; color: rgba(255,255,255,.56); font-size: 10px; }
.metric-a { left: -32px; top: 88px; }
.metric-b { right: -22px; bottom: 88px; }
.evidence-strip { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 60px; border-top: 1px solid rgba(255,255,255,.10); }
.evidence-item { padding: 25px 22px 26px 0; border-right: 1px solid rgba(255,255,255,.08); }
.evidence-item:not(:first-child) { padding-left: 30px; }
.evidence-item:last-child { border-right: 0; }
.evidence-item strong { display: block; font-size: 18px; color: var(--white); letter-spacing: -.02em; }
.evidence-item span { display: block; margin-top: 5px; color: rgba(255,255,255,.46); font-size: 11px; }

.section-heading { max-width: 770px; margin-bottom: 54px; }
.section-heading.heading-wide { max-width: none; display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; gap: 70px; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 4.3vw, 54px); line-height: 1.06; letter-spacing: -.045em; }
.section-heading p { margin: 20px 0 0; color: var(--slate-600); font-size: 16px; }
.heading-wide > p { margin: 0 0 4px; }

.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar-card { position: relative; min-height: 590px; padding: 30px; overflow: hidden; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.pillar-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #c3d6ee; }
.pillar-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--blue-500); }
.pillar-violet::before { background: var(--violet-500); }
.pillar-cyan::before { background: var(--cyan-400); }
.pillar-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--slate-500); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .11em; }
.pillar-number { color: var(--blue-600); }
.pillar-violet .pillar-number { color: var(--violet-500); }
.pillar-cyan .pillar-number { color: #1597b5; }
.pillar-icon { width: 58px; height: 58px; margin: 28px 0 24px; display: grid; place-items: center; border-radius: 15px; color: var(--blue-600); background: #ecf4ff; font-size: 13px; font-weight: 800; letter-spacing: .03em; }
.pillar-violet .pillar-icon { color: #6252d7; background: #f1efff; }
.pillar-cyan .pillar-icon { color: #0c8ca9; background: #e9f9fc; }
.pillar-card h3 { margin: 0; font-size: 25px; line-height: 1.22; letter-spacing: -.035em; }
.pillar-goal { min-height: 116px; margin: 16px 0 21px; color: var(--slate-600); font-size: 14px; }
.clean-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.clean-list li { position: relative; padding-left: 18px; color: var(--slate-700); font-size: 13px; line-height: 1.55; }
.clean-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-500); }
.pillar-violet .clean-list li::before { background: var(--violet-500); }
.pillar-cyan .clean-list li::before { background: var(--cyan-400); }
.pillar-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.pillar-tags span, .pub-tags span { padding: 6px 8px; border-radius: 7px; background: var(--slate-100); color: var(--slate-600); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

.research-loop-section { color: var(--white); background: linear-gradient(145deg, #07111f, #0b1b30); }
.research-loop-section .section-heading p, .infrastructure-section .section-heading p, .publications-section .section-heading p { color: rgba(255,255,255,.58); }
.research-loop { display: grid; grid-template-columns: repeat(11, auto); align-items: center; gap: 9px; }
.loop-step { width: 164px; min-height: 172px; padding: 21px 18px; border: 1px solid rgba(255,255,255,.10); border-radius: 16px; background: rgba(255,255,255,.035); }
.loop-step span { color: #6eabfb; font-size: 10px; font-weight: 800; }
.loop-step strong { display: block; margin-top: 24px; font-size: 17px; }
.loop-step small { display: block; margin-top: 7px; color: rgba(255,255,255,.46); font-size: 10px; line-height: 1.5; }
.loop-arrow { color: rgba(255,255,255,.26); font-size: 16px; }

.featured-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; }
.featured-card { padding: 30px; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-sm); }
.featured-card.featured-primary, .space-feature { min-height: 495px; }
.featured-badge { color: var(--blue-600); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.featured-card h3 { margin: 14px 0 14px; font-size: 26px; line-height: 1.2; letter-spacing: -.035em; }
.featured-card p { color: var(--slate-600); font-size: 13px; }
.project-story { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.project-story > div { padding: 17px; border-radius: 12px; background: var(--slate-50); }
.project-story strong { display: block; margin-bottom: 7px; color: var(--slate-900); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.project-story p { margin: 0; font-size: 11px; line-height: 1.62; }
.metric-row, .space-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 22px; }
.metric-row > div, .space-metrics > div { padding: 14px; border-left: 2px solid var(--blue-500); background: #f7faff; }
.metric-row strong, .space-metrics strong { display: block; font-size: 18px; line-height: 1.1; }
.metric-row span, .space-metrics span { display: block; margin-top: 5px; color: var(--slate-500); font-size: 9px; }
.card-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 23px; }
.card-links a { color: var(--blue-600); font-size: 11px; font-weight: 700; }
.card-links a:hover { text-decoration: underline; }
.mini-flow, .security-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 25px; }
.mini-flow span, .security-chain span { padding: 8px 9px; border-radius: 8px; background: var(--slate-100); color: var(--slate-700); font-size: 9px; font-weight: 700; }
.mini-flow i, .security-chain i { color: var(--slate-400); font-style: normal; }
.space-feature { background: linear-gradient(150deg, #f8fbff, #eef6ff); }

.infrastructure-section { color: var(--white); background: var(--navy-950); }
.infrastructure-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.infra-card { min-height: 290px; padding: 25px; border: 1px solid rgba(255,255,255,.09); border-radius: 16px; background: rgba(255,255,255,.035); }
.infra-index { color: #67a7fb; font-size: 10px; font-weight: 800; }
.infra-card h3 { margin: 44px 0 10px; font-size: 20px; }
.infra-card p { color: rgba(255,255,255,.48); font-size: 12px; }
.infra-chip { display: inline-block; margin-top: 15px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.10); border-radius: 7px; color: rgba(255,255,255,.64); font-size: 9px; font-weight: 700; }

.demo-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 58px; align-items: center; }
.demo-copy h2 { margin: 0; font-size: clamp(34px, 4vw, 50px); line-height: 1.07; letter-spacing: -.045em; }
.demo-copy > p { color: var(--slate-600); font-size: 14px; }
.demo-facts { display: grid; gap: 10px; margin: 25px 0 28px; }
.demo-facts > div { padding: 13px 0; border-bottom: 1px solid var(--slate-200); }
.demo-facts strong { display: block; font-size: 12px; }
.demo-facts span { display: block; margin-top: 3px; color: var(--slate-500); font-size: 10px; }
.video-frame { overflow: hidden; border: 1px solid var(--slate-200); border-radius: 20px; background: var(--navy-900); box-shadow: var(--shadow-md); }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; background: var(--navy-900); }
.video-caption { display: flex; justify-content: space-between; gap: 22px; margin-top: 13px; color: var(--slate-500); font-size: 9px; }
.video-caption strong { color: var(--slate-700); text-align: right; }

.impact-section { color: var(--white); background: linear-gradient(145deg, #0a1729, #0e2340); }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.impact-card { padding: 28px; border: 1px solid rgba(255,255,255,.10); border-radius: 16px; background: rgba(255,255,255,.035); }
.impact-card > strong { display: block; color: #85baff; font-size: 35px; line-height: 1; letter-spacing: -.045em; }
.impact-card h3 { margin: 30px 0 8px; font-size: 15px; }
.impact-card p { margin: 0; color: rgba(255,255,255,.46); font-size: 11px; }
.recognition-band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 25px; margin-top: 18px; padding: 27px 30px; border: 1px solid rgba(255,255,255,.10); border-radius: 16px; background: rgba(255,255,255,.035); }
.recognition-label { display: block; margin-bottom: 7px; color: #85baff; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.recognition-band strong { font-size: 17px; }
.recognition-band p { margin: 6px 0 0; color: rgba(255,255,255,.48); font-size: 11px; }
.recognition-mark { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.07); color: #ffd66e; font-size: 23px; }

.funding-card { display: grid; grid-template-columns: 250px 1fr; overflow: hidden; border: 1px solid var(--slate-200); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.funding-side { padding: 34px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; color: var(--white); background: linear-gradient(145deg, #0b2d5e, #0a1d3a); }
.nsf-mark { width: 82px; height: 82px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: #164d8d; font-size: 25px; font-weight: 800; letter-spacing: -.04em; }
.funding-side span { margin-top: 20px; color: rgba(255,255,255,.65); font-size: 10px; }
.funding-main { padding: 38px 42px; }
.funding-topline { display: flex; justify-content: space-between; align-items: center; gap: 14px; color: var(--blue-600); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.role-pill { padding: 7px 9px; border-radius: 999px; background: #edf5ff; }
.funding-main h3 { margin: 16px 0 10px; max-width: 820px; font-size: 26px; line-height: 1.25; letter-spacing: -.035em; }
.funding-main > p { color: var(--slate-600); font-size: 13px; }
.funding-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 25px 0; padding: 18px 0; border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }
.funding-meta small { display: block; color: var(--slate-500); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.funding-meta strong { display: block; margin-top: 5px; font-size: 12px; }

.publications-section { color: var(--white); background: #090909; }
.year-publications { margin-top: 34px; }
.year-block { display: grid; grid-template-columns: 190px 1fr; gap: 34px; padding: 34px 0 10px; border-top: 1px solid rgba(255,255,255,.14); }
.year-heading { position: sticky; top: 94px; align-self: start; }
.year-heading > span { display: block; color: var(--red-500, #CC0000); font-size: 33px; line-height: 1; font-weight: 850; letter-spacing: -.045em; }
.year-heading small { display: block; margin-top: 10px; color: rgba(255,255,255,.48); font-size: 12px; line-height: 1.5; }
.publication-list { border-top: 1px solid rgba(255,255,255,.08); }
.publication-item { display: grid; grid-template-columns: 68px 1fr; gap: 22px; padding: 27px 18px 27px 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.pub-date { padding-top: 5px; color: rgba(255,255,255,.42); font-size: 13px; font-weight: 750; }
.pub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 10px; }
.publisher-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; padding: 6px 10px; border-radius: 5px; font-size: 11px; line-height: 1; font-weight: 900; letter-spacing: .06em; }
.publisher-ieee { color: #fff; background: #CC0000; }
.publisher-acm { color: #090909; background: #fff; }
.venue-name { color: #fff; font-size: 13px; line-height: 1.3; font-weight: 800; letter-spacing: .015em; }
.pub-status { padding: 4px 8px; border: 1px solid rgba(255,255,255,.20); border-radius: 999px; color: rgba(255,255,255,.68); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.award-badge { padding: 5px 9px; border-radius: 999px; color: #090909; background: #f4c542; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.pub-body h4 { margin: 0; max-width: 980px; font-size: 19px; line-height: 1.43; font-weight: 680; }
.pub-body h4 a { color: #fff; }
.pub-body h4 a:hover { color: #ff6666; }
.pub-body > p { margin: 8px 0 0; color: rgba(255,255,255,.50); font-size: 12px; line-height: 1.55; }
.pub-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.pub-tags span { color: rgba(255,255,255,.58); background: rgba(255,255,255,.07); }
.featured-pub { background: linear-gradient(90deg, rgba(204,0,0,.12), transparent 75%); }
.award-pub { background: linear-gradient(90deg, rgba(244,197,66,.08), transparent 75%); }
.publication-note { display: flex; gap: 10px; margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.52); font-size: 12px; }
.publication-note strong { flex: 0 0 auto; color: #fff; }

.trajectory-section { background: #f4f7fa; }
.trajectory { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1.15fr; gap: 13px; align-items: stretch; }
.trajectory-item { padding: 25px; border: 1px solid var(--slate-200); border-radius: 16px; background: var(--white); }
.trajectory-year { color: var(--blue-600); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .10em; }
.trajectory-item h3 { margin: 32px 0 7px; font-size: 18px; }
.trajectory-item p { margin: 0; color: var(--slate-500); font-size: 10px; }
.trajectory-connector { align-self: center; color: var(--slate-300); }
.trajectory-future { color: var(--white); border-color: transparent; background: linear-gradient(145deg, #0b2f63, #0b1d37); box-shadow: var(--shadow-sm); }
.trajectory-future .trajectory-year { color: #87bbff; }
.trajectory-future p { color: rgba(255,255,255,.5); }

.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 75px; align-items: start; }
.about-copy h2 { margin: 0 0 20px; font-size: clamp(35px, 4vw, 50px); line-height: 1.08; letter-spacing: -.045em; }
.about-copy > p { color: var(--slate-600); font-size: 14px; }
.about-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.about-meta > div { padding-top: 15px; border-top: 1px solid var(--slate-200); }
.about-meta small { display: block; color: var(--slate-500); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.about-meta strong { display: block; margin-top: 5px; font-size: 11px; }
.teaching-panel { padding: 32px; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: var(--slate-50); }
.panel-label { color: var(--blue-600); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.teaching-panel h3 { margin: 12px 0 24px; font-size: 24px; line-height: 1.25; }
.teaching-item { padding: 17px 0; border-top: 1px solid var(--slate-200); }
.teaching-item > span { display: block; color: var(--slate-500); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.teaching-item strong { display: block; margin-top: 7px; font-size: 12px; }
.teaching-item small { display: block; margin-top: 4px; color: var(--slate-500); font-size: 10px; }

.contact-section { padding: 82px 0; color: var(--white); background: linear-gradient(135deg, #0d54ad, #0a2f65 60%, #071d39); }
.contact-layout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 55px; }
.contact-layout h2 { margin: 0; max-width: 760px; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -.045em; }
.contact-layout p { max-width: 760px; margin: 18px 0 0; color: rgba(255,255,255,.65); font-size: 13px; }
.contact-actions { display: flex; gap: 10px; }

.site-footer { padding: 28px 0; color: rgba(255,255,255,.55); background: var(--navy-950); border-top: 1px solid rgba(255,255,255,.07); }
.footer-layout { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 35px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { width: 36px; height: 36px; font-size: 11px; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.2; }
.footer-brand strong { color: rgba(255,255,255,.8); font-size: 11px; }
.footer-brand span { margin-top: 4px; font-size: 9px; }
.footer-links { display: flex; gap: 20px; font-size: 10px; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 9px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1180px) {
  .hero-layout { gap: 45px; }
  .metric-a { left: -5px; }
  .metric-b { right: -4px; }
  .research-loop { grid-template-columns: repeat(6, 1fr); gap: 11px; }
  .loop-step { width: auto; min-height: 160px; }
  .loop-arrow { display: none; }
  .infrastructure-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  :root { --header-height: 70px; }
  .container { width: min(var(--container), calc(100% - 36px)); }
  .section { padding: 84px 0; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    width: min(360px, 88vw);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: rgba(5,11,20,.98);
    transform: translateX(102%);
    transition: transform .25s ease;
    box-shadow: -18px 0 45px rgba(0,0,0,.25);
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a { padding: 12px 10px; }
  .nav-cta { border-radius: 9px; margin-top: 8px; text-align: center; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding-top: 62px; }
  .hero-layout { grid-template-columns: 1fr; gap: 42px; }
  .hero-profile { min-height: 475px; }
  .portrait-frame { height: 455px; }
  .evidence-strip { grid-template-columns: repeat(2, 1fr); }
  .evidence-item:nth-child(2) { border-right: 0; }
  .section-heading.heading-wide { grid-template-columns: 1fr; gap: 15px; }
  .heading-wide > p { max-width: 730px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-card { min-height: auto; }
  .pillar-goal { min-height: 0; }
  .research-loop { grid-template-columns: repeat(3, 1fr); }
  .year-block { grid-template-columns: 1fr; gap: 16px; }
  .year-heading { position: static; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-card.featured-primary, .space-feature { min-height: 0; }
  .demo-layout { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .funding-card { grid-template-columns: 1fr; }
  .funding-side { min-height: 190px; }
  .trajectory { grid-template-columns: repeat(2, 1fr); }
  .trajectory-connector { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 45px; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-actions { justify-content: flex-start; }
  .footer-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .publication-item { grid-template-columns: 1fr; gap: 8px; padding-right: 0; }
  .pub-date { padding-top: 0; }
  .pub-body h4 { font-size: 17px; }
  .publication-note { flex-direction: column; }
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 70px 0; }
  .brand-copy small { display: none; }
  .hero { padding-top: 50px; }
  .hero h1 { font-size: clamp(44px, 13vw, 64px); }
  .hero-lead { font-size: 15px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { width: 100%; text-align: center; }
  .research-signature span { flex: 1 1 calc(50% - 8px); text-align: center; }
  .hero-profile { min-height: 410px; }
  .portrait-frame { height: 405px; border-radius: 22px; }
  .hero-metric { display: none; }
  .evidence-strip { grid-template-columns: 1fr 1fr; margin-top: 42px; }
  .evidence-item { padding: 20px 13px 20px 0; }
  .evidence-item:not(:first-child) { padding-left: 13px; }
  .evidence-item:nth-child(odd) { padding-left: 0; }
  .evidence-item strong { font-size: 15px; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2 { font-size: 36px; }
  .pillar-card, .featured-card, .teaching-panel { padding: 23px; }
  .project-story, .metric-row, .space-metrics { grid-template-columns: 1fr; }
  .research-loop { grid-template-columns: 1fr 1fr; }
  .loop-step { min-height: 150px; }
  .infrastructure-grid, .impact-grid { grid-template-columns: 1fr; }
  .video-caption { flex-direction: column; }
  .video-caption strong { text-align: left; }
  .recognition-band { grid-template-columns: 1fr; }
  .recognition-mark { display: none; }
  .funding-main { padding: 26px 23px; }
  .funding-meta { grid-template-columns: 1fr; }
  .pub-group-heading, .publication-item { grid-template-columns: 48px 1fr; gap: 10px; }
  .trajectory { grid-template-columns: 1fr; }
  .about-meta { grid-template-columns: 1fr; }
  .contact-actions { flex-direction: column; }
  .contact-actions .button { width: 100%; }
  .footer-links { flex-wrap: wrap; }
}

/* =========================================================
   NC STATE BRAND + ACCESSIBILITY TYPOGRAPHY OVERRIDES
   Core palette: Wolfpack Red #CC0000, Black #000000, White #FFFFFF
   ========================================================= */
:root {
  --navy-950: #000000;
  --navy-900: #090909;
  --navy-850: #111111;
  --navy-800: #171717;
  --navy-700: #242424;
  --blue-600: #cc0000;
  --blue-500: #cc0000;
  --cyan-400: #cc0000;
  --violet-500: #990000;
  --green-400: #ffffff;
  --red-500: #cc0000;
  --slate-900: #111111;
  --slate-700: #333333;
  --slate-600: #555555;
  --slate-500: #686868;
  --slate-300: #c7c7c7;
  --slate-200: #dedede;
  --slate-100: #f2f2f2;
  --slate-50: #f8f8f8;
  --shadow-sm: 0 12px 32px rgba(0,0,0,.08);
  --shadow-md: 0 22px 60px rgba(0,0,0,.13);
  --header-height: 86px;
}

body {
  font-size: 18px;
  line-height: 1.72;
}
::selection { background: rgba(204,0,0,.18); }
.section { padding: 118px 0; }

.site-header {
  background: rgba(0,0,0,.94);
  border-bottom: 3px solid var(--red-500);
}
.site-header.scrolled { background: rgba(0,0,0,.98); }
.brand-mark {
  width: 48px;
  height: 48px;
  background: var(--red-500);
  border-color: var(--red-500);
  border-radius: 8px;
  font-size: 16px;
}
.brand-copy strong { font-size: 17px; }
.brand-copy small { font-size: 12px; color: rgba(255,255,255,.72); }
.site-nav { gap: 25px; font-size: 15px; }
.nav-cta { border-color: var(--red-500); background: var(--red-500); color: #fff !important; }
.nav-cta:hover { border-color: #fff; background: #990000; }

.hero {
  background:
    radial-gradient(circle at 77% 26%, rgba(204,0,0,.25), transparent 30%),
    radial-gradient(circle at 12% 88%, rgba(204,0,0,.13), transparent 26%),
    linear-gradient(145deg, #000000, #111111 58%, #1a0000);
}
.hero-glow-one, .hero-glow-two { background: var(--red-500); }
.hero-grid-bg { opacity: .12; }
.eyebrow, .section-kicker { color: var(--red-500); font-size: 13px; }
.eyebrow { color: rgba(255,255,255,.78); }
.section-kicker-light { color: #ff6b6b; }
.hero h1 { font-size: clamp(58px, 6.5vw, 94px); line-height: .99; }
.hero-lead { max-width: 780px; font-size: 21px; line-height: 1.72; color: rgba(255,255,255,.78); }
.button { min-height: 54px; padding: 0 24px; font-size: 15px; }
.button.primary { background: var(--red-500); box-shadow: 0 12px 30px rgba(204,0,0,.28); }
.button.primary:hover { background: #990000; box-shadow: 0 14px 34px rgba(204,0,0,.34); }
.button.secondary:hover { border-color: var(--red-500); color: var(--red-500); }
.text-link { font-size: 15px; }
.research-signature span { font-size: 13px; padding: 9px 13px; }
.portrait-frame { background: #111; border-color: rgba(204,0,0,.45); }
.portrait-caption { font-size: 14px; }
.status-dot { background: var(--red-500); box-shadow: 0 0 0 6px rgba(204,0,0,.13); }
.hero-metric { border-color: rgba(204,0,0,.40); background: rgba(10,10,10,.90); }
.hero-metric strong { font-size: 29px; }
.hero-metric span { font-size: 12px; }
.evidence-item strong { font-size: 22px; }
.evidence-item span { font-size: 13px; color: rgba(255,255,255,.60); }

.section-heading { max-width: 860px; }
.section-heading h2 { font-size: clamp(42px, 4.6vw, 62px); }
.section-heading p { font-size: 18px; }

.pillar-card::before,
.pillar-violet::before,
.pillar-cyan::before { background: var(--red-500); height: 5px; }
.pillar-topline { font-size: 12px; }
.pillar-number,
.pillar-violet .pillar-number,
.pillar-cyan .pillar-number { color: var(--red-500); }
.pillar-icon {
  color: var(--red-500);
  background: #fff0f0;
  font-size: 15px;
}
.pillar-card h3 { font-size: 29px; }
.pillar-goal { font-size: 16px; min-height: 128px; }
.clean-list li { font-size: 15px; }
.clean-list li::before,
.pillar-violet .clean-list li::before,
.pillar-cyan .clean-list li::before { background: var(--red-500); }
.pillar-tags span, .pub-tags span { font-size: 11px; }

.loop-step span { color: #ff6b6b; font-size: 12px; }
.loop-step strong { font-size: 20px; }
.loop-step small { font-size: 12px; }
.loop-arrow { color: rgba(255,255,255,.38); font-size: 19px; }

.featured-badge { color: var(--red-500); font-size: 12px; }
.featured-card h3 { font-size: 30px; }
.featured-card p { font-size: 15px; }
.project-story strong { font-size: 12px; }
.project-story p { font-size: 13px; }
.metric-row > div, .space-metrics > div { border-left-color: var(--red-500); background: #fff7f7; }
.metric-row strong, .space-metrics strong { font-size: 22px; }
.metric-row span, .space-metrics span { font-size: 11px; }
.card-links a { color: var(--red-500); font-size: 13px; }
.mini-flow span, .security-chain span { font-size: 11px; }
.space-feature { background: linear-gradient(150deg, #ffffff, #fff5f5); }

.infrastructure-section,
.publications-section,
.site-footer { background: #000000; }
.infra-index { color: #ff6b6b; font-size: 12px; }
.infra-card h3 { font-size: 24px; }
.infra-card p { font-size: 14px; color: rgba(255,255,255,.62); }
.infra-chip { font-size: 11px; }

.demo-copy h2 { font-size: clamp(42px, 4.4vw, 58px); }
.demo-copy > p { font-size: 16px; }
.demo-facts strong { font-size: 14px; }
.demo-facts span { font-size: 12px; }
.video-frame { background: #000; border-color: #d3d3d3; }
.video-caption { font-size: 11px; }

.impact-card > strong { color: #ff6b6b; font-size: 42px; }
.impact-card h3 { font-size: 18px; }
.impact-card p { font-size: 13px; color: rgba(255,255,255,.60); }
.recognition-label { color: #ff6b6b; font-size: 11px; }
.recognition-band strong { font-size: 20px; }
.recognition-band p { font-size: 13px; }
.recognition-mark { background: var(--red-500); color: #fff; }

.funding-topline { color: var(--red-500); font-size: 12px; }
.funding-main h3 { font-size: 30px; }
.funding-main > p { font-size: 15px; }
.funding-meta small { font-size: 11px; }
.funding-meta strong { font-size: 14px; }

.pub-group-heading > span { color: #ff6b6b; font-size: 13px; }
.pub-group-heading h3 { font-size: 27px; }
.pub-group-heading p { font-size: 13px; }
.pub-year { font-size: 13px; }
.pub-venue { color: #ff7777; font-size: 11px; }
.pub-body h4 { font-size: 19px; line-height: 1.5; }
.pub-body > p { font-size: 12px; color: rgba(255,255,255,.58); }

.trajectory-year { color: var(--red-500); font-size: 11px; }
.trajectory-item h3 { font-size: 22px; }
.trajectory-item p { font-size: 12px; }

.about-copy h2 { font-size: clamp(42px, 4.4vw, 58px); }
.about-copy > p { font-size: 16px; }
.about-meta small { font-size: 11px; }
.about-meta strong { font-size: 13px; }
.panel-label { color: var(--red-500); font-size: 11px; }
.teaching-panel h3 { font-size: 28px; }
.teaching-item > span { font-size: 11px; }
.teaching-item strong { font-size: 14px; }
.teaching-item small { font-size: 12px; }

.contact-layout h2 { font-size: clamp(42px, 4.6vw, 60px); }
.contact-layout p { font-size: 16px; }
.footer-brand .brand-mark { background: var(--red-500); font-size: 13px; }
.footer-brand strong { font-size: 13px; }
.footer-brand span { font-size: 11px; }
.footer-links { font-size: 12px; }
.footer-copy { font-size: 11px; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .site-nav { font-size: 17px; }
  .hero h1 { font-size: clamp(48px, 14vw, 68px); }
  .hero-lead { font-size: 18px; }
  .section-heading h2 { font-size: 40px; }
  .section-heading p { font-size: 17px; }
  .pillar-card h3 { font-size: 27px; }
  .pillar-goal, .clean-list li { font-size: 15px; }
  .featured-card h3 { font-size: 27px; }
  .featured-card p { font-size: 15px; }
  .pub-body h4 { font-size: 18px; }
}

/* =========================================================
   WIRELESSAI CHAT — COMPLETE FULL-WIDTH COMPONENT
   ========================================================= */

/* Section */
#wireless-copilot {
  background: linear-gradient(180deg, #f7f7f7 0%, #ffffff 100%);
}

/*
  The rest of the site uses --container: 1220px.
  WirelessAI intentionally gets a wider working area.
*/
#wireless-copilot .copilot-container {
  width: min(94vw, 1600px);
  max-width: 1600px;
  margin-inline: auto;
}

/* Keep heading readable even though the chatbot is wider */
#wireless-copilot .section-heading.heading-wide {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 64px;
}

/* Remove previous two-column chatbot layout */
#wireless-copilot .copilot-grid,
#wireless-copilot .copilot-grid-full {
  display: block;
  width: 100%;
  max-width: none;
}

/* Main chatbot shell */
#wireless-copilot .copilot-demo,
#wireless-copilot .copilot-demo-full {
  width: 100%;
  max-width: none;
  overflow: hidden;
  border: 1px solid #d9d9d9;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .11);
}

/* Header */
#wireless-copilot .copilot-window-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e5e5;
  background: #fafafa;
}

#wireless-copilot .copilot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

#wireless-copilot .copilot-logo {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #ffffff;
  background: #cc0000;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

#wireless-copilot .copilot-brand > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

#wireless-copilot .copilot-brand strong {
  color: #111111;
  font-size: 15px;
  font-weight: 800;
}

#wireless-copilot .copilot-brand small {
  margin-top: 3px;
  color: #686868;
  font-size: 11px;
}

#wireless-copilot .prototype-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(204, 0, 0, .16);
  border-radius: 999px;
  color: #990000;
  background: #fff2f2;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Conversation viewport */
#wireless-copilot .chat-preview {
  width: 100%;
  height: clamp(500px, 58vh, 720px);
  min-height: 500px;
  max-height: 720px;
  overflow-y: auto;
  padding: 26px 24px;
  background: #ffffff;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #c9c9c9 transparent;
}

#wireless-copilot .chat-preview::-webkit-scrollbar {
  width: 7px;
}

#wireless-copilot .chat-preview::-webkit-scrollbar-thumb {
  background: #c9c9c9;
  border-radius: 999px;
}

/* Chat rows */
#wireless-copilot .chat-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 0 20px;
}

#wireless-copilot .assistant-row {
  justify-content: flex-start;
}

#wireless-copilot .user-row {
  justify-content: flex-end;
}

#wireless-copilot .chat-avatar {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: #cc0000;
  font-size: 10px;
  font-weight: 800;
}

/* Message content */
#wireless-copilot .chat-bubble {
  min-width: 0;
  font-size: 15px;
  line-height: 1.72;
}

#wireless-copilot .assistant-bubble {
  width: auto;
  max-width: min(1000px, calc(100% - 52px));
  padding: 2px 4px 2px 0;
  color: #222222;
  background: transparent;
}

#wireless-copilot .user-bubble {
  max-width: min(78%, 900px);
  padding: 12px 15px;
  color: #ffffff;
  background: #cc0000;
  border-radius: 15px 15px 5px 15px;
  white-space: pre-wrap;
}

#wireless-copilot .chat-bubble p:first-child {
  margin-top: 0;
}

#wireless-copilot .chat-bubble p:last-child {
  margin-bottom: 0;
}

/* Markdown rendered in assistant answers */
#wireless-copilot .assistant-bubble h1,
#wireless-copilot .assistant-bubble h2,
#wireless-copilot .assistant-bubble h3,
#wireless-copilot .assistant-bubble h4 {
  margin: 1.2em 0 .55em;
  color: #111111;
  line-height: 1.3;
}

#wireless-copilot .assistant-bubble h1 { font-size: 22px; }
#wireless-copilot .assistant-bubble h2 { font-size: 20px; }
#wireless-copilot .assistant-bubble h3 { font-size: 18px; }
#wireless-copilot .assistant-bubble h4 { font-size: 16px; }

#wireless-copilot .assistant-bubble ul,
#wireless-copilot .assistant-bubble ol {
  margin: .7em 0;
  padding-left: 1.45em;
}

#wireless-copilot .assistant-bubble li {
  margin: .3em 0;
}

#wireless-copilot .assistant-bubble code {
  padding: .12em .35em;
  border-radius: 5px;
  background: #f2f2f2;
  font-size: .92em;
}

#wireless-copilot .assistant-bubble pre {
  overflow-x: auto;
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  background: #f7f7f7;
  white-space: pre;
}

#wireless-copilot .assistant-bubble pre code {
  padding: 0;
  background: transparent;
}

#wireless-copilot .assistant-bubble table {
  width: 100%;
  margin: 14px 0;
  border-collapse: collapse;
  font-size: 13px;
}

#wireless-copilot .assistant-bubble th,
#wireless-copilot .assistant-bubble td {
  padding: 9px 10px;
  border: 1px solid #dddddd;
  text-align: left;
  vertical-align: top;
}

#wireless-copilot .assistant-bubble th {
  background: #f4f4f4;
  font-weight: 750;
}

#wireless-copilot .assistant-bubble blockquote {
  margin: 14px 0;
  padding: 8px 14px;
  border-left: 3px solid #cc0000;
  color: #555555;
  background: #fafafa;
}

#wireless-copilot .assistant-bubble a {
  color: #b00000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Prompt suggestions */
#wireless-copilot .prompt-examples {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 15px 22px 0;
  background: #ffffff;
}

#wireless-copilot .prompt-chip {
  appearance: none;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  padding: 8px 12px;
  color: #333333;
  background: #ffffff;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}

#wireless-copilot .prompt-chip:hover {
  transform: translateY(-1px);
  border-color: #cc0000;
  color: #990000;
  background: #fff7f7;
}

/* Input */
#wireless-copilot .copilot-input-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px 12px;
  background: #ffffff;
}

#wireless-copilot .copilot-input-row input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #cfcfcf;
  border-radius: 11px;
  outline: none;
  color: #111111;
  background: #ffffff;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

#wireless-copilot .copilot-input-row input:focus {
  border-color: #cc0000;
  box-shadow: 0 0 0 3px rgba(204, 0, 0, .10);
}

#wireless-copilot .copilot-input-row input::placeholder {
  color: #7a7a7a;
}

#wireless-copilot #copilot-submit {
  flex: 0 0 auto;
  min-width: 88px;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 11px;
  color: #ffffff;
  background: #cc0000;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

#wireless-copilot #copilot-submit:hover {
  transform: translateY(-1px);
  background: #990000;
}

#wireless-copilot #copilot-submit:disabled,
#wireless-copilot #copilot-preview-input:disabled {
  cursor: wait;
  opacity: .68;
}

/* Footer note */
#wireless-copilot .copilot-note {
  margin: 0;
  padding: 0 22px 18px;
  color: #777777;
  font-size: 11px;
  line-height: 1.55;
}

/* Loading indicator */
#wireless-copilot .chat-loading {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 62px;
  min-height: 38px;
}

#wireless-copilot .chat-loading span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #777777;
  animation: wirelessai-dot 1.1s infinite ease-in-out;
}

#wireless-copilot .chat-loading span:nth-child(2) {
  animation-delay: .15s;
}

#wireless-copilot .chat-loading span:nth-child(3) {
  animation-delay: .30s;
}

@keyframes wirelessai-dot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: .35;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* Screen-reader-only utility used by the chatbot label */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Tablet */
@media (max-width: 980px) {
  #wireless-copilot .copilot-container {
    width: calc(100% - 36px);
    max-width: none;
  }

  #wireless-copilot .section-heading.heading-wide {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #wireless-copilot .chat-preview {
    height: 56vh;
    min-height: 440px;
    max-height: 620px;
  }

  #wireless-copilot .assistant-bubble {
    max-width: calc(100% - 48px);
  }
}

/* Mobile */
@media (max-width: 680px) {
  #wireless-copilot .copilot-container {
    width: calc(100% - 28px);
  }

  #wireless-copilot .copilot-window-top {
    align-items: flex-start;
    padding: 15px 16px;
  }

  #wireless-copilot .prototype-badge {
    display: none;
  }

  #wireless-copilot .chat-preview {
    height: 58vh;
    min-height: 400px;
    max-height: 560px;
    padding: 20px 15px;
  }

  #wireless-copilot .chat-bubble {
    font-size: 14px;
  }

  #wireless-copilot .assistant-bubble {
    max-width: calc(100% - 45px);
  }

  #wireless-copilot .user-bubble {
    max-width: 88%;
  }

  #wireless-copilot .prompt-examples {
    padding: 13px 15px 0;
  }

  #wireless-copilot .prompt-chip {
    font-size: 11px;
  }

  #wireless-copilot .copilot-input-row {
    gap: 8px;
    padding: 14px 15px 10px;
  }

  #wireless-copilot .copilot-input-row input {
    min-height: 48px;
    padding: 0 12px;
    font-size: 13px;
  }

  #wireless-copilot #copilot-submit {
    min-width: 70px;
    min-height: 48px;
    padding: 0 14px;
    font-size: 13px;
  }

  #wireless-copilot .copilot-note {
    padding: 0 15px 15px;
    font-size: 10px;
  }
}

/* ============================================================
   AI CHAT — ENGLISH / KHMER LANGUAGE BUTTONS
   Scoped only to the AI Chat header language selector.
   ============================================================ */

/* The existing header remains unchanged; this only establishes
   the positioning context for the centered language switch. */
#wireless-copilot .copilot-window-top {
  position: relative;
}

/* Center the language switch between the AI Chat brand
   and the Research Prototype badge. */
#wireless-copilot .chat-language-selector {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;

  padding: 4px;
  border: 1px solid #e0e0e0;
  border-radius: 999px;

  background: #f2f2f2;

  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Individual language buttons */
#wireless-copilot .language-button {
  appearance: none;

  min-width: 90px;
  height: 36px;
  padding: 0 15px;

  border: 0;
  border-radius: 999px;

  background: transparent;
  color: #555555;

  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;

  cursor: pointer;

  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

#wireless-copilot .language-button:hover:not(.active) {
  color: #cc0000;
  background: rgba(204, 0, 0, 0.07);
}

/* Active language uses the same Wolfpack Red as the AI logo. */
#wireless-copilot .language-button.active {
  color: #ffffff;
  background: #cc0000;

  box-shadow:
    0 4px 12px rgba(204, 0, 0, 0.22);
}

#wireless-copilot .language-button:active {
  transform: scale(0.97);
}

#wireless-copilot .language-button:focus-visible {
  outline: 3px solid rgba(204, 0, 0, 0.22);
  outline-offset: 2px;
}

#wireless-copilot .language-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* On mobile, keep the existing chat-header structure and let
   the selector participate naturally in the flex layout. */
@media (max-width: 680px) {
  #wireless-copilot .chat-language-selector {
    position: static;
    transform: none;
    margin-left: auto;
  }

  #wireless-copilot .language-button {
    min-width: 78px;
    height: 34px;
    padding: 0 12px;
    font-size: 11px;
  }
}

/* ============================================================
   AI CHAT — FILE UPLOAD
   Scoped only to the WirelessAI Chat component.
   ============================================================ */

#wireless-copilot .copilot-file-button {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid #cfcfcf;
  border-radius: 11px;
  color: #333333;
  background: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color .18s ease,
    color .18s ease,
    background-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

#wireless-copilot .copilot-file-button:hover {
  transform: translateY(-1px);
  border-color: #cc0000;
  color: #cc0000;
  background: #fff7f7;
}

#wireless-copilot .copilot-file-button:focus-visible {
  outline: none;
  border-color: #cc0000;
  box-shadow: 0 0 0 3px rgba(204, 0, 0, .12);
}

#wireless-copilot .copilot-file-button:disabled {
  opacity: .55;
  cursor: wait;
  transform: none;
}

#wireless-copilot .copilot-file-preview {
  width: calc(100% - 44px);
  margin: 14px 22px 0;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #dddddd;
  border-radius: 11px;
  background: #fafafa;
}

#wireless-copilot .copilot-file-preview[hidden] {
  display: none !important;
}

#wireless-copilot .copilot-file-preview-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

#wireless-copilot .copilot-file-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #990000;
  background: #fff0f0;
  font-size: 17px;
}

#wireless-copilot .copilot-file-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}

#wireless-copilot .copilot-file-meta strong {
  max-width: min(70vw, 760px);
  overflow: hidden;
  color: #222222;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#wireless-copilot .copilot-file-meta small {
  color: #777777;
  font-size: 10px;
}

#wireless-copilot .copilot-file-remove {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #666666;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition:
    color .18s ease,
    background-color .18s ease;
}

#wireless-copilot .copilot-file-remove:hover {
  color: #ffffff;
  background: #cc0000;
}

#wireless-copilot .copilot-file-remove:focus-visible {
  outline: 3px solid rgba(204, 0, 0, .18);
  outline-offset: 2px;
}

#wireless-copilot .copilot-file-remove:disabled {
  opacity: .45;
  cursor: wait;
}

#wireless-copilot .copilot-upload-note {
  margin: 0;
  padding: 0 22px 9px;
  color: #777777;
  font-size: 10px;
  line-height: 1.5;
}

/* Keep the hidden file input hidden even though the general
   .copilot-input-row input rule styles text inputs. */
#wireless-copilot #copilot-file-input[hidden] {
  display: none !important;
}

@media (max-width: 680px) {
  #wireless-copilot .copilot-file-preview {
    width: calc(100% - 30px);
    margin: 12px 15px 0;
    padding: 10px;
  }

  #wireless-copilot .copilot-file-meta strong {
    max-width: 58vw;
    font-size: 11px;
  }

  #wireless-copilot .copilot-file-button {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  #wireless-copilot .copilot-upload-note {
    padding: 0 15px 8px;
    font-size: 9px;
  }
}

