:root {
  color-scheme: light;
  --ink: #17242c;
  --ink-soft: #52616a;
  --navy: #101a22;
  --navy-light: #172630;
  --paper: #f5f4ef;
  --white: #fff;
  --line: #dedfd9;
  --mint: #b7efcf;
  --mint-dark: #237853;
  --blue: #4774e8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid #6c91ff;
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 20;
  padding: 0.65rem 1rem;
  color: var(--ink);
  background: var(--white);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: absolute;
  z-index: 5;
  display: flex;
  width: 100%;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 6vw, 6rem);
  color: #f5f7f5;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--navy);
  background: var(--mint);
  border-radius: 50%;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: -0.07em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.7vw, 2.5rem);
  font-size: 0.83rem;
}

.site-nav a {
  color: #d3dcdb;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--white);
}

.site-nav .nav-cta {
  padding: 0.58rem 0.9rem;
  color: var(--navy);
  background: var(--mint);
  border-radius: 4px;
  font-weight: 740;
}

.hero {
  position: relative;
  display: grid;
  min-height: 660px;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 8vw, 8rem);
  overflow: hidden;
  padding: 126px clamp(1.25rem, 9vw, 9rem) 96px;
  color: var(--white);
  background:
    radial-gradient(ellipse at 82% 32%, rgb(73 119 100 / 22%), transparent 33%),
    radial-gradient(ellipse at 15% 100%, rgb(66 99 129 / 17%), transparent 36%),
    var(--navy);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(183 239 207 / 48%), transparent);
  content: "";
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 1.15rem;
  color: #b8c5c6;
  font-size: 0.7rem;
  font-weight: 780;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.55rem;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(183 239 207 / 12%);
  vertical-align: 1px;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

.hero-lede {
  max-width: 590px;
  margin: 1.55rem 0 0;
  color: #c4cfce;
  font-size: clamp(1rem, 1.35vw, 1.17rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.68rem 1rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 720;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: var(--navy);
  background: var(--mint);
}

.button-primary:hover {
  background: #cef6de;
}

.button-secondary {
  color: #f0f3f0;
  border-color: rgb(255 255 255 / 24%);
}

.button-secondary:hover {
  background: rgb(255 255 255 / 7%);
}

.hero-note {
  margin: 1.25rem 0 0;
  color: #9eadae;
  font-size: 0.76rem;
}

.hero-panel {
  max-width: 390px;
  justify-self: end;
  padding: 1.35rem 1.5rem 1.15rem;
  color: #e9efed;
  background: linear-gradient(145deg, rgb(255 255 255 / 8%), rgb(255 255 255 / 3%));
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 7px;
  box-shadow: 0 24px 70px rgb(0 0 0 / 17%);
  backdrop-filter: blur(10px);
}

.panel-topline,
.panel-row,
.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-topline {
  color: #a9b8b7;
  font-size: 0.61rem;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.panel-indicator {
  color: var(--mint);
}

.panel-number {
  margin-top: 1.5rem;
  color: var(--mint);
  font-family: var(--serif);
  font-size: 5.5rem;
  letter-spacing: -0.08em;
  line-height: 1;
}

.panel-title {
  margin: 0.45rem 0 1.1rem;
  color: #e4eae7;
  font-size: 0.92rem;
  font-weight: 650;
}

.panel-rule {
  height: 1px;
  margin: 0 0 0.75rem;
  background: rgb(255 255 255 / 15%);
}

.panel-row {
  padding: 0.47rem 0;
  color: #b7c3c2;
  font-size: 0.75rem;
}

.panel-row strong {
  color: var(--white);
  font-size: 0.8rem;
}

.panel-footer {
  gap: 0.8rem;
  justify-content: flex-start;
  margin-top: 1rem;
  padding-top: 0.9rem;
  color: #a6b3b2;
  border-top: 1px solid rgb(255 255 255 / 12%);
  font-size: 0.68rem;
}

.panel-spark {
  display: flex;
  height: 18px;
  align-items: end;
  gap: 3px;
}

.panel-spark i {
  display: block;
  width: 4px;
  height: 42%;
  background: var(--mint);
  border-radius: 2px 2px 0 0;
}

.panel-spark i:nth-child(3n + 1) {
  height: 75%;
}

.panel-spark i:nth-child(4n + 2) {
  height: 55%;
}

.panel-spark i:nth-child(5n) {
  height: 92%;
}

.hero-bottom {
  position: absolute;
  right: clamp(1.25rem, 9vw, 9rem);
  bottom: 2rem;
  left: clamp(1.25rem, 9vw, 9rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #849394;
  font-size: 0.58rem;
  font-weight: 730;
  letter-spacing: 0.15em;
}

.scroll-line {
  width: 56px;
  height: 1px;
  background: #6d807e;
}

.section-wrap {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

.intro {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: start;
  gap: 2rem;
  padding-block: 4.4rem;
  border-bottom: 1px solid var(--line);
}

.intro-label {
  margin: 0.42rem 0 0;
  color: var(--mint-dark);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.intro-copy {
  max-width: 650px;
  margin: 0;
  color: #33434b;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.5;
}

.intro-tags {
  display: grid;
  gap: 0.48rem;
  padding-top: 0.15rem;
}

.intro-tags span {
  color: #64737a;
  font-size: 0.7rem;
  white-space: nowrap;
}

.intro-tags span::before {
  margin-right: 0.45rem;
  color: var(--mint-dark);
  content: "✓";
}

.projects {
  padding-block: 5.5rem 6rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.eyebrow-dark {
  color: var(--mint-dark);
}

.section-heading h2,
.about h2 {
  max-width: 650px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.15rem, 4vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.section-aside {
  max-width: 285px;
  margin: 0 0 0.2rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

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

.project-card {
  display: flex;
  min-height: 400px;
  flex-direction: column;
  padding: 1.55rem 1.6rem 1.25rem;
  background: var(--white);
  border: 1px solid #e6e7e2;
  border-radius: 5px;
  box-shadow: 0 6px 24px rgb(24 37 44 / 3%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 30px rgb(24 37 44 / 8%);
}

.project-card-featured {
  background:
    radial-gradient(ellipse at 100% 0, rgb(183 239 207 / 25%), transparent 40%),
    var(--white);
}

.project-card-systems {
  background:
    radial-gradient(ellipse at 100% 0, rgb(71 116 232 / 10%), transparent 42%),
    var(--white);
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.project-number {
  color: var(--mint-dark);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
}

.project-type {
  color: #718087;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.card-arrow {
  margin-left: auto;
  color: #a4b0b1;
  font-size: 0.9rem;
}

.project-card h3 {
  margin: 1.1rem 0 0.45rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.project-summary {
  max-width: 480px;
  min-height: 3rem;
  margin: 0;
  color: #607079;
  font-size: 0.82rem;
  line-height: 1.55;
}

.metric-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 1.15rem 0 0.95rem;
  padding: 0.82rem 0.9rem;
  background: #f4f6f2;
  border-left: 3px solid var(--mint-dark);
}

.metric-block strong {
  color: #1c553d;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.metric-block span {
  margin-top: 0.25rem;
  color: #66747a;
  font-size: 0.67rem;
  line-height: 1.45;
}

.card-meta {
  display: grid;
  gap: 0.35rem;
  color: #69777d;
  font-size: 0.67rem;
}

.card-meta a {
  color: inherit;
  text-underline-offset: 2px;
}

.card-meta a:hover {
  color: var(--mint-dark);
}

.card-meta span::before {
  margin-right: 0.4rem;
  color: #9aa8a6;
  content: "•";
}

.limitation {
  margin: 0.75rem 0 1rem;
  color: #66737a;
  font-size: 0.67rem;
  font-style: italic;
  line-height: 1.45;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid #e8e9e5;
}

.card-links a,
.text-link {
  color: #245c45;
  font-size: 0.72rem;
  font-weight: 740;
  text-decoration: none;
}

.card-links a:hover,
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.metrics-note {
  max-width: 750px;
  margin: 1.25rem 0 0;
  color: #778389;
  font-size: 0.7rem;
}

.approach {
  color: #edf2ef;
  background:
    radial-gradient(ellipse at 80% 0, rgb(66 105 93 / 24%), transparent 32%),
    var(--navy);
}

.approach-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: clamp(3rem, 9vw, 8rem);
  padding-block: 5.5rem;
}

.approach .eyebrow {
  color: var(--mint);
}

.approach h2 {
  max-width: 490px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.approach-copy > p:last-child {
  max-width: 460px;
  margin: 1.25rem 0 0;
  color: #b8c5c4;
  font-size: 0.85rem;
  line-height: 1.75;
}

.lifecycle {
  display: grid;
  align-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lifecycle li {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.03rem 0;
  border-bottom: 1px solid rgb(255 255 255 / 13%);
}

.lifecycle li:first-child {
  border-top: 1px solid rgb(255 255 255 / 13%);
}

.lifecycle li > span {
  padding-top: 0.1rem;
  color: var(--mint);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.lifecycle strong,
.lifecycle small {
  display: block;
}

.lifecycle strong {
  font-size: 0.85rem;
}

.lifecycle small {
  margin-top: 0.2rem;
  color: #aebcbc;
  font-size: 0.7rem;
}

.about {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 5rem;
  padding-block: 5.5rem;
}

.about h2 {
  max-width: 530px;
}

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

.about-copy p {
  margin: 0 0 1.25rem;
  color: #5e6d74;
  font-size: 0.85rem;
  line-height: 1.8;
}

.site-footer {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 6vw, 6rem);
  color: #c4cfcd;
  background: #0b141a;
  font-size: 0.68rem;
}

.brand-footer {
  color: #edf2ef;
  font-size: 0.76rem;
}

.brand-footer .brand-mark {
  width: 28px;
  height: 28px;
  font-size: 0.58rem;
}

.site-footer p {
  margin: 0;
  color: #9caaa9;
}

.footer-year {
  color: #9caaa9;
}

@media (min-width: 1400px) {
  .hero {
    min-height: 720px;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 640px;
    grid-template-columns: 1fr 0.75fr;
    gap: 2rem;
    padding-inline: 5vw;
  }

  .hero-panel {
    padding-inline: 1.15rem;
  }

  .hero-bottom {
    right: 5vw;
    left: 5vw;
  }

  .intro {
    grid-template-columns: 100px 1fr;
  }

  .intro-tags {
    grid-column: 2;
    grid-template-columns: repeat(3, auto);
    gap: 1rem;
  }

  .approach-inner {
    gap: 3rem;
  }

  .about {
    gap: 3rem;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 72px;
    padding-inline: 1.2rem;
  }

  .brand {
    gap: 0.5rem;
    font-size: 0.77rem;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .site-nav {
    gap: 0.85rem;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .site-nav .nav-cta {
    padding: 0.52rem 0.66rem;
    font-size: 0.68rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding: 126px 1.35rem 82px;
  }

  .hero h1 {
    max-width: 560px;
    font-size: clamp(3.25rem, 15vw, 5rem);
  }

  .hero-lede {
    max-width: 520px;
    font-size: 0.96rem;
  }

  .hero-panel {
    width: min(100%, 390px);
    justify-self: start;
  }

  .hero-bottom {
    right: 1.35rem;
    bottom: 1.45rem;
    left: 1.35rem;
  }

  .section-wrap {
    width: min(100% - 2.5rem, 560px);
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding-block: 3rem;
  }

  .intro-copy {
    font-size: 1.35rem;
  }

  .intro-tags {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 0.25rem;
    margin-top: 0.35rem;
  }

  .projects {
    padding-block: 3.8rem 4rem;
  }

  .section-heading {
    display: block;
    margin-bottom: 1.45rem;
  }

  .section-heading h2,
  .about h2 {
    font-size: 2.45rem;
  }

  .section-aside {
    margin-top: 0.9rem;
  }

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

  .project-card {
    min-height: 0;
    padding: 1.25rem;
  }

  .project-summary {
    min-height: 0;
  }

  .approach-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 4rem;
  }

  .approach h2 {
    font-size: 2.55rem;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-block: 4rem;
  }

  .site-footer {
    min-height: 0;
    flex-wrap: wrap;
    padding: 1.25rem;
  }

  .site-footer p {
    order: 3;
    width: 100%;
  }
}

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

.project-screenshot {
  display: block;
  width: 100%;
  height: 190px;
  margin: 1.15rem 0 0;
  object-fit: cover;
  object-position: top center;
  background: #e8ebe6;
  border: 1px solid #e4e6e1;
  border-radius: 3px;
}

.studio {
  padding-block: 5.5rem 6rem;
  background: #ebece6;
  border-top: 1px solid #e0e2dc;
}

.studio-intro {
  max-width: 720px;
  margin-bottom: 2rem;
}

.studio-intro h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.studio-intro > p:last-child {
  max-width: 560px;
  margin: 0.8rem 0 0;
  color: #647178;
  font-size: 0.88rem;
}

.studio-shell {
  display: grid;
  min-height: 660px;
  grid-template-columns: 260px minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe2dc;
  border-radius: 7px;
  box-shadow: 0 20px 55px rgb(22 36 42 / 9%);
}

.studio-sidebar {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 0.8rem 0.9rem;
  color: #e7edeb;
  background: #111d25;
}

.sidebar-label {
  margin: 0.5rem 0.7rem 0.85rem;
  color: #879797;
  font-size: 0.6rem;
  font-weight: 780;
  letter-spacing: 0.16em;
}

.product-tab {
  display: grid;
  min-height: 65px;
  grid-template-columns: 27px 1fr 16px;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.55rem;
  color: #c9d2d0;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
}

.product-tab > span:first-child {
  align-self: start;
  padding-top: 0.18rem;
  color: #8ba39a;
  font-family: var(--serif);
  font-size: 0.85rem;
}

.product-tab > span:nth-child(2) {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.product-tab small {
  display: block;
  margin-top: 0.22rem;
  color: #8f9e9d;
  font-size: 0.63rem;
  font-weight: 450;
}

.product-tab b {
  color: #7d908b;
  font-size: 0.75rem;
  font-weight: 500;
}

.product-tab:hover {
  background: rgb(255 255 255 / 5%);
}

.product-tab.is-active {
  color: #f5faf7;
  background: #20342f;
  box-shadow: inset 3px 0 var(--mint);
}

.product-tab.is-active > span:first-child,
.product-tab.is-active b {
  color: var(--mint);
}

.connection-card {
  display: flex;
  gap: 0.65rem;
  margin-top: auto;
  padding: 0.8rem 0.65rem 0.4rem;
  border-top: 1px solid rgb(255 255 255 / 11%);
}

.connection-indicator,
.studio-badge > span {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 0.34rem;
  background: #d3a553;
  border-radius: 50%;
}

.connection-indicator.is-online,
.studio-badge > span {
  background: #59b785;
}

.connection-indicator.is-offline {
  background: #d47768;
}

.connection-card strong,
.connection-card small {
  display: block;
}

.connection-card strong {
  color: #dbe5e1;
  font-size: 0.65rem;
  font-weight: 720;
}

.connection-card small {
  margin-top: 0.25rem;
  color: #95a5a3;
  font-size: 0.58rem;
  line-height: 1.45;
}

.studio-main {
  min-width: 0;
  padding: clamp(1.3rem, 4vw, 3rem);
}

.studio-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid #e8ebe6;
}

.studio-heading .eyebrow {
  margin-bottom: 0.45rem;
  font-size: 0.61rem;
}

.studio-heading h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.studio-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.6rem;
  color: #50705f;
  background: #f0f7f1;
  border: 1px solid #d9e9dd;
  border-radius: 99px;
  font-size: 0.56rem;
  font-weight: 780;
  letter-spacing: 0.08em;
}

.studio-badge > span {
  width: 6px;
  height: 6px;
  flex-basis: 6px;
  margin: 0;
}

.demo-panel {
  padding-top: 1.25rem;
}

.demo-panel[hidden] {
  display: none;
}

.demo-description {
  max-width: 680px;
  margin: 0 0 1.3rem;
  color: #637078;
  font-size: 0.78rem;
  line-height: 1.65;
}

.demo-form {
  display: grid;
  gap: 1rem;
}

.demo-form label {
  display: grid;
  gap: 0.42rem;
  color: #3c4b50;
  font-size: 0.68rem;
  font-weight: 730;
}

.form-inline {
  grid-template-columns: minmax(110px, 0.7fr) minmax(140px, 1fr) auto;
  align-items: end;
}

.demo-form select,
.demo-form input[type="search"],
.demo-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.75rem;
  color: #26363d;
  background: #fff;
  border: 1px solid #d8ded9;
  border-radius: 3px;
  font: inherit;
  font-size: 0.75rem;
}

.demo-form textarea {
  min-height: 115px;
  resize: vertical;
  line-height: 1.55;
}

.demo-form select:focus,
.demo-form input:focus,
.demo-form textarea:focus {
  outline: 3px solid rgb(71 116 232 / 18%);
  border-color: #6d8bc8;
}

.button-dark {
  min-height: 44px;
  padding: 0.62rem 0.85rem;
  color: #f7faf8;
  background: #18392c;
  border: 1px solid #18392c;
  border-radius: 3px;
  white-space: nowrap;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 740;
}

.button-dark:hover {
  background: #24543f;
}

.button-dark:disabled {
  cursor: wait;
  opacity: 0.7;
}

.example-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.65rem 0.75rem;
  color: #6b797d;
  background: #f5f7f3;
  border: 1px solid #e8ebe5;
  font-size: 0.62rem;
}

.example-line strong {
  color: #305c45;
  font-weight: 730;
}

.demo-output {
  min-height: 160px;
  margin-top: 1rem;
  padding: 0.95rem;
  background: #f7f8f5;
  border: 1px solid #e5e8e2;
  border-radius: 3px;
}

.empty-state {
  display: grid;
  min-height: 130px;
  align-content: center;
  justify-items: center;
  padding: 1rem;
  text-align: center;
}

.empty-state > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #376b50;
  background: #e6f2e9;
  border-radius: 50%;
  font-size: 1rem;
}

.empty-state strong {
  margin-top: 0.65rem;
  color: #34464b;
  font-size: 0.75rem;
}

.empty-state p {
  max-width: 380px;
  margin: 0.28rem 0 0;
  color: #788487;
  font-size: 0.64rem;
}

.output-message {
  margin: 0 0 0.8rem;
  color: #526268;
  font-size: 0.68rem;
  line-height: 1.55;
}

.output-message.is-warning {
  padding: 0.65rem 0.75rem;
  color: #765b28;
  background: #fbf5e7;
  border-left: 3px solid #d9b866;
}

.output-message.is-error {
  padding: 0.65rem 0.75rem;
  color: #803e34;
  background: #fbefec;
  border-left: 3px solid #cf7c6d;
}

.forecast-chart-wrap {
  overflow-x: auto;
  margin-top: 0.35rem;
}

.forecast-chart {
  display: block;
  width: 100%;
  min-width: 440px;
  height: auto;
  font-family: var(--sans);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
  color: #68767a;
  font-size: 0.61rem;
}

.chart-legend span::before {
  display: inline-block;
  width: 13px;
  height: 3px;
  margin: 0 0.4rem 0.15rem 0;
  background: #4774e8;
  content: "";
}

.chart-legend span:last-child::before {
  background: #35a375;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.result-stat {
  padding: 0.65rem;
  background: #fff;
  border: 1px solid #e5e8e2;
}

.result-stat span,
.result-stat strong {
  display: block;
}

.result-stat span {
  color: #7a8587;
  font-size: 0.56rem;
}

.result-stat strong {
  margin-top: 0.2rem;
  color: #30453b;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
}

.apparel-form {
  grid-template-columns: minmax(0, 1.1fr) minmax(145px, 0.65fr);
  align-items: stretch;
}

.upload-zone {
  min-height: 155px;
  align-content: center;
  justify-items: center;
  padding: 1rem;
  background: #fafbf9;
  border: 1px dashed #b8c5bd;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
}

.upload-zone:hover {
  background: #f1f7f2;
}

.upload-zone strong {
  color: #344a3d;
  font-size: 0.75rem;
}

.upload-zone small {
  color: #778587;
  font-size: 0.6rem;
  font-weight: 450;
}

.upload-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-bottom: 0.4rem;
  color: #356b4e;
  background: #e3f1e7;
  border-radius: 50%;
  font-size: 1.05rem;
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.image-preview {
  display: grid;
  min-height: 155px;
  place-items: center;
  overflow: hidden;
  color: #95a0a0;
  background: #f2f4f1;
  border: 1px solid #e3e7e2;
  font-size: 0.61rem;
}

.image-preview img {
  width: 100%;
  height: 155px;
  object-fit: contain;
}

.apparel-form .button-dark {
  grid-column: 1 / -1;
}

.prediction-row {
  display: grid;
  grid-template-columns: minmax(75px, 0.6fr) minmax(80px, 1fr) 42px;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.55rem;
  color: #536368;
  font-size: 0.64rem;
}

.prediction-track {
  height: 7px;
  overflow: hidden;
  background: #e5eae5;
  border-radius: 5px;
}

.prediction-fill {
  height: 100%;
  background: linear-gradient(90deg, #51a278, #9bcf9e);
  border-radius: inherit;
}

.prediction-row strong {
  color: #375443;
  text-align: right;
  font-size: 0.61rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.example-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.example-chips button {
  padding: 0.35rem 0.55rem;
  color: #596a6f;
  background: #f7f8f5;
  border: 1px solid #dfe4de;
  border-radius: 2px;
  cursor: pointer;
  font: inherit;
  font-size: 0.59rem;
}

.example-chips button:hover {
  color: #285d43;
  background: #edf5ef;
}

.search-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.example-chips-spaced {
  margin-top: 0.65rem;
}

.sentiment-result {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #e4e8e2;
}

.sentiment-result strong {
  color: #245c45;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: capitalize;
}

.sentiment-result.is-negative strong {
  color: #9c4d42;
}

.sentiment-result small {
  display: block;
  color: #7a8788;
  font-size: 0.59rem;
}

.signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.45rem 0 0.75rem;
}

.signal-chip {
  padding: 0.28rem 0.5rem;
  color: #356449;
  background: #eaf4ec;
  border-radius: 2px;
  font-size: 0.61rem;
}

.signal-chip.is-negative {
  color: #8b5148;
  background: #f8ece9;
}

.qa-match {
  padding: 0.75rem 0;
  border-top: 1px solid #e4e8e2;
}

.qa-match:first-of-type {
  border-top: 0;
}

.qa-match-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem;
  color: #758181;
  font-size: 0.57rem;
}

.qa-match h4 {
  margin: 0.4rem 0 0.22rem;
  color: #34464b;
  font-size: 0.73rem;
}

.qa-match p {
  margin: 0;
  color: #5d6b70;
  font-size: 0.66rem;
  line-height: 1.55;
}

.query-block {
  overflow-x: auto;
  margin: 0 0 0.8rem;
  padding: 0.7rem;
  color: #dcebe3;
  background: #172630;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.result-table-wrap {
  overflow-x: auto;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.63rem;
  text-align: left;
}

.result-table th,
.result-table td {
  min-width: 80px;
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid #e5e8e2;
}

.result-table th {
  color: #596a6c;
  background: #edf1ec;
  font-size: 0.58rem;
  font-weight: 750;
}

.result-table td {
  color: #45555a;
  overflow-wrap: anywhere;
}

.loading-state {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem;
  color: #5f6e70;
  font-size: 0.7rem;
}

.loading-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid #d6e5d9;
  border-top-color: #357650;
  border-radius: 50%;
  animation: spin 750ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 900px) {
  .studio-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .studio-sidebar {
    padding-inline: 0.55rem;
  }

  .studio-main {
    padding: 1.5rem;
  }
}

@media (max-width: 680px) {
  .project-screenshot {
    height: 170px;
  }

  .studio {
    padding-block: 3.8rem 4rem;
  }

  .studio-shell {
    grid-template-columns: 1fr;
  }

  .studio-sidebar {
    padding: 0.8rem;
  }

  .sidebar-label {
    margin: 0 0 0.55rem;
  }

  .product-tab {
    min-height: 52px;
    grid-template-columns: 25px 1fr 15px;
    padding: 0.4rem 0.5rem;
  }

  .product-tab small {
    display: inline;
    margin-left: 0.4rem;
  }

  .connection-card {
    margin-top: 0.7rem;
  }

  .studio-main {
    padding: 1.15rem;
  }

  .studio-heading {
    align-items: flex-start;
  }

  .studio-badge {
    padding: 0.36rem 0.45rem;
    font-size: 0.49rem;
  }

  .form-inline {
    grid-template-columns: 1fr 1fr;
  }

  .form-inline .button-dark {
    grid-column: 1 / -1;
  }

  .apparel-form {
    grid-template-columns: 1fr 0.7fr;
  }

  .form-actions {
    align-items: stretch;
  }

  .form-actions .button-dark {
    width: 100%;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .search-form .button-dark {
    width: 100%;
  }

  .result-stats {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-year {
    order: 4;
  }
}
