/* ==========================================================================
   Oops Lab — studio concept (image concept A)
   Cool pale ground, graphite ink, restrained sage, Manrope throughout.
   Fluid layout measured from the 1536-wide comp; no fixed desktop frame.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-medium.ttf") format("truetype");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-bold.ttf") format("truetype");
  font-weight: 600 700;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-extrabold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --ground: #f7f8f6;
  --ground-2: #f1f3f0;
  --panel: #fdfdfc;
  --ink: #151918;
  --ink-2: #545a56;
  --ink-3: #666c68;
  --line: rgba(21, 25, 24, 0.12);
  --line-soft: rgba(21, 25, 24, 0.07);

  --sage-bg: #e4e9e1;
  --sage: #a9b6a5;
  --sage-deep: #7f8c7b;
  --sage-ink: #46504a;
  --sage-tint: #eef2ec;

  --dark: #151918;
  --on-dark: #f7f8f6;
  --on-dark-2: #b9bfba;

  --sans: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --pad: clamp(20px, 3.9vw, 60px);
  --max: 1600px;

  --fs-hero: clamp(2.5rem, 4.6vw, 4.4rem);
  --fs-section: clamp(2rem, 4.3vw, 4.125rem);
  --fs-lede: clamp(1.0625rem, 1.5625vw, 1.5rem);
  --fs-h3: clamp(1.375rem, 1.8vw, 1.75rem);
  --fs-body: 1.125rem;

  --track: -0.03em;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scrollbar-color: #b6bcb8 var(--ground);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body { margin: 0; overflow-x: hidden; overflow-x: clip; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }

::selection { background: var(--sage); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.close :focus-visible { outline-color: var(--on-dark); }
.pill--dark:focus-visible { outline-offset: 4px; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.icon {
  width: 1.125em; height: 1.125em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; background: var(--ink); color: var(--on-dark);
  border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: top 160ms var(--ease);
}
.skip:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.display {
  font-weight: 800;
  letter-spacing: var(--track);
  line-height: 1.04;
}
.display--hero { font-size: var(--fs-hero); max-width: 12.2em; }
.br { display: none; }
@media (min-width: 760px) { .br { display: initial; } }
.display--section { font-size: var(--fs-section); max-width: 14em; }

.section-lede {
  margin-top: clamp(14px, 1.5vw, 22px);
  font-size: var(--fs-lede);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 28em;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* --------------------------------------------------------------------------
   Controls
   -------------------------------------------------------------------------- */

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 22px;
  min-height: 66px; padding: 0 36px;
  border-radius: 999px; border: 0;
  font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 260ms var(--ease), background-color 200ms var(--ease), box-shadow 260ms var(--ease);
}
.pill .icon { transition: transform 260ms var(--ease); }
.pill:hover .icon { transform: translateX(3px); }
.pill:active { transform: translateY(1px); }

.pill--dark { background: var(--ink); color: var(--on-dark); }
.pill--dark:hover { background: #262b29; }

.pill--light { background: var(--on-dark); color: var(--ink); }
.pill--light:hover { background: #ffffff; }

.pill--line {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.pill--line:hover { background: var(--ink); color: var(--on-dark); }
.pill--line:disabled { opacity: 0.38; cursor: not-allowed; box-shadow: inset 0 0 0 1.5px var(--ink); background: transparent; color: var(--ink); }

.pill--small { min-height: 48px; padding: 0 24px; font-size: 1rem; gap: 12px; }
.pill--small.demo__control { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }

.textlink {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 1.0625rem; font-weight: 500; color: var(--ink);
  text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(21, 25, 24, 0.55);
  transition: text-decoration-color 200ms var(--ease);
}
.textlink:hover { text-decoration-color: var(--ink); }
.textlink--button { background: none; border: 0; padding: 0; cursor: pointer; font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-head { position: relative; z-index: 5; }
.site-head__row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 84px;
}

.wordmark {
  font-size: 1.875rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1;
  text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: center; min-height: 44px;
}
.wordmark--foot { font-size: 1.5rem; }

.site-nav > .pill { min-width: 154px; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.site-nav__list { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.site-nav__list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px;
  font-size: 1.0625rem; font-weight: 500; text-decoration: none; color: var(--ink);
  border-bottom: 1.5px solid transparent;
  transition: border-color 200ms var(--ease);
}
.site-nav__list a:hover { border-bottom-color: var(--ink); }

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 999px;
  background: transparent; font-weight: 700; cursor: pointer;
}
.menu-toggle[hidden] { display: none; }
.menu-toggle .icon { width: 20px; height: 20px; }

@media (max-width: 759px) {
  .js .menu-toggle:not([hidden]) { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 8px var(--pad) 20px;
    background: var(--ground);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav__list a { min-height: 52px; font-size: 1.25rem; border-bottom: 1px solid var(--line-soft); }
  .js .site-nav .pill { margin-top: 12px; }

  .site-head__row { flex-wrap: wrap; }
  .site-nav { flex-wrap: wrap; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { position: relative; }
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding-top: clamp(56px, 8.2vw, 126px);
  padding-bottom: clamp(56px, 7.5vw, 115px);
  min-height: 0;
}

.hero__copy { position: relative; z-index: 2; max-width: 52%; }

.hero__lede {
  margin-top: clamp(20px, 2vw, 30px);
  font-size: var(--fs-lede);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 23em;
  letter-spacing: -0.01em;
}

.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px 38px;
  margin-top: clamp(28px, 2.4vw, 38px);
}

.hero__art {
  position: absolute; z-index: 1;
  top: -60px;
  right: calc(var(--pad) - 50px);
  margin: 0;
  width: min(54vw, 830px);
  pointer-events: none;
}
.hero__art-inner {
  will-change: transform;
  transition: transform 700ms var(--ease);
}
.hero__art img { width: 100%; height: auto; mix-blend-mode: darken; }

@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); padding-top: clamp(40px, 6vw, 72px); padding-bottom: 0; }
  .display--hero { max-width: 14em; }
  .hero__copy { max-width: none; }
  .hero__art {
    position: static;
    width: min(100%, 640px);
    margin: 0 auto clamp(-40px, -5vw, -16px);
  }
}

/* --------------------------------------------------------------------------
   Shared column structure
   -------------------------------------------------------------------------- */

.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(28px, 3vw, 48px);
}
.columns--rule > * + * { border-left: 1px solid var(--line); padding-left: clamp(20px, 2.2vw, 34px); }

.col h3 { margin-top: 0; }
.col p { margin-top: 14px; font-size: var(--fs-body); line-height: 1.5; color: var(--ink-2); max-width: 30em; }

@media (max-width: 899px) {
  .columns { grid-template-columns: minmax(0, 1fr); gap: 32px 0; }
  .columns--rule > * + * { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.services {
  padding-top: clamp(64px, 5.7vw, 88px);
  padding-bottom: clamp(72px, 6.5vw, 100px);
}
.services .columns { margin-top: clamp(40px, 4.4vw, 68px); }
.services .col p { max-width: 22em; }

/* --------------------------------------------------------------------------
   Showcase (sage)
   -------------------------------------------------------------------------- */

.showcase {
  background: var(--sage-bg);
  color: var(--ink);
  padding-top: clamp(64px, 6.5vw, 100px);
  padding-bottom: clamp(72px, 7vw, 108px);
}
.showcase .section-lede { color: var(--sage-ink); }

.showcase__grid { margin-top: clamp(40px, 4.4vw, 68px); }
.showcase .columns--rule > * + * { border-color: rgba(21, 25, 24, 0.14); }

.demo { display: flex; flex-direction: column; min-width: 0; }
.demo__lede { margin-top: 12px; font-size: var(--fs-body); line-height: 1.45; color: var(--sage-ink); max-width: 22em; }

.demo__toolbar { margin-top: 22px; margin-bottom: 18px; min-height: 48px; }
.demo__toolbar[hidden] { display: none; }
.demo__toolbar .seg { max-width: 100%; }
.demo__toolbar .seg__btn { padding-inline: 12px; }

.demo__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  margin-top: 18px;
}
.demo__label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.02em; color: var(--sage-ink); text-transform: uppercase; }
.demo__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.demo__controls[hidden] { display: none; }
.demo__controls-label { font-size: 0.8125rem; font-weight: 700; color: var(--sage-ink); margin-right: 4px; }
.demo__control[hidden] { display: none; }

.demo__status { margin-top: 14px; font-size: 0.9375rem; line-height: 1.45; color: var(--sage-ink); font-weight: 500; min-height: 1.45em; }
.demo__fine { margin-top: 10px; font-size: 0.8125rem; line-height: 1.4; color: var(--sage-ink); }

/* --- 1. Website concept ------------------------------------------------- */

.site-demo {
  --sd-bg: #fbfcfa; --sd-ink: #171c1a; --sd-ink-2: #59615c; --sd-cta-bg: #171c1a; --sd-cta-ink: #f7f8f6;
  --sd-a: #b3bfae; --sd-b: #7a887a; --sd-c: #d5dccf; --sd-shade: #e8ece5;
  background: var(--panel);
  border-radius: 16px;
  box-shadow: 0 14px 34px -18px rgba(21, 25, 24, 0.28), 0 1px 2px rgba(21, 25, 24, 0.05);
  overflow: hidden;
  transition: background-color 400ms var(--ease);
}
.site-demo__chrome { display: flex; gap: 6px; padding: 12px 14px; background: #eef0ec; }
.site-demo__chrome i { width: 8px; height: 8px; border-radius: 50%; background: #c7ccc6; }

.site-demo__page {
  background: var(--sd-bg); color: var(--sd-ink);
  padding: 18px 20px 22px; min-height: 338px;
  transition: background-color 400ms var(--ease), color 400ms var(--ease);
}
.site-demo__bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.site-demo__brand { font-size: 1rem; font-weight: 800; letter-spacing: -0.02em; }
.site-demo__links { display: flex; gap: 12px; font-size: 0.75rem; font-weight: 500; color: var(--sd-ink-2); }

.site-demo__body {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 16px;
  margin-top: 28px; align-items: stretch; min-height: 240px;
}
.site-demo__title { font-size: clamp(1.5rem, 1.7vw, 1.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.site-demo__text { margin-top: 12px; font-size: 0.875rem; line-height: 1.5; color: var(--sd-ink-2); }
.site-demo__cta {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; margin-top: 16px;
  border-radius: 999px; background: var(--sd-cta-bg); color: var(--sd-cta-ink);
  font-size: 0.75rem; font-weight: 700;
  transition: background-color 400ms var(--ease), color 400ms var(--ease);
}

.site-demo__art {
  position: relative; min-height: 190px; border-radius: 10px; overflow: hidden;
  background: var(--sd-shade);
  transition: background-color 400ms var(--ease);
}
.shape { position: absolute; display: block; transition: background-color 400ms var(--ease); }
.shape--disc { width: 58%; aspect-ratio: 1; border-radius: 50%; background: var(--sd-a); left: 8%; top: 8%; }
.shape--arch { width: 46%; height: 62%; border-radius: 999px 999px 0 0; background: var(--sd-b); right: 8%; bottom: 0; }
.shape--bar { width: 22%; height: 46%; background: var(--sd-c); left: 12%; bottom: 0; }

/* FLIP transforms keep text, button, and artwork visibly connected between layouts. */
.site-demo__title, .site-demo__text, .site-demo__cta, .site-demo__art { transform-origin: top left; }
.site-demo__title, .site-demo__text, .site-demo__cta { position: relative; z-index: 1; }

/* Distinct compositions, keeping the brand and content constant. */
.site-demo[data-layout="editorial"] .site-demo__body { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.site-demo[data-layout="editorial"] .site-demo__art { order: -1; min-height: 95px; height: 95px; }
.site-demo[data-layout="editorial"] .site-demo__copy { display: grid; grid-template-columns: 1.1fr 1fr; gap: 8px 14px; align-items: start; }
.site-demo[data-layout="editorial"] .site-demo__title { grid-row: span 2; font-size: 1.6rem; }
.site-demo[data-layout="editorial"] .site-demo__text { margin: 0; font-size: .8125rem; }
.site-demo[data-layout="editorial"] .site-demo__cta { margin: 0; justify-self: start; }
.site-demo[data-layout="editorial"] .shape--disc { width: 30%; top: -15%; left: 12%; }
.site-demo[data-layout="editorial"] .shape--arch { width: 27%; height: 90%; right: 18%; }
.site-demo[data-layout="showcase"] .site-demo__body { position: relative; display: grid; grid-template-columns: 1fr; margin-top: 18px; padding: 24px 18px; min-height: 268px; }
.site-demo[data-layout="showcase"] .site-demo__art { position: absolute; inset: 0; min-height: 0; background: #d5dfd0; }
.site-demo[data-layout="showcase"] .site-demo__copy { position: relative; z-index: 1; max-width: 72%; }
.site-demo[data-layout="showcase"] .site-demo__text { color: #343e37; }
.site-demo[data-layout="showcase"] .shape--disc { left: auto; right: -12%; top: -12%; background: #bac7b4; }
.site-demo[data-layout="showcase"] .shape--arch { width: 28%; right: -8%; background: #8c9e87; }
.site-demo[data-layout="showcase"] .shape--bar { left: auto; right: 10%; width: 10%; background: #b1bfa8; }

/* --- 2. AI workflow canvas ---------------------------------------------- */
.flow__canvas { padding: 22px 16px; border: 1px solid #b2beb0; border-radius: 16px; background: #edf1e9; }
.flow__node { position: relative; display: flex; align-items: center; gap: 10px; width: min(100%, 280px); margin-inline: auto; padding: 12px; border: 1px solid #a6b3a4; border-radius: 12px; background: #fbfcfa; }
.flow__node > span:nth-child(2) { flex: 1; min-width: 0; }
.flow__node strong { display: block; font-size: .875rem; font-weight: 700; line-height: 1.3; }
.flow__node small { display: block; margin-top: 4px; font-size: .8125rem; line-height: 1.35; color: #46504a; }
.flow__node::before, .flow__node::after { content: ''; position: absolute; left: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; border: 1px solid #80907b; background: #fbfcfa; }
.flow__node::before { top: -5px; }
.flow__node::after { bottom: -5px; }
#flow-trigger::before, .flow__node--output::after { display: none; }
.flow__symbol { display: grid; place-items: center; flex: none; width: 30px; height: 30px; color: #364332; background: #e7ede2; border-radius: 8px; }
.flow__symbol--ai { background: #29382b; color: #f7f8f6; font-size: .8125rem; font-weight: 800; }
.flow__state { position: absolute; right: 10px; top: -9px; padding: 1px 5px; border-radius: 3px; font-size: .75rem; font-weight: 700; color: #46504a; background: #edf1e9; }
.flow__edge { height: 25px; width: 2px; margin-inline: auto; background: #a6b3a4; }
.flow__branches { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding-top: 20px; }
.flow__branches::before { content: ''; position: absolute; top: 0; left: calc(25% - 4px); right: calc(25% - 4px); height: 2px; background: #a6b3a4; }
.flow__node--output { display: flex; flex-direction: column; gap: 0; text-align: center; width: 100%; padding: 12px 6px; }
.flow__node--output::before { top: -21px; left: calc(50% - 1px); width: 2px; height: 20px; border: 0; border-radius: 0; background: #a6b3a4; }
.flow__node--output .icon { margin-bottom: 8px; color: #46504a; }
.flow__node.is-complete { border-color: #526e48; background: #f3f7ef; }
.flow__node.is-current { border-color: #29382b; border-width: 2px; padding: 11px; }
.flow[data-step="1"] #flow-trigger + .flow__edge,
.flow[data-step="1"] #flow-ai + .flow__edge,
.flow[data-step="2"] .flow__edge,
.flow[data-step="2"] .flow__branches::before,
.flow[data-step="2"] .flow__node--output::before { background: #526e48; }
.flow__review { margin-top: 14px; }
.flow__review[hidden] { display: none; }
.flow__review label { display: block; font-size: .875rem; font-weight: 700; }
.flow__review label span { display: block; margin-top: 4px; font-size: .8125rem; color: var(--sage-ink); font-weight: 500; }
.flow__review textarea { display: block; width: 100%; min-height: 112px; resize: vertical; margin-top: 10px; padding: 12px; border: 1px solid #9eae98; border-radius: 10px; background: #f7faf4; font: inherit; font-size: .875rem; line-height: 1.5; color: var(--ink); }
.flow__review textarea:not([readonly]) { border-color: var(--ink); background: var(--panel); }
.flow__review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px; }
.flow__review-actions[hidden] { display: none; }

/* --- 3. Knowledge assistant --------------------------------------------- */

.chat { display: flex; flex-direction: column; gap: 12px; }
.chat__msg { display: flex; gap: 10px; align-items: flex-start; }
.chat__avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--panel); color: var(--ink);
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.02em;
  box-shadow: 0 1px 2px rgba(21, 25, 24, 0.08), inset 0 0 0 1px var(--line-soft);
}
.chat__avatar--ai { background: var(--ink); color: var(--on-dark); }
.chat__avatar .icon { width: 18px; height: 18px; }

.chat__bubble {
  flex: 1 1 auto; min-width: 0;
  background: var(--panel); border-radius: 14px; padding: 12px 16px 14px;
  box-shadow: 0 14px 34px -18px rgba(21, 25, 24, 0.28), 0 1px 2px rgba(21, 25, 24, 0.05);
}
.chat__who { font-size: 0.75rem; font-weight: 700; color: var(--ink-3); display: flex; justify-content: space-between; gap: 10px; }
.chat__time { font-weight: 500; }
.chat__text { margin-top: 6px; font-size: 0.9375rem; font-weight: 500; line-height: 1.45; color: var(--ink); }

.chat__source {
  margin-top: 12px; padding: 12px 14px 14px; border-radius: 10px;
  background: var(--ground-2);
}
.chat__source-head { display: flex; align-items: flex-start; gap: 10px; }
.chat__source-head .icon { width: 18px; height: 18px; margin-top: 2px; }
.chat__source-head strong { display: block; font-size: 0.875rem; font-weight: 700; }
.chat__source-head small { display: block; font-size: 0.75rem; font-weight: 500; color: var(--ink-3); margin-top: 2px; }
.chat__excerpt { margin-top: 12px; font-size: .875rem; line-height: 1.6; }
.chat__excerpt mark { background: #dfe8d8; color: #303d2f; padding: 1px 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.seg {
  display: inline-flex; padding: 2px; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.seg__btn {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent;
  font-size: 0.875rem; font-weight: 700; cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.seg__btn[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); }
.seg__btn:not([aria-pressed="true"]):hover { background: rgba(21, 25, 24, 0.08); }

@media (max-width: 1099px) {
  .showcase__grid { grid-template-columns: minmax(0, 1fr); gap: 48px 0; }
  .showcase__grid.columns--rule > * + * { border-left: 0; padding-left: 0; border-top: 1px solid rgba(21, 25, 24, 0.14); padding-top: 44px; }
  .demo { max-width: 640px; }
}
@media (max-width: 380px) {
  .site-demo__body { gap: 10px; }
  .site-demo__page { padding: 16px; }
  .demo__toolbar .seg__btn { padding-inline: 10px; }
  .site-demo__links { display: none; }
}

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */

.process {
  position: relative;
  overflow: hidden;
  padding-top: clamp(64px, 6.5vw, 100px);
  padding-bottom: clamp(72px, 6.5vw, 100px);
}
.process__head {
  display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 4vw, 64px); align-items: end;
}
.process__head .section-lede { margin-top: 0; max-width: 20em; padding-bottom: 0.35em; }
.process__grid { position: relative; z-index: 1; }
.process__steps { margin-top: clamp(48px, 5vw, 80px); max-width: 1120px; }
.process .col p { max-width: 20em; }

.step-num {
  display: block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--ink-3); font-variant-numeric: tabular-nums; margin-bottom: 14px;
}

@media (max-width: 899px) {
  .process__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .process__head .section-lede { margin-top: 14px; }
}

/* --------------------------------------------------------------------------
   Founders
   -------------------------------------------------------------------------- */

.people {
  padding-top: clamp(56px, 5vw, 80px);
  padding-bottom: clamp(48px, 5vw, 80px);
}
.people__grid {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 4vw, 64px); align-items: center;
}
.people__copy .section-lede { max-width: 24em; }

.founders {
  margin-top: clamp(36px, 3.6vw, 56px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px clamp(24px, 2.6vw, 40px);
}
.founders > li { min-width: 0; }
.founders > li + li { border-left: 1px solid var(--line); padding-left: clamp(24px, 2.6vw, 40px); }
.founders__name { margin: 0; font-size: clamp(1.125rem, 1.4vw, 1.375rem); font-weight: 700; letter-spacing: -0.02em; }
.founders__bio {
  margin: 14px 0 0;
  font-size: 1rem; line-height: 1.65; color: var(--ink-2);
}

.people__art { margin: 0; justify-self: end; width: min(100%, 620px); margin-right: calc(var(--pad) * -1 + 20px); }
.people__art img { width: 100%; mix-blend-mode: darken; }

@media (max-width: 899px) {
  .people__grid { grid-template-columns: minmax(0, 1fr); }
  .people__art { justify-self: center; width: min(100%, 520px); margin: -8px auto -24px; }
  .founders { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .founders > li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
}

/* --------------------------------------------------------------------------
   Close + footer
   -------------------------------------------------------------------------- */

.close {
  background: var(--dark); color: var(--on-dark);
  padding-top: clamp(64px, 6.5vw, 100px);
  padding-bottom: clamp(64px, 6.5vw, 100px);
}
.close__grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 4vw, 64px); align-items: center;
}
.close .display { color: var(--on-dark); max-width: 11em; }
.close__action { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; justify-self: end; }
.close__email {
  font-size: var(--fs-lede); font-weight: 500; color: var(--on-dark-2);
  text-decoration-color: rgba(247, 248, 246, 0.35);
  transition: color 200ms var(--ease);
}
.close__email:hover { color: var(--on-dark); }

@media (max-width: 899px) {
  .close__grid { grid-template-columns: minmax(0, 1fr); }
  .close__action { justify-self: start; }
}

.site-foot { padding: 28px 0 36px; }
.site-foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.site-foot__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 0.9375rem; color: var(--ink-2); }
.site-foot__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-color: rgba(21, 25, 24, 0.35); }
.site-foot__links a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.site-foot__links small { font-size: inherit; }

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */

@media (max-width: 479px) {
  .hero__actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero__actions .pill, .close__action .pill { white-space: normal; text-align: center; padding: 14px 24px; min-height: 60px; gap: 14px; }
  .hero__actions .textlink { justify-content: center; }
  .close__action { width: 100%; }
  .close__action .pill { width: 100%; }
  .demo__foot { flex-direction: column; align-items: flex-start; }
  .wordmark { font-size: 1.625rem; }
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .hero__art-inner { transition: none; transform: none !important; }
}

/* Project inquiries */
.close__grid { align-items: start; }
.close__action { width: 100%; max-width: 600px; justify-self: end; }
.contact-intro { font-size: 1.125rem; line-height: 1.5; max-width: 36ch; color: var(--on-dark-2); }
.inquiry-form { width: 100%; display: grid; gap: 20px; }
.inquiry-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.inquiry-field { display: grid; gap: 9px; min-width: 0; }
.inquiry-field label { font-size: .9375rem; font-weight: 700; }
.inquiry-field label span { font-weight: 500; color: var(--on-dark-2); }
.inquiry-field input, .inquiry-field textarea, .inquiry-field select {
  width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px;
  border: 1px solid #65716a; border-radius: 8px; background: #222925;
  color: var(--on-dark); font: inherit; font-size: 1rem; line-height: 1.5;
  caret-color: var(--on-dark); color-scheme: dark;
}
.inquiry-field textarea { resize: vertical; min-height: 128px; }
.inquiry-field textarea::placeholder { color: #b9c2bc; opacity: 1; }
.inquiry-field input:user-invalid, .inquiry-field textarea:user-invalid { border-color: #edc0b6; }
.inquiry-help { color: var(--on-dark-2); font-size: .875rem; line-height: 1.5; }
.inquiry-help a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.inquiry-honey { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.inquiry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.inquiry-actions .pill { min-height: 56px; }
.inquiry-actions .pill:disabled { background: #a2ada5; color: #202621; cursor: not-allowed; }
.inquiry-copy { background: none; border: 0; padding: 10px 0; color: var(--on-dark); font: inherit; font-size: .9375rem; min-height: 44px; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.inquiry-copy[hidden], .inquiry-help[hidden] { display: none; }
.inquiry-status { min-height: 1.5em; line-height: 1.5; font-size: .9375rem; color: var(--on-dark); }
.inquiry-status[data-state="error"] { color: #f1c6bd; }
@media (max-width: 899px) { .close__action { justify-self: start; max-width: 640px; } }
@media (max-width: 479px) { .inquiry-pair { grid-template-columns: 1fr; } .inquiry-actions { align-items: stretch; flex-direction: column; } }
