/* ============================================================
   Portant.ai — Site styles
   Builds on tokens.css. The site supports 3 surface modes
   (ink default, paper, bone) via [data-surface] on <body>.
   ============================================================ */

/* ─── Surface modes ─────────────────────────────────────────── */
body[data-surface="ink"] {
  --page-bg: #0a0908;
  --page-fg: #f6f5f4;
  --page-fg-muted: #a8a39c;
  --page-fg-subtle: #6e6961;
  --surface-1: #131110;        /* card / inset */
  --surface-2: #1a1816;        /* elevated */
  --surface-3: #221f1c;        /* hover */
  --hairline: rgba(226, 218, 210, 0.10);
  --hairline-strong: rgba(226, 218, 210, 0.18);
  --inverse-bg: var(--portant-canvas);
  --inverse-fg: var(--portant-ink-black);
  --eyebrow-color: var(--accent);
}

body[data-surface="paper"] {
  --page-bg: var(--portant-canvas);
  --page-fg: var(--portant-ink-black);
  --page-fg-muted: var(--portant-toasted);
  --page-fg-subtle: var(--portant-charred);
  --surface-1: var(--portant-white);
  --surface-2: var(--portant-paper);
  --surface-3: var(--portant-notebook);
  --hairline: rgba(12, 12, 12, 0.08);
  --hairline-strong: rgba(12, 12, 12, 0.16);
  --inverse-bg: var(--portant-ash);
  --inverse-fg: var(--portant-canvas);
  --eyebrow-color: var(--accent);
}

body[data-surface="bone"] {
  --page-bg: #f3efe8;
  --page-fg: #18120c;
  --page-fg-muted: #6b6258;
  --page-fg-subtle: #8a8278;
  --surface-1: #faf6ef;
  --surface-2: #ece6dc;
  --surface-3: #e0d8cb;
  --hairline: rgba(24, 18, 12, 0.10);
  --hairline-strong: rgba(24, 18, 12, 0.18);
  --inverse-bg: #18120c;
  --inverse-fg: #f3efe8;
  --eyebrow-color: var(--accent);
}

/* Accent override (set on body via Tweaks) */
body[data-accent] {
  --accent: var(--accent-override, var(--portant-orange));
}

html, body {
  background: var(--page-bg);
  color: var(--page-fg);
  margin: 0;
  padding: 0;
}

* { box-sizing: border-box; }

/* ─── Typography overrides for ink mode ─────────────────────── */
.h-monumental, .h-hero, .h-display, .h-section, .h-block {
  color: var(--page-fg);
}

.h-mega {
  font-family: var(--font-sans);
  font-size: clamp(3rem, 7vw, 6.25rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 500;
  color: var(--page-fg);
  text-wrap: balance;
  margin: 0;
}

.h-mega em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.h-large {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--page-fg);
  text-wrap: balance;
  margin: 0;
}

.lead {
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--page-fg-muted);
  text-wrap: pretty;
  font-weight: 400;
  max-width: 38ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--eyebrow-color);
  line-height: 1;
}

.eyebrow-muted {
  color: var(--page-fg-subtle);
}

.body-muted { color: var(--page-fg-muted); }
.body-subtle { color: var(--page-fg-subtle); }

/* ─── Layout primitives ─────────────────────────────────────── */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 720px) {
  .container { padding: 0 1.25rem; }
}

.section {
  padding: 6rem 0;
  position: relative;
}
.section--tight { padding: 4rem 0; }
.section--loose { padding: 8rem 0; }

.section + .section { border-top: 1px solid var(--hairline); }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.125rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s var(--ease-standard);
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15), 0 1px 0 rgba(0,0,0,0.08);
}
.btn--primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, black);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--page-fg);
  border-color: var(--hairline-strong);
}
.btn--ghost:hover {
  background: var(--surface-1);
  border-color: var(--page-fg-subtle);
}
.btn--lg { height: 3.25rem; padding: 0 1.5rem; font-size: 1rem; border-radius: 0.875rem; }

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
}
.card-elevated {
  background: var(--surface-1);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(0,0,0,0.20);
}

/* ─── Pill / kicker ─────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--surface-1);
  border: 1px solid var(--hairline-strong);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--page-fg);
}
.pill .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* ─── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--page-bg) 85%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 80rem;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.0625rem;
  color: var(--page-fg);
}
.brand-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
}
.brand-mark img {
  width: 100%; height: 100%; display: block;
  object-fit: contain;
}
body[data-surface="ink"] .brand-mark img {
  filter: invert(1);
}
.brand-tld {
  color: var(--accent);
  font-weight: 600;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9375rem;
  color: var(--page-fg-muted);
}
.nav-links a:hover { color: var(--page-fg); }
@media (max-width: 720px) {
  .nav-links { display: none; }
  .site-header-inner { padding: 0.875rem 1.25rem; }
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}
.hero-eyebrow .swatch {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--page-fg-muted);
  max-width: 36rem;
  text-wrap: pretty;
}
.hero-cta {
  margin-top: 2rem;
  display: flex; gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-trust {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--page-fg-subtle);
}
.hero-trust > span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-trust .sep { width: 3px; height: 3px; border-radius: 999px; background: var(--page-fg-subtle); opacity: 0.6; }

/* Hero variant: editorial (full-bleed type) */
.hero--editorial {
  padding: 7rem 0 7rem;
}
.hero--editorial .hero-grid {
  grid-template-columns: 1fr;
}
.hero--editorial .hero-sub {
  font-size: 1.375rem;
  line-height: 1.4;
  margin-top: 2rem;
  max-width: 42rem;
}

/* ─── Subtle bg dot grid for ink mode ───────────────────────── */
body[data-surface="ink"] .hero::before,
body[data-surface="ink"] .section--bg-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(226, 218, 210, 0.06) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
}

/* ─── Pipeline panel (hero + section 4) ─────────────────────── */
.pipeline-panel {
  background: var(--surface-1);
  border: 1px solid var(--hairline-strong);
  border-radius: 1.25rem;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}
.pipeline-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem 1rem;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 1rem;
}
.pipeline-panel-title {
  display: flex; align-items: center; gap: 0.625rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}
.pipeline-panel-title .agent-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: agent-pulse 2.4s ease-in-out infinite;
}
@keyframes agent-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.pipeline-panel-meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--page-fg-subtle);
}

.pipeline-deals {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.deal-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1.6fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 0.75rem;
  transition: all 0.4s var(--ease-out-quint);
}
.deal-row.is-active {
  background: var(--surface-3);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}
.deal-name {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.deal-name .deal-amount {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--page-fg-subtle);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.deal-stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  background: rgba(226, 218, 210, 0.07);
  border: 1px solid var(--hairline);
  color: var(--page-fg-muted);
  white-space: nowrap;
}
.deal-stage-pill .pill-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--page-fg-subtle);
}
.deal-row.is-active .deal-stage-pill {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent);
}
.deal-row.is-active .deal-stage-pill .pill-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.deal-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--page-fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-feature-settings: "ss01";
}
.deal-action .agent-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.deal-row.is-active .deal-action {
  color: var(--page-fg);
}

/* artifact card stacked under the active deal */
.deal-artifact {
  grid-column: 1 / -1;
  margin-top: 0.625rem;
  padding: 0.75rem 0.875rem;
  background: var(--page-bg);
  border: 1px solid var(--hairline);
  border-radius: 0.625rem;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.8125rem;
  animation: artifact-in 0.5s var(--ease-out-quint);
}
@keyframes artifact-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.deal-artifact .artifact-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--surface-3);
  display: grid; place-items: center;
}
.deal-artifact .artifact-meta {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--page-fg-subtle);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── End-to-end pipeline (section 4) ───────────────────────── */
.flow-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
@media (max-width: 960px) {
  .flow-track { grid-template-columns: 1fr; }
}
.flow-step {
  padding: 1.5rem 1.25rem 1.75rem;
  border-right: 1px solid var(--hairline);
  position: relative;
}
.flow-step:last-child { border-right: none; }
@media (max-width: 960px) {
  .flow-step { border-right: none; border-bottom: 1px solid var(--hairline); }
  .flow-step:last-child { border-bottom: none; }
}
.flow-step-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.875rem;
  font-weight: 500;
}
.flow-step h4 {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem 0;
  line-height: 1.25;
}
.flow-step p {
  font-size: 0.875rem;
  color: var(--page-fg-muted);
  line-height: 1.5;
  margin: 0 0 1rem 0;
}
.flow-step-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--page-fg-muted);
}

/* ─── Artifact mockups ──────────────────────────────────────── */
.artifact-stack {
  position: relative;
  padding: 1rem 0;
}
.artifact-doc {
  background: var(--surface-1);
  border: 1px solid var(--hairline-strong);
  border-radius: 0.75rem;
  padding: 1.125rem 1.25rem;
  font-family: var(--font-sans);
}
.artifact-doc + .artifact-doc { margin-top: 0.75rem; }
.artifact-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 0.875rem;
  margin-bottom: 0.875rem;
  border-bottom: 1px solid var(--hairline);
}
.artifact-doc-title {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.artifact-doc-meta {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--page-fg-subtle);
}
.artifact-doc-body {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--page-fg-muted);
}
.artifact-doc-body strong { color: var(--page-fg); font-weight: 500; }
.artifact-doc-body em.hl {
  font-style: normal;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--page-fg);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 400;
}

.line-items {
  margin-top: 0.75rem;
  border-top: 1px dashed var(--hairline);
  padding-top: 0.75rem;
}
.line-items .line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.8125rem;
}
.line-items .line + .line { border-top: 1px dashed var(--hairline); }
.line-items .line .l-name { color: var(--page-fg); }
.line-items .line .l-amt { font-family: var(--font-mono); color: var(--page-fg-muted); font-size: 0.75rem; }
.line-items .total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.875rem;
}
.line-items .total .t-name { font-weight: 500; }
.line-items .total .t-amt { font-family: var(--font-mono); font-weight: 500; color: var(--page-fg); }

.task-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline-strong);
  border-radius: 0.625rem;
  padding: 0.875rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
}
.task-card .task-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  display: grid; place-items: center;
}
.task-card .task-title {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.task-card .task-sub {
  font-size: 0.75rem;
  color: var(--page-fg-muted);
  margin-top: 2px;
}
.task-card .task-when {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--page-fg-subtle);
}

/* ─── Comparison block ──────────────────────────────────────── */
.compare-tabs {
  display: inline-flex;
  padding: 0.25rem;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  gap: 0.25rem;
  margin-bottom: 2.5rem;
}
.compare-tabs button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--page-fg-muted);
  padding: 0.5rem 1.125rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s var(--ease-standard);
  letter-spacing: -0.005em;
}
.compare-tabs button.is-active {
  background: var(--page-fg);
  color: var(--page-bg);
}

.compare-grid {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 1.4fr 1.4fr;
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--surface-1);
}
@media (max-width: 720px) {
  .compare-grid { grid-template-columns: 1fr; }
}
.compare-cell {
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.875rem;
  color: var(--page-fg-muted);
  line-height: 1.45;
}
.compare-cell + .compare-cell { border-left: 1px solid var(--hairline); }
@media (max-width: 720px) {
  .compare-cell + .compare-cell { border-left: none; }
}
.compare-grid > .compare-cell:nth-last-child(-n+3) { border-bottom: none; }
.compare-cell--header {
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--page-fg-subtle);
  font-weight: 500;
}
.compare-cell--header.is-portant { color: var(--accent); }
.compare-cell--label {
  background: var(--surface-2);
  color: var(--page-fg);
  font-weight: 500;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.compare-cell--portant {
  color: var(--page-fg);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

/* ─── Pricing visualization ─────────────────────────────────── */
.pricing-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
}
@media (max-width: 720px) {
  .pricing-bars { grid-template-columns: 1fr; }
}
.bar-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bar-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.875rem;
}
.bar-label .label-name {
  font-weight: 500;
  color: var(--page-fg);
}
.bar-label .label-cost {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--page-fg);
  font-weight: 500;
}
.bar-track {
  height: 80px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  position: absolute;
  inset: 0;
  background: var(--surface-3);
  border-right: 1px solid var(--hairline-strong);
  display: grid;
  align-items: center;
  padding: 0 1.125rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--page-fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bar-fill--rep {
  background: repeating-linear-gradient(
    -45deg,
    var(--surface-3),
    var(--surface-3) 6px,
    var(--surface-2) 6px,
    var(--surface-2) 12px
  );
  width: 100%;
}
.bar-fill--portant {
  background: var(--accent);
  color: #fff;
  width: 30%;
}
.bar-note {
  font-size: 0.8125rem;
  color: var(--page-fg-muted);
  line-height: 1.5;
}

/* ─── Three-things-this-isnt block ──────────────────────────── */
.tri {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 720px) { .tri { grid-template-columns: 1fr; } }
.tri-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 0.875rem;
  padding: 1.5rem;
  position: relative;
}
.tri-card .tri-cross {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(228, 10, 19, 0.12);
  color: #f97560;
  display: grid; place-items: center;
  font-size: 0.7rem;
  font-weight: 600;
}
.tri-card h4 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem 0;
}
.tri-card p {
  font-size: 0.875rem;
  color: var(--page-fg-muted);
  line-height: 1.5;
  margin: 0;
}

/* ─── "What we build" deliverables ──────────────────────────── */
.deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 720px) { .deliverables { grid-template-columns: 1fr; } }
.deliv-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 0.875rem;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 1rem;
  align-items: start;
}
.deliv-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--surface-3);
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  color: var(--page-fg);
}
.deliv-card h4 {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 0.375rem 0;
}
.deliv-card p {
  font-size: 0.8125rem;
  color: var(--page-fg-muted);
  line-height: 1.5;
  margin: 0;
}

/* ─── Multiply pillar ───────────────────────────────────────── */
.multiply {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 960px) { .multiply { grid-template-columns: 1fr; gap: 2.5rem; } }

.rep-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.625rem;
  padding: 1.25rem;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 1rem;
}
.rep-tile {
  aspect-ratio: 1;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 0.5rem;
  position: relative;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--page-fg-subtle);
}
.rep-tile.is-top {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-2));
  border-color: color-mix(in srgb, var(--accent) 35%, var(--hairline));
  color: var(--accent);
}
.rep-tile.is-top::after {
  content: '';
  position: absolute;
  top: 6px; right: 6px;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ─── Logo strip ────────────────────────────────────────────── */
.logo-strip {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2rem 0;
  opacity: 0.65;
}
.logo-strip img { height: 22px; width: auto; filter: brightness(0) invert(0.8); }
body[data-surface="paper"] .logo-strip img,
body[data-surface="bone"] .logo-strip img { filter: grayscale(1) opacity(0.7); }

/* ─── Closing CTA ───────────────────────────────────────────── */
.closing {
  background: var(--inverse-bg);
  color: var(--inverse-fg);
  border-radius: 1.5rem;
  padding: 5rem 4rem;
  text-align: center;
  border: 1px solid var(--hairline-strong);
  position: relative;
  overflow: hidden;
}
.closing .h-mega { color: var(--inverse-fg); }
.closing .lead { color: color-mix(in srgb, var(--inverse-fg) 65%, transparent); margin-left: auto; margin-right: auto; }

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--hairline);
  background: var(--page-bg);
}
.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8125rem;
  color: var(--page-fg-subtle);
}
.site-footer a { color: var(--page-fg-muted); }
.site-footer a:hover { color: var(--page-fg); }
.footer-links {
  display: flex; gap: 1.5rem;
  flex-wrap: wrap;
}

/* ─── Booking modal ─────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 2rem;
  animation: fade-in 0.2s var(--ease-standard);
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  background: var(--surface-1);
  border: 1px solid var(--hairline-strong);
  border-radius: 1.25rem;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 2.25rem;
  position: relative;
  animation: modal-in 0.3s var(--ease-out-quint);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--page-fg);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1rem;
}
.field label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--page-fg-subtle);
}
.field input, .field select, .field textarea {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 0.625rem;
  padding: 0.75rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--page-fg);
  outline: none;
  transition: border-color 0.18s var(--ease-standard);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--hairline));
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.375rem;
  margin-top: 0.5rem;
}
.calendar-day {
  aspect-ratio: 1;
  border: 1px solid var(--hairline);
  background: var(--surface-2);
  border-radius: 0.5rem;
  display: grid; place-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s var(--ease-standard);
  color: var(--page-fg);
}
.calendar-day:hover { border-color: var(--page-fg-subtle); }
.calendar-day.is-disabled { opacity: 0.3; cursor: not-allowed; }
.calendar-day.is-selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}
.time-slot {
  padding: 0.625rem;
  border: 1px solid var(--hairline);
  background: var(--surface-2);
  border-radius: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  cursor: pointer;
  text-align: center;
  color: var(--page-fg);
  transition: all 0.15s var(--ease-standard);
}
.time-slot:hover { border-color: var(--page-fg-subtle); }
.time-slot.is-selected { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out-quint), transform 0.6s var(--ease-out-quint);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* tiny utilities */
.row { display: flex; align-items: center; gap: 0.5rem; }
.stack-sm > * + * { margin-top: 0.5rem; }
.stack-md > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 2rem; }
.center { text-align: center; }
.muted { color: var(--page-fg-muted); }
.subtle { color: var(--page-fg-subtle); }
