:root {
  --bg: #111312;
  --bg-muted: #171b19;
  --bg-accent: #121615;
  --panel: rgba(21, 27, 25, 0.82);
  --panel-strong: rgba(26, 33, 31, 0.95);
  --line: rgba(235, 241, 239, 0.11);
  --line-strong: rgba(235, 241, 239, 0.2);
  --text: #edf1ef;
  --text-muted: #a9b3ae;
  --text-soft: #c8d0cc;
  --accent: #76d0c3;
  --color-muted: #aab5b0;
  --color-text: #e7ece9;
  --accent-strong: #d9c17c;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  --site-header-height: 104px;
  --chat-visual-viewport-height: 100dvh;
  --hero-illustration-shift: 0px;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  font-size: 16px;
  font-synthesis: none;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(118, 208, 195, 0.08) 0%, rgba(118, 208, 195, 0) 26rem),
    linear-gradient(135deg, rgba(217, 193, 124, 0.08) 0%, rgba(217, 193, 124, 0) 50rem),
    var(--bg);
  color: var(--text);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.48),
    rgba(255, 255, 255, 0.16) 40%,
    transparent 85%
  );
  pointer-events: none;
  z-index: 0;
}

body,
button,
input,
textarea,
select {
  color: inherit;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

#app {
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  z-index: 50;
}

.skip-link:focus {
  top: 16px;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  z-index: 1;
  --page-logo-translate: 188px;
  --page-logo-opacity: 0.058;
  --page-logo-symbol-opacity: 0.086;
}

.site-shell > main,
.site-shell > footer {
  position: relative;
  z-index: 1;
}

.site-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.site-background__glow,
.site-background__logo-stack {
  position: absolute;
  top: 50%;
  left: 50%;
  will-change: transform;
}

.site-background__glow {
  width: min(96vw, 1120px);
  aspect-ratio: 1 / 1;
  transform: translate3d(-50%, -50%, 0)
    translate3d(0, calc(var(--page-logo-translate) - 24px), 0);
  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(118, 208, 195, 0.1) 0%,
      rgba(118, 208, 195, 0.06) 18%,
      rgba(118, 208, 195, 0) 44%
    ),
    radial-gradient(
      circle at 50% 65%,
      rgba(217, 193, 124, 0.06) 0%,
      rgba(217, 193, 124, 0) 26%
    );
  filter: blur(48px);
  opacity: 0.52;
}

.site-background__logo-stack {
  width: clamp(760px, 74vw, 1060px);
  aspect-ratio: 1 / 1;
  transform: translate3d(-50%, -50%, 0)
    translate3d(0, var(--page-logo-translate), 0);
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.94) 12%,
    rgba(255, 255, 255, 0.94) 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.94) 12%,
    rgba(255, 255, 255, 0.94) 88%,
    transparent 100%
  );
}

.site-background__logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: var(--page-logo-opacity);
  filter: grayscale(0.08) saturate(0.5) brightness(0.42) contrast(1.08)
    blur(0.4px);
  transform: scale(1.015);
  will-change: opacity;
}

.site-background__logo--symbol {
  opacity: var(--page-logo-symbol-opacity);
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 54%,
    rgba(255, 255, 255, 0.16) 64%,
    transparent 72%
  );
  mask-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 54%,
    rgba(255, 255, 255, 0.16) 64%,
    transparent 72%
  );
  filter: grayscale(0.04) saturate(0.54) brightness(0.48) contrast(1.1)
    blur(0.24px);
}

.container {
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 19, 18, 0.84);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand__icon {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand__descriptor {
  font-size: 0.72rem;
  opacity: 0.72;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.site-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  cursor: pointer;
}

.site-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.site-nav-toggle:hover,
.site-nav-toggle:focus-visible {
  border-color: rgba(118, 208, 195, 0.34);
  background: rgba(118, 208, 195, 0.08);
}

.site-nav-toggle:focus-visible {
  outline: 2px solid rgba(118, 208, 195, 0.48);
  outline-offset: 3px;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a:focus-visible,
.button:focus-visible,
.back-link:focus-visible,
.case-study-card__media-link:focus-visible,
.case-study-card__title-link:focus-visible,
.contact-email:focus-visible,
.chat-launcher:focus-visible,
.chat-panel__close:focus-visible,
.chat-panel__send:focus-visible,
.chat-panel__composer textarea:focus-visible {
  outline: 2px solid rgba(118, 208, 195, 0.48);
  outline-offset: 3px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease,
    opacity 150ms ease;
}

.button:hover,
.button:focus-visible
{
  transform: translateY(-1px);
}
.text-link:focus-visible {
  outline: 2px solid rgba(120, 255, 220, 0.75);
  outline-offset: 3px;
}
.text-link:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 255, 220, 0.42);
  background: rgba(120, 255, 220, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.button--primary {
  border-color: rgba(118, 208, 195, 0.36);
  background: linear-gradient(
    135deg,
    rgba(118, 208, 195, 0.98),
    rgba(217, 193, 124, 0.92)
  );
  color: #111312;
}

.button--secondary,
.button--ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.button--secondary:hover,
.button--secondary:focus-visible,
.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: rgba(118, 208, 195, 0.34);
  background: rgba(118, 208, 195, 0.08);
}

.button--disabled {
  opacity: 0.56;
  pointer-events: none;
}

.button__icon{
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.text-link__icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  transition: transform 180ms ease;
}
.text-link:hover .text-link__icon {
  transform: translateX(2px);
}

.section {
  padding: 88px 0;
}

main section[id] {
  scroll-margin-top: calc(var(--site-header-height, 104px) + 20px);
}

.section--hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  min-height: calc(100svh - var(--site-header-height, 84px));
  min-height: calc(100lvh - var(--site-header-height, 84px));

  padding-top: clamp(40px, 7vh, 72px);
  padding-bottom: clamp(40px, 8vh, 88px);
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #111312;
}

.hero__background-inner {
  position: absolute;
  left: 50%;
  top: 50%;

  width: max(100vw, 1200px);
  height: max(100%, 760px);

  transform: translate3d(-50%, -50%, 0)
    translate3d(0, var(--hero-illustration-shift, 0px), 0);

  opacity: 1;
  overflow: hidden;

  -webkit-mask-image: radial-gradient(
    ellipse 82% 68% at center,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.92) 48%,
    rgba(255, 255, 255, 0.5) 76%,
    transparent 96%
  );
  mask-image: radial-gradient(
    ellipse 82% 68% at center,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.92) 48%,
    rgba(255, 255, 255, 0.5) 76%,
    transparent 96%
  );
}

.hero__background-image {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: screen;
  filter: grayscale(0.04) saturate(0.56) brightness(0.9) contrast(1.08);
}

.hero__background-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(17, 19, 18, 0.02) 0%, rgba(17, 19, 18, 0.16) 54%, rgba(17, 19, 18, 0.42) 100%),
    linear-gradient(180deg, rgba(17, 19, 18, 0.34) 0%, rgba(17, 19, 18, 0.08) 34%, rgba(17, 19, 18, 0.3) 100%);
}



.section--muted {
  background: rgba(255, 255, 255, 0.018);
}

.section--accent {
  background:
    linear-gradient(135deg, rgba(118, 208, 195, 0.07), rgba(118, 208, 195, 0)),
    rgba(255, 255, 255, 0.012);
}

.section-intro {
  max-width: 640px;
  margin-bottom: 34px;
}

.section-intro--compact {
  margin-bottom: 0;
}

.section-intro .button {
  margin-top: 28px;
}

.section-label {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
}

.display-title {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 12em;
  margin-top: 18px;
  font-size: clamp(4rem, 5.6vw, 4.65rem);
  line-height: 0.95;
  letter-spacing: 0;
  color: var(--text);
  text-align: center;
  text-wrap: balance;
}

.display-title__primary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.18em;
  max-width: 100%;
}

.display-title__primary-part {
  display: block;
  white-space: nowrap;
}

.display-title__line {
  display: block;
  max-width: 24ch;
}

.display-title__line--subtle {
  font-size: clamp(1.68rem, 2.55vw, 1.92rem);
  line-height: 1.08;
  color: var(--text-soft);
}

.section-title {
  margin-top: 14px;
  font-size: 2.35rem;
  line-height: 1.08;
  color: var(--text);
  text-wrap: balance;
}

.hero__description,
.section-copy,
.service-card p,
.case-study-card__intro p,
.case-study-card__bullets li,
.research-card__meta {
  color: var(--text-muted);
}

.hero__description {
  width: 100%;
  max-width: 34rem;
  margin-top: 24px;
  font-size: clamp(1.06rem, 1.22vw, 1.14rem);
  line-height: 1.62;
  text-wrap: balance;
}

.section-copy {
  max-width: 40rem;
  margin-top: 14px;
  font-size: 1rem;
}

.hero__grid,
.research-layout,
.contact-layout {
  display: grid;
  gap: 36px 44px;
}

  .research-support {
  margin-top: 1.35rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(145, 207, 190, 0.18);
  border-radius: 1rem;
  background: rgba(14, 31, 27, 0.48);
}

.research-support__title {
  margin: 0 0 0.7rem;
  color: var(--color-text, #e7ece9);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.research-support__list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.research-support__list li {
  position: relative;
  padding-left: 1rem;
  color: var(--color-muted, #aab5b0);
  font-size: 0.92rem;
  line-height: 1.55;
}

.research-support__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(132, 226, 202, 0.85);
  box-shadow: 0 0 12px rgba(132, 226, 202, 0.35);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.75fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about-copy {
  align-self: stretch;
}

.about-highlights {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;

}

.about-highlights li {
  position: relative;
  padding: 0.95rem 1rem 0.95rem 2.75rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.022);
  color: var(--color-muted);
  box-shadow: none;
}

.about-highlights li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.3rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 0.28rem rgba(56, 189, 248, 0.12);
}

#about .button,
#about .button--secondary,
#about .action-link {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.38);
  color: var(--color-text);
  box-shadow: 0 3px 20px rgba(56, 189, 248, 0.12);
}

#about .button:hover,
#about .button--secondary:hover,
#about .action-link:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.55);
  transform: translateY(-1px);
}

#about .section-intro--compact {
  max-width: 680px;
}

#about .section-copy {
  max-width: 640px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;

}

/* About page */
.about-page {
  position: relative;
  z-index: 1;
}

.about-page__hero-section {
  padding-bottom: 64px;
}

.about-page__stack {
  display: grid;
  gap: 28px;
}

/* About page hero */
.about-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.about-hero__portrait-frame {
  order: 1;
  width: 100%;
  max-width: 220px;
  justify-self: start;
  padding: 8px;
  border: 1px solid rgba(235, 241, 239, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(118, 208, 195, 0.06), rgba(217, 193, 124, 0.04)),
    rgba(255, 255, 255, 0.02);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.about-hero__portrait {
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(235, 241, 239, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.16);
}

.about-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-hero__content {
  order: 2;
  min-width: 0;
  max-width: 720px;
}

.about-hero__title {
  margin-top: 10px;
  max-width: none;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  line-height: 1.05;
  text-wrap: balance;
}

.about-hero__description {
  max-width: 42rem;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.about-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

/* Snapshot cards */
.about-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.about-snapshot__card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.about-snapshot__label {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-snapshot__card strong {
  display: block;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.2;
}

.about-snapshot__card p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Story */
.about-story {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-story__body {
  display: grid;
  gap: 18px;
  max-width: 48rem;
}

.about-story__body p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

/* Belief cards */
.about-belief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-belief-card {
  position: relative;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(118, 208, 195, 0.045), rgba(118, 208, 195, 0)),
    var(--panel);
  overflow: hidden;
}

.about-belief-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 1px solid rgba(118, 208, 195, 0.28);
  border-radius: 999px;
  background: rgba(118, 208, 195, 0.08);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
}

.about-belief-card h2 {
  color: var(--text);
  font-size: 1.16rem;
  line-height: 1.25;
}

.about-belief-card p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Award */
.about-award {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.62fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-award__content {
  min-width: 0;
}

.about-award__media-frame {
  padding: 12px;
  border: 1px solid rgba(235, 241, 239, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
}

.about-award__image {
  width: 100%;
  border: 1px solid rgba(235, 241, 239, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
}

/* CTA */
.about-cta {
  max-width: 760px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(118, 208, 195, 0.08), rgba(217, 193, 124, 0.05)),
    var(--panel);
}

.about-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero__grid {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  min-height: 100%;
  gap: 0;
  z-index: 1;
}

.hero__content {
  display: grid;
  position: relative;
  z-index: 2;
  justify-items: center;
  width: 100%;
  max-width: min(48rem, 100%);
  align-content: center;
  text-align: center;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero__actions {
  margin-top: 34px;
  align-items: center;
}

.hero__actions .button {
  min-width: 196px;
}

.hero__capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 40rem);
  margin-top: 42px;
}

.hero__capability {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(235, 241, 239, 0.09);
  border-radius: 8px;
  background: rgba(16, 18, 17, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  text-align: left;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    transform 200ms ease;
}

.hero__capability:hover,
.hero__capability:focus-visible {
  border-color: rgba(235, 241, 239, 0.16);
  background: rgba(20, 23, 21, 0.95);
  transform: translateY(-2px);
}

.hero__capability:focus-visible {
  outline: none;
}

.hero__capability-title {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.18;
}

.hero__capability-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.38;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--accent);
}

.service-grid,
.case-study-grid,
.research-grid {
  display: grid;
  gap: 20px;
}

.service-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.case-study-card,
.research-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.service-card {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(118, 208, 195, 0.22);
  background: rgba(23, 29, 27, 0.9);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.service-card:nth-last-child(2):nth-child(3n + 1) {
  grid-column: 2 / span 2;
}

.service-card:nth-last-child(1):nth-child(3n + 1) {
  grid-column: 3 / span 2;
}

.service-card__media-frame {
  padding: 16px 16px 0;
}

.service-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(118, 208, 195, 0.06), rgba(118, 208, 195, 0)),
    rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.service-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 19, 18, 0) 0%, rgba(17, 19, 18, 0.12) 58%, rgba(17, 19, 18, 0.34) 100%),
    linear-gradient(135deg, rgba(17, 19, 18, 0.04), rgba(17, 19, 18, 0.18));
  pointer-events: none;
}

.service-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.72) brightness(0.8) contrast(1.06);
  transform: scale(1.02);
  transition:
    transform 220ms ease,
    filter 220ms ease;
}

.service-card:hover .service-card__image,
.service-card:focus-within .service-card__image {
  filter: saturate(0.78) brightness(0.84) contrast(1.08);
  transform: scale(1.05);
}

.service-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 18px 16px 16px;
}

.service-card h3 {
  font-size: 1.04rem;
  line-height: 1.24;
  color: var(--text);
  text-wrap: balance;
}

.case-study-card h3 {
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--text);
}

.service-card p {
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.58;
}

.service-card__tags {
  margin-top: auto;
}

.tag-list.service-card__tags li {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.8rem;
}

.case-study-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-study-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.case-study-card__media-link,
.case-study-card__title-link {
  color: inherit;
  text-decoration: none;
}

.case-study-card__media-frame {
  padding: 18px 18px 0;
}

.case-study-card__media-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.case-study-card__media {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(118, 208, 195, 0.08), rgba(118, 208, 195, 0)),
    linear-gradient(135deg, rgba(217, 193, 124, 0.08), rgba(217, 193, 124, 0)),
    rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.case-study-card__media-link:hover .case-study-card__media,
.case-study-card__media-link:focus-visible .case-study-card__media {
  border-color: rgba(118, 208, 195, 0.28);
}

.case-study-card__asset,
.case-study-card__placeholder {
  width: 100%;
  height: 100%;
}

.case-study-card__asset {
  object-fit: contain;
  background: rgba(0, 0, 0, 0.16);
}

.case-study-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--text-muted);
  text-align: center;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%);
  background-size: 36px 36px;
}

.case-study-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
}

.case-study-card__intro {
  display: grid;
  gap: 10px;
}

.case-study-card__title-link:hover,
.case-study-card__title-link:focus-visible {
  color: var(--accent);
}

.case-study-card__bullets {
  display: grid;
  gap: 10px;
}

.case-study-card__bullets li {
  position: relative;
  padding-left: 16px;
  line-height: 1.5;
}

.case-study-card__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list li,
.research-card__citation {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(118, 208, 195, 0.2);
  border-radius: 999px;
  background: rgba(118, 208, 195, 0.08);
  color: var(--text-soft);
  font-size: 0.88rem;
}

.case-study-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}
.case-study-card__actions .text-link:first-child {
  color: #06110f;
  background: linear-gradient(135deg, #7cffdf, #6f8cff);
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(80, 160, 255, 0.18);
}

.case-study-card__actions .text-link:first-child:hover {
  background: linear-gradient(135deg, #9dffe9, #839dff);
  border-color: transparent;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 42px;
  padding: 0 16px;

  border-radius: 999px;
  border: 1px solid rgba(120, 255, 220, 0.18);

  color: var(--text);
  background: rgba(255, 255, 255, 0.045);

  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;

  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.project-page {
  position: relative;
  z-index: 1;
}

.project-page__hero-section {
  padding-bottom: 64px;
}

.project-page__stack {
  display: grid;
  gap: 28px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.back-link::before {
  content: "\2190";
  color: var(--accent);
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--text);
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: start;
}

.project-hero__content,
.project-feature__content,
.project-overview,
.project-video,
.project-coming-soon {
  min-width: 0;
}

.project-hero__title {
  margin-top: 12px;
}

.project-hero__summary {
  max-width: 42rem;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.project-hero__content .tag-list {
  margin-top: 22px;
}

.project-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.project-hero__actions .button {
  min-width: 0;
}

.project-hero__media,
.project-feature__media {
  border: 1px solid rgba(235, 241, 239, 0.08);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(118, 208, 195, 0.04), rgba(118, 208, 195, 0)),
    rgba(255, 255, 255, 0.02);
}

.project-hero__media {
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
}

.project-hero__asset,
.project-feature__asset {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.08);
}

.project-overview {
  display: grid;
  gap: 24px;
}

.project-bullet-list {
  display: grid;
  gap: 12px;
}

.project-bullet-list--columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}

.project-bullet-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  line-height: 1.6;
}

.project-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.project-feature-grid {
  display: grid;
  gap: 20px;
}

.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid rgba(235, 241, 239, 0.08);
  border-radius: 0;
  background: transparent;
}

.project-feature:first-child {
  padding-top: 0;
  border-top: 0;
}

.project-feature__title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.project-feature__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(118, 208, 195, 0.32);
  border-radius: 50%;
  background: rgba(118, 208, 195, 0.1);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

.project-feature:nth-child(even) .project-feature__media-frame {
  order: 2;
}

.project-feature__media {
  width: 100%;
}

.project-feature__title {
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1.15;
}

.project-video,
.project-coming-soon {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.project-video__frame {
  position: relative;
  margin-top: 24px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.24);
}

.project-video__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.project-video__note {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.project-coming-soon .section-copy {
  margin-top: 16px;
}

.research-layout {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
}

.research-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.research-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 22px;
}

.research-card__meta {
  display: grid;
  gap: 8px;
  font-size: 0.84rem;
}

.research-card h3 {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
}

.research-card__citation {
  align-self: flex-start;
  margin-top: auto;
}




.contact-layout {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: end;
}

.contact-email {
  display: inline-flex;
  margin-top: 20px;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
}





.chat-widget {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 100;
  pointer-events: none;
}

.chat-nudge {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.85rem);
  width: min(280px, calc(100vw - 2rem));
  padding: 0.9rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  background: rgb(33 91 86);
  color: #f8fafc;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
  font-size: 0.9rem;
  line-height: 1.4;
  animation: chatNudgeIn 0.35s ease-out;
  pointer-events: auto;
}

.chat-nudge::after {
  content: "";
  position: absolute;
  right: 1.6rem;
  bottom: -0.45rem;
  width: 0.9rem;
  height: 0.9rem;
  background: rgb(33 91 86);
  border-right: 1px solid rgba(148, 163, 184, 0.22);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  transform: rotate(45deg);
  pointer-events: none;
}

.chat-nudge strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.chat-nudge span {
  display: block;
  padding-right: 1rem;
  color: rgba(226, 232, 240, 0.84);
}

.chat-nudge__close {
  position: absolute;
  top: 0.35rem;
  right: 0.55rem;
  border: 0;
  background: transparent;
  color: rgba(226, 232, 240, 0.72);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

@keyframes chatNudgeIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.chat-launcher,
.chat-panel,
.chat-panel__minimize,
.chat-panel__close,
.chat-panel__send,
.chat-panel__confirm-button,
.chat-panel__composer textarea {
  font: inherit;
}

.chat-launcher,
.chat-panel__minimize,
.chat-panel__close,
.chat-panel__send,
.chat-panel__confirm-button {
  border: 0;
  cursor: pointer;
}

.chat-launcher {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 0 18px 0 14px;
  border: 1px solid rgba(118, 208, 195, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(118, 208, 195, 0.18), rgba(217, 193, 124, 0.12)),
    rgba(20, 26, 24, 0.88);
  color: var(--text);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: auto;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
  backdrop-filter: blur(16px);
}

.chat-launcher:hover,
.chat-launcher:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(118, 208, 195, 0.44);
  background:
    linear-gradient(135deg, rgba(118, 208, 195, 0.24), rgba(217, 193, 124, 0.16)),
    rgba(24, 31, 29, 0.94);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.chat-launcher__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(237, 241, 239, 0.16);
  border-radius: 50%;
  background: rgba(237, 241, 239, 0.06);
  color: var(--accent);
}

.chat-launcher__svg {
  width: 18px;
  height: 18px;
}

.chat-launcher__label {
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0;
  white-space: nowrap;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(410px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 124px));
  min-height: 430px;
  border: 1px solid rgba(235, 241, 239, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(118, 208, 195, 0.08), rgba(118, 208, 195, 0)),
    rgba(18, 23, 22, 0.92);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  overscroll-behavior: contain;
  pointer-events: auto;
  transform-origin: bottom right;
  animation: chat-panel-enter 180ms ease-out;
  backdrop-filter: blur(22px);
  max-height: min(720px, calc(var(--chat-visual-viewport-height, 100vh) - 2rem));
}

.chat-panel--closing {
  animation: chat-panel-exit 180ms ease-in forwards;
}

.chat-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(235, 241, 239, 0.1);
}

.chat-panel__header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.chat-panel__mark {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(118, 208, 195, 0.26);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(118, 208, 195, 0.2), rgba(217, 193, 124, 0.12)),
    rgba(255, 255, 255, 0.04);
  color: var(--accent);
}

.chat-panel__mark-icon,
.chat-panel__close-icon,
.chat-panel__send-icon {
  width: 18px;
  height: 18px;
}

.chat-panel__brand h2 {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

.chat-panel__status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.chat-panel__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  flex: 0 0 auto;
}



.chat-panel__status--connected .chat-panel__status-dot {
  background: var(--accent);
}

.chat-panel__status--connecting .chat-panel__status-dot,
.chat-panel__status--reconnecting .chat-panel__status-dot {
  background: var(--accent-strong);
}

.chat-panel__status--disconnected .chat-panel__status-dot {
  background: rgba(255, 130, 110, 0.9);
}

.chat-panel__minimize,
.chat-panel__close,
.chat-panel__send {
  display: grid;
  place-items: center;
  border: 1px solid rgba(235, 241, 239, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease,
    opacity 150ms ease;
}

.chat-panel__minimize,
.chat-panel__close {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
}

.chat-panel__minimize:hover,
.chat-panel__minimize:focus-visible,
.chat-panel__close:hover,
.chat-panel__close:focus-visible,
.chat-panel__send:hover,
.chat-panel__send:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(118, 208, 195, 0.3);
  background: rgba(118, 208, 195, 0.1);
  color: var(--text);
}

.chat-panel__close:hover,
.chat-panel__close:focus-visible {
  border-color: rgba(255, 130, 110, 0.28);
  background: rgba(255, 130, 110, 0.12);
}

.chat-panel__body {
  position: relative;
  min-height: 0;
  padding: 18px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(118, 208, 195, 0.32) transparent;
}


.chat-panel__transcript {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  min-height: 100%;
}

.chat-panel__notice {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 130, 110, 0.2);
  border-radius: 10px;
  background: rgba(255, 130, 110, 0.1);
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}

.chat-panel__notice p {
  margin: 0;
}

.chat-panel__startup {
  position: absolute;
  inset: 18px 16px;
  display: grid;
  place-items: center;
  padding: 20px;
  border-radius: 12px;
  background: rgba(10, 13, 12, 0.84);
  backdrop-filter: blur(16px);
  z-index: 1;
}

.chat-panel__startup-card {
  display: grid;
  gap: 14px;
  justify-items: center;
  width: min(100%, 280px);
  padding: 18px;
  border: 1px solid rgba(235, 241, 239, 0.12);
  border-radius: 12px;
  background: rgba(18, 23, 22, 0.94);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.chat-panel__startup-message {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.chat-panel__turnstile {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 68px;
}

.chat-panel__startup-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(118, 208, 195, 0.24);
  border-radius: 10px;
  background: rgba(118, 208, 195, 0.1);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

.chat-panel__startup-button:hover,
.chat-panel__startup-button:focus-visible {
  border-color: rgba(118, 208, 195, 0.36);
  background: rgba(118, 208, 195, 0.14);
}

.chat-panel__empty {
  margin: auto 0;
  padding: 22px;
  border: 1px solid rgba(235, 241, 239, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.92rem;
  text-align: center;
}

.chat-message {
  display: flex;
  width: 100%;
}

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

.chat-message--assistant {
  justify-content: flex-start;
}

.chat-message__bubble {
  max-width: min(82%, 300px);
  padding: 11px 13px;
  border: 1px solid rgba(235, 241, 239, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.chat-markdown {
  white-space: pre-wrap;
  tab-size: 2;
}

.chat-markdown__p {
  margin: 0;
}

.chat-markdown__p + .chat-markdown__p {
  margin-top: 10px;
}

.chat-markdown__spacer {
  height: 10px;
}

.chat-markdown__list {
  margin: 10px 0 0;
  padding-left: 1.15em;
}

.chat-markdown__li {
  margin: 5px 0;
}

.chat-markdown__code {
  display: inline-block;
  padding: 0 6px;
  border: 1px solid rgba(235, 241, 239, 0.12);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-size: 0.9em;
  line-height: 1.6;
}

.chat-markdown__link {
  color: #8fd2ff;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.chat-markdown__link:hover,
.chat-markdown__link:focus-visible {
  color: #b7e4ff;
}

.chat-message__thinking {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.chat-thinking-dots {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 18px;
}

.chat-thinking-dots span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.32;
  animation: chat-thinking-dot 1.1s ease-in-out infinite;
}

.chat-thinking-dots span:nth-child(2) {
  animation-delay: 120ms;
}

.chat-thinking-dots span:nth-child(3) {
  animation-delay: 240ms;
}

.chat-message--user .chat-message__bubble {
  border-color: rgba(118, 208, 195, 0.22);
  background: rgba(118, 208, 195, 0.14);
  color: var(--text);
  border-bottom-right-radius: 5px;
}

.chat-message--assistant .chat-message__bubble {
  border-bottom-left-radius: 5px;
}

.chat-message--pending .chat-message__bubble,
.chat-message--thinking .chat-message__bubble {
  opacity: 0.72;
}

.chat-message--thinking .chat-message__bubble {
  background: rgba(255, 255, 255, 0.028);
}

.chat-message__bubble small {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.chat-panel__composer-field:focus-within {
  border-color: rgba(118, 208, 195, 0.32);
  background:
    linear-gradient(135deg, rgba(118, 208, 195, 0.16), rgba(217, 193, 124, 0.08)),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(118, 208, 195, 0.08);
}

.chat-panel__composer textarea {
  width: 100%;
  min-height: 42px;
  max-height: calc((1.4em * 3) + 20px);
  padding: 10px 12px;
  border: 0;
  border-radius: 15px;
  resize: none;
  background: transparent;
  color: var(--text);
  line-height: 1.4;
  overflow-y: hidden;
  outline: none;
}


.chat-panel__composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(235, 241, 239, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0)),
    rgba(10, 13, 12, 0.32);
}

.chat-panel__composer-field {
  min-width: 0;
  padding: 1px;
  border: 1px solid rgba(235, 241, 239, 0.11);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(118, 208, 195, 0.12), rgba(217, 193, 124, 0.06)),
    rgba(255, 255, 255, 0.035);
  transition:
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

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



.chat-panel__composer textarea::placeholder {
  color: rgba(200, 208, 204, 0.58);
}

.chat-panel__composer textarea:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}



.chat-panel__composer-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.chat-panel__send {
  width: 42px;
  height: 42px;
  background:
    linear-gradient(135deg, rgba(118, 208, 195, 0.98), rgba(217, 193, 124, 0.9));
  color: #111312;
}

.chat-panel__send:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.chat-panel__confirm-backdrop {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 11, 10, 0.74);
  backdrop-filter: blur(12px);
}

.chat-panel__confirm {
  width: min(100%, 320px);
  padding: 18px;
  border: 1px solid rgba(235, 241, 239, 0.14);
  border-radius: 14px;
  background: rgba(18, 23, 22, 0.96);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
}

.chat-panel__confirm h3 {
  font-size: 0.98rem;
}

.chat-panel__confirm p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-panel__confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.chat-panel__confirm-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(235, 241, 239, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

.chat-panel__confirm-button--secondary:hover,
.chat-panel__confirm-button--secondary:focus-visible {
  border-color: rgba(118, 208, 195, 0.28);
  background: rgba(118, 208, 195, 0.1);
}

.chat-panel__confirm-button--danger {
  border-color: rgba(255, 130, 110, 0.28);
  background: rgba(255, 130, 110, 0.12);
}

.chat-panel__confirm-button--danger:hover,
.chat-panel__confirm-button--danger:focus-visible {
  border-color: rgba(255, 130, 110, 0.4);
  background: rgba(255, 130, 110, 0.18);
}

@keyframes chat-panel-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes chat-panel-exit {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.98);
  }
}

@keyframes chat-thinking-dot {
  0%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }

  50% {
    opacity: 0.78;
    transform: translateY(-2px);
  }
}

.site-footer {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.site-footer__inner {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.site-footer__brand {
  display: grid;
  gap: 0.35rem;
  max-width: 620px;
}

.site-footer__name {
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.site-footer__brand p,
.site-footer__copyright {
  margin: 0;
  color: var(--color-muted);
}

.site-footer__brand p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.site-footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.site-footer__icon-link {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.035);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.site-footer__icon-link svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.site-footer__icon-link:hover {
  color: var(--color-text);
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.site-footer__copyright {
  font-size: 0.85rem;
}

@media (max-width: 1100px) {

  .hero__grid,
  .research-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero__content {
    max-width: 42rem;
  }

  .service-grid {
    gap: 14px;
  }

  .service-card__media-frame {
    padding: 14px 14px 0;
  }

  .service-card__body {
    gap: 10px;
    padding: 16px 14px 14px;
  }

  .service-card h3 {
    font-size: 0.96rem;
  }

  .service-card p {
    font-size: 0.88rem;
  }

  .tag-list.service-card__tags li {
    min-height: 28px;
    padding: 0 9px;
    font-size: 0.76rem;
  }

  .research-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-hero,
  .project-feature {
    grid-template-columns: 1fr;
  }

  .project-feature:nth-child(even) .project-feature__media-frame {
    order: 0;
  }

  .case-study-grid,
  .research-grid,
  .service-grid {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }
  .case-study-card,
  .research-card,
  .service-card
  {
    flex: 0 0 82%;
    min-width: 82%;
    scroll-snap-align: start;
  }
  .case-study-card,
  #services .service-card {
  grid-column: auto !important;
}
  .case-study-grid::-webkit-scrollbar,
  .research-grid::-webkit-scrollbar,
  .service-grid::-webkit-scrollbar {
    display: none;
  }


  .about-hero,
  .about-story,
  .about-award {
    grid-template-columns: 1fr;
  }

  .about-hero__title {
    max-width: 14ch;
  }

  .about-hero__portrait-frame {
    max-width: 420px;
  }

  .about-award__media-frame {
    max-width: 520px;
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    padding-top: 8px;
  }

  .display-title {
    max-width: 12.5em;
    font-size: clamp(3.7rem, 7.2vw, 4.3rem);
  }

  .section-title {
    font-size: 2rem;
  }

  .hero__grid {
    min-height: 0;
  }

  .hero__content {
    max-width: 44rem;
  }

  .hero__capability-grid {
    width: min(100%, 38rem);
  }

  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .service-card,
  .service-card:nth-last-child(2):nth-child(3n + 1),
  .service-card:nth-last-child(1):nth-child(3n + 1) {
    grid-column: span 2;
  }

  .service-card:nth-last-child(1):nth-child(2n + 1) {
    grid-column: 2 / span 2;
  }

  .service-card__media-frame {
    padding: 16px 16px 0;
  }

  .service-card__body {
    gap: 12px;
    padding: 18px 16px 16px;
  }

  .service-card h3 {
    font-size: 1.04rem;
  }

  .service-card p {
    font-size: 0.92rem;
  }

  .tag-list.service-card__tags li {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .case-study-grid,
  .research-grid {
    grid-template-columns: 1fr;
  }

  .project-bullet-list--columns {
    grid-template-columns: 1fr;
  }

  .about-hero {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }

  .about-hero__portrait-frame {
    max-width: 180px;
  }

  .about-hero__title {
    font-size: clamp(2rem, 5vw, 2.7rem);
  }

   .about-snapshot,
  .about-belief-grid {
    grid-template-columns: 1fr;
  }

  .about-snapshot__card,
  .about-belief-card {
    padding: 20px;
  }
}


@media (max-width: 780px) {

  .about-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .about-highlights li {
    padding: 0.95rem 0.95rem 0.95rem 2.5rem;
    border-radius: 1rem;
  }

  .about-highlights li::before {
    left: 0.95rem;
    top: 1.5rem;
  }
   .about-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-hero__portrait-frame {
    order: 1;
    max-width: 180px;
    justify-self: center;
  }

  .about-hero__content {
    order: 2;
    text-align: left;
    max-width: 100%;
  }

  .about-hero__title {
    max-width: 100%;
    font-size: 2.2rem;
    line-height: 1.08;
  }

  .about-hero__description {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.65;
  }

  .about-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .about-hero__actions .button {
    width: 100%;
  }

  .about-story__body p {
    font-size: 1rem;
    line-height: 1.68;
  }



  .about-cta {
    padding: 22px;
    border-radius: 14px;
  }

  .about-cta__actions {
    flex-direction: column;
  }

  .about-cta__actions .button {
    width: 100%;
  }
  .chat-nudge {
    right: 0;
    width: min(300px, calc(100vw - 2rem));
    font-size: 0.88rem;
  }
}


@media (max-width: 640px) {
  body::before,
  .site-background {
    display: none;
  }
  .container {
    width: min(100% - 28px, 1320px);
  }


  .section {
    padding: 76px 0;
  }

  .case-study-card__bullets{
    display: none;
  }

  .section--hero {
    min-height: 680px;
    padding-top: 24px;
    padding-bottom: 24px;
    --hero-illustration-shift: 0px;
  }

  .hero__background-inner {
    width: max(132vw, 700px);
    height: max(100%, 720px);
    opacity: 0.95;
  }

  .hero__background-inner::after {
    background:
      radial-gradient(circle at center, rgba(17, 19, 18, 0.08) 0%, rgba(17, 19, 18, 0.3) 58%, rgba(17, 19, 18, 0.62) 100%),
      linear-gradient(180deg, rgba(17, 19, 18, 0.58) 0%, rgba(17, 19, 18, 0.18) 40%, rgba(17, 19, 18, 0.56) 100%);
  }


  .site-shell {
    --page-logo-translate: 232px;
    --page-logo-opacity: 0.034;
    --page-logo-symbol-opacity: 0.052;
  }

  .display-title {
    gap: 20px;
    max-width: 100%;
    margin-top: 14px;
    font-size: 3rem;
    line-height: 1.08;
  }

  .display-title__primary {
    display: grid;
    gap: 0.04em;
  }

  .display-title__line {
    max-width: 18ch;
  }

  .display-title__line--subtle {
    font-size: 1.52rem;
    line-height: 1.08;
  }

  .section-title {
    font-size: 1.78rem;
  }

  .hero__description,
  .section-copy{
    font-size: 1.04rem;
  }

  .hero__description {
    max-width: 21rem;
    margin-top: 22px;
    line-height: 1.58;
  }

  .button {
    width: 100%;
    font-size: 1rem;
  }

  .hero__actions,
  .contact-actions {
    flex-direction: column;
  }

  .hero__actions {
    width: 100%;
    margin-top: 28px;
  }

  .hero__actions .button {
    width: min(100%, 280px);
    min-height: 48px;
  }

  .hero__capability-grid {
    display: none;
    grid-template-columns: 1fr;
    gap: 10px;
    width: min(100%, 21.5rem);
    max-width: 100%;
    margin-top: 34px;
  }

  .hero__capability {
    padding: 10px 11px;
  }

  .hero__capability-title {
    font-size: 1rem;
  }

  .hero__capability-text {
    font-size: 0.95rem;
    line-height: 1.36;
  }

  .site-header__inner {
    gap: 10px 16px;
    padding: 12px 0 10px;
  }

  .brand {
    gap: 1px;
  }

  .brand__name {
    font-size: 0.95rem;
  }

  .brand__descriptor {
    display: none;
  }

  .site-header__inner {
    position: relative;
    flex-wrap: nowrap;
  }

  .site-nav-toggle {
    display: inline-block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    gap: 6px;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(17, 19, 18, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
      opacity 160ms ease,
      visibility 160ms ease,
      transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 0.95rem;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(118, 208, 195, 0.08);
  }

  .site-nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .site-nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }


  .case-study-card__actions {
    gap: 10px;
  }

  .text-link {
    flex: 1 1 100%;
    min-height: 44px;
  }


  .site-nav a {
    font-size: 0.9rem;
  }

  .chat-widget {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: auto;
  }

  .chat-launcher {
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    justify-content: center;
    box-shadow:
      0 14px 30px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .chat-launcher__icon {
    width: 28px;
    height: 28px;
  }

  .service-card__body,
  .case-study-card__body,
  .research-card,
  .project-feature,
  .project-video,
  .project-coming-soon {
    padding-inline: 20px;
  }

  .service-card__media-frame {
    padding-inline: 14px;
  }



  .project-page__hero-section {
    padding-bottom: 44px;
  }

  .project-page__stack {
    gap: 22px;
  }

  .project-hero__summary {
    font-size: 1rem;
  }

  .project-hero__actions {
    flex-direction: column;
  }

  .project-hero__actions .button {
    width: 100%;
  }

  .project-feature {
    gap: 18px;
    padding-block: 20px;
  }

  .project-feature__title {
    font-size: 1.2rem;
  }

  .project-video__frame {
    margin-top: 20px;
  }

  .site-background__glow {
    width: max(132vw, 620px);
    filter: blur(40px);
    opacity: 0.32;
    transform: translate3d(-50%, -50%, 0)
      translate3d(0, calc(var(--page-logo-translate) - 8px), 0);
  }

  .site-background__logo-stack {
    width: clamp(620px, 155vw, 860px);
    transform: translate3d(-50%, -50%, 0)
      translate3d(0, var(--page-logo-translate), 0);
    -webkit-mask-image: linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.86) 14%,
      rgba(255, 255, 255, 0.86) 84%,
      transparent 100%
    );
    mask-image: linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.86) 14%,
      rgba(255, 255, 255, 0.86) 84%,
      transparent 100%
    );
  }

  .site-background__logo {
    filter: grayscale(0.08) saturate(0.44) brightness(0.36) contrast(1.06)
      blur(0.35px);
  }

  .site-background__logo--symbol {
    -webkit-mask-image: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.94) 50%,
      rgba(255, 255, 255, 0.12) 60%,
      transparent 68%
    );
    mask-image: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.94) 50%,
      rgba(255, 255, 255, 0.12) 60%,
      transparent 68%
    );
  }

  .case-study-card__media-frame {
    padding-inline: 14px;
  }

  .chat-widget {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    left: max(14px, env(safe-area-inset-left));
    display: flex;
    justify-content: flex-end;
  }

  .chat-launcher {
    min-height: 52px;
    padding-inline: 12px;
  }

  .chat-launcher__label {
    display: none;
  }

  .chat-widget--open .chat-launcher {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(0.98);
  }

  .chat-panel {
    position: fixed;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    width: auto;
    height: min(640px, calc(var(--chat-visual-viewport-height, 100dvh) - 28px));
    min-height: min(520px, calc(var(--chat-visual-viewport-height, 100dvh) - 28px));
    max-height: calc(var(--chat-visual-viewport-height, 100vh) - 1.5rem);
    border-radius: 16px;
    transform-origin: bottom center;
  }

  .chat-panel__header {
    padding: 15px 14px 13px;
  }

  .chat-panel__body {
    padding: 16px 14px;
  }

  .chat-message__bubble {
    max-width: 88%;
  }

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

@media (max-width: 380px) {
  .chat-panel {
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    height: calc(var(--chat-visual-viewport-height, 100dvh) - 16px);
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-launcher,
  .chat-panel__close,
  .chat-panel__send,
  .chat-panel {
    transition: none;
    animation: none;
  }

  .chat-thinking-dots span {
    animation: none;
    opacity: 0.6;
    transform: none;
  }
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header,
  .site-nav,
  .chat-panel,
  .chat-nudge {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}