:root {
  --bg: #f8f9ff;
  --bg-soft: #f2f5ff;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #ffffff;
  --text: #111a2c;
  --text-muted: #54617a;
  --line: rgba(16, 28, 52, 0.14);
  --line-strong: rgba(16, 28, 52, 0.24);
  --accent: #2f73ff;
  --accent-cyan: #4ac2ff;
  --accent-rose: #ff709f;
  --accent-gold: #ffb661;
  --shadow-lg: 0 24px 56px rgba(16, 28, 52, 0.14);
  --shadow-md: 0 14px 32px rgba(16, 28, 52, 0.11);
  --shadow-sm: 0 8px 18px rgba(16, 28, 52, 0.1);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --content-width: 1180px;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(56rem 32rem at 6% 12%, rgba(106, 185, 255, 0.26), transparent 58%),
    radial-gradient(42rem 30rem at 95% 18%, rgba(255, 127, 194, 0.22), transparent 60%),
    radial-gradient(32rem 24rem at 52% 84%, rgba(255, 192, 117, 0.2), transparent 62%),
    linear-gradient(180deg, #fbfdff 0%, #f5f7ff 100%);
  line-height: 1.58;
}

body.no-scroll {
  overflow: hidden;
}

::selection {
  background: rgba(47, 115, 255, 0.1);
}

img {
  max-width: 100%;
  display: block;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(47, 115, 255, 0.45);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  width: min(var(--content-width), calc(100% - 2.4rem));
  margin-inline: auto;
}

.page-frame {
  padding-top: calc(var(--header-offset, 0px) + 0.5rem);
  padding-bottom: 1.8rem;
}

.section {
  margin-top: clamp(2.2rem, 4vw, 4.2rem);
}

.hero + .section {
  margin-top: clamp(1.15rem, 2vw, 1.9rem);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(68, 81, 111, 0.2);
  background: rgba(255, 255, 255, 0.82);
  color: #44516f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.74rem;
}

.section-title {
  margin: 0.92rem 0 0.8rem;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  max-width: 72ch;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 540ms ease, transform 540ms ease;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  background: rgba(248, 250, 255, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26, 37, 62, 0.12);
}

.nav-wrap {
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #111a2c;
}

.brand-dot {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent-rose));
  box-shadow: 0 0 0 8px rgba(47, 115, 255, 0.08);
}

.nav-toggle {
  display: none;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1a2647;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 1.05rem;
  height: 2px;
  border-radius: 20px;
  background: #1a2340;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle-line + .nav-toggle-line {
  margin-top: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.site-nav-link {
  border-radius: 999px;
  padding: 0.53rem 0.9rem;
  color: #36415e;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.site-nav-link:hover {
  color: #111a2c;
  background: rgba(255, 255, 255, 0.95);
}

.site-nav-link.active {
  color: #102149;
  background: linear-gradient(120deg, rgba(108, 176, 255, 0.34), rgba(255, 144, 202, 0.3));
  box-shadow: inset 0 0 0 1px rgba(47, 115, 255, 0.25);
}

.site-nav-link.nav-pill {
  color: #102149;
  background: linear-gradient(120deg, rgba(47, 115, 255, 0.18), rgba(74, 194, 255, 0.18));
  border: 1px solid rgba(47, 115, 255, 0.3);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  flex-wrap: nowrap;
}

body[data-page="home"] .header-actions {
  display: inline-flex;
}

.header-action {
  min-height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(33, 47, 78, 0.2);
  background: rgba(255, 255, 255, 0.92);
  color: #1f315b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  padding: 0.45rem 0.7rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.header-action svg {
  width: 1rem;
  height: 1rem;
}

.header-action:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 115, 255, 0.36);
  box-shadow: 0 8px 16px rgba(21, 35, 66, 0.14);
  background: #ffffff;
}

.header-action-linkedin {
  color: #0a66c2;
}

.hero {
  position: relative;
  overflow: hidden;
  padding:
    clamp(1.95rem, 4.8vw, 3.8rem)
    clamp(1.95rem, 4.8vw, 3.8rem)
    clamp(1.1rem, 2.2vw, 1.75rem);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(27, 37, 63, 0.13);
  background:
    radial-gradient(40rem 20rem at 85% -8%, rgba(255, 150, 207, 0.3), transparent 60%),
    radial-gradient(30rem 18rem at 10% 0%, rgba(117, 194, 255, 0.32), transparent 62%),
    rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(44px);
  pointer-events: none;
}

.hero::before {
  width: 13rem;
  height: 13rem;
  left: -2.4rem;
  bottom: -3.3rem;
  background: rgba(74, 194, 255, 0.34);
  animation: float-orb 14s ease-in-out infinite;
}

.hero::after {
  width: 16rem;
  height: 16rem;
  right: -4rem;
  top: -4rem;
  background: rgba(255, 112, 159, 0.25);
  animation: float-orb 17s ease-in-out infinite reverse;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-pretitle {
  margin: 0 0 0.86rem;
  color: #4f5f83;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: clamp(2.24rem, 8vw, 5.24rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-title .gradient {
  background: linear-gradient(120deg, #17306b 0%, #2f73ff 42%, #ff709f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 1.95rem auto 0;
  max-width: 62ch;
  color: #3a4a6d;
  font-size: clamp(1rem, 2.2vw, 1.16rem);
  line-height: 1.55;
}

.hero-visual-wrap {
  margin: clamp(1.5rem, 3.2vw, 2.6rem) auto 0.7rem;
  width: min(23rem, 86%);
  position: relative;
  user-select: none;
}

.hero-visual-glow {
  position: absolute;
  inset: 12% 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(98, 170, 255, 0.32), rgba(255, 144, 206, 0.24) 50%, transparent 72%);
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
}

.hero-visual {
  margin: 0 auto;
  width: clamp(13.5rem, 33vw, 18.2rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(35, 49, 82, 0.12);
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(16, 29, 61, 0.16);
  position: relative;
  overflow: hidden;
  z-index: 2;
  animation: float-card 7.5s ease-in-out infinite;
}

.hero-visual::before {
  display: none;
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  z-index: 1;
  filter: saturate(1.04) contrast(1.04);
  user-select: none;
  -webkit-user-drag: none;
}

.hero-pretitle,
.hero-title,
.hero-subtitle,
.chat-intro,
.chat-source-note {
  user-select: none;
}

.chatbot-shell {
  margin-top: 0.92rem;
  padding: 0.92rem;
  border: 1px solid rgba(35, 47, 79, 0.2);
  box-shadow: 0 14px 34px rgba(17, 28, 52, 0.13);
}

.hero-chat {
  margin: clamp(1.14rem, 2.7vw, 1.92rem) auto 0;
  width: min(50rem, 100%);
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 252, 255, 0.92));
  border: 1px solid rgba(30, 44, 78, 0.24);
  box-shadow: 0 18px 42px rgba(14, 25, 52, 0.16);
}

.chatbot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.76rem;
  flex-wrap: wrap;
  margin-bottom: 0.38rem;
}

.chatbot-title {
  margin: 0;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.chatbot-subtitle {
  margin: 0.14rem 0 0;
  color: #62708d;
  font-size: 0.84rem;
  max-width: 58ch;
}

.assistant-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(38, 76, 163, 0.26);
  background: linear-gradient(120deg, rgba(47, 115, 255, 0.16), rgba(74, 194, 255, 0.12));
  color: #214188;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.58rem;
}

.chat-log {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  min-height: 0;
  max-height: 13.5rem;
  overflow: auto;
  display: grid;
  gap: 0.4rem;
}

.chat-intro {
  margin: 0.1rem 0 0.55rem;
  color: #2b3d66;
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: center;
  max-width: 58ch;
  margin-inline: auto;
}

.chat-source-note {
  margin: 0 0 0.56rem;
  color: #5b6988;
  font-size: 0.74rem;
  text-align: center;
  letter-spacing: 0.02em;
}

.chat-row {
  display: flex;
}

.chat-row.user {
  justify-content: flex-end;
}

.chat-row.bot {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: min(80ch, 88%);
  border-radius: 12px;
  border: 1px solid rgba(30, 42, 73, 0.18);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.62rem 0.74rem;
}

.chat-row.user .chat-bubble {
  background: linear-gradient(120deg, rgba(47, 115, 255, 0.14), rgba(74, 194, 255, 0.14));
  border-color: rgba(47, 115, 255, 0.3);
}

.chat-text {
  margin: 0;
  color: #24345b;
  font-size: 0.87rem;
}

.chat-meta {
  margin-top: 0.46rem;
  display: grid;
  gap: 0.34rem;
}

.chat-citations {
  margin: 0;
  color: #4d6087;
  font-size: 0.74rem;
  line-height: 1.42;
}

.chat-citation {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(39, 68, 133, 0.2);
  background: rgba(255, 255, 255, 0.95);
  color: #2d4270;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.52rem;
}

.chat-support {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.chat-support-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.48rem;
  border: 1px solid rgba(34, 66, 132, 0.2);
  color: #27437d;
  background: rgba(233, 242, 255, 0.72);
}

.chat-support-chip.low {
  border-color: rgba(171, 97, 94, 0.28);
  color: #874544;
  background: rgba(255, 233, 232, 0.78);
}

.chat-support-chip.ok {
  border-color: rgba(51, 113, 77, 0.24);
  color: #2d6446;
  background: rgba(224, 245, 232, 0.82);
}

.chat-factual-score {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(28, 64, 145, 0.24);
  background: rgba(225, 239, 255, 0.58);
  color: #1f3f86;
  font-size: 0.71rem;
  font-weight: 700;
  padding: 0.2rem 0.56rem;
}

.chat-notice {
  color: #51648d;
  font-size: 0.73rem;
}

.chat-links {
  margin-top: 0.42rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.chat-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(32, 70, 151, 0.26);
  background: rgba(255, 255, 255, 0.9);
  color: #20479b;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.56rem;
}

.chat-link:hover {
  background: #ffffff;
}

.chat-suggestions {
  margin-top: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.command-shortcut {
  border: 1px solid rgba(39, 72, 145, 0.2);
  background: #ffffff;
  color: #223a6e;
  border-radius: 999px;
  padding: 0.42rem 0.74rem;
  font-size: 0.79rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(46, 74, 139, 0.08);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.command-shortcut:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(47, 115, 255, 0.32);
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(46, 74, 139, 0.16);
}

.command-shortcut:disabled,
.quick-card:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.chat-form {
  margin-top: 0.76rem;
  display: flex;
  align-items: center;
  gap: 0.48rem;
  border: 1px solid rgba(33, 50, 87, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  padding: 0.32rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 18px rgba(21, 36, 70, 0.08);
}

.chat-input {
  min-width: 0;
  flex: 1;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #142349;
  padding: 0.66rem 0.88rem;
  font: inherit;
}

.chat-input::placeholder {
  color: #6d7b9b;
}

.chat-send {
  border: 1px solid rgba(47, 115, 255, 0.34);
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), #3f9bff);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
}

.chat-send svg {
  width: 1.15rem;
  height: 1.15rem;
}

.chat-send:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(47, 115, 255, 0.28);
}

.chat-send:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.quick-actions-strip {
  margin-top: clamp(1.15rem, 2.2vw, 1.8rem);
}

.quick-grid {
  margin-top: 0;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(6, minmax(0, 8.75rem));
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.quick-card {
  appearance: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(34, 45, 76, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  padding: 0.55rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.34rem;
  min-height: 5.35rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.quick-card:not(:disabled):hover {
  transform: translateY(-3px);
  border-color: rgba(47, 115, 255, 0.3);
  box-shadow: 0 14px 30px rgba(15, 27, 57, 0.16);
}

.quick-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #20335f;
  background: linear-gradient(120deg, rgba(108, 176, 255, 0.35), rgba(255, 137, 194, 0.25));
  transition: transform var(--transition), box-shadow var(--transition);
}

.quick-card:not(:disabled):hover .quick-icon {
  transform: translateY(-1px);
  box-shadow: 0 8px 15px rgba(56, 86, 158, 0.2);
}

.quick-icon svg {
  width: 0.86rem;
  height: 0.86rem;
}

.quick-title {
  display: block;
  margin: 0;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 0.84rem;
}

.quick-description {
  margin: 0;
  color: #566485;
  font-size: 0.68rem;
  line-height: 1.28;
  font-weight: 600;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 45, 76, 0.14);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  background:
    radial-gradient(28rem 20rem at 10% 0%, rgba(108, 176, 255, 0.24), transparent 62%),
    radial-gradient(24rem 20rem at 90% 30%, rgba(255, 137, 194, 0.2), transparent 64%),
    rgba(255, 255, 255, 0.76);
  padding: clamp(1.8rem, 4vw, 3.2rem);
}

.page-hero h1 {
  margin: 0.45rem 0 0;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0.95rem 0 0;
  color: #435374;
  max-width: 68ch;
}

.page-home-return {
  display: flex;
  justify-content: flex-start;
  margin: 0.15rem 0 0.9rem;
}

.page-home-link {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  border-color: rgba(29, 44, 78, 0.28);
  background: rgba(255, 255, 255, 0.94);
}

.research-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.85rem);
  line-height: 1.08;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.content-card {
  padding: 1.2rem;
}

.content-card h2,
.content-card h3 {
  margin: 0;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 1.08rem;
}

.content-card p {
  margin: 0.72rem 0 0;
  color: #4d5d7f;
}

.tag-row {
  margin-top: 0.86rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(47, 115, 255, 0.13);
  color: #1c3571;
  border: 1px solid rgba(47, 115, 255, 0.2);
  box-shadow: 0 4px 12px rgba(120, 120, 200, 0.15);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.6rem;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.timeline li {
  position: relative;
  padding-left: 1.3rem;
  color: #445474;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: linear-gradient(130deg, var(--accent), var(--accent-rose));
  box-shadow: 0 0 0 5px rgba(47, 115, 255, 0.12);
}

.kv-grid {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  row-gap: 0.65rem;
  column-gap: 1rem;
}

.kv-grid dt {
  font-weight: 700;
  color: #223359;
}

.kv-grid dd {
  margin: 0;
  color: #4b5b7e;
}

.feature-grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.3rem;
}

.feature-card {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 16.8rem;
}

.feature-meta {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #596888;
  font-weight: 700;
}

.feature-name {
  margin: 0;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 1.1rem;
  line-height: 1.3;
}

.feature-text {
  margin: 0;
  color: #4d5d7d;
  font-size: 0.94rem;
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  color: #20479b;
  font-size: 0.88rem;
  font-weight: 700;
}

.card-link::after {
  content: "\2192";
  font-size: 0.95rem;
}

.contact-band {
  margin-top: 1.35rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-title {
  margin: 0;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
}

.cta-copy {
  margin: 0.35rem 0 0;
  color: #4f5f80;
}

.cta-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.64rem 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(120deg, var(--accent), #3f9bff);
  color: #fff;
  box-shadow: 0 10px 22px rgba(47, 115, 255, 0.3);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(32, 45, 80, 0.2);
  color: #1e2f54;
}

.link-list {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.58rem;
}

.link-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #20479b;
  font-weight: 700;
}

.link-list a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.inline-link {
  color: #20479b;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.embed-wrap {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(31, 43, 73, 0.16);
  box-shadow: var(--shadow-md);
}

.embed-wrap iframe {
  width: 100%;
  min-height: 78vh;
  border: 0;
  background: #fff;
}

.research-focus {
  margin-top: 64px;
}

.research-focus-grid {
  margin-top: 0.84rem;
  align-items: start;
}

.research-domain-card h2,
.research-intent-card h2 {
  font-size: 1.02rem;
}

.research-intent-card {
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 18px rgba(17, 28, 52, 0.08);
}

.research-surface {
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) padding-box,
    linear-gradient(135deg, rgba(240, 163, 255, 0.55), rgba(107, 208, 255, 0.45)) border-box;
  border: 1px solid transparent;
}

.cv-hero {
  background:
    radial-gradient(32rem 20rem at 8% 8%, rgba(108, 176, 255, 0.24), transparent 64%),
    radial-gradient(28rem 18rem at 95% 20%, rgba(255, 137, 194, 0.2), transparent 66%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(252, 247, 255, 0.84));
}

.cv-hero h1 {
  margin-top: 0.55rem;
}

.cv-actions {
  margin-top: 1rem;
}

.cv-hero .tag-row {
  margin-top: 0.95rem;
}

.cv-overview {
  margin-top: 0.15rem;
}

.cv-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) padding-box,
    linear-gradient(130deg, rgba(108, 176, 255, 0.26), rgba(255, 137, 194, 0.22)) border-box;
  border: 1px solid transparent;
}

.cv-card h2 {
  font-size: 1.02rem;
}

.cv-kv {
  margin-top: 0.8rem;
  row-gap: 0.72rem;
}

.cv-document-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cv-document-title {
  margin: 0;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  letter-spacing: -0.015em;
}

.cv-embed {
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)) padding-box,
    linear-gradient(135deg, rgba(47, 115, 255, 0.2), rgba(255, 112, 159, 0.18)) border-box;
  border: 1px solid transparent;
  padding: 0.35rem;
}

.site-footer {
  margin-top: 0.9rem;
  padding: 0.5rem 0 1.2rem;
  text-align: center;
}

.footer-meta {
  margin: 0;
  color: #47587a;
  font-size: 0.88rem;
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-7px) rotate(0.45deg);
  }
}

@keyframes float-orb {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }

  50% {
    transform: translateY(-12px) translateX(8px);
  }
}

@media (max-width: 1120px) {
  body:not([data-page="home"]) .nav-toggle {
    display: inline-flex;
  }

  body:not([data-page="home"]) .site-nav {
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    top: calc(100% + 0.55rem);
    border: 1px solid rgba(33, 44, 74, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
    padding: 0.55rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }

  body:not([data-page="home"]) .site-header[data-open="true"] .site-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  body:not([data-page="home"]) .site-header[data-open="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body:not([data-page="home"]) .site-header[data-open="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
  }

  body:not([data-page="home"]) .site-header[data-open="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .quick-grid {
    grid-template-columns: repeat(3, minmax(0, 8.75rem));
  }

  .two-col,
  .three-col,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(var(--content-width), calc(100% - 1.2rem));
  }

  .page-frame {
    padding-bottom: 1.45rem;
  }

  .hero {
    padding-inline: 1.08rem;
  }

  .chat-form {
    padding: 0.28rem;
  }

  .chat-log {
    min-height: 10.5rem;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 8.4rem));
    gap: 0.46rem;
  }

  .quick-card {
    min-height: 5.05rem;
  }

  .contact-band,
  .cv-document-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .embed-wrap iframe {
    min-height: 72vh;
  }
}

@media (max-width: 520px) {
  .site-nav {
    grid-template-columns: 1fr;
  }

  .quick-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-card {
    padding: 0.52rem 0.45rem;
  }

  .command-shortcut {
    font-size: 0.76rem;
  }
}

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