/* RmarTech LLC — data-forward, monospace-accented, monochrome */

:root {
  /* Monochrome by default; accent hue can shift via tweaks */
  --bg:         #f5f5f2;
  --bg-alt:     #ebebe7;
  --surface:    #ffffff;
  --ink:        #0a0a0a;
  --ink-soft:   #3a3a3a;
  --ink-mute:   #7a7a78;
  --ink-faint:  #b5b5b2;
  --rule:       #d6d6d2;
  --rule-soft:  #e6e6e2;

  /* Accent: starts monochrome; hue tweak switches to chromatic */
  --accent:       #0a0a0a;
  --accent-soft:  #1a1a1a;
  --accent-on:    #ffffff;

  --maxw: 1360px;
  --pad:  clamp(20px, 3vw, 48px);
  --gap:  clamp(16px, 2vw, 32px);

  /* Density multipliers — overridden by [data-density] */
  --section-pad-y: clamp(80px, 10vw, 140px);

  --font-sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="dark"] {
  --bg:         #0a0a0a;
  --bg-alt:     #131313;
  --surface:    #141414;
  --ink:        #f5f5f2;
  --ink-soft:   #d5d5d0;
  --ink-mute:   #8a8a88;
  --ink-faint:  #3a3a3a;
  --rule:       #272727;
  --rule-soft:  #1c1c1c;
  --accent:       #f5f5f2;
  --accent-soft:  #e5e5e2;
  --accent-on:    #0a0a0a;
}

[data-density="compact"] { --section-pad-y: clamp(56px, 7vw, 100px); }
[data-density="airy"]    { --section-pad-y: clamp(110px, 14vw, 180px); }

/* Accent chromatic mode: when hue > 0, swap accent into color */
[data-accent="chromatic"] {
  --accent:      hsl(var(--accent-h), 65%, 48%);
  --accent-soft: hsl(var(--accent-h), 60%, 42%);
  --accent-on:   #ffffff;
}
[data-accent="chromatic"][data-theme="dark"] {
  --accent:      hsl(var(--accent-h), 70%, 62%);
  --accent-soft: hsl(var(--accent-h), 65%, 70%);
  --accent-on:   #0a0a0a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.01em; }

/* Body-level grid overlay (toggled via tweaks) */
body[data-grid="on"]::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px);
  background-size: calc((100vw - var(--pad)*2) / 12) 100%;
  background-position: var(--pad) 0;
  pointer-events: none;
  z-index: 1;
}

/* ───────────── Header ───────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark { display: inline-flex; color: var(--ink); }
.brand-name { font-size: 16px; }
.brand-llc { color: var(--ink-mute); font-weight: 500; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; margin-left: 4px; }

.nav { display: flex; gap: 28px; justify-content: center; }
.nav a {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-size: 14px; color: var(--ink-soft);
  transition: color 120ms;
}
.nav a:hover { color: var(--ink); }
.nav-num { font-size: 10px; color: var(--ink-mute); }

.header-meta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; color: var(--ink-mute);
}
.status-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: #1fbf52;
  box-shadow: 0 0 0 3px color-mix(in srgb, #1fbf52 25%, transparent);
}
.status-dot.status-warn { background: #d19a1f; box-shadow: 0 0 0 3px color-mix(in srgb, #d19a1f 25%, transparent); }
.header-time { color: var(--ink-faint); }

.header-rule { height: 1px; background: var(--rule); }

@media (max-width: 880px) {
  .header-inner { grid-template-columns: auto auto; }
  .nav { display: none; }
  .header-meta { display: none; }
}

/* ───────────── Layout atoms ───────────── */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--section-pad-y) var(--pad);
  position: relative;
}

.section-label {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  font-size: 11px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.14em;
}
.section-label-rule { height: 1px; background: var(--rule); }
.section-label-text { font-family: var(--font-mono); }

.section-head { max-width: 780px; margin-bottom: 56px; }
.section-title {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 20px;
  text-wrap: balance;
}
.section-kicker {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0;
  text-wrap: pretty;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  font-size: 14px; font-weight: 500;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background 120ms, color 120ms, border-color 120ms, transform 120ms;
}
.btn svg { transition: transform 180ms; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-on); }
.btn-primary:hover { background: var(--accent-soft); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-ghost { border-color: var(--rule); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.link-underline {
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 2px;
  font-size: 14px;
  transition: border-color 120ms;
}
.link-underline:hover { border-color: var(--ink); }

/* ───────────── Hero A — Terminal ───────────── */

.hero { position: relative; padding-top: 40px; }
.hero-a .hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--rule-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 92%);
  pointer-events: none;
  opacity: 0.65;
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 110px) var(--pad) clamp(80px, 10vw, 140px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px; color: var(--ink-mute);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.hero-title {
  font-size: clamp(40px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0 0 24px;
}
.hero-title-accent { color: var(--accent); }
[data-accent="mono"] .hero-title-accent { background: var(--ink); color: var(--bg); padding: 0 8px; }

.hero-sub {
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 36px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  gap: 16px;
}
.hero-metrics > div { display: flex; flex-direction: column; gap: 2px; }
.metric-n {
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-metrics span { font-size: 12px; color: var(--ink-mute); }

/* Terminal */
.terminal {
  background: var(--surface);
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 13px;
  box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--ink) 18%, transparent);
}
.terminal-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-mute); font-size: 11px;
}
.terminal-dots { display: inline-flex; gap: 5px; }
.terminal-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.terminal-body {
  margin: 0;
  padding: 22px 18px;
  min-height: 260px;
  white-space: pre-wrap;
  line-height: 1.7;
  color: var(--ink);
  font-family: var(--font-mono);
}
.term-row { display: block; }
.term-key { color: var(--ink-mute); }
.term-colon { color: var(--ink-faint); }
.term-val { color: var(--ink); }
.term-comma { color: var(--ink-faint); }
.cursor { animation: blink 1s steps(2) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

/* ───────────── Hero B — Editorial ───────────── */

.hero-b-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 120px) var(--pad);
}
.hero-b-meta {
  display: flex; gap: 28px;
  font-size: 11px; color: var(--ink-mute);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.hero-b-title {
  font-size: clamp(56px, 10vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin: 0 0 48px;
  text-wrap: balance;
}
.hero-b-title em { font-style: italic; font-weight: 400; color: var(--accent); }
[data-accent="mono"] .hero-b-title em { color: var(--ink-mute); }
.hero-b-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  align-items: start;
}
@media (max-width: 820px) { .hero-b-foot { grid-template-columns: 1fr; } }
.hero-b-sub {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 48ch;
}
.hero-b-ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-self: end; }
@media (max-width: 820px) { .hero-b-ctas { justify-self: start; } }

/* ───────────── Hero C — Data-viz ───────────── */

.hero-c-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 110px) var(--pad) clamp(80px, 10vw, 140px);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
@media (max-width: 980px) { .hero-c-inner { grid-template-columns: 1fr; } }
.hero-c-title {
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 16px 0 24px;
}
.hero-c-title u { text-decoration-thickness: 2px; text-underline-offset: 6px; }

.chart-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 24px;
  box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--ink) 18%, transparent);
}
.chart-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--ink-mute);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 20px;
}
.chart-plot {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  align-items: end;
  height: 260px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.chart-bar {
  background: var(--ink);
  min-height: 4px;
  animation: barIn 500ms cubic-bezier(.2,.7,.2,1) both;
  transition: height 600ms cubic-bezier(.2,.7,.2,1);
}
[data-accent="chromatic"] .chart-bar:nth-child(odd) { background: var(--accent); }
@keyframes barIn { from { transform: scaleY(0.3); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.chart-axis {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  font-size: 10px;
  color: var(--ink-mute);
  padding: 10px 0 16px;
}
.chart-foot {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--ink-mute);
  padding-top: 12px;
  border-top: 1px solid var(--rule-soft);
}

/* ───────────── Services ───────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.svc {
  text-align: left;
  padding: 28px 24px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 160ms;
  position: relative;
  color: var(--ink);
}
.svc:hover { background: var(--bg-alt); }
.svc-open { background: var(--bg-alt); }
.svc-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.svc-code { font-size: 11px; color: var(--ink-mute); letter-spacing: 0.06em; }
.svc-plus {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule); color: var(--ink-mute);
  transition: transform 200ms, border-color 160ms;
}
.svc:hover .svc-plus { border-color: var(--ink); color: var(--ink); }
.svc-open .svc-plus { transform: rotate(45deg); border-color: var(--ink); color: var(--ink); }
.svc-title {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 0 0 12px;
}
.svc-blurb {
  font-size: 14.5px; line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.svc-deliverables {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px dashed var(--rule);
}
.svc-deliverables-label {
  display: block;
  font-size: 10px; color: var(--ink-mute); letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.svc-deliverables ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.svc-deliverables li { font-size: 13px; display: flex; gap: 8px; color: var(--ink-soft); }
.svc-deliverables li .mono { color: var(--ink-mute); }

/* ───────────── Process ───────────── */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }
.step {
  padding: 28px 24px 36px;
  border-right: 1px solid var(--rule);
  position: relative;
}
.step:last-child { border-right: none; }
.step-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.step-n { font-size: 32px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.step-dur { font-size: 11px; color: var(--ink-mute); }
.step-title {
  font-size: 19px;
  font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.step-body { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.step-arrow {
  position: absolute; right: -8px; top: 42px;
  font-family: var(--font-mono);
  background: var(--bg);
  padding: 2px 4px;
  color: var(--ink-mute);
  font-size: 14px;
  z-index: 2;
}
@media (max-width: 900px) { .step-arrow { display: none; } }

/* ───────────── About ───────────── */

.section-about {}
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.about-portrait { position: relative; }
.portrait-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--rule);
  filter: grayscale(0.15) contrast(1.02);
}

.about-sticker {
  position: absolute;
  left: -12px; bottom: 24px;
  background: var(--ink); color: var(--bg);
  padding: 10px 14px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--ink) 40%, transparent);
}
.about-sticker .mono { font-size: 10px; color: var(--ink-faint); letter-spacing: 0.08em; }
.about-sticker span { font-size: 14px; font-weight: 500; }

.about-body p { font-size: 16.5px; line-height: 1.65; color: var(--ink-soft); max-width: 60ch; }
.about-body .section-title { margin-bottom: 24px; }

.about-facts {
  margin: 32px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
}
.about-facts > div { display: flex; flex-direction: column; gap: 4px; }
.about-facts dt { font-size: 11px; color: var(--ink-mute); letter-spacing: 0.06em; display: flex; gap: 8px; }
.about-facts dt .mono { color: var(--ink-faint); }
.about-facts dd { margin: 0; font-size: 15px; color: var(--ink); }

/* ───────────── Writing ───────────── */

.section-writing { background: var(--bg-alt); margin: 0; max-width: none; padding-left: 0; padding-right: 0; }
.section-writing > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: var(--pad); padding-right: var(--pad); }
.section-writing > .section-label { padding-top: 0; }
.section-writing { padding-top: var(--section-pad-y); padding-bottom: var(--section-pad-y); }

.writing-head { margin-bottom: 32px; }
.writing-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
  flex-wrap: wrap; gap: 12px;
}
.writing-filters { display: flex; gap: 8px; }
.chip {
  padding: 7px 12px;
  border: 1px solid var(--rule);
  background: var(--surface);
  font-size: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 120ms, border-color 120ms, color 120ms;
  color: var(--ink-soft);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-on .mono { color: var(--bg); }

.writing-status { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-mute); }

.writing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
@media (max-width: 720px) { .writing-grid { grid-template-columns: 1fr; } }

.post {
  padding: 24px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface);
  transition: background 160ms;
  color: var(--ink);
  min-height: 200px;
}
.post:hover { background: var(--bg); }
.post-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-mute); }
.post-source { text-transform: uppercase; letter-spacing: 0.1em; }
.post-title {
  font-size: 20px; font-weight: 500; line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
}
.post-excerpt {
  font-size: 14px; line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}
.post-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--ink-mute);
  margin-top: 8px;
}
.post-tag { color: var(--ink-mute); }
.post-more { color: var(--ink); }

.post-skel .skel-line {
  height: 12px;
  background: linear-gradient(90deg, var(--rule-soft), var(--rule), var(--rule-soft));
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.writing-sub {
  margin-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  font-size: 14px;
}
.writing-sub-label { color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; }
.dot-sep { color: var(--ink-faint); }

/* ───────────── Contact ───────────── */

.section-contact { border-top: 1px solid var(--rule); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-facts {
  margin: 32px 0 0;
  display: grid;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.contact-facts > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; }
.contact-facts dt { font-size: 12px; color: var(--ink-mute); display: flex; gap: 8px; margin: 0; }
.contact-facts dd { margin: 0; font-size: 14px; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: clamp(20px, 3vw, 36px);
  display: grid; gap: 18px;
}
.form-row { display: grid; gap: 18px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 540px) { .form-row-2 { grid-template-columns: 1fr; } }

.field { display: grid; gap: 8px; }
.field-label { font-size: 11px; color: var(--ink-mute); letter-spacing: 0.08em; }
.field input, .field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color 120ms, background 120ms;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  border-color: var(--ink);
  background: var(--surface);
}
.field-err input, .field-err textarea { border-color: #c5392f; }
.field-err-msg { color: #c5392f; font-size: 11px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.form-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  margin-top: 8px;
}
.form-note { font-size: 11px; color: var(--ink-mute); }

/* Anti-spam UI */
.honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.field-hint { font-size: 10px; color: var(--ink-mute); text-align: right; }

.captcha-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: stretch;
}
.captcha-prompt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  font-size: 15px;
  user-select: none;
}
.captcha-q { font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.captcha-refresh {
  font-size: 14px;
  color: var(--ink-mute);
  padding: 2px 6px;
  border: 1px solid transparent;
  transition: color 120ms, border-color 120ms;
}
.captcha-refresh:hover { color: var(--ink); border-color: var(--rule); }
.captcha-input {
  font-family: var(--font-mono);
  font-size: 15px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  border-radius: 0;
  transition: border-color 120ms, background 120ms;
}
.captcha-input:focus { border-color: var(--ink); background: var(--surface); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  background: var(--bg);
  cursor: pointer;
  user-select: none;
}
.consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--accent);
  width: 14px; height: 14px;
  flex-shrink: 0;
}
.consent-err { border-color: #c5392f; }

.contact-sent {
  padding: 48px 0;
  max-width: 620px;
}
.contact-sent .sent-tag { font-size: 11px; color: var(--ink-mute); letter-spacing: 0.1em; display: block; margin-bottom: 16px; }
.contact-sent p { font-size: 16px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 24px; }

/* ───────────── Footer ───────────── */

.site-footer {
  background: var(--ink);
  color: var(--bg);
  margin-top: 0;
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--pad) 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 40px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.brand-name-lg {
  font-size: 28px; font-weight: 500; letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.site-footer .brand-llc { color: color-mix(in srgb, var(--bg) 50%, transparent); }
.footer-brand p { color: color-mix(in srgb, var(--bg) 65%, transparent); font-size: 14px; max-width: 40ch; }

.footer-head {
  display: block;
  font-size: 10px; color: color-mix(in srgb, var(--bg) 50%, transparent);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer li { font-size: 14px; }
.site-footer a { color: color-mix(in srgb, var(--bg) 85%, transparent); transition: color 120ms; }
.site-footer a:hover { color: var(--bg); }
.footer-colophon { font-size: 13px; color: color-mix(in srgb, var(--bg) 65%, transparent); line-height: 1.55; margin: 0; }

.footer-rule { height: 1px; background: color-mix(in srgb, var(--bg) 20%, transparent); }
.footer-base {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--pad) 32px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 11px; color: color-mix(in srgb, var(--bg) 50%, transparent);
}

/* ───────────── Tweaks panel ───────────── */

.tweaks-panel {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: 0 20px 50px -10px color-mix(in srgb, var(--ink) 30%, transparent);
  z-index: 1000;
  font-size: 13px;
}
.tweaks-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-alt);
}
.tweaks-title { font-size: 11px; color: var(--ink-mute); letter-spacing: 0.12em; text-transform: uppercase; }
.tweaks-collapse { font-size: 10px; color: var(--ink-mute); padding: 2px 8px; }
.tweaks-body { padding: 16px; display: grid; gap: 18px; }
.tweak { display: grid; gap: 8px; }
.tweak-label { font-size: 10px; color: var(--ink-mute); letter-spacing: 0.1em; text-transform: uppercase; }
.tweak-options { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-opt {
  padding: 6px 10px;
  border: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 120ms;
}
.tweak-opt:hover { border-color: var(--ink); color: var(--ink); }
.tweak-opt-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tweak-opt-on .mono { color: var(--bg); }
.tweak-slider { width: 100%; accent-color: var(--accent); }
.tweak-hint { font-size: 10px; color: var(--ink-mute); }
