/* Half Machine — base styles */

:root {
  --bg: #f4f2ec;
  --bg-2: #ebe8df;
  --ink: #0e0e0c;
  --ink-2: #2a2a26;
  --muted: #6b6a63;
  --rule: #dcd8ce;
  --rule-strong: #c5c0b3;
  --accent: oklch(0.62 0.14 50);
  --accent-soft: oklch(0.62 0.14 50 / 0.12);

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1280px;
  --pad: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* ---- shared utilities ---- */

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.rule {
  height: 1px;
  background: var(--rule);
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.logo-mark {
  width: 22px;
  height: 22px;
  position: relative;
  display: inline-block;
}
.logo-mark::before, .logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--ink);
}
.logo-mark::before {
  border-radius: 50% 0 0 50%;
  border-right: none;
  width: 50%;
}
.logo-mark::after {
  left: 50%;
  width: 50%;
  background: var(--ink);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 13px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  transition: transform .15s ease, background .15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta .arrow { flex-shrink: 0; }
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

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

.hero {
  padding-top: clamp(64px, 10vh, 120px);
  padding-bottom: clamp(48px, 8vh, 96px);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: center; }
}

.h1 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 18px 0 24px;
  color: var(--ink);
  text-wrap: balance;
}
.h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 52ch;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 14px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn .arrow { flex-shrink: 0; }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn .arrow {
  width: 14px; height: 14px;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

.hero-meta {
  margin-top: 56px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  max-width: 640px;
}
.hero-meta-item .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.hero-meta-item .v { font-size: 14px; color: var(--ink); margin-top: 6px; }

/* ---- diagram ---- */

.diagram-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 22px;
  position: relative;
  box-shadow: 0 1px 0 var(--bg-2), 0 30px 60px -40px rgba(14,14,12,0.18);
}

.diagram-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.diagram-head .title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.diagram-head .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}
.live .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-soft);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-soft); }
  100% { box-shadow: 0 0 0 8px transparent; }
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 8px;
  position: relative;
}

.node {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 12px 14px;
  background: var(--bg);
  position: relative;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.node:hover { border-color: var(--ink); transform: translateY(-2px); }
.node.active {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 30px -16px rgba(14,14,12,.25);
}

.node .idx {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.node .label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  margin-top: 18px;
  letter-spacing: -0.01em;
}
.node .glyph {
  position: absolute;
  top: 12px; right: 12px;
  width: 14px; height: 14px;
  color: var(--muted);
}
.node.active .glyph { color: var(--accent); }

.flow-connector {
  position: absolute;
  top: 50%;
  height: 1px;
  background: var(--rule);
  z-index: 0;
}

.diagram-body {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  min-height: 168px;
}

.detail-row {
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.detail-row .k {
  flex: 0 0 90px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-row .v {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.45;
}

.detail-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.detail-list li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink-2);
  background: var(--bg-2);
}

/* ---- generic section ---- */

section.s {
  padding: clamp(72px, 10vh, 128px) 0;
  border-top: 1px solid var(--rule);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 56px;
}
@media (min-width: 880px) {
  .section-head { grid-template-columns: 220px 1fr; gap: 64px; }
}

.section-head h2 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 8px 0 0;
  text-wrap: balance;
}
.section-head h2 em {
  font-family: var(--font-serif);
  font-style: italic;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--ink-2);
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.5;
}

/* ---- thesis ---- */

.thesis {
  background: var(--ink);
  color: var(--bg);
}
.thesis .eyebrow { color: #b6b3a8; }
.thesis .eyebrow .dot { background: var(--accent); }
.thesis .section-head h2 { color: var(--bg); }
.thesis .section-head p { color: #b6b3a8; }

.thesis-equation {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 32px;
}
@media (min-width: 760px) {
  .thesis-equation { grid-template-columns: repeat(7, auto); align-items: stretch; gap: 14px; justify-content: start; flex-wrap: wrap; display: flex; }
}

.thesis-term {
  border: 1px solid #2a2a26;
  border-radius: 10px;
  padding: 16px 22px;
  min-width: 160px;
  background: #131311;
}
.thesis-term .num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #8b887e;
  letter-spacing: 0.08em;
}
.thesis-term .word {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-top: 12px;
}
.thesis-op {
  display: flex;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 32px;
  color: #6b6a63;
  padding: 0 4px;
}
.thesis-op.eq { color: var(--accent); }

.artifact-line {
  margin-top: 48px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--bg);
  max-width: 38ch;
  text-wrap: balance;
}
.artifact-line .accent { color: var(--accent); font-style: italic; }

/* ---- what we do grid ---- */

.capgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}
@media (min-width: 720px) { .capgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .capgrid { grid-template-columns: repeat(4, 1fr); } }

.cap {
  background: var(--bg);
  padding: 24px 22px 28px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: background .2s ease;
}
.cap:hover { background: #fff; }
.cap .cap-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.cap h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 0;
}
.cap p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.cap .cap-icon {
  width: 36px;
  height: 36px;
  margin-top: auto;
  color: var(--ink);
}
.cap:hover .cap-icon { color: var(--accent); }

/* ---- offers ---- */

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

.offer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
  cursor: pointer;
  transition: background .2s ease;
}
.offer:last-child { border-bottom: 1px solid var(--rule); }
.offer:hover { background: var(--bg-2); }

@media (min-width: 880px) {
  .offer {
    grid-template-columns: 80px 1fr 1.4fr 200px;
    gap: 40px;
    align-items: center;
  }
}

.offer .offer-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.offer h3 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.offer h3 em {
  font-family: var(--font-serif);
  font-style: italic;
}

.offer p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

.offer-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.offer-meta .arrow {
  margin-top: 10px;
  font-size: 18px;
  color: var(--ink);
  transition: transform .2s ease, color .2s ease;
}
.offer:hover .arrow { transform: translateX(4px); color: var(--accent); }

/* ---- proof points ---- */

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

.case {
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 22px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease;
}
.case:hover { border-color: var(--ink); }

.case .case-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.case h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0;
}
.case h4 em { font-family: var(--font-serif); font-style: italic; }
.case p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }

.case-stage {
  margin-top: auto;
  border-top: 1px dashed var(--rule);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.case-stage .stage-k { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.case-stage .stage-v { font-family: var(--font-sans); font-size: 14px; color: var(--ink); margin-top: 4px; }

/* artifact preview placeholder */
.artifact-preview {
  border: 1px solid var(--rule);
  border-radius: 8px;
  background:
    repeating-linear-gradient(45deg, transparent 0 8px, var(--bg-2) 8px 9px);
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case.feature {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

/* mini diagram inside featured case */
.mini-flow {
  display: flex;
  gap: 0;
  align-items: stretch;
  margin-top: 6px;
}
.mini-node {
  flex: 1;
  border: 1px solid var(--rule);
  padding: 10px 10px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  text-align: center;
}
.mini-node:not(:last-child) { border-right: none; }
.mini-node:first-child { border-radius: 6px 0 0 6px; }
.mini-node:last-child { border-radius: 0 6px 6px 0; background: var(--accent-soft); color: var(--ink); border-color: var(--accent); }

/* ---- pillars ---- */

.pillars {
  display: grid;
  grid-template-columns: 1fr;
}
.pillar {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.pillar:last-child { border-bottom: 1px solid var(--rule); }
.pillar .num { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.pillar .not {
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--rule-strong);
  letter-spacing: -0.01em;
}
.pillar .yes {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

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

.final-cta {
  background: var(--bg-2);
}
.final-cta .shell { padding-top: clamp(72px, 10vh, 120px); padding-bottom: clamp(72px, 10vh, 120px); }
.final-cta .h2 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 12px 0 28px;
  max-width: 18ch;
  text-wrap: balance;
}
.final-cta .h2 em { font-family: var(--font-serif); font-style: italic; }

.final-cta .ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-cell {
  background: var(--bg-2);
  padding: 22px 22px 24px;
}
.contact-cell .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-cell .v {
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--ink);
  margin-top: 8px;
  letter-spacing: -0.01em;
}
.contact-cell .v a:hover { color: var(--accent); }

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

footer.foot {
  border-top: 1px solid var(--rule);
  padding: 28px 0 36px;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---- ambient grid bg behind hero ---- */

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse at 70% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, black 0%, transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

.hero > * { position: relative; }

/* ---- table-of-numbers stat row ---- */

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid #2a2a26;
}
@media (min-width: 720px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric {
  padding: 22px 22px 22px 0;
  border-right: 1px solid #2a2a26;
}
.metric:last-child { border-right: none; }
.metric .v {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 44px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.metric .l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #8b887e;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 12px;
}

/* density tweak: compact toggles padding */
[data-density="compact"] section.s { padding: 64px 0; }
[data-density="spacious"] section.s { padding: clamp(96px, 14vh, 160px) 0; }

/* selection */
::selection { background: var(--accent); color: var(--bg); }

/* =================================================================
   CONTACT PAGE
   ================================================================= */

.contact-page {
  padding-top: clamp(56px, 8vh, 96px);
  padding-bottom: clamp(80px, 10vh, 128px);
  position: relative;
}

.contact-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse at 80% 0%, black 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 0%, black 0%, transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}

.contact-page > * { position: relative; }

.contact-grid-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  margin-top: 56px;
}
@media (min-width: 980px) {
  .contact-grid-page { grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: start; }
}

.contact-aside h1 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 18px 0 24px;
  text-wrap: balance;
}
.contact-aside h1 em {
  font-family: var(--font-serif);
  font-style: italic;
}

.contact-aside .lede {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--ink-2);
  max-width: 42ch;
  line-height: 1.5;
  text-wrap: pretty;
}

.contact-aside .channels {
  margin-top: 40px;
  border-top: 1px solid var(--rule);
}

.channel {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.channel .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.channel .v {
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.channel .v a:hover { color: var(--accent); }
.channel .v .sub {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 7px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  background: var(--bg);
}
.status-pill .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-soft);
  animation: pulse 1.6s ease-out infinite;
}

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

.contact-form-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 1px 0 var(--bg-2), 0 30px 60px -40px rgba(14,14,12,0.18);
}

.form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px dashed var(--rule);
}
.form-head .title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-head .step {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.field {
  display: block;
  margin: 0 0 22px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.field label,
.field .lbl {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field label .opt,
.field .lbl .opt {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  font-family: var(--font-serif);
}

.input,
.textarea,
.select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule-strong);
  padding: 8px 0 10px;
  outline: none;
  transition: border-color .15s ease;
  border-radius: 0;
  appearance: none;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
}
.input:focus,
.textarea:focus,
.select:focus {
  border-bottom-color: var(--accent);
}

.textarea {
  resize: vertical;
  min-height: 132px;
  line-height: 1.45;
}

.select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) calc(50% - 2px),
    calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
  cursor: pointer;
}

/* chip grid */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
  user-select: none;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.chip .check {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: var(--bg);
  flex-shrink: 0;
}
.chip.active .check {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--ink);
}

/* segmented radio */
.segmented {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}
.seg {
  padding: 12px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-2);
  text-align: center;
  cursor: pointer;
  border-right: 1px solid var(--rule);
  transition: background .15s ease, color .15s ease;
  background: var(--bg);
}
.seg:last-child { border-right: none; }
.seg:hover { color: var(--ink); }
.seg.active {
  background: var(--ink);
  color: var(--bg);
}

.form-foot {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px dashed var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form-foot .note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  max-width: 36ch;
  line-height: 1.5;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-size: 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn-submit:hover { background: var(--accent); border-color: var(--accent); }
.btn-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-submit .arrow { flex-shrink: 0; transition: transform .2s ease; }
.btn-submit:hover .arrow { transform: translateX(3px); }

/* success state */
.success {
  text-align: left;
  padding: 24px 0;
}
.success .glyph {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.success h3 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  line-height: 1.05;
}
.success h3 em { font-family: var(--font-serif); font-style: italic; }
.success p {
  color: var(--ink-2);
  font-size: 15px;
  max-width: 48ch;
  margin: 0 0 24px;
  line-height: 1.55;
}

.summary {
  margin-top: 24px;
  border-top: 1px dashed var(--rule);
  padding-top: 18px;
}
.summary .row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 6px 0;
  font-size: 13.5px;
}
.summary .row .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.summary .row .v { color: var(--ink-2); }

/* FAQ */
.faq-section {
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
}
.faq-section .shell { padding-top: clamp(64px, 8vh, 96px); padding-bottom: clamp(64px, 8vh, 96px); }

.faq-list { border-top: 1px solid var(--rule); }
.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  cursor: pointer;
}
@media (min-width: 720px) {
  .faq-item { grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: baseline; }
}
.faq-q {
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.8vw, 22px);
  letter-spacing: -0.015em;
  color: var(--ink);
}
.faq-q em { font-family: var(--font-serif); font-style: italic; }
.faq-a {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 52ch;
}
