/* Cayu /newwebsite — Cayu design system, schematic-grade graphics */

:root {
  --bg-page: #ffffff;
  --bg-card: #f0efed;
  --text-headline: #0d0d0d;
  --text-body: #444444;
  --text-secondary: #666666;
  --text-muted: #999999;
  --border: #e8e8e6;
  --border-strong: #d8d8d4;
  --cta-bg: #0d0d0d;
  --cta-text: #ffffff;
  --surface: #ffffff;
  --ink: #0d0d0d;
  --warn: #9a6b16;
  --warn-soft: #f2ebe0;
  --radius: 0;
  --radius-card: 0;
  --radius-pill: 9999px;
  --max: 1280px;
  --shadow-card: none;
  --shadow-product: 0 20px 60px rgba(13, 13, 13, 0.08);
  --font-display: "Suisse Intl", "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Suisse Intl", "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  --text-display: clamp(3.1rem, 7.5vw, 5rem);
  --text-display-line-height: 1.05;
  --text-display-letter-spacing: -0.04em;
  --text-display-weight: 600;
  --text-heading: clamp(1.75rem, 3.5vw, 2.5rem);
  --text-heading-line-height: 1;
  --text-heading-letter-spacing: -0.04em;
  --text-heading-weight: 600;
  --text-lead: 1.05rem;
  --text-lead-line-height: 1.15;
  --text-lead-letter-spacing: -0.03em;
  --text-lead-weight: 600;
}

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

html {
  scroll-behavior: smooth;
}

html.intro-active {
  overflow: hidden;
}

html.intro-active body {
  overflow: hidden;
}

body {
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------ intro splash ------------------------------ */

.site-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d0d;
  color: #f5f4f0;
  pointer-events: auto;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.85s ease 0.12s, transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.site-intro.is-exit {
  opacity: 0;
  transform: scale(1.035);
  pointer-events: none;
}

.site-intro.is-done {
  display: none;
}

.site-intro-inner {
  text-align: center;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-intro.is-ready .site-intro-inner {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.site-intro-brand {
  font-family: var(--font-mono);
  font-size: 0.99rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.45);
  text-align: center;
}

.site-intro.is-exit .site-intro-inner {
  opacity: 0;
  transform: translateY(-18px) scale(0.96);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .site-intro,
  .site-intro-inner {
    transition: none;
  }
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--text-headline);
  font-weight: var(--text-heading-weight);
  letter-spacing: var(--text-heading-letter-spacing);
}

/* ------------------------------ header ------------------------------ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: transparent;
  transform: translateY(0);
  opacity: 1;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.3s ease,
    opacity 0.3s ease;
}

.site-header.is-light,
.site-header.is-scrolled {
  border-bottom-color: transparent;
  background: color-mix(in oklab, var(--bg-page) 92%, transparent);
  backdrop-filter: blur(14px);
}

.site-header.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.site-header.is-nav-open {
  background: #ffffff;
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.header-inner {
  width: min(calc(100% - 3rem), var(--max));
  min-height: 4.2rem;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  justify-self: start;
}

.wordmark img {
  display: block;
  width: auto;
  height: 2.05rem;
}

.nav {
  display: none;
  gap: 1.7rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a {
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--text-headline);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-shrink: 0;
  justify-self: end;
}

.header-link,
.login-link {
  color: var(--text-headline);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: opacity 0.15s ease, text-decoration-color 0.15s ease;
}

.header-link:hover,
.login-link:hover {
  color: var(--text-headline);
  opacity: 1;
  text-decoration: underline;
  text-decoration-color: rgba(13, 13, 13, 0.85);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.header-actions .button {
  margin-left: 0.15rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cta-bg);
  color: var(--cta-text);
  border-radius: var(--radius-pill);
  padding: 0.72rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: opacity 0.15s ease;
}

.button:hover {
  opacity: 0.86;
}

.button-small {
  padding: 0.5rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.nav-mobile-only {
  display: none;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  justify-self: end;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.button-light {
  background: #ffffff;
  color: var(--ink);
}

.text-link {
  color: var(--text-headline);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: -0.01em;
}

.text-link span {
  font-size: 0.8rem;
  transition: transform 0.15s ease;
}

.text-link:hover span {
  transform: translate(1px, -1px);
}

/* ------------------------- shared section bits ------------------------ */

.section {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
  padding: 5.5rem 0;
}

.section-shell {
  width: 100%;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.section-heading {
  max-width: 620px;
  margin-bottom: 3rem;
}

.section-heading.centered {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading.centered p {
  margin-left: auto;
  margin-right: auto;
}

.section-heading h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-heading p {
  color: var(--text-secondary);
  max-width: 520px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

.hero-stage {
  position: relative;
  min-height: 86svh;
  background: #ffffff;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
  padding: 6rem 0 5rem;
}

.hero-content-simple {
  max-width: none;
  text-align: left;
}

.hero-content h1 {
  color: var(--text-headline);
  font-size: var(--text-display);
  font-weight: var(--text-display-weight);
  line-height: var(--text-display-line-height);
  letter-spacing: var(--text-display-letter-spacing);
  margin-bottom: 1.75rem;
  max-width: min(24ch, 78%);
}

.hero-lede {
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: var(--text-lead-letter-spacing);
  max-width: none;
  margin: 0;
  padding-top: 0;
}

.hero-lede strong {
  color: var(--text-headline);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.text-link.on-dark {
  color: var(--text-headline);
}

/* ---------------------------- platform ------------------------------- */

.platform-section {
  padding-top: 6.5rem;
  padding-bottom: 6rem;
}

.identity {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-strong);
}

.identity h2 {
  font-size: var(--text-heading);
  line-height: var(--text-heading-line-height);
  letter-spacing: var(--text-heading-letter-spacing);
  font-weight: var(--text-heading-weight);
  margin-bottom: 0.85rem;
}

.identity p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  max-width: 34rem;
  margin: 0 auto;
  line-height: 1.5;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 0;
}

.cap-grid article {
  padding: 0.35rem 0.2rem 0.2rem;
  border-top: none;
}

.cap-grid h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  letter-spacing: -0.015em;
}

.cap-grid p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.surface-head {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.surface-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  line-height: 1.12;
  color: var(--text-headline);
}

.surface-section {
  padding-top: 6.5rem;
  padding-bottom: 5rem;
}

.platform-section {
  padding-bottom: 3.5rem;
}

/* ----------------------------- agent loop ------------------------------ */

.loop-section {
  background: #111110;
  color: rgba(245, 244, 240, 0.72);
  padding: 6.5rem 0;
  margin: 0;
}

.loop-inner {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
}

.loop-head {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.loop-head h2 {
  color: #f5f4f0;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  line-height: 1.12;
  margin-bottom: 0.7rem;
}

.loop-head p {
  color: rgba(245, 244, 240, 0.62);
  font-size: 0.98rem;
  line-height: 1.5;
}

.loop-diagram {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.loop-diagram::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22px;
  bottom: 52px;
  width: 1px;
  background: rgba(245, 244, 240, 0.18);
  transform: translateX(-50%);
}

.loop-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px minmax(0, 1fr);
  gap: 1.4rem;
  align-items: center;
  margin-bottom: 1.15rem;
}

.loop-node {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: #111110;
  border: 1px solid rgba(245, 244, 240, 0.18);
  border-radius: 0;
  padding: 0.9rem 1rem;
}

.loop-node b {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #f5f4f0;
}

.loop-note small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.45);
  margin-bottom: 0.4rem;
}

.loop-note p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(245, 244, 240, 0.62);
}

.loop-row:nth-child(odd) .loop-note {
  text-align: right;
}

.loop-close {
  position: relative;
  z-index: 1;
  margin-top: 1.35rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: rgba(245, 244, 240, 0.5);
}

.br-mobile {
  display: none;
}

/* ----------------------------- use cases ------------------------------ */

.work-section {
  padding-top: 6.5rem;
  padding-bottom: 5rem;
}

.work-head {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.work-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  line-height: 1.12;
  margin-bottom: 0.7rem;
}

.work-head p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.5;
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1.25rem;
  row-gap: 1.25rem;
}

.use-card {
  display: flex;
  flex-direction: column;
  background: #111110;
  color: rgba(245, 244, 240, 0.7);
  border-radius: 0;
  padding: 1.85rem 1rem 1.75rem;
}

.use-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.42);
  margin-bottom: 0.35rem;
}

.use-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
  line-height: 1.25;
  color: #f5f4f0;
}

.use-desc {
  color: rgba(245, 244, 240, 0.58);
  font-size: 0.84rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.use-rail {
  background: rgba(245, 244, 240, 0.06);
  border-radius: 0;
  padding: 0.15rem 0.85rem;
  display: flex;
  flex-direction: column;
}

.use-event {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(245, 244, 240, 0.1);
}

.use-event:last-of-type {
  border-bottom: none;
}

.use-event small {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.42);
  padding-top: 0.18rem;
}

.use-event.live small {
  color: #f5f4f0;
}

.use-event b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: #f5f4f0;
  line-height: 1.3;
}

.use-event span {
  display: block;
  font-size: 0.76rem;
  color: rgba(245, 244, 240, 0.55);
  margin-top: 0.12rem;
  line-height: 1.35;
}

.use-status {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.42);
  padding: 0.55rem 0 0.45rem;
  border-top: 1px solid rgba(245, 244, 240, 0.1);
}

/* --------------------------- industrial tax --------------------------- */

.tax-section {
  min-height: 92svh;
  padding-top: 7rem;
  padding-bottom: 7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.tax-head {
  max-width: 560px;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.tax-head h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.15;
  margin-bottom: 0.7rem;
}

.tax-head p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.5;
}

.tax-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.tax-card {
  background: #ececec;
  color: var(--text-secondary);
  border-radius: 0;
  padding: 2rem 1.1rem 2rem;
  display: flex;
  flex-direction: column;
}

.tax-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.tax-card h3 {
  color: var(--text-headline);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.45rem;
}

.tax-card > p {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.tax-contrast {
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: var(--text-muted);
  border-top: 1px solid var(--border-strong);
}

/* ------------------------------ impact -------------------------------- */

.impact-section {
  padding-top: 6.5rem;
  padding-bottom: 0;
}

.impact-card {
  background: #111110;
  border-radius: 0;
  padding: clamp(2rem, 4vw, 2.8rem) clamp(1.4rem, 3vw, 2.2rem);
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.impact-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.42);
  margin-bottom: 0.85rem;
}

.impact-card h2 {
  color: #f5f4f0;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.impact-card .button {
  background: #f5f4f0;
  color: #111110;
}

.impact-card .button:hover {
  background: #ffffff;
  color: #111110;
}

/* ------------------------------ problem ------------------------------- */
/* centered copy with floating legacy-artifact cards on both sides */

.problem-section {
  padding-top: 2.75rem;
}

.problem-stage {
  position: relative;
  padding: 5.5rem 0 5rem;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem-orbits {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.problem-orbits path {
  fill: none;
  stroke: var(--border);
  stroke-width: 1px;
}

.problem-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

/* long-sentence lead-in: body font at readable size, unlike mono eyebrows */
.problem-eyebrow {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.problem-copy h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.3rem);
  line-height: 1.2;
  margin-bottom: 1.1rem;
}

.problem-copy p {
  color: var(--text-secondary);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.artifact {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: var(--surface);
  padding: 0.6rem 0.95rem 0.6rem 0.7rem;
  box-shadow: var(--shadow-card);
  rotate: var(--r, 0deg);
  animation: art-float 7s ease-in-out infinite alternate;
}

.artifact b {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-headline);
  line-height: 1.3;
  white-space: nowrap;
}

.artifact small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin-top: 0.1rem;
  white-space: nowrap;
}

.art-icon {
  width: 30px;
  height: 30px;
  border-radius: 0;
  background: var(--bg-card);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.art-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art-1 { left: 2%; top: 6%; }
.art-2 { left: 0; top: 44%; animation-delay: -2.4s; }
.art-3 { left: 5%; bottom: 8%; animation-delay: -4.8s; }
.art-4 { right: 1%; top: 8%; animation-delay: -1.2s; }
.art-5 { right: 0; top: 48%; animation-delay: -3.6s; }
.art-6 { right: 5%; bottom: 10%; animation-delay: -6s; }

/* long chatbot quote wraps inside a compact card */
.art-5 {
  max-width: 250px;
}

.art-5 small {
  white-space: normal;
  line-height: 1.5;
}

@keyframes art-float {
  from { transform: translateY(-5px); }
  to { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .artifact {
    animation: none;
  }
}

/* ---------------------------- credibility ------------------------------ */
/* dark band with an infinite wordmark carousel */

.cred-section {
  background: #0a0a09;
  padding: 2.8rem 0 3.1rem;
  overflow: hidden;
}

.cred-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.45);
  margin-bottom: 1.9rem;
}

.cred-marquee {
  position: relative;
  overflow: hidden;
  /* soft edges so marks appear and disappear gracefully */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.cred-track {
  display: flex;
  width: max-content;
  animation: cred-scroll 32s linear infinite;
}

.cred-group {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  padding-right: 4.5rem;
}

@keyframes cred-scroll {
  to {
    transform: translateX(-50%);
  }
}

.cred-mark {
  white-space: nowrap;
  color: rgba(245, 244, 240, 0.62);
  font-size: 1.2rem;
  line-height: 1;
}

/* any-color source art forced to a single light gray on the dark band */
.cred-logo {
  display: block;
  height: var(--h, 24px);
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.62;
}

/* Keep full crest detail (brightness(0) flattens multi-tone shields) */
.cred-logo-harvard {
  filter: none;
  opacity: 0.92;
}

.m-imo {
  display: block;
  max-width: 7.2rem;
  white-space: normal;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

@media (prefers-reduced-motion: reduce) {
  .cred-track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
  }

  .cred-track .cred-group:last-child {
    display: none;
  }

  .cred-group {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.6rem 2.5rem;
    padding: 0 1.5rem;
  }
}

/* ----------------------------- engine note ----------------------------- */
/* compact note on the harness runtime behind the factory */

.engine-note {
  max-width: 680px;
  margin: 5rem auto 0;
  padding-top: 3.4rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.engine-note h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 1.9rem);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-headline);
  margin-bottom: 0.9rem;
}

.engine-note p:not(.section-index) {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.engine-links {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  margin-top: 1.2rem;
}

/* ------------------------------ playbook ------------------------------- */
/* one simple box: diagnostic -> pilot -> roi capture -> scale */

.playbook {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 980px;
  margin: 0 auto 3.4rem;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.playbook li {
  position: relative;
  padding: 1.25rem 1.4rem 1.3rem;
  border-right: 1px solid var(--border);
}

.playbook li:last-child {
  border-right: none;
}

/* chevron riding the divider between stages */
.playbook li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--text-muted);
  border-right: 1px solid var(--text-muted);
  transform: translateY(-50%) rotate(45deg);
  background: var(--surface);
  z-index: 1;
}

.playbook small {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.playbook b {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-headline);
  margin-top: 0.5rem;
}

.playbook li > span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.factory-lede {
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --------------------------- product frame ---------------------------- */

.embed-section {
  padding-top: 6rem;
}

.product-frame {
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: var(--surface);
  box-shadow: var(--shadow-product);
  overflow: hidden;
}

.product-chrome {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 72%, var(--bg-page));
}

.chrome-dots {
  display: inline-flex;
  gap: 5px;
  flex: 1 0 0;
}

.chrome-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.chrome-url {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.18rem 0.9rem;
  background: var(--surface);
}

.chrome-spacer {
  flex: 1 0 0;
}

/* dashboard (ops shell) */
.dash {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  font-size: 13px;
  line-height: 1.5;
  color: oklch(35% 0 0);
  background: var(--surface);
}

.dash-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.9rem 0.7rem;
  background: oklch(98.5% 0 0);
  border-right: 1px solid var(--border);
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.15rem 0.45rem 0.8rem;
}

.dash-brand img {
  display: block;
}

.dash-brand b {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-headline);
}

.dash-group {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(60% 0 0);
  padding: 0.7rem 0.45rem 0.25rem;
}

.dash-side a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.32rem 0.45rem;
  border-radius: 0;
  font-size: 12.5px;
  color: oklch(40% 0 0);
  cursor: default;
}

.dash-side a.active {
  background: oklch(94.5% 0 0);
  color: var(--text-headline);
  font-weight: 500;
}

.dash-side a em {
  font-style: normal;
  font-size: 10.5px;
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: var(--radius-pill);
  padding: 0 6px;
  line-height: 16px;
}

.dash-foot {
  margin-top: auto;
  padding: 0.8rem 0.45rem 0;
  font-size: 10.5px;
  color: oklch(60% 0 0);
  border-top: 1px solid var(--border);
}

.dash-main {
  padding: 1.1rem 1.3rem 1.3rem;
  min-width: 0;
}

.dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.dash-head h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-headline);
  letter-spacing: 0;
}

.dash-head p {
  font-size: 12px;
  color: oklch(55.6% 0 0);
}

.dash-env {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: oklch(40% 0 0);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.7rem;
}

.dash-env i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3d8250;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 0.9rem;
}

.dash-stats div {
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.5rem 0.7rem;
}

.dash-stats small {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: oklch(60% 0 0);
}

.dash-stats b {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-headline);
  font-variant-numeric: tabular-nums;
}

.dash-table {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  margin-bottom: 0.9rem;
  font-size: 12.5px;
}

.dash-table th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: oklch(60% 0 0);
  background: oklch(98.5% 0 0);
  padding: 0.42rem 0.8rem;
  border-bottom: 1px solid var(--border);
}

.dash-table td {
  padding: 0.45rem 0.8rem;
  border-bottom: 1px solid var(--border);
  color: oklch(35% 0 0);
  white-space: nowrap;
}

.dash-table td:nth-child(2) {
  white-space: normal;
}

.dash-table tbody tr:last-child td {
  border-bottom: none;
}

.dash-table tr.is-selected td {
  background: oklch(97.5% 0 0);
}

.dash-table .mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: oklch(45% 0 0);
}

.dash-table .muted {
  color: oklch(60% 0 0);
  font-size: 11.5px;
}

.chip {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  padding: 0.1rem 0.55rem;
  white-space: nowrap;
}

.chip-ok {
  background: #eef1ec;
  color: #3d6647;
}

.chip-wait {
  background: var(--warn-soft);
  color: var(--warn);
}

/* event timeline: fixed height, dense */
.dash-timeline {
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
}

.tl-head,
.tl-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.42rem 0.8rem;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: oklch(45% 0 0);
}

.tl-head {
  border-bottom: 1px solid var(--border);
  background: oklch(98.5% 0 0);
}

.tl-foot {
  border-top: 1px solid var(--border);
  letter-spacing: 0.02em;
}

.tl-head .muted,
.tl-foot .muted {
  color: oklch(62% 0 0);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.tl-action {
  color: var(--text-headline);
  font-weight: 600;
  font-size: 11px;
}

.tl-lanes {
  padding: 0.55rem 0;
}

.tl-lane {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  height: 26px;
}

.tl-lane > span {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.09em;
  color: oklch(62% 0 0);
  text-align: right;
  padding-right: 12px;
}

.tl-track {
  position: relative;
  height: 100%;
  border-left: 1px solid var(--border);
}

.tl-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 12px;
  top: 50%;
  border-top: 1px solid oklch(94% 0 0);
}

.tl-track i {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: oklch(45% 0 0);
}

.tl-track i.pending {
  background: var(--surface);
  border: 1.5px solid var(--warn);
  width: 9px;
  height: 9px;
}

/* looped run animation: playhead sweeps, events light up in order */
@media (prefers-reduced-motion: no-preference) {
  .tl-lanes {
    --tl-label: 84px;
    position: relative;
    overflow: hidden;
  }

  /* playhead sweeping the track area (starts after the label column) */
  .tl-lanes::after {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: var(--tl-label);
    width: 1px;
    background: linear-gradient(
      to bottom,
      transparent,
      oklch(30% 0 0 / 0.28),
      transparent
    );
    animation: tl-sweep 9s linear infinite;
    pointer-events: none;
  }

  .tl-track i:not(.pending) {
    opacity: 0.22;
    transform: translate(-50%, -50%) scale(0.7);
    animation: tl-dot 9s linear infinite;
    animation-delay: var(--d, 0s);
  }

  .tl-track i.pending {
    animation: tl-pending 1.8s ease-in-out infinite;
  }

  .chip-wait {
    animation: tl-chip 1.8s ease-in-out infinite;
  }
}

@keyframes tl-sweep {
  from {
    left: var(--tl-label, 84px);
  }
  to {
    left: calc(100% - 12px);
  }
}

@keyframes tl-dot {
  0% {
    opacity: 0.22;
    transform: translate(-50%, -50%) scale(0.7);
  }
  3% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.35);
  }
  7%,
  82% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  92%,
  100% {
    opacity: 0.22;
    transform: translate(-50%, -50%) scale(0.7);
  }
}

@keyframes tl-pending {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in oklab, var(--warn) 40%, transparent);
  }
  55% {
    box-shadow: 0 0 0 5px color-mix(in oklab, var(--warn) 0%, transparent);
  }
}

@keyframes tl-chip {
  0%,
  100% {
    opacity: 1;
  }
  55% {
    opacity: 0.55;
  }
}

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

.integrations-section {
  padding-top: 6rem;
}

.integration-rotator {
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 1rem;
}

.int-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 72%, var(--bg-page));
  overflow-x: auto;
}

.int-tab {
  flex: 1;
  padding: 0.85rem 1rem;
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.int-tab:last-child {
  border-right: none;
}

.int-tab.active {
  background: var(--surface);
  color: var(--text-headline);
  box-shadow: inset 0 -2px 0 var(--ink);
}

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

.int-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 2rem 2.2rem;
}

.int-panel p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  max-width: 380px;
}

.int-marks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.int-marks li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 58px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: #55554f;
  background: color-mix(in oklab, var(--surface) 82%, var(--bg-page));
  text-align: center;
  white-space: nowrap;
}

/* brand art muted to grayscale to sit with the rest of the page */
.int-marks img {
  height: var(--lh, 24px);
  width: auto;
  max-width: 100%;
  filter: grayscale(1);
  opacity: 0.78;
}

.int-blurbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.int-blurbs article {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 1.4rem 1.4rem 1.5rem;
}

.int-blurbs h3 {
  font-size: 0.94rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.int-blurbs p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* -------------------------------- CTA --------------------------------- */

.contact-section {
  position: relative;
  background: #0a0a09;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  padding: 6.5rem 1.5rem;
  margin-top: 5.5rem;
  overflow: hidden;
}

.cta-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.55;
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
}

.contact-section h2 {
  color: #ffffff;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 400;
  line-height: 1.18;
  max-width: 640px;
  margin: 0 auto 1.1rem;
}

.contact-section p {
  max-width: 460px;
  margin: 0 auto 2.2rem;
}

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

.impact-section .site-footer {
  border-top: none;
}

.impact-section .footer-inner {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.impact-section .footer-base p {
  width: 100%;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-page);
}

.footer-inner {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
  padding: 3.5rem 0 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 3rem;
  align-items: start;
}

.footer-brand p {
  margin-top: 0.9rem;
  max-width: 22rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  max-width: 240px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-cols nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-cols nav span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.footer-cols nav a {
  font-size: 0.86rem;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.footer-cols nav a:hover {
  color: var(--text-headline);
}

.footer-base {
  border-top: 1px solid var(--border);
}

.footer-base p {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
  padding: 1.1rem 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ----------------------------- legal pages ---------------------------- */

.legal-page {
  padding: 7.25rem 0 4.5rem;
  background: var(--bg-page);
}

.legal-shell {
  width: min(calc(100% - 3rem), 42rem);
  margin: 0 auto;
}

.legal-shell .eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.legal-shell h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--text-headline);
}

.legal-updated {
  margin: 0 0 2.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.legal-shell h2 {
  margin: 2.75rem 0 0.85rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-headline);
}

.legal-shell h3 {
  margin: 1.75rem 0 0.55rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text-headline);
}

.legal-shell p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-body);
}

.legal-shell ul,
.legal-shell ol {
  margin: 0 0 1.15rem;
  padding-left: 1.35rem;
}

.legal-shell li {
  margin-bottom: 0.55rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-body);
}

.legal-shell a {
  color: var(--text-headline);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.legal-shell a:hover {
  color: var(--text-body);
}

.legal-shell strong {
  color: var(--text-headline);
  font-weight: 600;
}

.legal-page + .site-footer,
body > .site-footer {
  margin-top: 0;
}

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

@media (max-width: 1200px) {
  .tax-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero-stage {
    min-height: 82svh;
  }

  .hero-content {
    padding: 5.5rem 0 4rem;
  }

  .cap-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cap-grid article {
    border-top: none;
    border-bottom: 1px solid var(--border);
    padding: 1.15rem 0;
  }

  .cap-grid article:last-child {
    border-bottom: none;
  }

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

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

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 0.85rem;
    position: relative;
    min-height: 3.6rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions {
    display: none;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(13, 13, 13, 0.08);
    justify-self: stretch;
    z-index: 20;
  }

  .site-header.is-nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0.9rem;
    font-size: 0.95rem;
    color: var(--text-headline);
  }

  .nav-mobile-only {
    display: inline-flex;
  }

  .nav a.button {
    margin-top: 0.35rem;
    width: 100%;
    color: var(--cta-text);
  }

  .nav a.button:hover {
    color: var(--cta-text);
  }

  .wordmark img {
    height: 1.85rem;
  }

  .int-panel {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  /* playbook box wraps to two columns */
  .playbook {
    grid-template-columns: repeat(2, 1fr);
  }

  .playbook li {
    border-right: none;
  }

  .playbook li:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .playbook li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .playbook li:nth-child(2)::after {
    display: none;
  }

  /* dashboard mock: hide sidebar + optional columns */
  .dash {
    grid-template-columns: 1fr;
  }

  .dash-side {
    display: none;
  }

  .dash-table .opt,
  .dash-stats div:nth-child(n + 3) {
    display: none;
  }

  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .section {
    width: calc(100% - 2.4rem);
    padding: 3.8rem 0;
  }

  .tax-section {
    min-height: 0;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .tax-head,
  .work-head {
    position: static;
    max-width: none;
    margin-bottom: 1.75rem;
    padding: 0;
    background: none;
    backdrop-filter: none;
  }

  .tax-grid,
  .use-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: visible;
    width: 100%;
    margin-left: 0;
    padding: 0;
    scroll-snap-type: none;
  }

  .tax-card,
  .use-card {
    position: sticky;
    top: 4.15rem;
    flex: none;
    width: 100%;
    min-height: 0;
    /* Keep runway equal for every card, including the last, so each fully stacks. */
    margin-bottom: clamp(5.5rem, 26vh, 11rem);
    scroll-snap-align: none;
    box-shadow: 0 -12px 28px rgba(13, 13, 13, 0.08);
  }

  .tax-card {
    /* Short first card was leaving a taller empty band than later cards. */
    min-height: 11.5rem;
  }

  .tax-card:nth-child(1),
  .use-card:nth-child(1) {
    z-index: 1;
  }

  .tax-card:nth-child(2),
  .use-card:nth-child(2) {
    z-index: 2;
  }

  .tax-card:nth-child(3),
  .use-card:nth-child(3) {
    z-index: 3;
  }

  .tax-card:nth-child(4),
  .use-card:nth-child(4) {
    z-index: 4;
  }

  /* Do not zero the last card margin — that removed its sticky travel and blocked stacking. */

  .tax-card.reveal,
  .use-card.reveal {
    /* Transform on sticky items breaks stacking in mobile Safari. */
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tax-card.reveal.visible,
  .use-card.reveal.visible {
    opacity: 1;
    transform: none;
  }

  .hero-stage {
    min-height: 78svh;
  }

  .hero-content {
    width: calc(100% - 2.4rem);
    padding: 5rem 0 3.5rem;
  }

  .hero-content h1 {
    font-size: clamp(2.05rem, 8.6vw, 2.7rem);
    max-width: none;
    margin-bottom: 1.2rem;
    line-height: 1.08;
  }

  .hero-lede {
    padding-top: 0;
    white-space: nowrap;
    font-size: clamp(0.72rem, 3.7vw, 0.95rem);
  }

  .hero-lede strong {
    font-size: inherit;
  }

  .hero-actions {
    gap: 1.1rem;
  }

  .loop-section {
    padding: 4.5rem 0;
  }

  .loop-inner {
    width: calc(100% - 2.4rem);
  }

  .loop-head h2 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  .br-mobile {
    display: inline;
  }

  .loop-diagram::before {
    display: none;
  }

  .loop-row {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin-bottom: 1.6rem;
  }

  .loop-spacer {
    display: none;
  }

  .loop-row:nth-child(odd) .loop-note {
    text-align: left;
  }

  .loop-node {
    display: none;
  }

  .loop-note {
    border: 1px solid rgba(245, 244, 240, 0.18);
    padding: 1rem 1.1rem;
  }

  .loop-note small {
    color: rgba(245, 244, 240, 0.7);
  }

  .loop-note p {
    color: rgba(245, 244, 240, 0.72);
  }

  .loop-close {
    margin-top: 0.85rem;
    text-align: left;
    font-size: 0.7rem;
    line-height: 1.5;
  }

  .surface-section {
    padding-top: 4.5rem;
    padding-bottom: 3.5rem;
  }

  .work-section {
    padding-top: 4.5rem;
    padding-bottom: 3.5rem;
  }

  .work-head h2 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  .loop-head,
  .surface-head {
    max-width: none;
  }

  .impact-section {
    padding-top: 4rem;
  }

  .impact-card {
    padding: 1.6rem 1.2rem 1.7rem;
  }

  .impact-card h2 {
    font-size: clamp(1.35rem, 6.5vw, 1.75rem);
  }

  .impact-card .button {
    width: 100%;
  }

  .product-frame {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dash-main {
    min-width: 0;
  }

  .cred-section {
    padding: 2.2rem 0 2.4rem;
  }

  .cred-group {
    gap: 3rem;
    padding-right: 3rem;
  }

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

  .playbook li,
  .playbook li:nth-child(odd) {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .playbook li:last-child {
    border-bottom: none;
  }

  .playbook li::after {
    display: none;
  }

  .int-blurbs {
    grid-template-columns: 1fr;
  }

  .int-marks {
    grid-template-columns: repeat(2, 1fr);
  }

  .int-marks li {
    padding: 0.75rem 0.6rem;
    font-size: 0.82rem;
    white-space: normal;
  }

  .int-tab {
    font-size: 0.74rem;
    padding: 0.7rem 0.7rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
  }

  .artifact b,
  .artifact small {
    white-space: normal;
  }

  .tl-lane {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .tl-lanes {
    --tl-label: 66px;
  }
}

@media (max-width: 380px) {
  .dash-table th:first-child,
  .dash-table td:first-child {
    display: none;
  }

  .dash-table td {
    white-space: normal;
  }

  .dash-main {
    padding: 0.9rem 0.9rem 1rem;
  }
}
