/* Blancacio — site.css (redesign v3)
   Light, restrained consulting site. Brass is used sparingly. */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f4ef;
  --ink: #15130f;
  --ink-2: #47433b;
  --ink-3: #66615a;
  --line: #e2ded4;
  --line-strong: #c9c3b4;
  --field-border: #857f70;  /* 3.99:1 on white for form-control boundaries */
  --brass: #a68a3d;         /* decorative rules and markers only */
  --brass-ink: #7a5f1c;     /* text and focus rings */
  --danger: #9b1c1c;
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 68px;
  --gutter: 20px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;      /* 18px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; font-weight: 650; text-wrap: balance; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--brass-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -64px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container.narrow { max-width: 780px; }
@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #0f0e0b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: none;
}
.brand-mark img { width: 36px; height: 36px; }
.brand-name { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.lang-switch,
.link-button {
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}
.lang-switch { min-height: 44px; padding: 0 12px; }
.lang-switch:hover,
.link-button:hover { text-decoration-color: var(--brass-ink); }
.link-button { min-height: 32px; text-align: left; }

.menu-toggle {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  content: "";
  position: relative;
  transition: transform .18s ease, background-color .18s ease;
}
.menu-bars::before { position: absolute; top: -6px; }
.menu-bars::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.is-open {
  display: block;
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 20px;
  box-shadow: 0 16px 24px -20px rgba(21, 19, 15, .25);
}
.site-nav ul { display: flex; flex-direction: column; }
.site-nav li a:not(.btn) {
  display: block;
  padding: 15px 0;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.site-nav .nav-cta-item { padding-top: 16px; }
.site-nav .nav-cta-item .btn { width: 100%; }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .site-nav,
  .site-nav.is-open {
    display: block;
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
    margin-left: auto;
  }
  .site-nav ul { flex-direction: row; align-items: center; gap: 26px; }
  .site-nav li a:not(.btn) { padding: 8px 0; border: 0; font-size: 1rem; color: var(--ink-2); }
  .site-nav li a:not(.btn):hover { color: var(--ink); }
  .site-nav .nav-cta-item { padding: 0; }
  .site-nav .nav-cta-item .btn { width: auto; }
  .header-actions { margin-left: 8px; }
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2c2820; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.text-link:hover { text-decoration-color: var(--ink); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-ink);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 2px;
  background: var(--brass);
  flex: none;
}

.lead {
  font-size: clamp(1.1875rem, 2.2vw, 1.375rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 38rem;
}

.tag {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-3);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(56px, 8vw, 96px) 0;
  scroll-margin-top: calc(var(--header-h) + 8px);
}
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 42rem; margin-bottom: clamp(28px, 4vw, 44px); }
.section h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.section-intro { margin-top: 14px; color: var(--ink-2); max-width: 38rem; }
.section-intro.left { max-width: 30rem; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(40px, 7vw, 88px) 0 clamp(44px, 7vw, 88px);
}
.hero-copy { max-width: 52rem; }
.hero h1 {
  font-size: clamp(2.25rem, 6.2vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.07;
  max-width: 22ch;
  text-wrap: balance;
}
.hero .lead { margin-top: 24px; max-width: 40rem; }
.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}
.hero-trust { margin-top: 32px; font-weight: 600; }

/* ---------- What you receive ---------- */
.deliver-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .deliver-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }

.deliver-list { display: grid; gap: 28px; }
.deliver-list li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; }
.deliver-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  color: var(--brass-ink);
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.deliver-list h3 { font-size: 1.3125rem; margin-bottom: 4px; padding-top: 4px; }
.deliver-list p { color: var(--ink-2); }

.sample {
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(21, 19, 15, .04), 0 20px 40px -30px rgba(21, 19, 15, .25);
  overflow: hidden;
}
.sample-head {
  padding: 14px 20px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-strong);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.sample-rows { padding: 4px 20px 8px; }
.sample-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.sample-row:last-child { border-bottom: 0; }
.sample-row dt {
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-ink);
  margin-bottom: 4px;
}
.sample-row dd { font-size: 1.0625rem; }

.deliver-foot { margin-top: clamp(28px, 4vw, 44px); display: grid; gap: 20px; }
.deliver-optional { font-weight: 650; font-size: 1.1875rem; }
.pilot {
  max-width: 44rem;
  border-left: 3px solid var(--brass);
  padding: 4px 0 4px 18px;
  color: var(--ink-2);
}
.pilot-title {
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-ink);
  margin-bottom: 4px;
}

/* ---------- Comparison ---------- */
.compare { max-width: 880px; }
.compare-head { display: none; }
.compare-list { display: grid; border-top: 1px solid var(--line-strong); }
.compare-row {
  display: grid;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-strong);
}
.compare-cell { display: flex; flex-direction: column; gap: 2px; }
.cell-label {
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.compare-problem { color: var(--ink-2); }
.compare-improve { font-weight: 600; font-size: 1.1875rem; }
.compare-arrow { color: var(--brass-ink); margin: 6px 0 4px; transform: rotate(90deg); }

@media (min-width: 720px) {
  .compare-head,
  .compare-row {
    display: grid;
    grid-template-columns: 1fr 44px 1fr;
    gap: 0 20px;
    align-items: center;
  }
  .compare-head {
    padding: 0 0 12px;
    font-size: 0.875rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .compare-row { padding: 26px 0; }
  .compare-cell .cell-label { display: none; }
  .compare-arrow { margin: 0; transform: none; justify-self: center; }
}

/* ---------- Demonstration ---------- */
.demo {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(21, 19, 15, .04), 0 24px 48px -32px rgba(21, 19, 15, .25);
  padding: 20px;
  max-width: 940px;
}
@media (min-width: 720px) { .demo { padding: 28px 32px 32px; } }

.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 24px;
}
.segmented {
  display: none;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
  background: var(--bg-soft);
}
.js .segmented { display: inline-flex; }
.seg-btn {
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.seg-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg-btn:not([aria-pressed="true"]):hover { color: var(--ink); background: #ece8dd; }

.panel-title { font-size: 1.0625rem; font-weight: 650; letter-spacing: 0; margin-bottom: 20px; }
.demo-panel + .demo-panel { margin-top: 36px; }
.js .demo-stack { display: grid; }
.js .demo-panel { grid-area: 1 / 1; margin-top: 0; transition: opacity .2s ease; }
.js .demo-panel[aria-hidden="true"] { opacity: 0; visibility: hidden; }

/* stepper: the same request in three clear steps */
.stepper { display: grid; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding-bottom: 26px;
}
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17.5px; top: 40px; bottom: 4px;
  width: 1px;
  background: var(--line-strong);
}
.step-marker {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  color: var(--brass-ink);
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.step-title { font-weight: 700; font-size: 1.1875rem; line-height: 1.3; padding-top: 4px; }
.step-detail { margin-top: 4px; font-weight: 500; }
.step-meta { margin-top: 4px; font-size: 1rem; color: var(--ink-3); }

@media (min-width: 760px) {
  .stepper { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .step { display: block; padding-bottom: 0; }
  .step:not(:last-child)::before {
    left: 48px; top: 17px; bottom: auto;
    width: calc(100% - 48px + 28px - 12px);
    height: 1px;
  }
  .step-marker { margin-bottom: 14px; }
  .step-title { padding-top: 0; }
}

/* scattered version */
.scatter-list { display: grid; gap: 12px; }
.scatter-item {
  border: 1px dashed var(--field-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: var(--bg);
}
@media (min-width: 720px) {
  .scatter-list { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .scatter-item:nth-child(2) { transform: translateY(14px); }
  .scatter-item:nth-child(3) { transform: translateY(4px); }
}
.scatter-channel {
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.scatter-text { color: var(--ink); }
.scatter-flag { margin-top: 12px; font-size: 1rem; color: var(--ink-3); }

/* ---------- Optional implementation ---------- */
.examples-label { margin-top: 28px; font-weight: 600; }
.dash-list { margin-top: 12px; display: grid; gap: 8px; }
.dash-list li { position: relative; padding-left: 22px; color: var(--ink-2); }
.dash-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.85em;
  width: 10px; height: 2px;
  background: var(--brass);
}
.scope-line {
  margin-top: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  font-size: clamp(1.1875rem, 2.4vw, 1.4375rem);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.more { margin-top: 12px; }
.more summary,
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.more summary { min-height: 56px; padding: 12px 0; }
.more summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker { display: none; }
.more summary::after,
.faq-item summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
.more[open] summary::after,
.faq-item[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.more-body { display: grid; gap: 16px; padding: 4px 0 8px; }
.more-body dt {
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.more-body dd { color: var(--ink-2); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 720px) { .about-grid { grid-template-columns: 160px 1fr; gap: 44px; align-items: center; } }
.about-photo {
  width: 140px; height: 140px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: 50% 30%;
  border: 1px solid var(--line-strong);
}
@media (min-width: 720px) { .about-photo { width: 160px; height: 160px; } }
.about-copy p { margin-top: 14px; max-width: 36rem; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary { padding: 20px 0; font-size: 1.125rem; min-height: 60px; }
.faq-item p { padding: 0 0 22px; max-width: 40rem; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.contact-copy h2 { max-width: 16ch; }
.contact-methods { margin-top: 32px; display: grid; gap: 16px; }
.contact-methods li { display: grid; gap: 2px; }
.method-label { color: var(--ink-3); font-size: 1rem; }
@media (min-width: 720px) {
  .contact-methods li { grid-template-columns: 10.5rem 1fr; gap: 12px; align-items: baseline; }
}
.contact-methods a {
  font-weight: 600;
  text-underline-offset: 4px;
  text-decoration-color: var(--brass);
  overflow-wrap: anywhere;
}

.form-card {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 24px 20px;
}
@media (min-width: 720px) { .form-card { padding: 32px; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--ink-3); }
.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 52px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: auto; }
.field input:hover,
.field textarea:hover,
.field select:hover { border-color: var(--ink); }
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible { outline: 3px solid var(--brass-ink); outline-offset: 1px; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.field-error { margin-top: 6px; color: var(--danger); font-size: 1rem; font-weight: 500; }
.field-error::before { content: "Error: "; font-weight: 700; }
.form-note { margin-top: 14px; font-size: 1rem; color: var(--ink-3); }
.form-note a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--brass); }
.form-status { margin-top: 14px; min-height: 1.5em; font-weight: 600; }
.form-status.is-error { color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; background: var(--bg); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.2fr 1.5fr 1fr 1fr; } }
.footer-brand { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; }
.footer-line { color: var(--ink-3); margin-top: 4px; }
.footer-head {
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.footer-list { display: grid; gap: 10px; font-size: 1rem; }
.footer-list a { text-underline-offset: 4px; text-decoration-color: var(--line-strong); overflow-wrap: anywhere; }
.footer-list a:hover { text-decoration-color: var(--brass-ink); }
.footer-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 1rem; color: var(--ink-3); }

/* ---------- Privacy page ---------- */
.prose { max-width: 42rem; }
.prose h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); letter-spacing: -0.025em; margin-bottom: 16px; }
.prose h2 { font-size: 1.375rem; margin: 36px 0 8px; }
.prose p { color: var(--ink-2); margin-top: 10px; }
.prose a { text-underline-offset: 3px; text-decoration-color: var(--brass); font-weight: 600; }
.prose .updated { font-size: 1rem; color: var(--ink-3); margin-top: 32px; }
.back-link { display: inline-block; margin-bottom: 28px; font-weight: 600; text-underline-offset: 4px; text-decoration-color: var(--brass); }

/* ---------- Motion (decorative; disabled for reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .step { opacity: 0; transform: translateY(8px); }
  .js .demo.is-in .step {
    opacity: 1;
    transform: none;
    transition: opacity .4s ease, transform .4s ease;
    transition-delay: calc(var(--i) * 160ms);
  }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
