/* Hallmark · genre: modern-minimal (bold/geometric variant) · macrostructure: Split Studio
 * theme: custom "Signal" — monochrome ink/paper + one acid-lime signal accent, hard 2px edges, hairline rules
 * nav: restrained flat bar (wordmark + 3 links + CTA, hairline bottom, no blur/pill — N9's silence doesn't fit a
 *      real multi-page agency site, so this keeps N9's restraint but adds the links usability requires)
 * footer: Ft2 Inline, extended with one real contact line (not a 4-column mega-footer)
 * craft: real wordmark reconstructed in CSS from the client's own logo (bold caps + boxed "LEADS"), no stock art
 * accent used at: focus rings, one CTA fill, the boxed logo mark, single "high-energy" numbers — never a flood
 */

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: none;
}

p { margin: 0; max-width: 65ch; }
a { color: inherit; text-decoration: none; }

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

.section { max-width: var(--shell); margin-inline: auto; padding: var(--section-gap, var(--space-3xl)) var(--page-gutter); }
.section--band { max-width: none; padding-inline: 0; }
.section--band > * { max-width: var(--shell); margin-inline: auto; padding-inline: var(--page-gutter); }
.section--rule { border-top: 1px solid var(--color-rule); }

.eyebrow, .mono-label {
  font-family: var(--font-label); font-size: var(--text-xs); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-ink-2);
}

mark, .hl {
  background: var(--color-accent); color: var(--color-accent-ink);
  padding: 0.02em 0.2em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* === The real wordmark, reconstructed — bold caps + a boxed word, matching the client's own logo === */
.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-md);
  letter-spacing: -0.01em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.15em;
}
.wordmark__boxed {
  border: 2px solid currentColor; padding: 0.05em 0.32em 0.08em;
}

/* === Buttons — sharp-edged, matching the box motif; one filled accent, one outline === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.85rem 1.5rem; font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
  text-transform: uppercase; letter-spacing: 0.02em;
  border: 2px solid var(--color-ink); border-radius: var(--radius-pill);
  color: var(--color-ink); background: transparent; cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 140ms var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

.btn--fill { background: var(--color-ink); color: var(--color-paper); }
.btn--fill:hover { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent); }

.btn--accent { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent); }
.btn--accent:hover { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }

.btn--sm { padding: 0.55rem 1rem; font-size: var(--text-xs); }

/* === Nav === */
.nav {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: color-mix(in oklch, var(--color-paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-rule);
}
.nav__inner {
  max-width: var(--shell); margin: 0 auto; padding-inline: var(--page-gutter);
  min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-sm) var(--space-lg);
  padding-block: var(--space-sm);
}
.nav__inner > * { min-width: 0; }
.nav__center { display: flex; gap: var(--space-lg); }
.nav__link { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); transition: color 140ms; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--color-ink); }
.nav__link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
@media (max-width: 860px) { .nav__center { display: none; } }

/* === Hero — Split Studio: half text, half proof; alternates per row === */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--space-2xl);
  align-items: center; min-height: clamp(56vh, 70dvh, 80dvh);
  padding: var(--space-2xl) var(--page-gutter) var(--space-3xl);
}
.hero > * { min-width: 0; }
.hero__eyebrow { display: block; margin-bottom: var(--space-md); }
.hero__display { font-size: var(--text-display); max-width: 14ch; overflow-wrap: anywhere; }
.hero__lede { max-width: 42ch; font-size: var(--text-md); color: var(--color-ink-2); margin-top: var(--space-lg); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-xl); }

.hero__proof {
  border: 2px solid var(--color-ink); padding: var(--space-xl);
  display: flex; flex-direction: column; gap: var(--space-lg); min-width: 0;
}
.hero__proof-num { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; font-size: clamp(2.6rem, 4.5vw + 1rem, 3.6rem); line-height: 1; }
.hero__proof-label { font-size: var(--text-sm); color: var(--color-ink-2); margin-top: var(--space-xs); }
.hero__proof-row + .hero__proof-row { border-top: 1px solid var(--color-rule); padding-top: var(--space-lg); }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-block: var(--space-2xl); }
}

/* === Split Studio rows — alternating diptych, hard edges, no cards === */
.split-head { max-width: 42rem; margin-bottom: var(--space-2xl); }
.split-head h2 { font-size: var(--text-2xl); }
.split-head p { margin-top: var(--space-md); color: var(--color-ink-2); font-size: var(--text-md); }

.split-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl);
  align-items: center; padding-block: var(--space-2xl);
  border-top: 1px solid var(--color-rule);
}
.split-row:first-of-type { border-top: none; }
.split-row--reverse .split-row__text { order: 2; }
.split-row--reverse .split-row__proof { order: 1; }
.split-row__text, .split-row__proof { min-width: 0; }

.split-row__num { font-family: var(--font-label); font-size: var(--text-sm); color: var(--color-ink-2); display: block; margin-bottom: var(--space-sm); }
.split-row__text h3 { font-size: var(--text-xl); }
.split-row__text p { color: var(--color-ink-2); margin-top: var(--space-md); }
.split-row__link { display: inline-flex; align-items: center; gap: 0.4em; margin-top: var(--space-lg); font-weight: 600; font-size: var(--text-sm); border-bottom: 2px solid var(--color-ink); padding-bottom: 2px; }
.split-row__link::after { content: "→"; transition: transform 160ms var(--ease-out); }
.split-row__link:hover::after { transform: translateX(3px); }

.split-row__proof {
  border: 2px solid var(--color-ink); padding: var(--space-xl); min-height: 200px;
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-sm);
}
.split-row__proof--accent { border-color: var(--color-ink); background: var(--color-ink); color: var(--color-paper); }
.split-row__stat { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; font-size: clamp(2.4rem, 4vw + 1rem, 3.4rem); line-height: 1; }
.split-row__stat-label { font-size: var(--text-sm); opacity: 0.75; margin-top: var(--space-xs); max-width: 32ch; }
.split-row__quote { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; line-height: 1.3; }
.split-row__quote cite { display: block; margin-top: var(--space-md); font-family: var(--font-body); font-style: normal; font-size: var(--text-sm); opacity: 0.8; }

@media (max-width: 860px) {
  .split-row, .split-row--reverse { grid-template-columns: minmax(0, 1fr); }
  .split-row--reverse .split-row__text, .split-row--reverse .split-row__proof { order: initial; }
}

/* === Process rail === */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--color-rule); margin-top: var(--space-xl); }
.process__step { padding: var(--space-lg); border-left: 1px solid var(--color-rule); min-width: 0; }
.process__step:first-child { border-left: none; }
.process__num { font-family: var(--font-label); font-size: var(--text-lg); color: var(--color-ink-2); display: block; margin-bottom: var(--space-sm); }
.process__step p { font-size: var(--text-sm); color: var(--color-ink-2); margin-top: var(--space-xs); }
@media (max-width: 860px) {
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process__step:nth-child(3) { border-left: none; }
}
@media (max-width: 560px) {
  .process { grid-template-columns: minmax(0, 1fr); }
  .process__step { border-left: none; border-top: 1px solid var(--color-rule); }
  .process__step:first-child { border-top: none; }
}

/* === Testimonial rail (horizontal scroll, not identical stacked cards) === */
.testi-rail { display: flex; gap: var(--space-lg); overflow-x: auto; margin-top: var(--space-xl); padding-bottom: var(--space-sm); scroll-snap-type: x mandatory; }
.testi-card { flex: 0 0 min(340px, 80vw); border: 1px solid var(--color-rule); padding: var(--space-lg); scroll-snap-align: start; }
.testi-card p { font-size: var(--text-sm); }
.testi-card cite { display: block; margin-top: var(--space-md); font-style: normal; font-weight: 600; font-size: var(--text-sm); }

/* === FAQ === */
.faq { margin-top: var(--space-xl); border-top: 1px solid var(--color-rule); }
.faq__item { border-bottom: 1px solid var(--color-rule); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md);
  padding: var(--space-lg) 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); color: var(--color-ink);
}
.faq__plus { flex-shrink: 0; width: 18px; height: 18px; position: relative; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; background: var(--color-ink); }
.faq__plus::before { inset: 45% 0; height: 2px; }
.faq__plus::after { inset: 0 45%; width: 2px; transition: transform 200ms var(--ease-out); }
.faq__item[open] .faq__plus::after { transform: rotate(90deg); opacity: 0; }
.faq__a { padding-bottom: var(--space-lg); color: var(--color-ink-2); max-width: 68ch; }

/* === Final CTA strip === */
.cta-strip { background: var(--color-ink); color: var(--color-paper); text-align: left; padding-block: var(--space-2xl); }
.cta-strip__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-xl); }
.cta-strip h2 { font-size: var(--text-2xl); max-width: 18ch; }
.cta-strip p { color: oklch(99% 0.002 250 / 0.7); margin-top: var(--space-sm); }
.cta-strip .btn { border-color: var(--color-paper); color: var(--color-paper); }
.cta-strip .btn--accent { border-color: var(--color-accent); }
.cta-strip .btn:not(.btn--accent):hover { background: var(--color-paper); color: var(--color-ink); }

/* === Footer — Ft2 inline, extended with one real contact line === */
.foot { border-top: 1px solid var(--color-rule); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-lg); padding-block: var(--space-xl); align-items: center; }
.foot__meta { display: flex; flex-wrap: wrap; gap: var(--space-lg); font-size: var(--text-sm); color: var(--color-ink-2); }
.foot__meta a:hover { color: var(--color-ink); }
.foot__copy { font-size: var(--text-xs); color: var(--color-ink-2); padding-bottom: var(--space-lg); }

/* === Forms (contacto / auditoría) === */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-lg); margin-top: var(--space-xl); }
.form-field { display: flex; flex-direction: column; gap: var(--space-xs); }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-ink-2); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body); font-size: var(--text-base); color: var(--color-ink);
  background: var(--color-paper); border: 1.5px solid var(--color-rule); border-radius: var(--radius-input);
  padding: 0.75rem 0.9rem; transition: border-color 140ms;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--color-ink);
}
.form-field textarea { resize: vertical; min-height: 110px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* === Reveal === */
.reveal { opacity: 0; transform: translateY(10px); animation: reveal var(--dur-long) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes reveal { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: reveal-reduced 150ms linear forwards; }
  @keyframes reveal-reduced { to { opacity: 1; transform: none; } }
}
