/* ─────────────────────────────────────────────────────────────────
   NACK'iN_ — site.css  (v2 — editorial brutalist, less is more)
   ───────────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

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

html[lang="es"] [data-lang="en"],
html[lang="en"] [data-lang="es"] { display: none !important; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  font-family: inherit; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 11px; height: 48px; padding: 0 24px;
  display: inline-flex; align-items: center; gap: 12px;
  border-radius: 0; border: 1px solid var(--ink);
  cursor: pointer; background: transparent; color: var(--ink);
  text-decoration: none; white-space: nowrap;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn .arr { transition: transform var(--dur-2) var(--ease); display: inline-block; }
.btn:hover .arr { transform: translate(4px, -4px); }
.btn-lg { height: 56px; padding: 0 32px; font-size: 12px; }
.btn-ghost { border-color: var(--line-soft); }
.btn-ghost:hover { border-color: var(--ink); }

/* ── HEADER ────────────────────────────────────────────────── */
header.top {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
}
.top-row { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; gap: 32px; }
.h-brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.h-brand .h-wm { height: 24px; width: auto; display: block; }
.h-nav { display: flex; gap: 32px; align-items: center; }
.nav-link {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; font-weight: 700;
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: border-color var(--dur-2) var(--ease);
}
.nav-link:hover { border-bottom-color: var(--gold); }
.h-cta { display: flex; gap: 10px; align-items: center; }
.lang-mini {
  font-family: inherit; font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; padding: 6px 12px;
  border: 1px solid var(--line-soft); background: transparent;
  cursor: pointer; font-weight: 700; color: var(--ink-3);
}
.lang-mini:hover { color: var(--ink); border-color: var(--ink); }
.lang-mini .sep { color: var(--line-soft); margin: 0 2px; }
.lang-mini .on { color: var(--ink); }
.menu-btn { display: none; background: transparent; border: 1px solid var(--ink); width: 44px; height: 44px; cursor: pointer; padding: 0; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

/* ── HERO — editorial, big air ─────────────────────────────── */
.hero { padding: 120px 0 96px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to right, var(--line-soft) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  opacity: 0.35; pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 320px; gap: 64px; align-items: end; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; margin-bottom: 48px; }
.hero-eyebrow .gsq { width: 10px; height: 10px; background: var(--gold); display: inline-block; }

h1.hero-h {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.86; letter-spacing: -0.055em;
  margin: 0 0 40px; color: var(--ink);
  text-transform: uppercase; text-wrap: balance;
}
h1.hero-h .gold { color: var(--gold); display: inline-block; }
h1.hero-h .strike { position: relative; color: var(--ink-3); display: inline-block; }
h1.hero-h .strike::after { content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: 12px; background: var(--gold); transform: rotate(-2deg); }
.type-target { display: inline-block; }
.type-target.has-cursor::after { content: "_"; color: var(--gold); animation: nk-blink 1.05s steps(2) infinite; margin-left: 0.04em; }

.hero-sub {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.4; letter-spacing: -0.01em;
  color: var(--ink); max-width: 28ch;
  margin: 0 0 40px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Right-rail annotation */
.hero-note { border-left: 2px solid var(--gold); padding: 4px 0 4px 20px; max-width: 320px; }
.hero-note .k { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 12px; }
.hero-note p { font-size: 13px; line-height: 1.6; color: var(--ink-2); margin: 0 0 12px; }
.hero-note p b { color: var(--ink); }

/* ── TRUST STRIP ──────────────────────────────────────────── */
.trust-strip { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 14px 0; }
.trust-strip .ts-row { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 6px 0; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; align-items: baseline; }
.trust-strip .ts-row + .ts-row { border-top: 1px dashed var(--line-soft); }
.trust-strip .ts-k { color: var(--gold); font-weight: 700; }
.trust-strip .ts-v { color: var(--ink-2); font-weight: 400; line-height: 1.6; word-break: break-word; }
@media (max-width: 640px) { .trust-strip .ts-row { grid-template-columns: 1fr; gap: 4px; padding: 8px 0; } .trust-strip .ts-v { font-size: 10px; } }

/* ── TICKER ───────────────────────────────────────────────── */
.ticker { background: var(--ink); color: var(--paper); padding: 14px 0; overflow: hidden; border-bottom: 1px solid var(--line); }
.ticker-inner { display: flex; gap: 56px; animation: tick 42s linear infinite; white-space: nowrap; padding-left: 100%; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.ticker-inner span { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.ticker-inner .gold { color: var(--gold); margin-right: 6px; }
.ticker-inner .sep { color: rgba(255,255,255,0.25); }

/* ── SECTION MASTHEAD ─────────────────────────────────────── */
section.doc { border-bottom: 1px solid var(--line); padding: 0; }
.sec-mast { display: grid; grid-template-columns: 96px 1fr 240px; border-bottom: 1px solid var(--line); }
.sec-mast > * { padding: 28px 24px; }
.sec-num-cell { border-right: 1px solid var(--line-soft); font-size: 11px; letter-spacing: 0.24em; color: var(--gold); font-weight: 700; display: flex; align-items: center; }
.sec-title-cell h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 5vw, 72px); letter-spacing: -0.04em; color: var(--ink); margin: 0; line-height: 0.95; text-transform: uppercase; text-wrap: balance; }
.sec-title-cell h2 .gold { color: var(--gold); }
.sec-meta-cell { border-left: 1px solid var(--line-soft); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; justify-content: flex-end; text-align: right; }

/* ── §01 SERVICES ─────────────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); }
.svc { background: var(--paper); padding: 56px 36px 40px; min-height: 360px; display: flex; flex-direction: column; gap: 20px; transition: background var(--dur-2) var(--ease); position: relative; }
.svc:hover { background: var(--paper-2); }
.svc:hover .svc-arr { color: var(--gold); transform: translate(4px, -4px); }
.svc .n { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -0.04em; color: var(--gold); }
.svc h3 { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -0.025em; line-height: 1.05; color: var(--ink); margin: 0; text-transform: uppercase; text-wrap: balance; }
.svc p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.6; flex: 1; }
.svc .tag { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); font-weight: 700; padding-top: 16px; border-top: 1px dashed var(--line-soft); }
.svc .tag::before { content: "▸ "; color: var(--gold); }
.svc-arr { position: absolute; top: 36px; right: 28px; font-size: 18px; color: var(--ink-3); transition: transform var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }

/* ── §02 MECHANISM (dark) ─────────────────────────────────── */
.mech-wrap { background: var(--ink); color: var(--paper); padding: 0; }
.mech-wrap .sec-mast { border-bottom-color: rgba(255,255,255,0.18); }
.mech-wrap .sec-num-cell { border-right-color: rgba(255,255,255,0.18); }
.mech-wrap .sec-title-cell h2 { color: var(--paper); }
.mech-wrap .sec-meta-cell { border-left-color: rgba(255,255,255,0.18); color: rgba(244,241,234,0.6); }
.mech-phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.14); }
.mech-ph { padding: 48px 28px 40px; background: var(--ink); display: flex; flex-direction: column; gap: 16px; min-height: 280px; }
.mech-ph .wk { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.mech-ph .num { font-family: var(--font-display); font-weight: 700; font-size: 64px; line-height: 0.9; letter-spacing: -0.04em; color: var(--paper); }
.mech-ph h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.05; letter-spacing: -0.02em; margin: 0; color: var(--paper); text-transform: uppercase; }
.mech-ph p { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.7); margin: 0; flex: 1; }

/* ── §03 BRIEF / CONTACT ─────────────────────────────────── */
.brief-section { display: grid; grid-template-columns: 1fr 1fr; }
.brief-side { padding: 80px 40px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.brief-side h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 6vw, 88px); line-height: 0.92; letter-spacing: -0.04em; margin: 0; text-transform: uppercase; text-wrap: balance; }
.brief-side .gold { color: var(--gold); }
.brief-side .lede { color: var(--ink-2); font-size: 15px; line-height: 1.6; max-width: 420px; }
.brief-side .lede b { color: var(--ink); font-weight: 700; }
.sla-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); }
.sla-grid .pair { background: var(--paper); padding: 18px 20px; }
.sla-grid .l { font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-2); }
.sla-grid .v { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; margin-top: 6px; }

.form-side { padding: 80px 40px; }
.form-h { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.form-h .t { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; }
.form-h .id { font-size: 10px; letter-spacing: 0.18em; color: var(--gold); font-weight: 700; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 14px; padding: 14px 16px;
  border: 1px solid var(--line-soft); background: transparent;
  color: var(--ink); border-radius: 0; outline: none; resize: vertical;
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { background: var(--paper-2); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--gold); }
.field input.err, .field textarea.err, .field select.err { border-color: var(--err); box-shadow: inset 0 0 0 1px var(--err); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: flex-start; margin: 8px 0 18px; font-size: 11px; color: var(--ink-2); line-height: 1.5; }
.consent input { margin-top: 2px; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--gold); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.form-foot .legal { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); flex: 1; min-width: 180px; }
.form-state { margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--gold); background: var(--paper-2); font-size: 13px; display: none; }
.form-state.ok { display: block; border-left-color: var(--signal); color: var(--signal); }
.form-state.err { display: block; border-left-color: var(--err); color: var(--err); }
.form-state .t { font-weight: 700; font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 4px; color: inherit; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer.site { padding: 64px 0 24px; background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; }
.foot-grid h5 { font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 16px; font-weight: 700; }
.foot-grid .brand-cell { color: var(--ink); }
.foot-grid .brand-cell .foot-wm { height: 36px; width: auto; display: block; }
.foot-grid .brand-cell p { font-size: 13px; color: var(--ink-2); margin-top: 20px; max-width: 320px; line-height: 1.6; font-weight: 400; }
.foot-grid a { display: block; text-decoration: none; color: var(--ink); font-size: 12px; padding: 4px 0; font-weight: 700; transition: color var(--dur-2) var(--ease); }
.foot-grid a:hover { color: var(--gold); }
.foot-bot { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); }

/* ── TOAST ──────────────────────────────────────────────── */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--ink); color: var(--paper); padding: 14px 18px 14px 16px; border-left: 4px solid var(--gold); font-size: 12px; max-width: 340px; opacity: 0; transform: translateY(8px); transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); pointer-events: none; z-index: 100; line-height: 1.5; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast .t { color: var(--gold); font-weight: 700; font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 4px; }
.toast.err { border-left-color: var(--err); }
.toast.err .t { color: var(--err); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-note { max-width: 100%; }
}
@media (max-width: 1000px) {
  .wrap { padding: 0 24px; }
  .h-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .h-nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 24px; border-bottom: 1px solid var(--line); gap: 18px; align-items: flex-start; }
  .hero { padding: 72px 0 64px; }
  .svc-grid, .mech-phases { grid-template-columns: 1fr 1fr; }
  .sec-mast { grid-template-columns: 72px 1fr; }
  .sec-meta-cell { display: none; }
  .brief-section { grid-template-columns: 1fr; }
  .brief-side { border-right: none; border-bottom: 1px solid var(--line); padding: 56px 24px; }
  .form-side { padding: 56px 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .top-row { gap: 12px; }
  h1.hero-h { font-size: 56px; line-height: 0.9; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .svc-grid, .mech-phases { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
