/* ============================================================
   Navdyut AI · shared stylesheet
   Tokens: ink / parchment / muga gold / gamosa red
   ============================================================ */

:root {
  --ink: #f7f4ec;
  --ink-2: #fffdf8;
  --ink-3: #eee9dc;
  --parchment: #1b1c17;
  --parchment-dim: #625f55;
  --muga: #9a6e1f;
  --muga-dim: #765319;
  --muga-soft: rgba(154, 110, 31, 0.12);
  --muga-hover: #b8872f;
  --on-muga: #17150f;
  --gamosa: #a63b2e;
  --line: #d8d1c2;
  --line-soft: #e8e2d5;
  --header-bg: var(--ink);
  --atmosphere:
    radial-gradient(circle at 8% 18%, rgba(154, 110, 31, 0.055), transparent 24rem),
    radial-gradient(circle at 92% 46%, rgba(166, 59, 46, 0.035), transparent 28rem);
  --woven-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='30' viewBox='0 0 240 30'%3E%3Cg fill='none' stroke='%239a6e1f' stroke-linecap='round'%3E%3Cpath d='M0 15 C20 3 40 3 60 15 S100 27 120 15 S160 3 180 15 S220 27 240 15' stroke-width='1.25'/%3E%3Cpath d='M0 15 C20 27 40 27 60 15 S100 3 120 15 S160 27 180 15 S220 3 240 15' stroke-width='.7' stroke-opacity='.48'/%3E%3Cpath d='M0 9 C30 9 30 21 60 21 S90 9 120 9 S150 21 180 21 S210 9 240 9' stroke-width='.55' stroke-opacity='.28'/%3E%3C/g%3E%3C/svg%3E");

  --display: "Fraunces", serif;
  --body: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --mono: "IBM Plex Mono", monospace;

  --wrap: 1180px;
  --wide: 1540px;
  --section-space: 52px;
  --section-space-mobile: 40px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--ink);
  background-image: var(--atmosphere);
  background-attachment: fixed;
  color: var(--parchment);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
}
@supports selector(:focus-visible) {
  :where(a, button, [tabindex]):focus-visible {
    outline: 2px solid var(--muga);
    outline-offset: 4px;
    border-radius: 2px;
  }
}
img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 600;
}
h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}
h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1em;
  color: var(--parchment);
}
.lede {
  font-size: 1.2rem;
  color: var(--parchment-dim);
  max-width: 640px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muga-dim);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--muga-dim);
  display: inline-block;
}

/* ---------- signature: woven border divider ---------- */
.thread {
  width: 100%;
  height: 30px;
  margin: -24px 0;
  background-repeat: repeat-x;
  background-position: center;
  background-size: 240px 30px;
  opacity: 0.54;
  background-image: var(--woven-band);
}
.thread.dim {
  opacity: 0.22;
}
.thread.sm {
  height: 14px;
  margin: 0;
  background-repeat: no-repeat;
  background-size: 100% 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 14' preserveAspectRatio='none'%3E%3Cpath d='M0 7 Q15 1 30 7 T60 7 T90 7 T120 7 T150 7 T180 7 T210 7 T240 7 T270 7 T300 7 T330 7 T360 7 T390 7 T420 7 T450 7 T480 7 T510 7 T540 7 T570 7 T600 7 T630 7 T660 7 T690 7 T720 7 T750 7 T780 7 T810 7 T840 7 T870 7 T900 7 T930 7 T960 7 T990 7 T1020 7 T1050 7 T1080 7 T1110 7 T1140 7 T1170 7 T1200 7 T1230 7 T1260 7 T1290 7 T1320 7 T1350 7 T1380 7 T1410 7 T1440 7' fill='none' stroke='%239a6e1f' stroke-opacity='.4' stroke-width='1.2'/%3E%3C/svg%3E");
  background-color: var(--ink);
  opacity: 1;
}

/* ---------- nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--header-bg);
  background-image: var(--atmosphere);
  background-attachment: fixed;
}
nav.bar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  min-height: 40px;
  gap: 10px;
}
.logo img {
  display: block;
  height: 36px;
  width: auto;
  border-radius: 4px;
}
.logo span {
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1;
  color: var(--muga-dim);
  letter-spacing: 0.08em;
  font-weight: 600;
}
.navlinks {
  display: flex;
  gap: 34px;
  align-items: center;
}
.navlinks a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.92rem;
  line-height: 1;
  color: var(--parchment-dim);
  transition: color 0.15s ease;
  position: relative;
}
.navlinks a:hover,
.navlinks a.active {
  color: var(--parchment);
}
.navlinks a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--muga);
}
.navcta {
  font-family: var(--mono);
  font-size: 0.78rem;
  border: 1px solid var(--muga-dim);
  color: var(--muga-dim) !important;
  padding: 0 16px;
  border-radius: 999px;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.navcta:hover {
  background: var(--muga);
  color: var(--on-muga) !important;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--parchment);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.menu-toggle-icon {
  display: block;
  width: 18px;
  height: 14px;
}
.menu-toggle-icon line {
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: square;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.menu-toggle-icon .bar-top {
  transform-origin: 9px 1px;
}
.menu-toggle-icon .bar-mid {
  transform-origin: 9px 7px;
}
.menu-toggle-icon .bar-bot {
  transform-origin: 9px 13px;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon .bar-top {
  transform: translateY(5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon .bar-mid {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon .bar-bot {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 860px) {
  .navlinks {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 32px 28px;
    gap: 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.18s ease,
      opacity 0.18s ease;
  }
  .navlinks.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .menu-toggle {
    display: inline-flex;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.82rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--muga);
  color: var(--on-muga);
}
.btn-primary:hover {
  background: var(--muga-hover);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--parchment);
}
.btn-ghost:hover {
  border-color: var(--parchment-dim);
}

/* ---------- sections ---------- */
section {
  padding: var(--section-space) 0;
}
section.tight {
  padding: 32px 0;
}
.stats-section {
  padding: 32px 0 24px;
}
section + section {
  padding-top: 24px;
}
.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 5vw, 64px);
}
@media (max-width: 860px) {
  .thread {
    margin: -16px 0;
  }
  section {
    padding: var(--section-space-mobile) 0;
  }
  section.tight {
    padding: 32px 0;
  }
  section + section {
    padding-top: 16px;
  }
  .section-head {
    margin-bottom: 24px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  background: transparent;
  border: 0;
  padding: 24px 20px 24px 0;
  border-radius: 0;
}
.card::before {
  content: "";
  display: block;
  width: 52px;
  height: 13px;
  margin-bottom: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='13' viewBox='0 0 52 13'%3E%3Cpath d='M1 8 C9 1 16 12 25 6 S41 3 51 8' fill='none' stroke='%239a6e1f' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.8;
}
.grid-3 > .card:nth-child(2),
.grid-2 > .card:nth-child(even) {
  margin-top: 32px;
}
.card .tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muga);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
.card-cta {
  font-weight: 600;
}

/* ---------- hero ---------- */
.hero {
  padding: 32px 0 24px;
}
.hero + section {
  padding-top: 24px;
}
.hero-grid {
  width: min(calc(100% - 64px), var(--wide));
  margin: 0 auto;
  min-height: clamp(520px, calc(78vh - 80px), 680px);
  position: relative;
  overflow: hidden;
  background: var(--ink-3);
  border-radius: 2px 2px clamp(64px, 9vw, 150px) 2px;
}
.hero-grid::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--ink-3) 0%,
    rgba(238, 233, 220, 0.96) 35%,
    rgba(238, 233, 220, 0.35) 57%,
    transparent 72%
  );
}
.hero-copy {
  min-height: inherit;
  width: 64%;
  max-width: 880px;
  padding: clamp(44px, 5vw, 72px) 0 clamp(44px, 5vw, 72px)
    clamp(28px, 5vw, 72px);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-copy h1 {
  font-size: clamp(2.8rem, 4.5vw, 4.8rem);
  text-wrap: balance;
}
.hero .lede {
  margin-bottom: 24px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 18px 0 0;
  color: var(--parchment-dim);
  font: 0.68rem var(--mono);
  letter-spacing: 0.04em;
}
.hero-evidence span {
  color: var(--parchment-dim);
}
.hero-evidence a {
  color: var(--muga-dim);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}
.hero-evidence a:hover {
  color: var(--parchment);
}

/* ---------- editorial imagery ---------- */
.hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 68%;
  margin: 0;
  overflow: hidden;
  background: #d8ccb7;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 10%,
    #000 34%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 10%,
    #000 34%
  );
}
.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% center;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-art:hover img {
  transform: scale(1.015);
}
.hero-art figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 38px;
  color: #fffaf0;
  background: linear-gradient(transparent, rgba(18, 17, 13, 0.62));
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-art figcaption span:not(.art-index) {
  margin-right: 16px;
}
.hero-art .art-index {
  font-family: var(--display);
  font-size: clamp(3.5rem, 6vw, 7rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  opacity: 0.88;
}

.sovereignty-editorial {
  padding: 28px 0;
}
.sovereignty-layout {
  width: min(calc(100% - 64px), var(--wrap));
  margin: 0 auto;
  background:
    radial-gradient(circle at 88% 20%, rgba(154, 110, 31, 0.12), transparent 24rem),
    var(--ink-3);
  border-radius: clamp(48px, 7vw, 110px) 2px clamp(48px, 7vw, 110px) 2px;
}
.sovereignty-copy {
  padding: clamp(44px, 5vw, 64px);
}
.sovereignty-copy h2 {
  max-width: 850px;
  font-size: clamp(2.5rem, 4.2vw, 4.4rem);
  text-wrap: balance;
}
.sovereignty-copy .lede {
  max-width: 780px;
  margin-bottom: 24px;
}

.corpus-editorial {
  padding: 28px 0;
  background: var(--ink);
  color: var(--ink);
}
.corpus-layout {
  width: min(calc(100% - 64px), var(--wide));
  min-height: clamp(520px, 68vh, 680px);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: var(--parchment);
  border-radius: 2px clamp(64px, 9vw, 150px) 2px 2px;
}
.corpus-layout::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--parchment) 0%,
    rgba(27, 28, 23, 0.98) 36%,
    rgba(27, 28, 23, 0.42) 58%,
    transparent 74%
  );
}
.corpus-copy {
  width: 62%;
  max-width: 850px;
  min-height: inherit;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 5vw, 72px) 0 clamp(44px, 5vw, 72px)
    clamp(28px, 5vw, 72px);
}
.corpus-copy .section-head {
  margin-bottom: 24px;
}
.corpus-copy h2 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}
.corpus-copy .lede {
  color: #c9c2b3;
}
.corpus-copy .btn-primary {
  align-self: flex-start;
}
.corpus-visual {
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
  margin: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 12%,
    #000 38%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 12%,
    #000 38%
  );
}
.corpus-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.05);
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.corpus-visual:hover img {
  transform: scale(1.02);
}

@media (max-width: 860px) {
  .hero {
    padding: 24px 0 20px;
  }
  .hero + section {
    padding-top: 24px;
  }
  .hero-grid {
    width: calc(100% - 32px);
    min-height: clamp(520px, 76svh, 640px);
    overflow: hidden;
    border-radius: 2px 2px 64px 2px;
    background: var(--ink-3);
  }
  .hero-grid::after {
    display: block;
    background: linear-gradient(
      90deg,
      var(--ink-3) 0%,
      rgba(238, 233, 220, 0.97) 34%,
      rgba(238, 233, 220, 0.72) 61%,
      rgba(238, 233, 220, 0.08) 100%
    );
  }
  .hero-copy {
    width: 92%;
    min-height: inherit;
    padding: 38px 24px;
  }
  .hero-art {
    position: absolute;
    width: 100%;
    min-height: 100%;
    aspect-ratio: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 44%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 44%);
  }
  .hero-art img {
    object-fit: cover;
    object-position: 60% center;
  }
  .hero-art figcaption {
    padding: 24px;
  }
  .sovereignty-editorial {
    padding: 24px 0;
  }
  .sovereignty-layout,
  .corpus-layout {
    width: calc(100% - 32px);
    overflow: hidden;
  }
  .sovereignty-layout {
    border-radius: 48px 2px 48px 2px;
  }
  .corpus-layout {
    border-radius: 2px 56px 2px 2px;
  }
  .corpus-layout::after {
    display: block;
    background: linear-gradient(
      90deg,
      var(--parchment) 0%,
      rgba(27, 28, 23, 0.9) 38%,
      rgba(27, 28, 23, 0.68) 68%,
      rgba(27, 28, 23, 0.4) 100%
    );
  }
  .sovereignty-copy {
    padding: 40px 24px;
  }
  .corpus-copy {
    width: 90%;
    max-width: none;
    min-height: inherit;
    padding: 44px 24px;
  }
  .corpus-visual {
    position: absolute;
    width: 100%;
    min-height: 100%;
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.25) 10%,
      #000 30%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.25) 10%,
      #000 30%
    );
  }
  .corpus-visual img {
    object-fit: cover;
    object-position: 58% center;
  }
  .corpus-editorial {
    padding: 24px 0;
  }
}

@media (max-width: 860px) {
  .grid-3 > .card:nth-child(2),
  .grid-2 > .card:nth-child(even) {
    margin-top: 0;
  }
}

@media (max-width: 520px) {
  .hero-art figcaption span:not(.art-index) {
    display: none;
  }
}

/* ---------- stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 5vw, 64px);
}
.stat:nth-child(even) {
  transform: translateY(14px);
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--muga);
}
.stat span {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--parchment-dim);
}

/* ---------- progressive scroll motion ---------- */
.js.motion-ok .reveal-on-scroll {
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 0.55s ease var(--reveal-delay, 0ms),
    translate 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
}
.js.motion-ok .reveal-on-scroll.is-visible {
  opacity: 1;
  translate: 0 0;
}
@media (max-width: 860px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(even) {
    transform: none;
  }
}

/* ---------- process steps ---------- */
.steps {
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 0;
}
.step:last-child {
  border-bottom: none;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  color: var(--muga);
  padding-top: 2px;
  font-family: var(--display);
  font-size: 1.15rem;
  font-style: italic;
}

/* ---------- footer ---------- */
footer.site {
  --parchment: #f7f4ec;
  --parchment-dim: #aaa69b;
  --muga: #c89b3c;
  --muga-dim: #9a6e1f;
  --line: rgba(247, 244, 236, 0.24);
  --line-soft: rgba(247, 244, 236, 0.14);
  --ink-2: rgba(247, 244, 236, 0.06);
  background: #1b1c17;
  color: var(--parchment);
  border-top: 0;
  padding: 40px 0 32px;
  margin-top: 0;
  position: relative;
}
footer.site .logo span,
footer.site .eyebrow {
  color: var(--muga);
}
footer.site::before {
  content: "";
  position: absolute;
  top: -14px;
  right: 0;
  left: 0;
  height: 30px;
  background: var(--woven-band) center / 240px 30px repeat-x;
  opacity: 0.52;
  pointer-events: none;
}
.footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 36px;
  padding-bottom: 40px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-cta .eyebrow {
  margin-bottom: 14px;
}
.footer-cta h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
}
.footer-cta-links {
  display: flex;
  justify-content: flex-end;
}
.footer-inquiry-btn {
  gap: 18px;
  white-space: nowrap;
}
.footer-cta-links span {
  font-size: 1rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(140px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: 32px;
}
.foot-grid h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muga);
  margin-bottom: 16px;
  font-weight: 400;
}
.foot-grid a {
  display: block;
  color: var(--parchment-dim);
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.foot-grid a:hover {
  color: var(--parchment);
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--parchment-dim);
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.socials {
  display: flex;
  align-items: center;
  gap: 10px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--parchment-dim);
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}
.socials a:hover {
  color: var(--muga);
  border-color: var(--muga-dim);
  background: var(--ink-2);
}
.socials svg {
  width: 16px;
  height: 16px;
  display: block;
}
@media (max-width: 860px) {
  .footer-cta {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: 480px;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer-cta {
    padding-bottom: 32px;
    margin-bottom: 32px;
  }
  .footer-cta-links {
    width: 100%;
    justify-content: flex-start;
  }
  .footer-brand {
    grid-column: auto;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- page hero small (subpages) ---------- */
.page-hero {
  padding: 40px 0 28px;
  border-bottom: 0;
}
.page-hero .lede {
  max-width: 680px;
}
.editorial-page-hero {
  padding: 20px 0 28px;
  border-bottom: 0;
}
.page-hero + section {
  padding-top: 24px;
}
.editorial-page-layout {
  width: min(calc(100% - 64px), var(--wide));
  min-height: clamp(500px, 68vh, 680px);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: var(--ink-3);
  border-radius: 2px 2px 2px clamp(64px, 9vw, 150px);
}
.editorial-page-layout::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--ink-3) 0%,
    rgba(238, 233, 220, 0.97) 36%,
    rgba(238, 233, 220, 0.32) 59%,
    transparent 75%
  );
}
.editorial-page-copy {
  width: 63%;
  max-width: 860px;
  min-height: inherit;
  padding: clamp(48px, 6vw, 80px) 0 clamp(48px, 6vw, 80px)
    clamp(32px, 6vw, 96px);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.editorial-page-copy h1 {
  font-size: clamp(2.8rem, 4.6vw, 4.9rem);
  text-wrap: balance;
}
.editorial-page-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 69%;
  margin: 0;
  overflow: hidden;
  background: var(--parchment);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 11%,
    #000 35%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 11%,
    #000 35%
  );
}
.editorial-page-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.editorial-page-art:hover img {
  transform: scale(1.018);
}
.editorial-page-art figcaption {
  position: absolute;
  z-index: 1;
  right: 32px;
  bottom: 28px;
  color: #fffaf0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75);
}

@media (max-width: 860px) {
  .page-hero {
    padding: 32px 0 24px;
  }
  .editorial-page-hero {
    padding: 16px 0 22px;
  }
  .page-hero + section {
    padding-top: 24px;
  }
  .editorial-page-layout {
    width: calc(100% - 32px);
    min-height: clamp(500px, 70svh, 620px);
    overflow: hidden;
    background: var(--ink-3);
    border-radius: 2px 2px 2px 64px;
  }
  .editorial-page-layout::after {
    display: block;
    background: linear-gradient(
      90deg,
      var(--ink-3) 0%,
      rgba(238, 233, 220, 0.97) 35%,
      rgba(238, 233, 220, 0.74) 64%,
      rgba(238, 233, 220, 0.08) 100%
    );
  }
  .editorial-page-copy {
    width: 90%;
    min-height: inherit;
    padding: 44px 24px;
  }
  .editorial-page-art {
    position: absolute;
    width: 100%;
    min-height: 100%;
    aspect-ratio: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 44%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 44%);
  }
  .editorial-page-art img {
    object-fit: cover;
    object-position: 58% center;
  }
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: start;
}
@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.tick-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tick-list li {
  padding: 14px 0 14px 28px;
  position: relative;
  color: var(--parchment-dim);
}
.tick-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--muga);
}
.tick-list li b {
  color: var(--parchment);
  font-weight: 500;
}

/* ---------- accessibility and utility ---------- */
.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  padding: 10px 14px;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
}
.text-link {
  color: var(--muga-dim);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.section-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--parchment-dim);
}
.muted {
  color: var(--parchment-dim);
}
.footer-blurb {
  margin-top: 16px;
  font-size: 0.95rem;
}
.stats-cta {
  display: inline-flex;
  margin-top: 28px;
}

:where(
  .section-head,
  .card,
  .delivery-path,
  .article-hero-copy,
  .article-body,
  .footer-brand,
  .contact-shell > div
) > p:last-child {
  margin-bottom: 0;
}

/* ---------- forms ---------- */
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.field label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--parchment-dim);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 253, 248, 0.45);
  color: var(--parchment);
  font: inherit;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-bottom-color: var(--muga);
  outline: 2px solid transparent;
}

/* ---------- comparison and corpus explorer ---------- */
.comparison-grid,
.corpus-explorer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 52px);
  background: transparent;
  border: 0;
}
.comparison-panel,
.corpus-panel {
  padding: clamp(24px, 4vw, 40px);
  background: rgba(255, 253, 248, 0.72);
}
.comparison-panel:first-child,
.corpus-panel:first-child {
  border-radius: 2px 54px 2px 2px;
}
.comparison-panel:last-child,
.corpus-panel:last-child {
  border-radius: 2px 2px 54px 2px;
}
.token-stream {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0;
}
.token-stream span {
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(216, 209, 194, 0.35);
  font: 0.78rem var(--mono);
}
.token-stream.optimized span {
  background: var(--muga-soft);
  color: var(--muga-dim);
}
.source-tabs {
  display: grid;
  gap: 8px;
}
.source-tab {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--parchment);
  font: 0.78rem var(--mono);
  text-align: left;
  cursor: pointer;
}
.source-tab[aria-selected="true"] {
  border-color: var(--muga);
  background: var(--muga-soft);
}
.source-preview blockquote {
  margin: 22px 0 0;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.55;
}

/* ---------- inquiry ---------- */
.contact-shell {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.inquiry-form {
  padding: 0;
  border: 0;
  background: transparent;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 860px) {
  .comparison-grid,
  .corpus-explorer,
  .contact-shell {
    grid-template-columns: 1fr;
  }
}

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

/* ---------- models: connected family ---------- */
.model-hero .editorial-page-layout {
  min-height: min(600px, 66vh);
}
.model-hero .editorial-page-copy {
  max-width: 760px;
}
.model-hero .editorial-page-copy h1 {
  max-width: 680px;
}
.model-hero .hero-cta {
  margin-top: 16px;
}
.model-hero-script {
  position: absolute;
  z-index: 1;
  left: 46%;
  bottom: -0.22em;
  color: rgba(154, 110, 31, 0.13);
  font-family: var(--display);
  font-size: clamp(12rem, 24vw, 25rem);
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

.page-hero + .family-section {
  padding-top: clamp(40px, 5vw, 64px);
}
.family-section {
  padding-top: clamp(44px, 5vw, 68px);
}
.family-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.65fr);
  align-items: end;
  gap: clamp(28px, 6vw, 72px);
  margin-bottom: 32px;
}
.family-heading .lede {
  margin: 0;
}
.family-map {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border-radius: 2px 84px 2px 84px;
  background:
    radial-gradient(circle at 43% 50%, rgba(200, 155, 60, 0.16), transparent 25%),
    linear-gradient(135deg, #20211b, #151611);
  box-shadow: 0 26px 70px rgba(43, 37, 22, 0.13);
}
.family-map::before {
  content: "অসমীয়া";
  position: absolute;
  right: 3%;
  bottom: -0.32em;
  color: rgba(247, 244, 236, 0.035);
  font-family: var(--display);
  font-size: clamp(7rem, 16vw, 13rem);
  line-height: 1;
  white-space: nowrap;
}
.family-weave {
  position: absolute;
  inset: 40px 3%;
  width: 94%;
  height: 330px;
  overflow: visible;
}
.family-weave path {
  fill: none;
  stroke: rgba(200, 155, 60, 0.62);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.family-weave .weave-open {
  stroke: rgba(247, 244, 236, 0.3);
  stroke-dasharray: 5 6;
}
.motion-ok .family-weave path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw-family 1.6s cubic-bezier(0.22, 0.7, 0.2, 1) 0.2s forwards;
}
.motion-ok .family-weave .weave-open {
  stroke-dasharray: 5 6;
  stroke-dashoffset: 120;
  animation: move-open-weave 6s linear infinite;
}
@keyframes draw-family {
  to { stroke-dashoffset: 0; }
}
@keyframes move-open-weave {
  to { stroke-dashoffset: 0; }
}
.family-node {
  position: absolute;
  z-index: 2;
  width: 19%;
  min-width: 150px;
  padding: 17px 19px;
  border: 1px solid rgba(247, 244, 236, 0.16);
  background: rgba(27, 28, 23, 0.88);
  color: var(--ink);
  backdrop-filter: blur(8px);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}
.family-node:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 155, 60, 0.72);
  background: #25261f;
}
.family-node strong,
.family-node small,
.family-node span {
  display: block;
}
.family-node strong {
  margin: 3px 0 2px;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 500;
  line-height: 1.15;
}
.family-node small {
  color: rgba(247, 244, 236, 0.58);
  font-size: 0.72rem;
}
.node-index {
  color: #c89b3c;
  font: 0.6rem var(--mono);
  letter-spacing: 0.11em;
}
.node-foundation {
  left: 3%;
  top: 63px;
  border-style: dashed;
}
.node-tokenizer {
  left: 3%;
  top: 254px;
}
.node-core {
  left: 36%;
  top: 154px;
  width: 18%;
  border-color: rgba(200, 155, 60, 0.65);
  background: #9a6e1f;
  color: #fffdf8;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.25);
}
.node-core .node-index,
.node-core small {
  color: rgba(255, 253, 248, 0.72);
}
.node-core:hover {
  background: #ad7d29;
}
.node-language,
.node-documents,
.node-voice {
  left: 75%;
}
.node-language { top: 38px; }
.node-documents { top: 154px; }
.node-voice { top: 270px; }

.model-pathways {
  padding-top: clamp(40px, 5vw, 60px);
  padding-bottom: 0;
}
.model-pathway {
  scroll-margin-top: 110px;
  position: relative;
  border-top: 0;
  padding: 24px 0 clamp(44px, 6vw, 64px);
}
.model-pathway::before {
  content: "";
  position: absolute;
  top: -15px;
  right: 0;
  left: 0;
  height: 30px;
  background: var(--woven-band) center / 240px 30px repeat-x;
  opacity: 0.34;
}
.model-pathway:first-child {
  border-top: 0;
  padding-top: 0;
}
.model-pathway:first-child::before {
  display: none;
}
.model-pathway:last-child {
  padding-bottom: clamp(32px, 5vw, 48px);
}
.pathway-head {
  display: grid;
  grid-template-columns: 70px minmax(280px, 0.9fr) minmax(300px, 0.7fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  margin-bottom: 28px;
}
.pathway-number {
  color: var(--muga);
  font: italic 1rem var(--display);
}
.pathway-label,
.model-status {
  display: block;
  color: var(--muga-dim);
  font: 0.65rem var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pathway-head h3 {
  max-width: 570px;
  margin-top: 8px;
  font-size: clamp(2rem, 3.3vw, 3.15rem);
  text-wrap: balance;
}
.pathway-head p {
  color: var(--parchment-dim);
  font-size: 1.05rem;
}
.model-list {
  margin-left: calc(70px + clamp(24px, 5vw, 70px));
  border-top: 1px solid var(--line);
}
.model-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(280px, 1.2fr) minmax(170px, 0.65fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  min-height: 112px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}
.model-row:hover {
  background: rgba(255, 253, 248, 0.62);
}
.model-row h4 {
  margin: 7px 0 0;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}
.model-row p {
  margin: 0;
  color: var(--parchment-dim);
}
.featured-model {
  position: relative;
  background: var(--muga-soft);
}
.featured-model::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--muga);
}
.model-specs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muga-dim);
  font: 0.72rem var(--mono);
}

@media (max-width: 860px) {
  .model-hero .editorial-page-layout {
    min-height: 520px;
  }
  .model-hero-script {
    left: auto;
    right: -0.06em;
    opacity: 0.6;
  }
  .family-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .family-map {
    display: grid;
    gap: 14px;
    min-height: 0;
    padding: 28px 20px 30px 46px;
    border-radius: 2px 54px 2px 54px;
  }
  .family-map::before,
  .family-weave {
    display: none;
  }
  .family-map::after {
    content: "";
    position: absolute;
    left: 27px;
    top: 56px;
    bottom: 58px;
    width: 1px;
    background: linear-gradient(transparent, var(--muga) 10%, var(--muga) 90%, transparent);
  }
  .family-node {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    min-width: 0;
  }
  .family-node::after {
    content: "";
    position: absolute;
    left: -20px;
    top: 50%;
    width: 20px;
    border-top: 1px solid rgba(200, 155, 60, 0.62);
  }
  .node-foundation::after {
    border-top-style: dashed;
    border-top-color: rgba(247, 244, 236, 0.32);
  }
  .family-node:hover {
    transform: none;
  }
  .pathway-head {
    grid-template-columns: 44px 1fr;
  }
  .pathway-head > p {
    grid-column: 2;
  }
  .model-list {
    margin-left: 0;
  }
  .model-row {
    grid-template-columns: 1fr 1fr;
  }
  .model-row > p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 560px) {
  .model-hero .hero-cta {
    align-items: flex-start;
  }
  .family-map {
    gap: 12px;
    padding: 24px 16px 26px 38px;
  }
  .family-map::after {
    left: 21px;
    top: 48px;
    bottom: 50px;
  }
  .family-node {
    padding: 14px 16px;
  }
  .family-node::after {
    left: -17px;
    width: 17px;
  }
  .pathway-head {
    grid-template-columns: 1fr;
  }
  .pathway-head > p {
    grid-column: 1;
  }
  .pathway-number {
    margin-bottom: -12px;
  }
  .model-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 12px;
  }
  .model-row > p {
    grid-column: 1;
    grid-row: auto;
  }
}

/* ---------- home delivery paths & family strip ---------- */
.delivery-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 52px);
}
.delivery-path {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 200px;
  padding: clamp(26px, 3vw, 32px) 0 clamp(18px, 2.5vw, 24px);
  border-top: 0;
  color: inherit;
  transition: color 0.15s ease;
  position: relative;
}
.delivery-path::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 18px;
  background: var(--woven-band) left center / 144px 18px repeat-x;
  opacity: 0.42;
  transition: opacity 0.2s ease;
}
.delivery-path:hover::before {
  opacity: 0.8;
}
.delivery-path h3 {
  margin: 10px 0 14px;
  font-size: clamp(2rem, 3.4vw, 3rem);
}
.delivery-path p {
  flex: 1;
  max-width: 420px;
  color: var(--parchment-dim);
}
.path-cta {
  margin-top: 16px;
  color: var(--muga);
  font: 0.78rem var(--mono);
  letter-spacing: 0.04em;
}

.family-preview {
  padding-top: clamp(32px, 4vw, 52px);
}
.family-preview + .corpus-editorial {
  padding-top: 16px;
}
.family-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0 20px;
}
.family-strip a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 8px 14px 0;
  border-top: 1px solid var(--line);
  color: inherit;
}
.family-strip strong {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 500;
}
.family-strip span {
  color: var(--parchment-dim);
  font: 0.68rem var(--mono);
  letter-spacing: 0.04em;
}
.institutional-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.deploy-page .deploy-hero .eyebrow {
  color: #c89b3c;
}

/* Deploy page: tighter vertical rhythm after content trim */
.deploy-page .deploy-hero {
  padding: 20px 0 28px;
}
.deploy-page .deploy-hero .wrap {
  --parchment: #f7f4ec;
  --parchment-dim: #aaa69b;
  --line: rgba(247, 244, 236, 0.22);
  width: min(calc(100% - 64px), var(--wide));
  max-width: var(--wide);
  padding: clamp(48px, 6vw, 84px) clamp(32px, 6vw, 96px)
    clamp(42px, 5vw, 68px);
  position: relative;
  overflow: hidden;
  border-radius: 2px 2px 2px clamp(64px, 9vw, 150px);
  background:
    radial-gradient(circle at 88% 18%, rgba(200, 155, 60, 0.16), transparent 28%),
    linear-gradient(135deg, #20211b, #151611);
  color: var(--parchment);
}
.deploy-page .deploy-hero .wrap::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 24px;
  background: var(--woven-band) left center / 192px 24px repeat-x;
  opacity: 0.22;
  pointer-events: none;
}
.deploy-page .deploy-hero h1 {
  max-width: 820px;
  font-size: clamp(2.8rem, 4.6vw, 4.9rem);
  text-wrap: balance;
}
.deploy-page .deploy-hero .lede {
  max-width: 760px;
}
.deploy-page .deploy-hero .hero-cta {
  margin-top: 20px;
}
.deploy-page .deploy-hero .family-strip {
  max-width: 980px;
  margin: 36px 0 0;
}
.deploy-page .deploy-hero .family-strip a {
  transition: color 0.2s ease;
}
.deploy-page .deploy-hero .family-strip a:hover {
  color: var(--muga);
}
.deploy-terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
}
.deploy-page .deploy-hero + section {
  padding-top: 40px;
}
.deploy-page footer.site {
  padding-top: 32px;
}

@media (max-width: 860px) {
  .deploy-page .deploy-hero {
    padding: 16px 0 24px;
  }
  .deploy-page .deploy-hero .wrap {
    width: calc(100% - 32px);
    padding: 44px 28px 42px;
    border-radius: 2px 2px 2px 64px;
  }
  .deploy-page .deploy-hero .institutional-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .deploy-page .deploy-hero + section {
    padding-top: 28px;
  }
  .deploy-terms {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .delivery-paths,
  .family-strip,
  .institutional-strip {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .delivery-paths,
  .family-strip,
  .institutional-strip {
    grid-template-columns: 1fr;
  }
  .deploy-page .deploy-hero .institutional-strip {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .delivery-path {
    min-height: 0;
  }
}

/* ---------- news index ---------- */
.news-index {
  padding-bottom: 64px;
}
.featured-release {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 360px;
  overflow: hidden;
  color: inherit;
  background: var(--ink-3);
  border-radius: 2px 2px 64px 2px;
}
.featured-release-art {
  min-height: 360px;
  margin: 0;
  overflow: hidden;
}
.featured-release-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.featured-release:hover .featured-release-art img {
  transform: scale(1.025);
}
.featured-release-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px);
}
.featured-release-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}
.featured-release-copy > p:not(.article-meta) {
  max-width: 38ch;
  color: var(--parchment-dim);
}
.featured-release-copy .news-read {
  margin-top: 10px;
}
.news-all-heading {
  margin-top: clamp(48px, 7vw, 80px);
}
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.news-item {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
  transition: color 0.25s ease;
}
.news-item:last-child {
  border-bottom: 1px solid var(--line-soft);
}
.news-thumb {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: var(--ink-3);
  aspect-ratio: 1402 / 1122;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.news-item:hover .news-thumb img {
  transform: scale(1.03);
}
.news-item-copy h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin-bottom: 0.35em;
}
.news-item-copy p {
  color: var(--parchment-dim);
  max-width: 52ch;
  margin-bottom: 0.75em;
}
.news-read {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muga-dim);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--parchment-dim);
}
.article-meta time {
  color: var(--muga-dim);
}
.release-category {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}
.release-category::before {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: currentColor;
  content: "";
}
.category-language {
  color: var(--muga-dim);
}
.category-voice {
  color: var(--gamosa);
}
.category-document {
  color: var(--parchment-dim);
}
.category-tokenizer {
  color: var(--parchment);
}

@media (max-width: 720px) {
  .featured-release {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 2px 2px 48px 2px;
  }
  .featured-release-art {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .featured-release-copy {
    padding: 28px 24px 34px;
  }
  .featured-release-copy h2 {
    font-size: 2.15rem;
  }
  .news-all-heading {
    margin-top: 48px;
  }
  .news-item {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0;
  }
  .news-thumb {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .hero-grid {
    min-height: 600px;
  }
  .hero-copy {
    width: 96%;
    padding: 32px 22px 34px;
  }
  .hero-copy h1 {
    font-size: clamp(2.2rem, 10vw, 2.45rem);
    line-height: 1.06;
    text-wrap: pretty;
  }
  .hero .lede {
    margin-bottom: 18px;
    font-size: 1.02rem;
    line-height: 1.45;
  }
  .hero-cta {
    gap: 10px;
  }
  .hero-cta .btn {
    padding: 11px 15px;
    font-size: 0.72rem;
  }
  .hero-evidence {
    margin-top: 14px;
    gap: 5px 14px;
    font-size: 0.62rem;
  }
  .hero-grid::after {
    background: linear-gradient(
      90deg,
      var(--ink-3) 0%,
      rgba(238, 233, 220, 0.985) 48%,
      rgba(238, 233, 220, 0.8) 72%,
      rgba(238, 233, 220, 0.28) 100%
    );
  }
}

/* ---------- news article ---------- */
.news-article {
  padding-bottom: 0;
}
.article-stats-section {
  padding: 28px 0 20px;
}
@media (max-width: 860px) {
  .article-stats-section {
    padding: 20px 0 16px;
  }
}
.article-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  width: min(calc(100% - 64px), var(--wide));
  margin: 20px auto 0;
  overflow: hidden;
  background: var(--ink-3);
  border-radius: 2px 2px 2px clamp(48px, 7vw, 120px);
  min-height: clamp(380px, 52vh, 560px);
}
.article-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 4vw, 56px) clamp(28px, 4vw, 48px);
}
.article-hero-copy h1 {
  font-size: clamp(2.1rem, 3.8vw, 3.4rem);
  text-wrap: balance;
}
.article-art {
  position: relative;
  margin: 0;
  min-height: 280px;
  aspect-ratio: 1402 / 1122;
  background: var(--parchment);
}
.article-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.article-art figcaption {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 20px;
  color: #fffaf0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75);
}
.article-art--dark-caption figcaption {
  color: #17242d;
  text-shadow: 0 1px 10px rgba(255, 250, 240, 0.9);
}
.article-stats {
  grid-template-columns: repeat(3, 1fr);
}
.article-body .wrap.narrow {
  max-width: 760px;
}
.article-body {
  padding-top: 8px;
  padding-bottom: clamp(48px, 6vw, 72px);
}
.article-body p {
  font-size: 1.05rem;
  line-height: 1.7;
}
.article-docs {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  color: var(--parchment-dim);
}
.article-docs a {
  color: var(--muga-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article-nav a {
  color: var(--muga);
}

@media (max-width: 860px) {
  .article-hero {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
    min-height: 0;
    border-radius: 2px 2px 2px 64px;
  }
  .article-art {
    min-height: 240px;
    aspect-ratio: 1402 / 1122;
  }
  .article-stats {
    grid-template-columns: 1fr;
  }
  .article-stats .stat:nth-child(even) {
    transform: none;
  }
}

/* ---------- news charts ---------- */
.news-chart {
  margin: 2.4rem 0 1.2rem;
  padding: 28px 0 8px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.news-chart figcaption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1.4rem;
}
.news-chart figcaption strong {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
}
.news-chart figcaption span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--parchment-dim);
}
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.chart-row,
.chart-group {
  display: grid;
  grid-template-columns: minmax(100px, 140px) 1fr auto;
  gap: 14px 16px;
  align-items: center;
}
.chart-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--parchment-dim);
}
.chart-track {
  height: 10px;
  background: var(--ink-3);
  border-radius: 1px;
  overflow: hidden;
}
.chart-fill {
  display: block;
  height: 100%;
  width: var(--chart-w, 0%);
  background: var(--muga);
  border-radius: 1px;
  transform-origin: left center;
}
.js.motion-ok .news-chart .chart-fill {
  animation: chart-grow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes chart-grow {
  from {
    transform: scaleX(0.08);
    opacity: 0.4;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}
.chart-value {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--parchment);
  min-width: 4.5ch;
  text-align: right;
}
.chart-pair {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chart-fill-a {
  background: var(--line);
}
.chart-fill-b {
  background: var(--muga);
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--parchment-dim);
}
.chart-legend .swatch {
  display: inline-block;
  width: 12px;
  height: 8px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 1px;
}
.swatch-a {
  background: var(--line);
}
.swatch-b {
  background: var(--muga);
}
.line-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}
.line-chart .chart-grid {
  stroke: var(--line-soft);
  stroke-width: 1;
}
.line-chart .chart-line {
  stroke: var(--muga);
  stroke-width: 2.25;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.line-chart circle {
  fill: var(--ink);
  stroke: var(--muga);
  stroke-width: 2;
}
.line-chart .chart-axis {
  fill: var(--parchment-dim);
  font-family: var(--mono);
  font-size: 11px;
}

@media (max-width: 560px) {
  .chart-row,
  .chart-group {
    grid-template-columns: 1fr auto;
  }
  .chart-label {
    grid-column: 1 / -1;
  }
}

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

body.chat-page {
  color-scheme: dark;
  --ink: #0d0e0c;
  --ink-2: #151612;
  --ink-3: #1d1e19;
  --parchment: #f2eee3;
  --parchment-dim: #aaa598;
  --muga: #d3a34a;
  --muga-dim: #b8872f;
  --muga-soft: rgba(211, 163, 74, 0.12);
  --muga-hover: #e2b75e;
  --on-muga: #17150f;
  --line: #39382f;
  --line-soft: #282822;
  --header-bg: #0d0e0c;
  --atmosphere:
    radial-gradient(circle at 8% 18%, rgba(211, 163, 74, 0.07), transparent 24rem),
    radial-gradient(circle at 92% 46%, rgba(166, 59, 46, 0.055), transparent 28rem);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.chat-page nav.bar {
  max-width: none;
  width: 100%;
  padding-inline: 24px;
}

.chat-brand {
  display: grid;
  grid-template-columns: 236px auto;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.chat-brand-mark {
  width: max-content;
}

.chat-brand-mark img {
  filter: invert(1);
}

.chat-brand-name {
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1;
  color: var(--muga);
  letter-spacing: 0.08em;
  font-weight: 600;
  white-space: nowrap;
}

.chat-layout {
  flex: 1;
  display: flex;
  min-height: 0;
  width: 100%;
  position: relative;
}

.chat-sidebar {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 12px;
  border-right: 1px solid var(--line-soft);
  background: var(--ink-2);
  min-height: 0;
}

.chat-sidebar-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-sidebar-new {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-muga);
  -webkit-text-fill-color: var(--on-muga);
  background: var(--muga);
  border: none;
  border-radius: 2px;
  padding: 11px 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.chat-sidebar-new:hover {
  background: var(--muga-hover);
}

.chat-sidebar-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--parchment-dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
}

.chat-sidebar-close:hover {
  color: var(--parchment);
}

.chat-history-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  padding: 10px 8px 4px;
}

.chat-history {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-history-empty {
  margin: 8px;
  font-size: 0.88rem;
  color: var(--parchment-dim);
}

.chat-history-empty[hidden] {
  display: none;
}

.chat-history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  border-radius: 2px;
}

.chat-history-item.is-active {
  background: var(--muga-soft);
}

.chat-history-open {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  min-width: 0;
  text-align: left;
  padding: 10px 8px 10px 10px;
  color: var(--parchment);
  background: transparent;
  border: none;
  cursor: pointer;
}

.chat-history-item:not(.is-active) .chat-history-open:hover {
  background: rgba(255, 255, 255, 0.03);
}

.chat-history-title {
  font-family: var(--body);
  font-size: 0.92rem;
  line-height: 1.35;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chat-history-meta {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--parchment-dim);
}

.chat-history-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  color: var(--parchment-dim);
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.chat-history-item:hover .chat-history-delete,
.chat-history-item:focus-within .chat-history-delete {
  opacity: 1;
}

.chat-history-delete:hover {
  color: var(--gamosa);
}

.chat-sidebar-backdrop {
  display: none;
}

.chat-history-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--parchment-dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
}

.chat-history-toggle:hover {
  color: var(--parchment);
}

.chat-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  min-height: 0;
  min-width: 0;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 24px 24px;
}

.chat-shell > .chat-toolbar,
.chat-shell > .chat-thread,
.chat-shell > .chat-composer {
  width: 100%;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.chat-message.is-static {
  animation: none;
}

.chat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}

.chat-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.chat-model-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--parchment-dim);
}

.chat-model {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--parchment);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.chat-model:focus {
  outline: 2px solid var(--muga);
  outline-offset: 2px;
}

.chat-demo-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muga);
}

.chat-new {
  display: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.chat-new:hover {
  color: var(--parchment);
  border-color: var(--line);
}

.chat-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 28px 0 20px;
  scroll-behavior: smooth;
}

.chat-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(52vh, 420px);
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
  animation: chat-fade-up 0.55s ease both;
}

.chat-empty[hidden] {
  display: none;
}

.chat-empty .eyebrow {
  justify-content: center;
}

.chat-empty h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.35em;
}

.chat-empty p {
  color: var(--parchment-dim);
  margin: 0 auto 1.6em;
}

.chat-suggestions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-suggestions button {
  font-family: var(--body);
  font-size: 0.98rem;
  line-height: 1.4;
  text-align: left;
  color: var(--parchment);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.2s ease;
}

.chat-suggestions button:hover {
  border-color: var(--muga-dim);
  background: var(--muga-soft);
}

.chat-suggestions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.chat-message {
  display: grid;
  gap: 8px;
  margin: 0 0 28px;
  animation: chat-fade-up 0.35s ease both;
}

.chat-message-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muga);
}

.chat-message--user .chat-message-label {
  color: var(--parchment-dim);
}

.chat-message-body {
  font-size: 1.05rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 42rem;
  color: var(--parchment);
}

.chat-message-body.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--muga);
  animation: chat-caret 0.9s steps(1) infinite;
}

.chat-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  flex-shrink: 0;
}

.chat-composer textarea {
  width: 100%;
  resize: none;
  min-height: 52px;
  max-height: 160px;
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--parchment);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  overflow-y: auto;
}

.chat-composer textarea:focus {
  outline: none;
  border-color: var(--muga-dim);
  box-shadow: 0 0 0 3px var(--muga-soft);
}

.chat-composer textarea::placeholder {
  color: var(--parchment-dim);
  opacity: 0.8;
}

.chat-composer textarea:disabled {
  opacity: 0.7;
}

.chat-send {
  min-height: 52px;
  padding-inline: 22px;
  color: var(--on-muga);
  -webkit-text-fill-color: var(--on-muga);
}

.chat-send:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@keyframes chat-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chat-caret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 860px) {
  .chat-brand {
    display: flex;
    gap: 10px;
  }

  .chat-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 60;
    width: min(300px, 86vw);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: none;
  }

  .chat-layout.is-sidebar-open .chat-sidebar {
    transform: translateX(0);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.35);
  }

  .chat-sidebar-close,
  .chat-history-toggle {
    display: inline-flex;
  }

  .chat-new {
    display: inline-flex;
  }

  .chat-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .chat-layout.is-sidebar-open .chat-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .chat-history-delete {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  body.chat-page nav.bar {
    padding-inline: 16px;
  }

  .chat-brand-name {
    font-size: 0.76rem;
  }

  .chat-shell {
    padding: 0 12px max(12px, env(safe-area-inset-bottom));
  }

  .chat-toolbar {
    align-items: center;
    gap: 8px;
    padding: 10px 0 12px;
  }

  .chat-toolbar-left {
    flex: 1;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .chat-model-label,
  .chat-new {
    display: none;
  }

  .chat-history-toggle,
  .chat-sidebar-close {
    width: 44px;
    height: 44px;
  }

  .chat-model {
    min-width: 0;
    max-width: 124px;
    padding: 8px 10px;
    font-size: 1rem;
  }

  .chat-demo-badge {
    min-width: 0;
    overflow: hidden;
    font-size: 0.62rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .chat-thread {
    padding: 20px 0 14px;
  }

  .chat-empty {
    min-height: auto;
    padding: 32px 0 24px;
  }

  .chat-suggestions button {
    padding: 12px 14px;
  }

  .chat-composer {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding-top: 10px;
  }

  .chat-composer textarea {
    min-width: 0;
    padding-inline: 14px;
  }

  .chat-send {
    width: auto;
    min-width: 72px;
    padding-inline: 16px;
  }

  .chat-history-delete {
    width: 44px;
  }

  .chat-sidebar {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-empty,
  .chat-message {
    animation: none;
  }

  .chat-sidebar,
  .chat-sidebar-backdrop {
    transition: none;
  }

  .chat-message-body.is-typing::after {
    animation: none;
    opacity: 0.7;
  }
}
