/* ============================================================
   Sansara — editorial intelligence house
   Design tokens, typography, components.
   ============================================================ */

:root {
  /* Anchor palette */
  --ink: #1A1A1A;
  --parchment: #F5F1E8;
  --parchment-dark: #EBE5D5;
  --ink-muted: #5A5A55;
  --ink-70: rgba(26, 26, 26, 0.72);
  --ink-50: rgba(26, 26, 26, 0.50);
  --teal: #1F4D4A;
  --teal-pale: #D4E0DE;
  --oxide: #A0523A;             /* warm editorial accent — labels only */
  --border: rgba(26, 26, 26, 0.10);
  --border-strong: rgba(26, 26, 26, 0.20);

  /* Inverted (used inside .section.dark / footer) */
  --on-dark: #F2EBDB;
  --on-dark-muted: rgba(242, 235, 219, 0.62);
  --on-dark-border: rgba(242, 235, 219, 0.16);

  /* Type */
  --serif: "Instrument Serif", "Tiempos Text", "Source Serif 4", Georgia, serif;
  --sans:  "Instrument Sans", "Inter", "Söhne", system-ui, -apple-system, sans-serif;
  --mono:  ui-monospace, "IBM Plex Mono", SFMono-Regular, Menlo, monospace;

  /* Layout */
  --wrap-max:      1240px;
  --wrap-max-wide: 1440px;
  --measure:        62ch;
  --measure-narrow: 44ch;
  --space-section: clamp(80px, 11vw, 168px);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" on, "ss02" on, "kern" on;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; }

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--parchment);
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 13px;
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 720px)  { .wrap { padding: 0 40px; } }
@media (min-width: 1100px) { .wrap { padding: 0 64px; } }

.wrap-wide { max-width: var(--wrap-max-wide); }

.section {
  padding: var(--space-section) 0;
  position: relative;
}
.section-tight {
  padding: clamp(56px, 7vw, 96px) 0;
}

.section.dark {
  background: var(--ink);
  color: var(--on-dark);
}
.section.dark .label { color: var(--on-dark-muted); }
.section.dark .label-oxide { color: var(--oxide); }
.section.dark .h-section,
.section.dark .h-page,
.section.dark .cad-name,
.section.dark .cad-line { color: var(--on-dark); }
.section.dark .body-copy,
.section.dark .cad-desc,
.section.dark .it-body,
.section.dark .lead { color: var(--on-dark-muted); }
.section.dark .rule { background: var(--on-dark-border); }
.section.dark a:not(.btn) { color: var(--on-dark); }
.section.dark .tlink { color: var(--on-dark); border-color: var(--on-dark-border); }
.section.dark .tlink:hover { color: var(--parchment); border-color: var(--parchment); }

.rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}
hr.rule.wrap { max-width: calc(var(--wrap-max) - 48px); margin: 0 auto; }

/* ---------- Typography ---------- */

.h-hero {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 1.18;
  letter-spacing: -0.018em;
  margin: 0;
  padding-bottom: 0.08em;
  color: var(--ink);
  text-wrap: balance;
}

.h-page {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.16;
  letter-spacing: -0.014em;
  margin: 0;
  padding-bottom: 0.06em;
  color: var(--ink);
  text-wrap: balance;
}

.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.9vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

.lead {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink);
  text-wrap: pretty;
}

.body-copy {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.65;
  margin: 0;
  color: var(--ink-70);
  max-width: var(--measure);
  text-wrap: pretty;
}

.annotation {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 1.05vw, 16px);
  color: var(--oxide);
  margin: 0;
  letter-spacing: 0.005em;
}

.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.34;
  letter-spacing: -0.008em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 18px;
}
.label-oxide { color: var(--oxide); }

.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.38;
  letter-spacing: -0.008em;
  color: var(--ink);
  max-width: 36ch;
  margin: clamp(48px, 5.5vw, 80px) 0 0;
  text-wrap: balance;
}

.hero-support {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
  letter-spacing: -0.003em;
  color: var(--ink-70);
  max-width: 60ch;
  margin: clamp(40px, 4.5vw, 56px) 0 0;
  text-wrap: pretty;
}

.fragment {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.42;
  letter-spacing: -0.008em;
  color: var(--ink);
  margin: 12px 0 18px;
  min-height: 5em;
  text-wrap: balance;
  transition: opacity 600ms var(--ease);
}

.measure { max-width: var(--measure); }
.center-narrow { max-width: 56ch; margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.stack-md > * + * { margin-top: 24px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--parchment);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms var(--ease), background 220ms var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 88px;
  max-width: var(--wrap-max-wide);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 720px)  { .nav { padding: 0 40px; } }
@media (min-width: 1100px) { .nav { padding: 0 64px; height: 104px; } }

.nav-mark { display: inline-flex; align-items: center; flex: 0 0 auto; }
.nav-mark img {
  height: 34px;
  width: auto;
}
@media (min-width: 1100px) { .nav-mark img { height: 38px; } }

.nav-links {
  display: none;
  gap: 38px;
  align-items: center;
}
@media (min-width: 980px) { .nav-links { display: flex; } }

.nav-link {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color 200ms var(--ease);
}
.nav-link:hover { color: var(--teal); }
.nav-link[aria-current="page"] {
  color: var(--ink);
}
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-right .btn {
  display: none;
}
@media (min-width: 980px) { .nav-right .btn { display: inline-flex; } }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  margin-right: -10px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (min-width: 980px) { .menu-toggle { display: none; } }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--parchment);
  position: sticky;
  top: 88px;
  z-index: 55;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu .m-link {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.mobile-menu .btn { margin-top: 20px; align-self: flex-start; }
@media (min-width: 980px) { .mobile-menu { display: none !important; } }

/* ---------- Buttons / links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.005em;
  line-height: 1;
  white-space: nowrap;
  background: var(--ink);
  color: var(--parchment);
  padding: 16px 22px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
  text-decoration: none;
}
.btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--parchment);
}
.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.btn .arrow {
  display: inline-block;
  transition: transform 220ms var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--ink);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 4px;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.tlink::after {
  content: "→";
  font-weight: 400;
  display: inline-block;
  transition: transform 220ms var(--ease);
}
.tlink:hover {
  color: var(--teal);
  border-color: var(--teal);
}
.tlink:hover::after { transform: translateX(3px); }

.tlink-ivory {
  color: var(--on-dark);
  border-color: var(--on-dark-border);
}
.tlink-ivory:hover { color: var(--parchment); border-color: var(--parchment); }

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

.hero {
  padding: clamp(72px, 9vw, 144px) 0 clamp(64px, 9vw, 132px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: start;
}
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.45fr 1fr;
    gap: clamp(56px, 7vw, 112px);
  }
}

.hero-copy {
  max-width: 38ch;
}
@media (min-width: 1100px) {
  .hero-copy { max-width: none; }
}

.hero-copy .label { margin-bottom: 28px; }

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: clamp(40px, 5vw, 56px);
}
@media (min-width: 720px) { .hero-cta { margin-top: clamp(48px, 5.5vw, 64px); } }

.hero-visual { width: 100%; }

.signal-feed {
  background: var(--parchment-dark);
  border: 1px solid var(--border);
  padding: 32px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
@media (min-width: 720px) {
  .signal-feed { padding: 36px 34px 30px; }
}
.signal-feed .label { margin-bottom: 14px; }

/* ---------- Signal stream (home hero — live category feed) ---------- */

.signal-feed--live {
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 720px) {
  .signal-feed--live { padding: 30px 30px 24px; }
}

.signal-feed__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.signal-feed__count {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.signal-feed__count .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(31, 77, 74, 0.18);
  animation: pulse 2.4s var(--ease) infinite;
}
@media (max-width: 520px) {
  .signal-feed__count span:last-child { display: none; }
}

.signal-stream {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  border-top: 1px solid rgba(26, 26, 26, 0.16);
}

.signal-stream__row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 0 14px 18px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.14);
  transition: opacity 600ms var(--ease);
  opacity: 0.42;
}
.signal-stream__row.is-active { opacity: 1; }

.signal-stream__row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 64%;
  background: var(--teal);
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  transition: transform 500ms var(--ease);
}
.signal-stream__row.is-active::before {
  transform: translateY(-50%) scaleY(1);
}

.signal-stream__meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.signal-stream__src {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oxide);
}
.signal-stream__time {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-left: auto;
}
.signal-stream__txt {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
  max-height: 1.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  transition: max-height 600ms var(--ease), font-size 500ms var(--ease), -webkit-line-clamp 600ms var(--ease);
}
.signal-stream__row.is-active .signal-stream__txt {
  font-size: clamp(17px, 1.4vw, 21px);
  max-height: 10em;
  -webkit-line-clamp: 6;
  line-height: 1.38;
  text-wrap: balance;
}

@media (prefers-reduced-motion: reduce) {
  .signal-stream__row { opacity: 1; transition: none; }
  .signal-stream__row::before { transform: translateY(-50%) scaleY(1); transition: none; }
  .signal-stream__txt { -webkit-line-clamp: unset; max-height: 12em; font-size: 16px; }
}

/* Studio variant: source label is the engagement name (mixed case serif feel), */
/* still cycles the same way but framed as a "decision question in focus". */
.signal-stream--studio .signal-stream__src {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-transform: uppercase;
}
.signal-stream--studio .signal-stream__row.is-active .signal-stream__src {
  color: var(--oxide);
}
.signal-stream--studio .signal-stream__time {
  color: var(--ink-muted);
}

.signal-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.signal-live .dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
.signal-live .dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--teal);
  opacity: 0;
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.55); opacity: 0.7; }
  70%  { transform: scale(1.9);  opacity: 0;   }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .signal-live .dot::after { animation: none; }
}

/* ---------- Splits ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}
@media (min-width: 980px) {
  .split {
    grid-template-columns: 6fr 6fr;
    gap: clamp(56px, 7vw, 112px);
    align-items: start;
  }
}

.split-6 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 980px) {
  .split-6 {
    grid-template-columns: 6fr 6fr;
    gap: clamp(48px, 6vw, 80px);
    align-items: start;
  }
}

.block-head {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.split .block-head,
.split-6 .block-head { margin-bottom: 0; }
.block-head .label { margin-bottom: 22px; }

/* ---------- Generic grid ---------- */

.grid {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
}
.grid.g-12 {
  grid-template-columns: repeat(12, 1fr);
}
@media (max-width: 879px) {
  .grid.g-12 > * {
    grid-column: 1 / -1 !important;
  }
}

/* ---------- Signal grid (eight cells) ---------- */

.signal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 640px)  { .signal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px)  { .signal-grid { grid-template-columns: repeat(4, 1fr); } }

.signal-cell {
  background: var(--ink);
  color: var(--on-dark);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 184px;
  position: relative;
  transition: background 200ms var(--ease);
}
.signal-cell:hover { background: #0f0f0f; }
.signal-cell .sc-num {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oxide);
}
.signal-cell .sc-title {
  font-family: var(--serif);
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--on-dark);
  margin-top: auto;
  text-wrap: balance;
}

/* When .signal-grid sits in a light .section (not .dark), invert it */
.section:not(.dark) .signal-cell { background: var(--ink); }

/* ---------- Cadence rows ---------- */

.cadence-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: clamp(32px, 4vw, 52px) 0;
  border-top: 1px solid var(--border);
}
.cadence-row:last-of-type { border-bottom: 1px solid var(--border); }
@media (min-width: 880px) {
  .cadence-row {
    grid-template-columns: 4fr 8fr;
    gap: clamp(36px, 5vw, 72px);
    align-items: baseline;
  }
}
.section.dark .cadence-row { border-color: var(--on-dark-border); }

.cadence-meta { display: flex; flex-direction: column; gap: 10px; }
.cadence-meta .label { margin-bottom: 0; }

.cad-name {
  font-family: var(--serif);
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.008em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.cad-line {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.008em;
  color: var(--ink);
  margin: 0 0 14px;
  text-wrap: balance;
}

.cad-desc {
  font-family: var(--sans);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  color: var(--ink-70);
  margin: 0;
  max-width: 62ch;
  text-wrap: pretty;
}

/* ---------- Flow (horizontal stepper, animated) ---------- */

.flow {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px 8px;
  position: relative;
  align-items: start;
}
@media (max-width: 640px) {
  .flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
  }
}

/* Connecting line — sits behind the numerals */
.flow::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 26px;
  height: 1px;
  background: var(--border-strong);
}

/* Traveling teal pulse along the line */
.flow::after {
  content: "";
  position: absolute;
  left: 6%;
  top: 22px;
  width: 9px;
  height: 9px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(31, 77, 74, 0.16), 0 0 18px 3px rgba(31, 77, 74, 0.45);
  pointer-events: none;
  animation: flowPulse 10s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes flowPulse {
  0%   { left: 6%;   opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { left: 94%;  opacity: 0; }
}

@media (max-width: 640px) {
  .flow::before, .flow::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .flow::after { animation: none; left: 50%; opacity: 0.5; }
}

.flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  gap: 14px;
  z-index: 1;
}
.flow__num {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1;
  letter-spacing: -0.012em;
  color: var(--ink);
  background: var(--parchment);
  padding: 0 10px;
  font-variant-numeric: lining-nums;
}
.flow__name {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.section.dark .flow::before { background: var(--on-dark-border); }
.section.dark .flow__num { color: var(--on-dark); background: var(--ink); }
.section.dark .flow__name { color: var(--on-dark-muted); }

/* ---------- Inquiry (vertical animated timeline) ---------- */

.inquiry {
  list-style: none;
  margin: 22px 0 4px;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Vertical rail */
.inquiry::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: rgba(26, 26, 26, 0.32);
}

/* Traveling teal pulse — independent of node flashes, for ambient motion */
.inquiry::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(31, 77, 74, 0.14), 0 0 16px 3px rgba(31, 77, 74, 0.42);
  pointer-events: none;
  animation: inquiryPulse 8s cubic-bezier(0.55, 0, 0.45, 1) infinite;
}
@keyframes inquiryPulse {
  0%   { top: 8px;            opacity: 0; }
  6%   { opacity: 0.95; }
  25%  { top: 25%; }
  50%  { top: 50%; }
  75%  { top: 75%; }
  94%  { opacity: 0.95; }
  100% { top: calc(100% - 16px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .inquiry::after { animation: none; opacity: 0.4; top: 50%; }
}

.inquiry__step {
  position: relative;
  padding: 14px 0 14px 30px;
}
.inquiry__step::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 18px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--parchment);
  border: 1.5px solid var(--ink);
  animation: inquiryFlash 8s ease-in-out infinite;
  z-index: 1;
}
.inquiry__step:nth-child(1)::before { animation-delay: 0.4s; }
.inquiry__step:nth-child(2)::before { animation-delay: 2.4s; }
.inquiry__step:nth-child(3)::before { animation-delay: 4.4s; }
.inquiry__step:nth-child(4)::before { animation-delay: 6.4s; }

@keyframes inquiryFlash {
  0%, 8%, 100% {
    background: var(--parchment);
    border-color: var(--ink);
    transform: scale(1);
    box-shadow: none;
  }
  11%, 17% {
    background: var(--teal);
    border-color: var(--teal);
    transform: scale(1.4);
    box-shadow: 0 0 0 4px rgba(31, 77, 74, 0.18);
  }
  30% {
    background: var(--parchment);
    border-color: var(--ink);
    transform: scale(1);
    box-shadow: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .inquiry__step::before { animation: none; }
}

.inquiry__num {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--oxide);
  margin-bottom: 4px;
}
.inquiry__name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(22px, 1.7vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.008em;
  color: var(--ink);
}
.inquiry__hint {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* ---------- Card row (Why Sansara Is Different) ---------- */

.card-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.card-row:last-of-type {
  border-bottom: 1px solid var(--border);
}
@media (min-width: 880px) {
  .card-row {
    padding: 36px 0;
    gap: 28px;
  }
}
.cr-index {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 4px;
  min-width: 30px;
}
.card-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 0 0 8px;
  color: var(--ink);
}
.it-body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  color: var(--ink-70);
  margin: 0;
  max-width: 56ch;
  text-wrap: pretty;
}

/* ---------- Inquiry list (Studio: when to use, Contact: what happens next) ---------- */

.inquiry-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.inquiry-item {
  display: flex;
  align-items: flex-start;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.inquiry-item .it-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 1.55vw, 22px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 8px;
  text-wrap: balance;
}

/* ---------- Engagement list (Studio engagements, on dark) ---------- */

.engagement-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--on-dark-border);
}
.engagement-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: clamp(32px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--on-dark-border);
}
@media (min-width: 880px) {
  .engagement-item {
    grid-template-columns: auto 1fr 2fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: baseline;
  }
}
.eng-index {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oxide);
}
.eng-name {
  font-family: var(--serif);
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--on-dark);
  text-wrap: balance;
}
.eng-body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  color: var(--on-dark-muted);
  margin: 0;
  max-width: 64ch;
  text-wrap: pretty;
}

/* ---------- Layer list (Method: eight signal layers) ---------- */

.layer-list {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--on-dark-border);
}
@media (min-width: 720px) { .layer-list { grid-template-columns: repeat(2, 1fr); } }

.layer-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 30px 24px 30px 0;
  border-bottom: 1px solid var(--on-dark-border);
  position: relative;
}
@media (min-width: 720px) {
  .layer-item:nth-child(odd) { padding-right: 32px; border-right: 1px solid var(--on-dark-border); }
  .layer-item:nth-child(even) { padding-left: 32px; }
  .layer-item:nth-last-child(-n+2) { border-bottom: 0; }
}
.layer-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--oxide);
  flex: 0 0 auto;
}
.ly-name {
  font-family: var(--serif);
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.32;
  letter-spacing: -0.008em;
  color: var(--on-dark);
  text-wrap: balance;
}

/* ---------- Contact form ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 26px;
}
@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}

.field { display: flex; flex-direction: column; gap: 10px; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field .req { color: var(--oxide); margin-left: 2px; }

.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  padding: 12px 0 10px;
  border-radius: 0;
  width: 100%;
  letter-spacing: -0.003em;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 220ms var(--ease);
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6' fill='none' stroke='%231A1A1A' stroke-width='1'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 24px;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-50);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.field input:invalid:not(:placeholder-shown),
.field.is-error input,
.field.is-error select,
.field.is-error textarea {
  border-bottom-color: var(--oxide);
}
.field-error {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--oxide);
  min-height: 1em;
}

.form-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.form-note {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0;
}
.form-note .tlink { font-size: 14px; }

.form-success {
  display: none;
  border: 1px solid var(--border);
  background: var(--parchment-dark);
  padding: 36px 32px;
}
.form-success.is-shown { display: block; }
.form-success .h-section { margin-bottom: 14px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  margin-top: clamp(96px, 12vw, 168px);
  padding: clamp(72px, 9vw, 128px) 0 clamp(44px, 5vw, 72px);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--on-dark-border);
}
@media (min-width: 880px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr;
    gap: clamp(40px, 6vw, 96px);
  }
}
.footer-mark { max-width: 360px; }
.footer-mark img {
  height: auto;
  width: min(220px, 60%);
}
@media (min-width: 880px) {
  .footer-mark img { width: 260px; }
}
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.3;
  color: var(--on-dark-muted);
  margin: 26px 0 0;
  text-wrap: balance;
  max-width: 24ch;
}
.footer-col h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oxide);
  margin: 0 0 22px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-col a {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--on-dark);
  transition: color 200ms var(--ease);
}
.footer-col a:hover { color: var(--parchment); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  margin-top: clamp(36px, 5vw, 56px);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--on-dark-muted);
}
.footer-bottom p { margin: 0; }
@media (min-width: 720px) {
  .footer-bottom { flex-direction: row; align-items: baseline; }
}

/* ---------- Reveal (subtle, with fallbacks) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: 0ms;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal-d1.is-in { transition-delay: 80ms; }
.reveal-d2.is-in { transition-delay: 160ms; }
.reveal-d3.is-in { transition-delay: 240ms; }
.reveal-d4.is-in { transition-delay: 320ms; }

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

/* ---------- Print ---------- */

@media print {
  .site-header, .site-footer, .mobile-menu, .menu-toggle { display: none !important; }
  body { background: #fff; }
  .section.dark, .site-footer { background: #fff !important; color: #000 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
