/* ================= Stewdio Agents =================
   Design language (owner direction 2026-10-04):
   strict orange / black / white. White field, soft
   rounded white cards, black pill CTAs, tiny caps
   mono labels, orange as the single accent.
   Motion language studied from varickagents.com and
   reimplemented from scratch (see script.js).
=================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --surface: #ffffff;
  --ink: #151517;
  --ink-soft: #6f6f75;
  --line: #ababab36;

  --orange: #ff4b1f;
  --orange-deep: #c73a12;
  --orange-soft: #ff8a66;
  --orange-tint: #fff1ec;

  --grad-hot: linear-gradient(120deg, #ff4b1f, #ff8a1f);
  --grad-ink: linear-gradient(145deg, #232326 0%, #0a0a0b 100%);
  --grad-tint: linear-gradient(130deg, #ffe4da 0%, #fff1ec 100%);

  --radius: 22px;
  --radius-lg: 30px;
  --pad: clamp(20px, 4vw, 64px);
  --font-sans: "Geist", -apple-system, sans-serif;
  --font-mono: "Chivo Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: #ffd9cc; }

/* ---------- shared primitives ---------- */

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18); }
.btn--light { background: #fff; color: var(--ink); }
.btn--pill { border-color: var(--line); background: var(--bg-soft); color: var(--ink); }
.btn--pill:hover { border-color: var(--ink); background: #fff; }
.btn--pill-light { border-color: rgba(255, 255, 255, 0.35); background: transparent; color: #fff; }
.btn--pill-light:hover { border-color: #fff; }
.btn--lg { padding: 17px 32px; font-size: 13px; }

/* diagonal arrow appended to every .btn by script.js (Varick-style nudge) */
.btn .btn__arr { display: inline-block; transition: transform 0.25s cubic-bezier(0.2, 0.6, 0.2, 1); }
.btn:hover .btn__arr { transform: translate(3px, -3px); }

.section-kicker {
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: clamp(36px, 5vw, 72px);
}
.section-kicker em {
  font-style: normal;
  background: var(--grad-hot);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* scroll reveal - only hides content when JS is running (html.js) */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--pad);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; }

.nav__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(180deg, #26262a 0%, #101012 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  padding-top: 3px; /* optical centering - Cinzel sits high */
}

.nav__phone {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.2s;
}
.nav__phone:hover { color: var(--ink); }

.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s;
  white-space: nowrap;
}
@media (max-width: 1160px) {
  .nav__phone { display: none; }
  .nav__links { gap: 18px; }
}
.nav__links a:hover { color: var(--ink); }

/* ---------- hero ---------- */

.hero { padding: clamp(48px, 7vw, 100px) var(--pad) 0; }

.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 70px);
}

.hero__title {
  font-size: clamp(3rem, 7.6vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 18px 0 30px;
}

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

.hero__blurb {
  max-width: 330px;
  font-size: 15px;
  color: var(--ink-soft);
  padding-bottom: 8px;
}

/* laptop stage - studio backdrop like the reference recording */
.hero__stage {
  position: relative;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: clamp(36px, 5vw, 80px) clamp(20px, 6vw, 110px) 0;
  background:
    radial-gradient(120% 90% at 50% -10%, #fdfdfd 0%, #f2f2f4 55%, #e9e9ec 100%);
  border: 1px solid var(--line);
  border-bottom: none;
  overflow: hidden;
}
.hero__stage::before {
  /* soft colored light spill on the studio wall */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 30% at 18% 20%, rgba(255, 75, 31, 0.09), transparent 70%),
    radial-gradient(45% 32% at 82% 16%, rgba(255, 138, 102, 0.08), transparent 70%),
    radial-gradient(38% 28% at 55% 8%, rgba(21, 21, 23, 0.05), transparent 70%);
  pointer-events: none;
}

.laptop { position: relative; max-width: 940px; margin: 0 auto; filter: drop-shadow(0 40px 60px rgba(21, 21, 23, 0.18)); }

.laptop__screen {
  background: #0d0d0f;
  border-radius: 26px 26px 0 0;
  padding: clamp(8px, 1.4vw, 14px) clamp(8px, 1.4vw, 14px) 0;
}

.laptop__base {
  height: clamp(10px, 1.6vw, 16px);
  background: linear-gradient(180deg, #e8e8ea 0%, #c9c9cd 70%, #ababaf 100%);
  border-radius: 0 0 18px 18px;
  margin: 0 -3.5%;
}
.laptop__base::after {
  content: "";
  display: block;
  width: 12%;
  height: 38%;
  margin: 0 auto;
  background: #b3b3b7;
  border-radius: 0 0 10px 10px;
}

/* in-screen dashboard */
.dash {
  background: #f4f4f5;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  font-size: clamp(8px, 1.1vw, 13px);
}

.dash__nav {
  display: flex;
  align-items: center;
  gap: 1.2em;
  padding: 0.9em 1.2em;
  background: #fff;
  border-bottom: 1px solid #ececee;
}
.dash__brand { display: flex; align-items: center; gap: 0.5em; font-weight: 600; letter-spacing: 0.04em; font-size: 0.95em; }
.dash__brand i {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 0.6em;
  background: linear-gradient(180deg, #26262a 0%, #101012 100%);
  color: #fff;
  font-family: "Cinzel Decorative", Georgia, serif;
  font-weight: 700;
  padding-top: 0.15em;
}
.dash__brand em { font-style: normal; color: #b9b9be; }
.dash__chip {
  font-family: var(--font-mono);
  font-size: 0.72em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  padding: 0.5em 1.1em;
  color: var(--ink);
}
.dash__tabs { display: flex; gap: 1.4em; margin-left: auto; font-family: var(--font-mono); font-size: 0.72em; letter-spacing: 0.12em; text-transform: uppercase; color: #b0b0b5; }
.dash__tabs b { color: var(--ink); font-weight: 500; }
.dash__create {
  font-family: var(--font-mono);
  font-size: 0.72em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 0.6em 1.3em;
}

.dash__body {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.2em;
  padding: 1.4em;
}

.dash__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a2a2a8;
  margin-bottom: 0.9em;
}

.dash__left h4, .dash__card h4 { font-size: 1.75em; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 0.45em; }
.dash__left p, .dash__card p { color: #8b8b91; font-size: 0.95em; max-width: 30em; }

.dash__avatars { display: flex; align-items: center; gap: 0.4em; margin: 1.2em 0 2em; }
.dash__avatars i {
  width: 2.1em;
  height: 2.1em;
  border-radius: 50%;
  border: 2px solid #f4f4f5;
}
.dash__avatars i:nth-child(1) { background: var(--grad-hot); }
.dash__avatars i:nth-child(2) { background: var(--grad-tint); margin-left: -0.9em; }
.dash__avatars i:nth-child(3) { background: var(--grad-ink); margin-left: -0.9em; }

.dash__pill {
  font-family: var(--font-mono);
  font-size: 0.68em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid #dcdce0;
  border-radius: 999px;
  padding: 0.55em 1.3em;
  color: var(--ink);
  background: #fff;
  margin-left: 0.6em;
}
.dash__pill--dark { background: var(--ink); color: #fff; border-color: var(--ink); margin-left: 0; }

.dash__sub { border-top: 1px solid #e6e6e9; padding-top: 1.1em; }
.dash__sub h5 { font-size: 1.15em; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 0.3em; }
.dash__sub p { margin-bottom: 1em; }

.dash__right { display: flex; flex-direction: column; gap: 1.2em; }

.dash__card {
  background: #fff;
  border-radius: 1.3em;
  padding: 1.3em;
  box-shadow: 0 1px 2px rgba(21, 21, 23, 0.04);
}
.dash__cardfoot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.1em; }
.dash__ago { font-family: var(--font-mono); font-size: 0.68em; letter-spacing: 0.1em; text-transform: uppercase; color: #b7b7bc; }

.dash__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2em; flex: 1; }
.dash__row .dash__card h5 { font-size: 1.2em; font-weight: 500; letter-spacing: -0.02em; }
.dash__card--pastel { background: linear-gradient(140deg, #ffe4da 0%, #ffd2c2 55%, #fff1ec 100%); }
.dash__card--pastel .dash__label { color: #c05a3a; }

.dash__spark { display: flex; align-items: flex-end; gap: 0.35em; height: 2.6em; margin-top: 0.9em; }
.dash__spark i { flex: 1; border-radius: 0.3em 0.3em 0 0; background: #ececee; }
.dash__spark i:nth-child(1) { height: 30%; }
.dash__spark i:nth-child(2) { height: 45%; }
.dash__spark i:nth-child(3) { height: 38%; background: var(--orange-soft); }
.dash__spark i:nth-child(4) { height: 62%; }
.dash__spark i:nth-child(5) { height: 55%; background: var(--orange); }
.dash__spark i:nth-child(6) { height: 78%; }
.dash__spark i:nth-child(7) { height: 100%; background: var(--orange); }

/* ---------- logo strips ---------- */

.logostrip {
  padding: clamp(36px, 5vw, 60px) var(--pad);
  background: var(--bg);
  border-block: 1px solid var(--line);
  text-align: center;
}
.logostrip--tight { border-top: none; }
.logostrip__label { display: block; margin-bottom: 26px; }
.logostrip__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(28px, 5vw, 72px);
  align-items: baseline;
}
.wordmark {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #bcbcc1;
  transition: color 0.25s;
}
.wordmark:nth-child(odd) { font-weight: 300; font-style: italic; }
.wordmark:hover { color: var(--ink); }

/* ---------- steps ---------- */

.steps { padding: clamp(64px, 8vw, 120px) var(--pad); background: var(--bg-soft); }

.steps__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.step-card .mono-label { color: var(--orange); }
.step-card:nth-child(even) .mono-label { color: var(--ink); }
.step-card h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 500; letter-spacing: -0.03em; }
.step-card p { font-size: 14.5px; color: var(--ink-soft); max-width: 52ch; }

.step-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.step-card--wide .step-card__body { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.step-card--wide .btn { align-self: flex-start; }

/* decorative arts */
.step-card__art {
  flex: 0 0 clamp(180px, 26vw, 340px);
  align-self: stretch;
  border-radius: var(--radius);
  min-height: 170px;
}
.step-card__art--pastel {
  background:
    radial-gradient(80% 90% at 20% 15%, rgba(255, 75, 31, 0.55) 0%, transparent 55%),
    radial-gradient(85% 90% at 85% 30%, rgba(255, 138, 102, 0.45) 0%, transparent 60%),
    radial-gradient(90% 90% at 55% 95%, rgba(21, 21, 23, 0.22) 0%, transparent 60%),
    #fff7f3;
}
.step-card__art--orb {
  margin-top: auto;
  min-height: 150px;
  flex: none;
  background:
    radial-gradient(circle at 68% 38%, rgba(255, 75, 31, 0.6) 0%, transparent 42%),
    radial-gradient(circle at 30% 78%, rgba(21, 21, 23, 0.35) 0%, transparent 45%),
    #fff4ef;
  border: 1px solid var(--line);
}

/* mini dashboard mock */
.mini-dash {
  margin-top: auto;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 14px;
}
.mini-dash__bar { display: flex; gap: 5px; margin-bottom: 12px; }
.mini-dash__bar i { width: 8px; height: 8px; border-radius: 50%; background: #dededf; }
.mini-dash__bar i:first-child { background: var(--orange); }
.mini-dash__rows { display: flex; flex-direction: column; gap: 6px; }
.mini-dash__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 9px 12px;
}
.mini-dash__row b { font-size: 12.5px; font-weight: 500; }

.chip {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ededee;
  color: var(--ink-soft);
}
.chip--live { background: #ffe3da; color: var(--orange-deep); }

/* mini chart */
.mini-chart {
  flex: 0 0 clamp(220px, 30vw, 360px);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.mini-chart__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mini-chart svg { width: 100%; height: 110px; }

/* ---------- values ---------- */

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.values__kicker { grid-column: 1 / -1; margin-bottom: 0; }
.values {
  gap: clamp(40px, 6vw, 100px);
  padding: clamp(64px, 8vw, 130px) var(--pad);
  background: var(--bg);
  align-items: start;
}

.values__lede { font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -0.02em; max-width: 26ch; margin-bottom: 34px; }

.values__rays {
  height: clamp(160px, 20vw, 260px);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(100deg,
      transparent 0 34px,
      rgba(255, 75, 31, 0.45) 34px 35px,
      transparent 35px 69px,
      rgba(21, 21, 23, 0.3) 69px 70px,
      transparent 70px 104px,
      rgba(255, 138, 102, 0.5) 104px 105px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}

.values__list { display: flex; flex-direction: column; gap: 34px; }
.value { display: flex; gap: 22px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 26px; }
.value__num { font-family: var(--font-mono); font-size: 15px; flex: 0 0 46px; }
.value .value__num { color: var(--orange); }
.value h3 { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 6px; }
.value p { color: var(--ink-soft); font-size: 14.5px; max-width: 46ch; }
.values__list .btn { align-self: flex-start; }

/* ---------- departments ---------- */

.departments { padding: clamp(64px, 8vw, 120px) var(--pad); background: var(--bg-soft); }

.departments__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.departments__grid--three { grid-template-columns: repeat(3, 1fr); }
.departments--services { background: var(--bg); }

.dept {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.dept__icon { font-size: 18px; display: block; margin-bottom: 16px; }
.dept .dept__icon { color: var(--orange); }
.dept:nth-child(even) .dept__icon { color: var(--ink); }
.dept h3 { font-size: 1.15rem; font-weight: 500; margin-bottom: 10px; letter-spacing: -0.01em; }
.dept p { font-size: 13.5px; color: var(--ink-soft); }

.departments__more { margin-top: clamp(36px, 5vw, 60px); text-align: center; }

/* ---------- our work showcase ---------- */

.work { padding: clamp(64px, 8vw, 120px) var(--pad); background: var(--bg-soft); }
.work__card {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.5vw, 44px);
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 48px);
}
.work__icon {
  width: clamp(76px, 9vw, 116px);
  height: auto;
  border-radius: 24%;
  box-shadow: 0 16px 36px rgba(21, 21, 23, 0.18);
  flex: none;
}
.work__info { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 8px; }
.work__info .mono-label { color: var(--orange); }
.work__info h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 500; letter-spacing: -0.03em; }
.work__info p { color: var(--ink-soft); font-size: 14.5px; max-width: 62ch; }
.work__card .btn { flex: none; }

/* ---------- systems / integrations ---------- */

.systems {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  padding: clamp(64px, 8vw, 130px) var(--pad);
  background:
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(21, 21, 23, 0.04) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(21, 21, 23, 0.04) 47px 48px),
    var(--bg);
}

.systems__text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.systems__text h2 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.03; }
.systems__text p { color: var(--ink-soft); max-width: 48ch; }

.systems__panel {
  border-radius: var(--radius-lg);
  min-height: clamp(260px, 30vw, 380px);
  background:
    radial-gradient(90% 120% at 85% 115%, rgba(255, 75, 31, 0.55) 0%, transparent 60%),
    var(--grad-ink);
  display: grid;
  place-items: center;
  padding: 30px;
  box-shadow: 0 40px 80px rgba(255, 75, 31, 0.22);
}

.systems__tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 380px; }
.systems__tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}

/* ---------- agents ---------- */

.agents { padding: clamp(64px, 8vw, 120px) var(--pad); display: flex; flex-direction: column; gap: 18px; background: var(--bg-soft); }
.agents .section-kicker { margin-bottom: clamp(24px, 3vw, 44px); }

.agent {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(28px, 4vw, 70px);
  padding: clamp(28px, 4vw, 54px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.agent--tint { background: linear-gradient(140deg, #ffffff 30%, #fff1ec 100%); }
.agent--dark {
  background:
    radial-gradient(80% 110% at 85% 110%, rgba(255, 75, 31, 0.42) 0%, transparent 55%),
    radial-gradient(70% 90% at 8% -10%, rgba(255, 138, 102, 0.22) 0%, transparent 55%),
    #131315;
  border-color: #131315;
  color: #fff;
}

.agent__info { display: flex; flex-direction: column; gap: 16px; }
.agent .mono-label { color: var(--orange); }
.agent--tint .mono-label { color: var(--orange-deep); }
.agent--dark .mono-label { color: var(--orange-soft); }
.agent__info h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -0.03em; }
.agent__info p { font-size: 14.5px; max-width: 56ch; color: var(--ink-soft); }
.agent--dark .agent__info p { color: rgba(255, 255, 255, 0.72); }

.agent__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.agent__caps { display: flex; flex-direction: column; gap: 14px; }
.agent__caps ul { display: flex; flex-direction: column; }
.agent__caps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
}
.agent--dark .agent__caps li { border-color: rgba(255, 255, 255, 0.16); }
.agent__caps li::before { content: "\2726"; font-size: 11px; color: var(--orange); }
.agent--tint .agent__caps li::before { color: var(--orange-deep); }
.agent--dark .agent__caps li::before { color: var(--orange-soft); }

/* ---------- quote ---------- */

.quote {
  position: relative;
  padding: clamp(90px, 12vw, 180px) var(--pad);
  text-align: center;
  background:
    radial-gradient(55% 70% at 50% 115%, rgba(255, 75, 31, 0.16) 0%, transparent 60%),
    radial-gradient(40% 55% at 22% 110%, rgba(21, 21, 23, 0.08) 0%, transparent 60%),
    radial-gradient(40% 55% at 78% 110%, rgba(255, 138, 102, 0.14) 0%, transparent 60%),
    var(--bg);
  overflow: hidden;
}
.quote__mark {
  position: absolute;
  top: 3vw;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(90px, 14vw, 200px);
  line-height: 1;
  background: var(--grad-hot);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: Georgia, serif;
  opacity: 0.85;
}
.quote__text { font-size: clamp(1.5rem, 3.4vw, 2.8rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; position: relative; }
.quote__attr { display: block; margin-top: 26px; }

/* ---------- faq ---------- */

.faq { padding: clamp(64px, 8vw, 120px) var(--pad); background: var(--bg-soft); }
.faq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 4vw, 64px); }

.faq__item { border-top: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  color: var(--orange);
  transition: transform 0.3s ease;
  flex: none;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 24px; color: var(--ink-soft); font-size: 14px; max-width: 60ch; }

/* ---------- cta ---------- */

.cta {
  text-align: center;
  padding: clamp(80px, 11vw, 160px) var(--pad);
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.cta h2 {
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 18px 0 36px;
}
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta__watch { display: inline-block; margin-top: 30px; border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: color 0.2s, border-color 0.2s; }
.cta__watch:hover { color: var(--ink); border-color: var(--ink); }

.cta__contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
}
.cta__contact a { border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.cta__contact a:hover { border-color: currentColor; }
.cta__contact i { font-style: normal; opacity: 0.4; }
.cta--dark .cta__contact { color: rgba(255, 255, 255, 0.85); }

/* ---------- footer ---------- */

.footer { background: #101012; color: #fff; padding: clamp(48px, 6vw, 80px) var(--pad) 28px; }
.footer .nav__mark { background: #fff; color: var(--ink); }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__brand p { margin-top: 18px; color: rgba(255, 255, 255, 0.6); font-size: 14px; max-width: 40ch; }
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__col a { font-size: 14px; color: rgba(255, 255, 255, 0.75); transition: color 0.2s; }
.footer__col a:hover { color: #fff; }
.footer__col a span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.35);
  margin-right: 12px;
}
.footer__legal { text-align: center; padding-top: 26px; color: rgba(255, 255, 255, 0.35); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .steps__grid, .values, .systems, .faq__grid { grid-template-columns: 1fr; }
  .departments__grid { grid-template-columns: repeat(2, 1fr); }
  .agent { grid-template-columns: 1fr; }
  .step-card--wide { flex-direction: column; align-items: stretch; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__stage { padding-inline: clamp(12px, 4vw, 40px); }
  .dash__tabs { display: none; }
  .dash__create { margin-left: auto; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__phone { display: none; }
  .departments__grid { grid-template-columns: 1fr; }
  .dash__body { grid-template-columns: 1fr; }
  .dash__chip { display: none; }
}

/* ---------- subpages (case studies, careers, blog, privacy, demo) ---------- */

.page { padding: clamp(48px, 7vw, 90px) var(--pad) 0; }

.page__hero { max-width: 880px; margin-bottom: clamp(40px, 6vw, 80px); }
.page__hero .mono-label { display: block; margin-bottom: 18px; }
.page__hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 22px;
}
.page__hero .page__sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-soft); }

.page__chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.page__chips .chip { font-size: 10.5px; padding: 6px 14px; background: var(--bg-soft); border: 1px solid var(--line); }

.psec { padding: clamp(40px, 5vw, 72px) var(--pad); border-top: 1px solid var(--line); }
.psec--soft { background: var(--bg-soft); }
.psec__inner { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: clamp(24px, 4vw, 80px); align-items: start; }
.psec__inner > .mono-label { padding-top: 6px; }
.psec h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 500; letter-spacing: -0.03em; margin-bottom: 16px; }
.psec .psec__body { color: var(--ink-soft); max-width: 62ch; font-size: 15px; }

.kv { display: flex; flex-direction: column; }
.kv__row { display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding: 14px 2px; font-size: 14.5px; }
.kv__row b { font-weight: 500; flex: 0 0 max(160px, 30%); }
.kv__row span { color: var(--ink-soft); text-align: left; flex: 1; }

.findings { display: flex; flex-direction: column; gap: 0; counter-reset: finding; }
.finding { display: flex; gap: 18px; border-bottom: 1px solid var(--line); padding: 16px 2px; font-size: 14.5px; align-items: baseline; }
.finding::before {
  counter-increment: finding;
  content: "." counter(finding, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
  flex: 0 0 34px;
}
.finding p { color: var(--ink); max-width: 70ch; }
.findings__closing { margin-top: 22px; color: var(--ink-soft); font-size: 15px; max-width: 62ch; font-style: italic; }

.arch { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.arch__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.psec--soft .arch__card { background: #fff; }
.arch__card h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 8px; letter-spacing: -0.01em; }
.arch__card h3::before { content: "\2726\00a0\00a0"; font-size: 11px; }
.arch__card h3::before { color: var(--orange); }
.arch__card:nth-child(even) h3::before { color: var(--ink); }
.arch__card p { font-size: 13.5px; color: var(--ink-soft); }

.tl { display: flex; flex-direction: column; }
.tl__row { display: grid; grid-template-columns: 110px 1fr 1.4fr; gap: 24px; border-bottom: 1px solid var(--line); padding: 18px 2px; font-size: 14.5px; align-items: baseline; }
.tl__row .mono-label { font-size: 10.5px; }
.tl__row b { font-weight: 500; }
.tl__row p { color: var(--ink-soft); font-size: 13.5px; }

.rmetrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rmetric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.psec--soft .rmetric { background: #fff; }
.rmetric__value {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  display: block;
  background: var(--grad-hot);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rmetric__title { font-size: 13.5px; font-weight: 500; margin-top: 8px; }
.rmetric__old { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-top: 6px; }

.roles { display: flex; flex-direction: column; }
.role { display: grid; grid-template-columns: 1.3fr 2fr 1fr auto; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); padding: 18px 2px; font-size: 14.5px; }
.role b { font-weight: 500; }
.role .role__team { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.role p { color: var(--ink-soft); font-size: 13.5px; }
.role .role__comp { font-family: var(--font-mono); font-size: 11px; color: var(--ink); white-space: nowrap; }
.role .btn { padding: 9px 18px; font-size: 10.5px; }

.articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.article:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(21, 21, 23, 0.08); }
.article__meta { display: flex; justify-content: space-between; align-items: center; }
.article h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.article p { font-size: 13.5px; color: var(--ink-soft); flex: 1; }
.article .article__cat { font-size: 10px; padding: 4px 12px; }
.article__cat.cat-finance { background: #ffe3da; color: var(--orange-deep); }
.article__cat.cat-engineering { background: var(--ink); color: #fff; }
.article__cat.cat-business { background: #fff1ec; color: var(--orange-deep); border: 1px solid #ffc8b5; }
.article__cat.cat-tech { background: #ededee; color: #3c3c41; }

.legal { max-width: 760px; }
.legal h2 { font-size: 1.3rem; font-weight: 500; margin: 34px 0 10px; letter-spacing: -0.01em; }
.legal p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 10px; }

.crumb { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; }
.crumb:hover { color: var(--ink); }

@media (max-width: 960px) {
  .psec__inner { grid-template-columns: 1fr; gap: 18px; }
  .arch, .articles, .rmetrics { grid-template-columns: 1fr 1fr; }
  .tl__row { grid-template-columns: 90px 1fr; }
  .tl__row p { grid-column: 2; }
  .role { grid-template-columns: 1fr auto; }
  .role p { grid-column: 1 / -1; }
  .role .role__team { display: none; }
}
@media (max-width: 640px) {
  .arch, .articles, .rmetrics { grid-template-columns: 1fr; }
}

/* ---------- article pages ---------- */

.art { max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 90px) var(--pad) clamp(48px, 6vw, 80px); }
.art__head { margin-bottom: clamp(32px, 4vw, 52px); }
.art__head .crumb { margin-bottom: 30px; }
.art__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.art h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; margin-bottom: 18px; }
.art__lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-soft); line-height: 1.5; }
.art__byline { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.art__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad-ink); flex: none; }
.art__byline b { font-weight: 500; font-size: 14px; display: block; }
.art__byline span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }

.art__body h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 500; letter-spacing: -0.02em; margin: 40px 0 14px; }
.art__body p { font-size: 16px; line-height: 1.75; color: #3c3c41; margin-bottom: 16px; }
.art__quote {
  margin: 40px 0;
  padding: 26px 30px;
  border-left: 3px solid transparent;
  border-image: var(--grad-hot) 1;
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.art__foot { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- support / contact form ---------- */

.support { max-width: 640px; margin: 0 auto; padding: clamp(48px, 7vw, 90px) var(--pad) clamp(64px, 8vw, 110px); }
.support h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 500; letter-spacing: -0.035em; margin: 14px 0 12px; }
.support > p { color: var(--ink-soft); margin-bottom: 34px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.form input, .form textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}
.form input:focus, .form textarea:focus { border-color: var(--ink); background: #fff; }
.form .btn { align-self: flex-start; margin-top: 6px; }
.support__alt { margin-top: 30px; font-size: 14px; color: var(--ink-soft); }
.support__alt a { color: var(--ink); border-bottom: 1px solid var(--line); }
.support__legal { margin-top: 44px; }

/* ================= motion layer =================
   Original implementations of the motion language
   studied on the reference agency site: load-time
   word stagger, scroll-driven word reveal, marquee
   tickers, canvas dot-wave bands. Wired by script.js
   with zero per-page markup except the canvas bands.
================================================== */

/* word stagger on page titles (plays once on load) */
.js .ws .ws__w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  transition: opacity 0.65s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.6, 0.2, 1);
  transition-delay: var(--wd, 0s);
}
.js .ws.is-in .ws__w { opacity: 1; transform: none; }

/* scroll-driven word reveal on section kickers */
.js .wr .wr__w { opacity: 0.14; transition: opacity 0.35s ease-out; }
.js .wr .wr__w.is-on { opacity: 1; }

/* marquee logo ticker (script.js wraps and duplicates the row) */
.logostrip__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logostrip__row--marquee {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  animation: strip-marquee var(--marquee-dur, 30s) linear infinite;
}
.logostrip__viewport:hover .logostrip__row--marquee { animation-play-state: paused; }
@keyframes strip-marquee {
  to { transform: translateX(calc(-1 * var(--marquee-shift, 50%))); }
}

/* canvas dot-wave bands */
.dotwave-band { position: relative; height: clamp(110px, 16vw, 200px); overflow: hidden; }
.dotwave-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* dark CTA with animated dots behind the content */
.cta--dark {
  position: relative;
  background: #0d0d0f;
  color: #fff;
  border-top: none;
  overflow: hidden;
}
.cta--dark > * { position: relative; }
.cta--dark .cta__dots { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta--dark .mono-label { color: var(--orange-soft); }
.cta--dark .cta__watch { color: rgba(255, 255, 255, 0.72); border-color: rgba(255, 255, 255, 0.25); }
.cta--dark .cta__watch:hover { color: #fff; border-color: #fff; }

/* respect reduced motion: content always visible, nothing moves */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .ws .ws__w { opacity: 1; transform: none; transition: none; }
  .js .wr .wr__w { opacity: 1; transition: none; }
  .logostrip__row--marquee { animation: none; }
  .btn .btn__arr { transition: none; }
  html { scroll-behavior: auto; }
}
