:root {
  --bone: #f6f3ec;
  --bone-deep: #ebe6dc;
  --paper: #fffdf8;
  --ink: #111111;
  --ink-soft: #2a2927;
  --muted: #6f6a62;
  --line: #d9d2c7;
  --red: #c31924;
  --red-dark: #95111a;
  --white: #ffffff;
  --max: 1240px;
  --radius: 2px;
  --shadow: 0 20px 60px rgba(17, 17, 17, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bone);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--red);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

::selection {
  background: var(--red);
  color: var(--white);
}

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(246, 243, 236, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-grid;
  grid-template-columns: 12px auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  grid-row: 1 / 3;
  width: 12px;
  height: 100%;
  min-height: 38px;
  background: var(--red);
}

.brand-name {
  align-self: end;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.13em;
}

.brand-sub {
  align-self: start;
  margin-top: 4px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.61rem;
  line-height: 1;
  letter-spacing: 0.16em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:not(.nav-cta):hover {
  color: var(--red);
}

.nav-cta {
  padding: 10px 15px;
  border: 1px solid var(--ink);
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 160ms ease;
}

.hero {
  position: relative;
  overflow: hidden;

  padding:
    clamp(74px, 9vw, 138px)
    0
    clamp(84px, 10vw, 150px);

  background:
    linear-gradient(
      rgba(17, 17, 17, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(17, 17, 17, 0.035) 1px,
      transparent 1px
    ),
    var(--bone);

  background-size: 48px 48px;
}


/*
 * Scanlines muy sutiles.
 * Dan textura técnica sin oscurecer el fondo.
 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 4px,
      rgba(17, 17, 17, 0.018) 5px
    );

  opacity: 0.65;
  pointer-events: none;
}


/*
 * Sistema de targeting / observabilidad.
 */
.hero::after {
  content: "";
  position: absolute;
  right: clamp(-220px, -9vw, -80px);
  bottom: clamp(-320px, -18vw, -150px);
  width: clamp(520px, 48vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:

    /* eje vertical */
    linear-gradient(
      90deg,
      transparent calc(50% - 0.5px),
      rgba(195, 25, 36, 0.18) calc(50% - 0.5px),
      rgba(195, 25, 36, 0.18) calc(50% + 0.5px),
      transparent calc(50% + 0.5px)
    ),

    /* eje horizontal */
    linear-gradient(
      0deg,
      transparent calc(50% - 0.5px),
      rgba(195, 25, 36, 0.18) calc(50% - 0.5px),
      rgba(195, 25, 36, 0.18) calc(50% + 0.5px),
      transparent calc(50% + 0.5px)
    ),

    /* círculos interiores */
    radial-gradient(
      circle at center,

      transparent 0 17%,

      rgba(195, 25, 36, 0.30) 17.15%,
      rgba(195, 25, 36, 0.30) 17.35%,

      transparent 17.55% 34%,

      rgba(195, 25, 36, 0.18) 34.15%,
      rgba(195, 25, 36, 0.18) 34.35%,

      transparent 34.55% 50%,

      rgba(195, 25, 36, 0.12) 50.15%,
      rgba(195, 25, 36, 0.12) 50.35%,

      transparent 50.55%
    );

  border: 1px solid rgba(195, 25, 36, 0.22);

  box-shadow:
    0 0 0 38px rgba(195, 25, 36, 0.018),
    0 0 0 76px rgba(195, 25, 36, 0.012);

  transform: rotate(-8deg);

  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow span {
  margin-right: 12px;
  color: var(--red);
}

.hero h1,
.section-heading h2,
.principles h2,
.about h2,
.cta h2 {
  margin: 0;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(3.2rem, 7vw, 7rem);
}

.hero-lead {
  max-width: 720px;
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--red);
  color: var(--white);
}

.button-primary:hover {
  background: var(--red-dark);
}

.button-ghost {
  border-color: var(--ink);
}

.button-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-signals li::before {
  content: "/";
  margin-right: 8px;
  color: var(--red);
}

.hero-console {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.console-topline,
.console-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.console-topline {
  color: #aaa59d;
}

.status {
  color: var(--white);
}

.status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(195, 25, 36, 0.15);
}

.console-score {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 70px;
}

.score-label {
  max-width: 120px;
  color: #aaa59d;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.console-score strong {
  color: var(--red);
  font-size: clamp(3.3rem, 6vw, 5.3rem);
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.console-rule {
  height: 1px;
  margin: 30px 0 12px;
  background: #393735;
}

.console-list {
  margin: 0;
}

.console-list div {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid #393735;
}

.console-list dt {
  color: #8f8a83;
  font-size: 0.74rem;
}

.console-list dd {
  margin: 0;
  text-align: right;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.console-foot {
  margin: 34px 0 0;
  color: #aaa59d;
}

.proof-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.proof-grid p {
  margin: 0;
  padding: 24px 26px;
  border-left: 1px solid var(--line);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
}

.proof-grid p:last-child {
  border-right: 1px solid var(--line);
}

.section {
  padding: clamp(90px, 10vw, 150px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.55fr);
  column-gap: 80px;
  align-items: end;
  margin-bottom: 56px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2 {
  max-width: 820px;
  font-size: clamp(2.7rem, 5.5vw, 5.4rem);
}

.section-heading > p:last-child {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  grid-column: span 4;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.64);
  transition: background-color 180ms ease, transform 180ms ease;
}

.service-card:hover {
  position: relative;
  z-index: 1;
  background: var(--paper);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card-featured {
  grid-column: span 8;
  background: var(--red);
  color: var(--white);
}

.service-card-featured:hover {
  background: var(--red-dark);
}

.service-index {
  margin-bottom: auto;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
}

.service-card-featured .service-index {
  color: rgba(255, 255, 255, 0.68);
}

.service-card h3 {
  margin: 70px 0 14px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.service-card p {
  max-width: 450px;
  margin: 0 0 26px;
  color: var(--muted);
}

.service-card-featured p {
  color: rgba(255, 255, 255, 0.82);
}

.service-card a {
  margin-top: auto;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.service-card a span {
  color: var(--red);
}

.service-card-featured a span {
  color: var(--white);
}

.principles,
.evidence {
  padding: clamp(90px, 10vw, 150px) 0;
  background: var(--ink);
  color: var(--white);
}

.principles-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(60px, 10vw, 140px);
}

.eyebrow-dark {
  color: #8f8a83;
}

.principles h2 {
  font-size: clamp(3rem, 6vw, 6rem);
}

.principles-copy > p:last-child {
  max-width: 590px;
  margin: 34px 0 0;
  color: #b6b0a7;
  font-size: 1.05rem;
}

.principles-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #393735;
}

.principles-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid #393735;
}

.principles-list > li > span {
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
}

.principles-list h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.principles-list p {
  margin: 0;
  color: #aaa59d;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(60px, 10vw, 145px);
  align-items: start;
}

.about-heading {
  display: block;
  position: sticky;
  top: 120px;
  margin: 0;
}

.about-heading h2 {
  font-size: clamp(2.9rem, 5.5vw, 5.2rem);
}

.about-copy {
  max-width: 730px;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
}

.about-copy p {
  margin: 0;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--line);
}

.about-copy p + p {
  padding-top: 26px;
}

.evidence {
  background: #191817;
}

.section-heading-light h2 {
  color: var(--white);
}

.section-heading-light > p:last-child {
  color: #aaa59d;
}

.findings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #3a3734;
  border-left: 1px solid #3a3734;
}

.finding {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 50px);
  border-right: 1px solid #3a3734;
  border-bottom: 1px solid #3a3734;
  transition: background-color 180ms ease;
}

.finding:hover {
  background: #211f1d;
}

.finding-org {
  margin: 0 0 auto;
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.finding h3 {
  max-width: 520px;
  margin: 70px 0 30px;
  font-size: clamp(1.45rem, 2.35vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.finding a {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.finding a span {
  color: var(--red);
}

.cta {
  padding: clamp(70px, 8vw, 110px) 0;
  background: var(--red);
  color: var(--white);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: end;
}

.eyebrow-cta,
.eyebrow-cta span {
  color: rgba(255, 255, 255, 0.72);
}

.cta h2 {
  font-size: clamp(3rem, 6vw, 6rem);
}

.button-light {
  border-color: var(--white);
  background: var(--white);
  color: var(--red);
}

.button-light:hover {
  background: transparent;
  color: var(--white);
}

.site-footer {
  padding: 78px 0 28px;
  background: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 70px;
}

.footer-brand p {
  max-width: 360px;
  margin: 28px 0 0;
  color: var(--muted);
}

.footer-grid h2 {
  margin: 0 0 18px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li + li {
  margin-top: 10px;
}

.footer-grid li,
.footer-grid a {
  color: var(--muted);
  font-size: 0.93rem;
}

.footer-grid a:hover {
  color: var(--red);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .js .nav-toggle {
    display: block;
  }

  .js .site-nav {
    position: fixed;
    inset: 79px 0 auto;
    min-height: calc(100dvh - 79px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px 20px 50px;
    background: var(--bone);
    border-top: 1px solid var(--line);
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
  }

  .site-nav .nav-cta {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid var(--ink);
    text-align: center;
  }

  .hero-grid,
  .principles-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-console {
    max-width: 680px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading > p:last-child {
    max-width: 650px;
  }

  .service-card,
  .service-card-featured {
    grid-column: span 6;
  }

  .about-heading {
    position: static;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cta-grid .button {
    justify-self: start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .header-inner {
    min-height: 70px;
  }

  .js .site-nav {
    inset: 71px 0 auto;
    min-height: calc(100dvh - 71px);
  }

  .hero {
    padding-top: 66px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid p,
  .proof-grid p:last-child {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .service-card,
  .service-card-featured {
    grid-column: span 12;
    min-height: 290px;
  }

  .findings-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
