@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 1000;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --cream: #ebe3d5;
  --paper: #f0e9dc;
  --ink: #2a2620;
  --ink-2: #171713;
  --muted: #6b5f52;
  --muted-dark: #8a8378;
  --teal: #0d7a70;
  --cream-text: #e8e0d0;
  --rule: rgba(42, 38, 32, 0.14);
  --rule-strong: rgba(42, 38, 32, 0.32);
  --rule-dark: rgba(232, 224, 208, 0.14);
  --shadow: 0 34px 90px -58px rgba(42, 38, 32, 0.42);
  --shadow-teal: 0 34px 90px -54px rgba(13, 122, 112, 0.48);
  --font-display: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: Inter, "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1.2, 0.36, 1);
  color-scheme: light;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background: var(--cream);
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background 0.45s ease, color 0.45s ease;
}

body.dark {
  background:
    radial-gradient(circle at 22% 16%, rgba(13, 122, 112, 0.08), transparent 34rem),
    var(--ink-2);
  color: var(--cream-text);
  color-scheme: dark;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  padding: 10px 12px;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.dot,
.colon {
  color: var(--teal);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

/* Header */
.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 26px 34px;
  pointer-events: none;
}

.top > * {
  pointer-events: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  text-decoration: none;
}

.logo img {
  width: 22px;
  height: 22px;
  filter: brightness(0) saturate(100%) invert(31%) sepia(59%) saturate(620%) hue-rotate(131deg) brightness(92%) contrast(92%);
}

.logo .wmk {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
}

.contact {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease, opacity 0.2s ease;
}

body.dark .contact {
  color: var(--muted-dark);
}

.contact:hover {
  color: var(--teal);
}

.controls {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.mode-toggle {
  appearance: none;
  border: 1px solid currentColor;
  background: transparent;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  position: relative;
}

.mode-toggle .thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), background 0.35s ease;
}

body.dark .mode-toggle .thumb {
  transform: translateX(20px);
}

/* Hero */
.hero-scroll {
  position: relative;
}

.hero {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 112px 34px 84px;
}

.hero-inline {
  width: min(1180px, 92vw);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 50px);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.marquee-col {
  flex: 0 1 460px;
  min-width: 260px;
}

.marquee {
  position: relative;
  height: 11em;
  width: 100%;
  overflow: hidden;
  font-size: clamp(28px, 3.4vw, 50px);
  mask: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.25) 16%, #000 42%, #000 58%, rgba(0,0,0,0.25) 84%, transparent 100%);
  -webkit-mask: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.25) 16%, #000 42%, #000 58%, rgba(0,0,0,0.25) 84%, transparent 100%);
}

.stack {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  text-align: left;
  will-change: transform;
}

.row {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: inherit;
  line-height: 1;
  padding: 0.35em 0;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.25s ease, font-weight 0.25s ease;
}

body.dark .row {
  color: var(--muted-dark);
}

.row.active {
  color: var(--teal);
  font-weight: 500;
}

body.dark .row.active {
  color: var(--teal);
}

.hero-foot {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
}

body.dark .hero-foot {
  color: var(--muted-dark);
}

.hero-foot .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 7px;
}

.pulse,
.teal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex: 0 0 auto;
  position: relative;
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid var(--teal);
  border-radius: inherit;
  opacity: 0;
  animation: pulse-ring 2.2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.75); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.scroll-cue::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.word-progress {
  position: absolute;
  left: 34px;
  bottom: 54px;
  display: flex;
  gap: 6px;
}

.word-progress .tick {
  width: 16px;
  height: 2px;
  background: currentColor;
  opacity: 0.16;
  transition: opacity 0.35s ease, width 0.35s ease, background 0.35s ease;
}

.word-progress .tick.active {
  width: 26px;
  opacity: 1;
  background: var(--teal);
}

.word-progress .tick.seen {
  opacity: 0.42;
}

/* Shared structure */
.section-shell {
  width: min(100% - 96px, 1360px);
  margin: 0 auto;
}

.section-kicker,
.section-eyebrow,
.numbers-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--muted);
}

body.dark .section-kicker,
body.dark .section-eyebrow,
body.dark .numbers-label {
  color: var(--muted-dark);
}

.section-kicker span:first-child,
.section-eyebrow span:first-child {
  color: var(--teal);
}

.split-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: end;
}

.split-head h2,
.examples-copy h2,
.cta-head h2 {
  margin: 28px 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(52px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: 0;
}

.split-head p:last-child,
.examples-copy > p:not(.section-eyebrow),
.cta-head > p:not(.section-eyebrow) {
  margin: 0;
  max-width: 39ch;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--muted);
}

body.dark .split-head p:last-child,
body.dark .examples-copy > p:not(.section-eyebrow),
body.dark .cta-head > p:not(.section-eyebrow) {
  color: var(--muted-dark);
}

/* Positioning */
.positioning {
  border-top: 1px solid var(--rule);
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 112px 0 76px;
}

body.dark .positioning {
  border-top-color: var(--rule-dark);
}

.positioning-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(46px, 7vh, 88px);
}

.positioning-statement {
  margin: 0 auto;
  max-width: 18ch;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 6.1vw, 88px);
  line-height: 1.05;
  letter-spacing: 0;
}

.positioning-statement .word {
  display: inline-flex;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.14;
}

.positioning-statement .word > span {
  display: inline-block;
  transform: translateY(108%);
  transition: transform 0.95s var(--ease-out);
  transition-delay: var(--w-delay, 0s);
}

.positioning.is-revealed .positioning-statement .word > span {
  transform: translateY(0);
}

.numbers-bar {
  display: grid;
  grid-template-columns: 0.75fr repeat(3, 1fr);
  align-items: start;
  border-top: 1px solid var(--rule-strong);
}

body.dark .numbers-bar {
  border-top-color: var(--rule-dark);
}

.numbers-label {
  padding-top: 38px;
}

.stat {
  padding: 36px 44px 10px;
  border-left: 1px solid var(--rule);
  min-height: 184px;
  display: flex;
  flex-direction: column;
}

body.dark .stat {
  border-left-color: var(--rule-dark);
}

.stat-index {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--teal);
  margin-bottom: 24px;
}

.stat strong {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(62px, 6vw, 96px);
  line-height: 0.9;
  letter-spacing: 0;
  font-feature-settings: "tnum" 1;
}

.num-suffix,
.stat-name {
  color: var(--teal);
}

.stat-name {
  font-weight: 600;
  margin-top: 12px;
}

.stat-note {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

body.dark .stat-note {
  color: var(--muted-dark);
}

/* Services */
.services {
  padding: 142px 0 124px;
  border-top: 1px solid var(--rule);
}

body.dark .services {
  border-top-color: var(--rule-dark);
}

.services .split-head {
  grid-template-columns: 1fr;
}

.service-grid {
  margin-top: clamp(70px, 10vw, 128px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule-strong);
  position: relative;
}

body.dark .service-grid {
  border-top-color: var(--rule-dark);
}

.service-grid::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 33.33%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  transform: translateX(-50%);
  box-shadow: 0 0 0 10px rgba(13, 122, 112, 0.08);
}

.service-card {
  min-height: 420px;
  padding: 38px clamp(28px, 3vw, 52px) 44px;
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  background: transparent;
  transition: transform 0.55s var(--ease-spring), box-shadow 0.55s var(--ease-out), background 0.35s ease;
}

.service-card:first-child {
  border-left: 0;
}

body.dark .service-card {
  border-left-color: var(--rule-dark);
}

.service-card:hover {
  transform: translateY(-8px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  color: var(--teal);
  font-size: 12px;
}

.service-card h3 {
  margin: 50px 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1.05;
}

.service-card p {
  max-width: 32ch;
  margin: 34px 0 0;
  line-height: 1.55;
  color: var(--muted);
  font-size: 17px;
}

body.dark .service-card p {
  color: var(--muted-dark);
}

.service-card ul {
  list-style: none;
  margin: auto 0 0;
  padding: 34px 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

body.dark .service-card ul {
  border-top-color: var(--rule-dark);
}

/* Capability console */
.capability-console {
  margin-top: clamp(96px, 13vw, 168px);
}

.console-head {
  text-align: center;
}

.console-head .section-eyebrow {
  justify-content: center;
}

.console-head h3 {
  margin: 30px auto 0;
  max-width: 15ch;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(58px, 6.9vw, 106px);
  line-height: 0.98;
  letter-spacing: 0;
}

.console-frame {
  margin-top: clamp(52px, 7vw, 86px);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(250, 247, 242, 0.22);
  box-shadow: var(--shadow);
}

body.dark .console-frame {
  border-color: var(--rule-dark);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

.console-search {
  min-height: 88px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 0 32px;
  border-bottom: 1px solid var(--rule);
  cursor: text;
}

body.dark .console-search {
  border-bottom-color: var(--rule-dark);
}

.console-search > span {
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
  color: var(--ink);
  opacity: 0.92;
}

body.dark .console-search > span {
  color: var(--cream-text);
}

.console-search > span::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 2px;
  right: -7px;
  bottom: -3px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.console-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: 400 clamp(17px, 1.6vw, 22px) / 1 var(--font-body);
}

.console-search input::placeholder {
  color: var(--muted);
}

body.dark .console-search input::placeholder {
  color: var(--muted-dark);
}

.console-search kbd {
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

body.dark .console-search kbd {
  color: var(--muted-dark);
}

.console-grid {
  min-height: 494px;
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(340px, 1.15fr) minmax(330px, 1.08fr);
}

.console-categories,
.console-palette,
.console-detail {
  min-width: 0;
}

.console-categories {
  border-right: 1px solid var(--rule);
  padding: 34px 0;
  display: grid;
  align-content: start;
  gap: 26px;
}

body.dark .console-categories {
  border-right-color: var(--rule-dark);
}

.console-category {
  appearance: none;
  border: 0;
  border-left: 5px solid transparent;
  background: transparent;
  color: inherit;
  min-height: 98px;
  padding: 0 26px 0 36px;
  display: grid;
  align-content: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.console-category.is-active {
  border-left-color: var(--teal);
  background: rgba(13, 122, 112, 0.04);
}

@media (hover: hover) {
  .console-category:hover {
    border-left-color: var(--teal);
    background: rgba(13, 122, 112, 0.04);
  }

  body.dark .console-category:hover {
    background: rgba(13, 122, 112, 0.08);
  }
}

body.dark .console-category.is-active {
  background: rgba(13, 122, 112, 0.08);
}

.console-category span:first-child {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--teal);
}

.console-category span:last-child {
  max-width: 10ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.15;
}

.console-palette {
  border-right: 1px solid var(--rule);
  padding: 34px 32px;
}

body.dark .console-palette {
  border-right-color: var(--rule-dark);
}

.console-panel-label {
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
}

body.dark .console-panel-label {
  color: var(--muted-dark);
}

.command-list {
  display: grid;
}

.command-button {
  appearance: none;
  border: 0;
  border-top: 1px solid var(--rule);
  background: transparent;
  color: inherit;
  width: 100%;
  min-height: 76px;
  padding: 18px 14px 18px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}

body.dark .command-button {
  border-top-color: var(--rule-dark);
}

.command-button:first-child {
  border-top: 0;
}

.command-button.is-active {
  border-color: transparent;
  border-radius: 4px;
  background: rgba(250, 247, 242, 0.7);
  box-shadow: inset 5px 0 0 var(--teal), 0 18px 46px -34px rgba(42, 38, 32, 0.48);
  padding-left: 24px;
  padding-right: 24px;
}

@media (hover: hover) {
  .command-button:hover {
    border-color: transparent;
    border-radius: 4px;
    background: rgba(250, 247, 242, 0.7);
    box-shadow: inset 5px 0 0 var(--teal), 0 18px 46px -34px rgba(42, 38, 32, 0.48);
    padding-left: 24px;
    padding-right: 24px;
  }

  body.dark .command-button:hover {
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 5px 0 0 var(--teal);
  }
}

body.dark .command-button.is-active {
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 5px 0 0 var(--teal);
}

.command-button strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 1.85vw, 28px);
  line-height: 1.1;
}

.command-button small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

body.dark .command-button small {
  color: var(--muted-dark);
}

.command-button em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
}

.console-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

body.dark .console-empty {
  border-top-color: var(--rule-dark);
  color: var(--muted-dark);
}

.console-detail {
  padding: 34px 34px 32px;
  display: flex;
  flex-direction: column;
}

.mobile-detail-back {
  display: none;
}

.console-detail.has-visuals {
  padding: 32px 30px 34px;
}

.detail-visual {
  display: grid;
  gap: 20px;
}

.detail-visual .detail-frame,
.detail-visual .design-preview-grid {
  margin-top: 0;
}

.detail-visual .detail-frame {
  max-width: 52ch;
}

.detail-kicker {
  margin: 0 0 32px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
}

body.dark .detail-kicker {
  color: var(--muted-dark);
}

.console-detail h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.05;
}

.detail-category {
  margin: 13px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--teal);
}

.detail-frame {
  margin: 26px 0 0;
  max-width: 34ch;
  line-height: 1.55;
  color: var(--muted);
}

body.dark .detail-frame {
  color: var(--muted-dark);
}

.detail-flow {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

.detail-flow li {
  min-height: 46px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 14px;
  line-height: 1.35;
}

.detail-flow li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 7px rgba(13, 122, 112, 0.08);
}

.design-preview-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.design-preview {
  appearance: none;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: var(--paper);
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: default;
  position: relative;
  box-shadow: 0 20px 46px -42px rgba(42, 38, 32, 0.52);
}

body.dark .design-preview {
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 20px 46px -44px rgba(0, 0, 0, 0.82);
}

.design-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: none;
  transition: filter 0.35s ease;
}

.design-preview.is-clickable {
  cursor: zoom-in;
  transition: transform 0.45s var(--ease-spring), box-shadow 0.35s ease, filter 0.35s ease;
}

.design-preview.is-clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px -44px rgba(13, 122, 112, 0.55);
}

.design-preview.is-clickable:hover img {
  transform: none;
}

.design-preview-empty {
  border: 1px dashed rgba(13, 122, 112, 0.24);
  box-shadow: none;
  background:
    linear-gradient(135deg, rgba(13, 122, 112, 0.08), transparent 44%),
    transparent;
}

.preview-placeholder {
  position: absolute;
  inset: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.preview-placeholder::before {
  content: "";
  align-self: flex-end;
  width: 46%;
  aspect-ratio: 1.6;
  border: 1px solid rgba(13, 122, 112, 0.28);
  box-shadow: -42px 36px 0 -1px rgba(13, 122, 112, 0.08);
}

.preview-placeholder strong {
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.1;
}

.preview-placeholder span {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  color: var(--teal);
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 5vw, 54px);
  background: rgba(23, 23, 19, 0.48);
}

.image-viewer.is-open {
  display: flex;
}

.viewer-panel {
  position: relative;
  width: min(1080px, calc(100vw - 72px));
  max-height: min(86vh, 860px);
  padding: 18px;
  display: grid;
  background: var(--cream);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 42px 120px -50px rgba(0, 0, 0, 0.55);
  transform: translateY(10px) scale(0.985);
  transition: transform 0.32s var(--ease-out);
}

body.dark .viewer-panel {
  background: var(--ink-2);
}

.image-viewer.is-open .viewer-panel {
  transform: translateY(0) scale(1);
}

.viewer-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  appearance: none;
  border: 0;
  background: rgba(246, 241, 235, 0.84);
  color: inherit;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 14px 30px -24px rgba(42, 38, 32, 0.62);
}

body.dark .viewer-close {
  background: rgba(28, 25, 21, 0.84);
}

.viewer-frame {
  margin: 0;
  display: grid;
  place-items: center;
}

.viewer-frame img {
  max-height: min(78vh, 820px);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

body.dark .viewer-frame img {
  background: transparent;
}

body.viewer-open {
  overflow: hidden;
}

@media (min-width: 1081px) {
  .capability-console {
    margin-top: clamp(62px, 7.5vw, 104px);
  }

  .console-head h3 {
    margin-top: 18px;
    max-width: 14ch;
    font-size: clamp(40px, 4.8vw, 73px);
  }

  .console-frame {
    width: min(100%, 1110px);
    margin: clamp(26px, 3.2vw, 38px) auto 0;
  }

  .console-search {
    min-height: 63px;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 15px;
    padding: 0 24px;
  }

  .console-search > span {
    width: 18px;
    height: 18px;
    border-width: 1.5px;
  }

  .console-search > span::after {
    width: 7px;
    right: -6px;
    bottom: -3px;
  }

  .console-search input {
    font-size: clamp(15px, 1.3vw, 19px);
  }

  .console-search kbd {
    font-size: 10px;
  }

  .console-grid {
    min-height: 0;
    height: clamp(396px, 52.1vh, 455px);
    grid-template-columns: minmax(152px, 0.36fr) minmax(300px, 1.02fr) minmax(300px, 0.96fr);
  }

  .console-categories {
    padding: 20px 0;
    gap: 13px;
    overflow-y: auto;
  }

  .console-category {
    min-height: 72px;
    padding: 0 19px 0 24px;
    gap: 10px;
  }

  .console-category span:first-child {
    font-size: 10px;
  }

  .console-category span:last-child {
    font-size: 14.5px;
  }

  .console-palette {
    padding: 22px 24px;
    overflow-y: auto;
  }

  .console-panel-label {
    margin-bottom: 15px;
    font-size: 9.5px;
  }

  .command-button {
    min-height: 54px;
    padding: 11px 11px 11px 0;
    gap: 13px;
  }

  .command-button:hover,
  .command-button.is-active {
    padding-left: 17px;
    padding-right: 17px;
  }

  .command-button strong {
    font-size: clamp(17px, 1.45vw, 22px);
  }

  .command-button small {
    margin-top: 5px;
    font-size: 12px;
  }

  .console-detail {
    padding: 22px 24px;
    overflow-y: auto;
  }

  .console-detail.has-visuals {
    padding: 18px 20px 20px;
  }

  .detail-kicker {
    margin-bottom: 18px;
    font-size: 9.5px;
  }

  .console-detail h4 {
    font-size: clamp(24px, 2.4vw, 33px);
  }

  .detail-frame {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.45;
  }

  .console-detail.has-visuals .detail-kicker {
    margin-bottom: 12px;
  }

  .console-detail.has-visuals .detail-category {
    margin-top: 8px;
  }

  .console-detail.has-visuals .detail-frame {
    margin-top: 0;
    max-width: 52ch;
    font-size: 12.5px;
    line-height: 1.38;
  }

  .detail-flow {
    margin-top: 18px;
    gap: 9px 13px;
  }

  .detail-flow li {
    min-height: 30px;
    gap: 10px;
    font-size: 12.5px;
  }

  .detail-flow li::before {
    width: 6px;
    height: 6px;
    margin-top: 5px;
    box-shadow: 0 0 0 5px rgba(13, 122, 112, 0.08);
  }

  .design-preview-grid {
    margin-top: 2px;
    gap: 13px;
  }

  .preview-placeholder {
    padding: 14px;
  }

  .preview-placeholder::before {
    box-shadow: -28px 25px 0 -1px rgba(13, 122, 112, 0.08);
  }

  .preview-placeholder strong {
    font-size: 15px;
  }

  .preview-placeholder span {
    font-size: 8px;
  }
}

/* Platform graph */
.platform {
  position: relative;
  padding: 96px 0 96px;
  border-top: 1px solid var(--rule);
  overflow: hidden;
  background: var(--cream);
}

body.dark .platform {
  border-top-color: var(--rule-dark);
  background: var(--ink-2);
}

.platform-shell {
  width: min(100% - 64px, 1480px);
  margin: 0 auto;
  min-height: min(860px, calc(100svh - 64px));
  display: flex;
  align-items: center;
}

.platform-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(310px, 0.36fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 2.2vw, 42px);
  width: 100%;
}

.platform-copy {
  position: relative;
  z-index: 2;
  padding-left: clamp(0px, 1vw, 18px);
  color: var(--ink);
}

body.dark .platform-copy {
  color: var(--cream-text);
}

.platform-copy h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 6.4vw, 112px);
  line-height: 0.98;
  letter-spacing: 0;
}

.short-rule {
  position: relative;
  z-index: 1;
  display: block;
  width: 70px;
  height: 2px;
  background: var(--teal);
  margin: 36px 0 26px;
}

.platform-copy p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 30ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

body.dark .platform-copy p {
  color: var(--muted-dark);
}

.graph-wrap {
  position: relative;
  min-height: 650px;
  align-self: stretch;
}

.graph-img {
  position: absolute;
  top: 50%;
  right: -1vw;
  width: min(1460px, 106vw);
  max-width: none;
  transform: translateY(-50%);
  filter: none;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 64%, rgba(0,0,0,0.82) 78%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 64%, rgba(0,0,0,0.82) 78%, transparent 100%);
  user-select: none;
  pointer-events: none;
}

.graph-dark {
  display: none;
}

.graph-mobile {
  display: none;
}

body.dark .graph-light {
  display: none;
}

body.dark .graph-dark {
  display: block;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.28));
}

.graph-pulse {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(13, 122, 112, 0.28);
  animation: node-pulse 2.8s ease-out infinite;
}

.pulse-a { top: 52%; left: 48%; }
.pulse-b { top: 35%; left: 73%; animation-delay: 0.55s; }
.pulse-c { top: 63%; left: 86%; animation-delay: 1.15s; }

@keyframes node-pulse {
  0% { box-shadow: 0 0 0 0 rgba(13, 122, 112, 0.34); transform: scale(1); }
  80% { box-shadow: 0 0 0 14px rgba(13, 122, 112, 0); transform: scale(1.12); }
  100% { box-shadow: 0 0 0 0 rgba(13, 122, 112, 0); transform: scale(1); }
}

/* Cases */
.cases {
  padding: 142px 0 126px;
  border-top: 1px solid var(--rule);
}

body.dark .cases {
  border-top-color: var(--rule-dark);
}

.case-list {
  list-style: none;
  margin: 72px 0 0;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 5px;
  overflow: hidden;
  background: rgba(250, 247, 242, 0.32);
}

body.dark .case-list {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--rule-dark);
}

.case {
  border-top: 1px solid var(--rule);
  position: relative;
}

.case:first-child {
  border-top: 0;
}

body.dark .case {
  border-top-color: var(--rule-dark);
}

.case::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease-out);
}

.case.is-open::before {
  transform: scaleY(1);
}

.case-summary {
  appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  min-height: 72px;
  padding: 22px 30px 22px 38px;
  color: inherit;
  cursor: pointer;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto 32px;
  gap: 28px;
  align-items: center;
  text-align: left;
}

.case-summary span {
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 13px;
}

.case-summary strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.1vw, 34px);
}

.case-summary em {
  font-style: normal;
  font-size: 15px;
  color: var(--teal);
}

.case-summary i {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.7;
}

.case-summary i::before,
.case-summary i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-out);
}

.case-summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.case.is-open .case-summary i::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.case-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.58s var(--ease-out);
}

.case.is-open .case-detail {
  grid-template-rows: 1fr;
}

.case-detail-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 38px;
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1fr) minmax(210px, 0.45fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.case.is-open .case-detail-inner {
  padding-bottom: 38px;
}

.case-visual {
  aspect-ratio: 16 / 9;
  background: var(--paper);
  border: 1px solid var(--rule);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

body.dark .case-visual {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--rule-dark);
  box-shadow: none;
}

.case-visual::before,
.case-visual::after,
.case-visual span {
  content: "";
  position: absolute;
}

.visual-coffee {
  background:
    linear-gradient(120deg, rgba(18, 15, 12, 0.88), rgba(73, 54, 38, 0.42)),
    var(--ink);
}

.visual-coffee::before {
  left: 13%;
  bottom: 16%;
  width: 34%;
  height: 54%;
  border: 1px solid rgba(232, 224, 208, 0.35);
  background: linear-gradient(180deg, rgba(232,224,208,0.08), rgba(0,0,0,0.25));
}

.visual-coffee::after {
  right: 18%;
  bottom: 20%;
  width: 20%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 10px solid rgba(232, 224, 208, 0.18);
}

.visual-kit::before {
  inset: 22% 12%;
  border: 1px solid var(--rule-strong);
  background: repeating-linear-gradient(90deg, transparent 0 10%, rgba(13,122,112,0.1) 10% 11%);
}

.visual-kit::after {
  left: 16%;
  right: 16%;
  bottom: 23%;
  height: 3px;
  background: var(--teal);
  transform: skewX(-18deg);
}

.visual-exit::before {
  inset: 14%;
  border: 1px solid var(--teal);
  transform: rotate(-4deg);
}

.visual-exit::after {
  right: 16%;
  top: 18%;
  width: 42%;
  height: 62%;
  background: linear-gradient(180deg, rgba(13,122,112,0.22), transparent);
  border-left: 1px solid var(--rule-strong);
}

.visual-music::before {
  left: 14%;
  bottom: 20%;
  width: 72%;
  height: 1px;
  background: var(--rule-strong);
  box-shadow: 0 -36px 0 rgba(13,122,112,0.5), 0 -72px 0 rgba(42,38,32,0.22);
}

.visual-music::after {
  left: 28%;
  top: 18%;
  width: 32%;
  height: 58%;
  border-radius: 999px 999px 8px 8px;
  border: 1px solid var(--teal);
}

.visual-systems::before {
  inset: 18%;
  border: 1px solid var(--rule-strong);
  background:
    linear-gradient(90deg, transparent 49%, var(--teal) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(13,122,112,0.55) 49% 51%, transparent 51%);
}

.visual-systems::after {
  left: 18%;
  top: 18%;
  width: 64%;
  height: 64%;
  border-radius: 50%;
  border: 1px dashed rgba(13, 122, 112, 0.45);
}

.visual-design::before {
  inset: 16% 12%;
  background:
    linear-gradient(90deg, rgba(13,122,112,0.16) 0 1px, transparent 1px 33.33%, rgba(13,122,112,0.16) calc(33.33% + 1px) calc(33.33% + 2px), transparent calc(33.33% + 2px) 66.66%, rgba(13,122,112,0.16) calc(66.66% + 1px) calc(66.66% + 2px), transparent calc(66.66% + 2px)),
    linear-gradient(0deg, rgba(42,38,32,0.16) 0 1px, transparent 1px 33.33%, rgba(42,38,32,0.16) calc(33.33% + 1px) calc(33.33% + 2px), transparent calc(33.33% + 2px) 66.66%, rgba(42,38,32,0.16) calc(66.66% + 1px) calc(66.66% + 2px), transparent calc(66.66% + 2px));
}

.visual-design::after {
  left: 18%;
  bottom: 18%;
  width: 46%;
  height: 34%;
  border: 1px solid var(--teal);
  box-shadow: 44px -34px 0 -1px rgba(13, 122, 112, 0.14);
}

.case-copy h3 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 3.8vw, 58px);
  line-height: 1.05;
}

.case-copy h3::after {
  content: "";
  display: block;
  width: 66px;
  height: 2px;
  background: var(--teal);
  margin: 26px 0;
}

.case-copy p {
  margin: 0;
  max-width: 44ch;
  line-height: 1.62;
}

.case-number {
  border-left: 1px solid var(--rule);
  padding-left: 42px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

body.dark .case-number {
  border-left-color: var(--rule-dark);
}

.case-number strong {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 82px);
  font-weight: 300;
  color: var(--teal);
  line-height: 1;
  font-feature-settings: "tnum" 1;
}

.case-number small {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
}

body.dark .case-number small {
  color: var(--muted-dark);
}

/* Examples */
.examples {
  padding: 120px 0 76px;
  border-top: 1px solid var(--rule);
}

body.dark .examples {
  border-top-color: var(--rule-dark);
}

.examples-shell {
  width: min(100% - 64px, 1480px);
  margin: 0 auto;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.examples-copy {
  align-self: start;
  padding-top: 4px;
}

.examples-copy h2 {
  font-size: clamp(58px, 6.6vw, 108px);
}

.examples-copy > p:not(.section-eyebrow) {
  margin-top: 34px;
  color: var(--muted);
}

body.dark .examples-copy > p:not(.section-eyebrow) {
  color: var(--muted-dark);
}

.example-stage {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}

.example-card {
  position: relative;
  width: auto;
  transition: transform 0.5s var(--ease-out), opacity 0.35s ease;
}

.example-card p {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--teal);
}

.example-card h3 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
}

.example-card a {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: 13px;
}

.shot {
  display: block;
  aspect-ratio: 0.62;
  border: 1px solid var(--rule-strong);
  border-radius: 5px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: none;
  transition: border-color 0.3s ease, transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-out);
}

body.dark .shot {
  border-color: var(--rule-dark);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 1.8s var(--ease-out);
}

.example-card:hover .shot {
  border-color: var(--teal);
  box-shadow: var(--shadow-teal);
}

.example-card:hover .shot img {
  transform: scale(1.08) translateY(-5%);
}

.card-cloud,
.card-arch,
.card-bot,
.card-university {
  transform: translateY(0);
}

.example-stage:hover .example-card {
  opacity: 0.5;
}

.example-stage .example-card:hover {
  z-index: 3;
  opacity: 1;
  transform: translateY(-46px) scale(1.04);
}

.is-featured .shot {
  border-color: var(--teal);
}

/* Command surface */
.command-surface-section {
  padding: 118px 0 132px;
  border-top: 1px solid var(--rule);
}

body.dark .command-surface-section {
  border-top-color: var(--rule-dark);
}

.command-surface-section .capability-console {
  margin-top: 0;
}

.command-surface-section > .section-shell > .section-eyebrow {
  justify-content: flex-start;
  margin-bottom: clamp(34px, 5vw, 62px);
}

.command-surface-section .console-head h3 {
  margin-top: 0;
}

/* CTA */
.cta {
  padding: 150px 0 110px;
  border-top: 1px solid var(--rule);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(420px, 1fr);
  gap: clamp(44px, 7vw, 112px);
  align-items: start;
}

body.dark .cta {
  border-top-color: var(--rule-dark);
}

.cta-head {
  padding-top: 4px;
}

.cta-head .section-eyebrow {
  margin-bottom: 0;
}

.cta-head h2 {
  margin-top: 30px;
  max-width: 7ch;
  font-size: clamp(58px, 8vw, 118px);
}

.cta-head > p:not(.section-eyebrow) {
  margin-top: 32px;
}

.calendly-panel {
  min-width: 0;
  width: min(100%, 560px);
  justify-self: end;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

body.dark .calendly-panel {
  border-color: var(--rule-dark);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.calendly-inline-widget {
  width: 100%;
  min-width: 0 !important;
  height: clamp(340px, 42svh, 390px);
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 34px 0;
}

body.dark .site-footer {
  border-top-color: var(--rule-dark);
}

.footer-shell {
  width: min(100% - 96px, 1360px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto auto;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

body.dark .footer-shell {
  color: var(--muted-dark);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  width: clamp(132px, 14vw, 178px);
  text-decoration: none;
}

.footer-logo {
  width: 100%;
  height: auto;
}

.footer-logo-dark {
  display: none;
}

body.dark .footer-logo-light {
  display: none;
}

body.dark .footer-logo-dark {
  display: block;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.footer-links a,
.footer-links span {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--teal);
}

/* Legal page */
.legal-main {
  padding-top: 118px;
}

.legal-hero {
  padding: 98px 0 72px;
  border-bottom: 1px solid var(--rule);
}

body.dark .legal-hero {
  border-bottom-color: var(--rule-dark);
}

.legal-hero-inner {
  display: grid;
  gap: 24px;
}

.legal-hero h1 {
  margin: 0;
  max-width: 10ch;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(58px, 7.4vw, 112px);
  line-height: 0.98;
  letter-spacing: 0;
}

.legal-hero p:not(.section-eyebrow) {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
}

body.dark .legal-hero p:not(.section-eyebrow) {
  color: var(--muted-dark);
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 10px !important;
  line-height: 1.4 !important;
  text-transform: uppercase;
  color: var(--teal) !important;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
  gap: clamp(42px, 6vw, 92px);
  padding-top: 72px;
  padding-bottom: 112px;
}

.legal-nav {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 14px;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.legal-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.22s ease;
}

body.dark .legal-nav a {
  color: var(--muted-dark);
}

.legal-nav a:hover {
  color: var(--teal);
}

.legal-content {
  display: grid;
  gap: 42px;
}

.legal-panel {
  scroll-margin-top: 110px;
  border-top: 1px solid var(--rule-strong);
  padding-top: 34px;
}

body.dark .legal-panel {
  border-top-color: var(--rule-dark);
}

.legal-panel h2,
.legal-panel h3,
.legal-panel p,
.legal-panel ul {
  max-width: 760px;
}

.legal-panel h2 {
  margin: 24px 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(38px, 4.6vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.legal-panel h3 {
  margin: 34px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.15;
}

.legal-panel p,
.legal-panel li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

body.dark .legal-panel p,
body.dark .legal-panel li {
  color: var(--muted-dark);
}

.legal-panel p {
  margin: 18px 0 0;
}

.legal-panel ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.legal-panel a {
  color: var(--teal);
  text-decoration: none;
}

.legal-panel a:hover {
  text-decoration: underline;
}

/* Reveal choreography is handled by specific elements, not whole sections,
   so quick scroll jumps never leave an entire section unreadable. */
[data-reveal] {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1080px) {
  .top {
    grid-template-columns: 1fr auto;
  }

  .hero-inline {
    flex-direction: column;
    align-items: flex-start;
    width: min(700px, 86vw);
  }

  .marquee-col {
    width: 100%;
  }

  .section-shell,
  .platform-shell,
  .examples-shell,
  .footer-shell {
    width: min(100% - 48px, 900px);
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
    grid-template-columns: repeat(4, auto);
    justify-content: start;
    gap: 14px 20px;
  }

  .split-head,
  .platform-layout,
  .examples-shell,
  .cta-head,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .service-grid::before {
    display: none;
  }

  .service-card,
  .service-card:first-child {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  body.dark .service-card,
  body.dark .service-card:first-child {
    border-top-color: var(--rule-dark);
  }

  .service-card h3 {
    margin-top: 36px;
  }

  .service-card ul {
    margin-top: 38px;
  }

  .console-head {
    text-align: left;
  }

  .console-head .section-eyebrow {
    justify-content: flex-start;
  }

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

  .console-categories {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 0;
    gap: 0;
  }

  body.dark .console-categories {
    border-bottom-color: var(--rule-dark);
  }

  .console-category {
    min-height: 106px;
    border-left: 0;
    border-top: 5px solid transparent;
    border-right: 1px solid var(--rule);
    padding: 20px 24px;
  }

  .console-category:last-child {
    border-right: 0;
  }

  body.dark .console-category {
    border-right-color: var(--rule-dark);
  }

  .console-category:hover,
  .console-category.is-active {
    border-top-color: var(--teal);
    border-left-color: transparent;
  }

  .console-category span:last-child {
    max-width: none;
  }

  .design-preview-grid {
    grid-template-columns: 1fr;
  }

  .graph-wrap {
    min-height: 560px;
  }

  .graph-img {
    width: min(1100px, 128vw);
    left: auto;
    right: -22vw;
  }

  .case-detail-inner {
    grid-template-columns: 1fr;
  }

  .case-number {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 28px 0 0;
  }

  body.dark .case-number {
    border-top-color: var(--rule-dark);
  }

  .example-stage {
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .example-card,
  .card-cloud,
  .card-arch,
  .card-bot,
  .card-university {
    position: static;
    width: auto;
    transform: none;
  }
}

@media (max-width: 720px) {
  .top {
    position: fixed;
    padding: 18px 22px;
    transition: transform 0.32s var(--ease-out);
  }

  .top.is-hidden {
    transform: translateY(-110%);
    pointer-events: none;
  }


  .hero {
    padding: 92px 24px 76px;
    justify-content: flex-start;
  }

  .hero-inline {
    margin-top: 18vh;
    width: 100%;
    gap: 10px;
  }

  .headline {
    font-size: clamp(22px, 6.4vw, 30px);
    white-space: nowrap;
  }

  .marquee {
    height: 8em;
    font-size: clamp(25px, 8vw, 32px);
  }

  .hero-foot {
    left: 22px;
    right: 22px;
  }

  .word-progress {
    left: 22px;
  }

  .positioning,
  .services,
  .platform,
  .cases,
  .examples,
  .command-surface-section,
  .cta {
    padding-top: 78px;
    padding-bottom: 74px;
  }

  .section-shell,
  .platform-shell,
  .examples-shell,
  .footer-shell {
    width: min(100% - 36px, 620px);
  }

  .legal-main {
    padding-top: 78px;
  }

  .legal-hero {
    padding: 76px 0 56px;
  }

  .legal-layout {
    padding-top: 46px;
    padding-bottom: 78px;
    gap: 36px;
  }

  .legal-nav {
    grid-template-columns: 1fr 1fr;
  }

  .legal-panel {
    scroll-margin-top: 30px;
    padding-top: 28px;
  }

  .legal-panel h2 {
    font-size: clamp(36px, 11vw, 54px);
  }

  .legal-panel p,
  .legal-panel li {
    font-size: 15px;
  }

  .positioning-statement,
  .split-head h2,
  .examples-copy h2,
  .cta-head h2 {
    text-align: left;
    max-width: none;
  }

  .positioning-shell {
    gap: 40px;
  }

  .positioning-statement {
    font-size: clamp(36px, 10.8vw, 54px);
    line-height: 1.08;
  }

  .split-head {
    gap: 22px;
  }

  .split-head h2,
  .examples-copy h2,
  .cta-head h2 {
    font-size: clamp(46px, 14vw, 62px);
    line-height: 1;
  }

  .services .split-head h2 {
    font-size: clamp(24px, 7.2vw, 32px);
    white-space: nowrap;
  }

  .numbers-bar {
    grid-template-columns: 1fr;
  }

  .numbers-label {
    padding: 28px 0 22px;
  }

  .stat {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 28px 0 28px;
    min-height: auto;
  }

  body.dark .stat {
    border-top-color: var(--rule-dark);
  }

  .service-card {
    padding: 28px 0 34px;
    transition: none;
  }

  .service-card:hover {
    transform: none;
  }

  .service-card h3 {
    font-size: clamp(34px, 10.4vw, 46px);
    margin-top: 28px;
    max-width: none;
  }

  .service-card p {
    margin-top: 22px;
    max-width: 31ch;
    font-size: 15px;
  }

  .service-card ul {
    margin-top: 28px;
    padding-top: 26px;
  }

  .capability-console {
    margin-top: 86px;
  }

  .console-head h3 {
    font-size: clamp(44px, 13.4vw, 62px);
    line-height: 1;
  }

  .console-frame {
    margin-top: 42px;
    border-radius: 6px;
  }

  .console-search {
    display: none;
  }

  .console-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  /* Category tabs — horizontal row */
  .console-categories {
    display: flex;
    border-bottom: 1px solid var(--rule);
    padding: 0;
    gap: 0;
    overflow: visible;
  }

  body.dark .console-categories {
    border-bottom-color: var(--rule-dark);
  }

  .console-category {
    flex: 1;
    min-height: 62px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-right: 1px solid var(--rule);
    padding: 12px 8px;
    gap: 4px;
    text-align: center;
    justify-content: center;
    align-content: center;
  }

  .console-category:last-child {
    border-right: 0;
  }

  body.dark .console-category {
    border-right-color: var(--rule-dark);
  }

  .console-category.is-active {
    border-bottom-color: var(--teal);
    background: rgba(13, 122, 112, 0.04);
  }

  body.dark .console-category.is-active {
    background: rgba(13, 122, 112, 0.08);
  }

  .console-category span:first-child {
    display: none;
  }

  .console-category span:last-child {
    font-size: 13px;
    line-height: 1.2;
    max-width: none;
    text-align: center;
  }

  /* Hide desktop palette and detail, use mobile layout */
  .console-palette {
    border: 0;
    padding: 0;
  }

  .console-panel-label {
    display: none;
  }

  .console-detail {
    position: static;
    display: none;
    transform: none;
    pointer-events: auto;
    opacity: 1;
    padding: 0;
    overflow: visible;
  }

  .mobile-detail-back {
    display: none;
  }

  /* Subcategory tabs — horizontal scroll */
  .mobile-sub-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 14px 0;
    margin: 0 18px;
    border-bottom: 1px solid var(--rule);
    scrollbar-width: none;
  }

  .mobile-sub-tabs::-webkit-scrollbar {
    display: none;
  }

  body.dark .mobile-sub-tabs {
    border-bottom-color: var(--rule-dark);
  }

  .mobile-sub-tab {
    appearance: none;
    border: 1px solid var(--rule-strong);
    border-radius: 4px;
    background: transparent;
    color: inherit;
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    cursor: pointer;
    scroll-snap-align: start;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  body.dark .mobile-sub-tab {
    border-color: var(--rule-dark);
  }

  .mobile-sub-tab.is-active {
    background: rgba(13, 122, 112, 0.08);
    border-color: var(--teal);
    color: var(--teal);
    font-weight: 500;
  }

  /* Mobile content area */
  .mobile-content-area {
    padding: 0;
    max-height: min(480px, 60vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  /* Preview image scroll */
  .mobile-preview-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 18px;
    scrollbar-width: none;
  }

  .mobile-preview-scroll::-webkit-scrollbar {
    display: none;
  }

  .mobile-preview-card {
    flex: 0 0 82vw;
    max-width: 340px;
    max-height: 240px;
    appearance: none;
    border: 1px solid var(--rule-strong);
    border-radius: 6px;
    background: var(--paper);
    color: inherit;
    padding: 0;
    overflow: hidden;
    scroll-snap-align: start;
    cursor: pointer;
    transition: border-color 0.25s ease;
  }

  body.dark .mobile-preview-card {
    border-color: var(--rule-dark);
    background: rgba(255, 255, 255, 0.035);
  }

  .mobile-preview-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: contain;
  }


  /* Text content — tag cloud */
  .mobile-content-text {
    padding: 18px;
  }

  .mobile-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .mobile-tag {
    display: inline-block;
    padding: 8px 14px;
    font-size: 12px;
    font-family: var(--font-body);
    line-height: 1;
    border: 1px solid var(--rule-strong);
    border-radius: 4px;
    color: var(--muted);
    white-space: nowrap;
  }

  body.dark .mobile-tag {
    border-color: var(--rule-dark);
    color: var(--muted-dark);
  }

  /* Keep design-preview styles simple for mobile */
  .design-preview-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .design-preview,
  .design-preview:first-child {
    grid-row: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .viewer-panel {
    width: min(100%, calc(100vw - 28px));
    padding: 12px;
    border-radius: 10px;
  }

  .viewer-close {
    top: 10px;
    right: 10px;
    background: rgba(28, 25, 21, 0.58);
    color: var(--cream-text);
  }

  .viewer-frame img {
    max-height: 74vh;
    border-radius: 7px;
  }

  .platform-layout {
    display: flex;
    flex-direction: column;
    gap: 34px;
  }

  .platform-shell {
    min-height: auto;
    align-items: flex-start;
  }

  .platform-copy {
    padding-left: 0;
    max-width: 330px;
  }

  .platform-copy h2 {
    font-size: clamp(46px, 13.6vw, 62px);
    line-height: 1;
  }

  .short-rule {
    margin: 30px 0 22px;
  }

  .platform-copy p {
    font-size: 16px;
    max-width: 27ch;
  }

  .graph-wrap {
    width: calc(100% + 36px);
    min-height: clamp(300px, 82vw, 390px);
    margin: 0 -18px;
    overflow: hidden;
  }

  .graph-light,
  .graph-dark {
    display: none !important;
  }

  .graph-light-mobile {
    display: block;
  }

  body.dark .graph-light-mobile {
    display: none;
  }

  body.dark .graph-dark-mobile {
    display: block;
    filter: drop-shadow(0 26px 58px rgba(0, 0, 0, 0.24));
  }

  .graph-img {
    width: min(640px, 154vw);
    left: 50%;
    right: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 76%, rgba(0,0,0,0.78) 88%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, #000 76%, rgba(0,0,0,0.78) 88%, transparent 100%);
  }

  .pulse-a { top: 51%; left: 51%; }
  .pulse-b { top: 36%; left: 72%; }
  .pulse-c { top: 65%; left: 73%; }

  .case-list {
    margin-top: 44px;
  }

  .case-summary {
    grid-template-columns: 42px 1fr 28px;
    padding: 20px 18px 20px 24px;
    gap: 14px;
  }

  .case-summary em {
    display: none;
  }

  .case-detail-inner {
    padding: 0 24px;
    gap: 24px;
  }

  .case.is-open .case-detail-inner {
    padding-bottom: 28px;
  }

  .case-copy h3 {
    max-width: none;
    font-size: clamp(30px, 9.2vw, 42px);
  }

  .case-number strong {
    font-size: clamp(42px, 13vw, 60px);
  }

  .examples-shell {
    min-height: auto;
    gap: 40px;
  }

  .example-stage {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .example-stage:hover .example-card {
    opacity: 1;
  }

  .example-stage .example-card:hover {
    transform: none;
  }

  .shot {
    aspect-ratio: 1.12;
  }

  .example-card p {
    margin-bottom: 6px;
  }

  .contact-layout {
    gap: 44px;
  }

  .cta-head h2 {
    max-width: none;
  }

  .calendly-panel {
    width: 100%;
    justify-self: stretch;
  }

  .calendly-inline-widget {
    height: 380px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 14px 20px;
  }
}

@media (max-width: 430px) {
  .section-shell,
  .platform-shell,
  .examples-shell,
  .footer-shell {
    width: min(100% - 28px, 620px);
  }

  .hero-foot {
    bottom: 22px;
  }

  .word-progress {
    bottom: 46px;
  }

  .stat strong {
    font-size: clamp(56px, 18vw, 74px);
  }

  .service-card h3 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .case-summary {
    grid-template-columns: 34px 1fr 26px;
    padding-inline: 16px;
  }

  .case-summary strong {
    font-size: 20px;
  }

  .graph-img {
    width: min(610px, 166vw);
    transform: translate(-50%, -50%);
  }
}

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

  .stack {
    will-change: auto;
  }
}
