@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/plex-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/plex-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/plex-sans-700.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/plex-mono-500.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/bricolage-500.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/bricolage-600.woff2") format("woff2");
}

:root {
  --bg: #070708;
  --bg-2: #101012;
  --ink: #f4f4f2;
  --muted: #b5b5b2;
  --dim: #8a8a86;
  --accent: #8a3e2a;
  --accent-deep: #6e2c22;
  --amber: #8a3e2a;
  --accent-text: #c65e43;
  --line: rgba(244, 244, 242, 0.14);
  --line-strong: rgba(244, 244, 242, 0.32);
  --header: rgba(7, 7, 8, 0.9);
  --card: rgba(16, 16, 18, 0.78);
  --paper: #f1eee7;
  --ink-paper: #1a1210;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --grain: url("/marca/grain.png");
  --gutter: clamp(20px, 5vw, 72px);
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f4f3ef;
  --bg-2: #e8e6e0;
  --ink: #121214;
  --muted: #4c4c50;
  --dim: #7a7a76;
  --accent: #8a3e2a;
  --accent-deep: #6e2c22;
  --amber: #8a3e2a;
  --accent-text: #8a3e2a;
  --line: rgba(18, 18, 20, 0.12);
  --line-strong: rgba(18, 18, 20, 0.28);
  --header: rgba(244, 243, 239, 0.92);
  --card: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 40px rgba(16, 16, 18, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    var(--grain),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-color: var(--bg);
  color: var(--ink);
  font: 17px/1.5 var(--font);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }
a { color: inherit; }
button, a, input, textarea { font: inherit; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 12px var(--gutter);
  background: var(--header);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand .mark {
  width: 32px;
  height: 42px;
  display: block;
  flex: none;
  object-fit: contain;
}
.brand .mark.for-light { display: none; }
[data-theme="light"] .brand .mark.for-dark { display: none; }
[data-theme="light"] .brand .mark.for-light { display: block; }
.site-footer .mark {
  width: 26px;
  height: 34px;
  display: block;
  object-fit: contain;
}
.site-footer .mark.for-light { display: none; }
[data-theme="light"] .site-footer .mark.for-dark { display: none; }
[data-theme="light"] .site-footer .mark.for-light { display: block; }
.site-footer > div:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
}
.site-footer > div:first-child p { flex-basis: 100%; }
.brand strong {
  font: 600 16px/1 var(--font);
  letter-spacing: 0.08em;
  font-weight: 600;
}
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.go,
.site-nav a.go:hover { color: var(--bg); }
.theme-toggle, .menu-toggle {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  min-height: 36px;
  padding: 0 12px;
  cursor: pointer;
}
.menu-toggle { display: none; }
.go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--ink);
}
.go.quiet {
  background: transparent;
  color: var(--ink);
}
.go:hover { background: var(--ink); color: var(--bg); border-color: var(--accent); }
.go.quiet:hover { background: transparent; color: var(--ink); border-color: var(--accent); }

.hero, .wall {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero {
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 56px var(--gutter);
}
.hero-copy { padding-bottom: 0; }
.hero-copy, .wall-copy {
  position: relative;
  z-index: 2;
  width: min(640px, 48vw);
}
.kicker {
  margin: 0 0 16px;
  color: var(--accent-text);
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, h3 { text-wrap: balance; }
h1 {
  margin: 0;
  font: 600 clamp(52px, 6.2vw, 92px)/0.92 var(--display);
  letter-spacing: -0.045em;
}
h1 em, h2 em {
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
}
.lede {
  max-width: 46ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.eagle {
  position: absolute;
  z-index: 1;
  margin: 0;
  pointer-events: none;
  inset: 2% 1.5% 4% 42%;
}
.eagle img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: right center;
}
.eagle { overflow: hidden; }
.eagle img.for-light { display: none; }
[data-theme="light"] .eagle img.for-dark { display: none; }
[data-theme="light"] .eagle img.for-light { display: block; }
[data-theme="light"] .eagle {
  filter: none;
}

.rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rail span {
  padding: 18px var(--gutter);
  color: var(--muted);
  font: 500 13px/1.4 var(--mono);
  letter-spacing: 0.04em;
  border-right: 1px solid var(--line);
}
.rail span:last-child { border-right: 0; }
.rail i {
  display: block;
  color: var(--accent-text);
  font-style: normal;
  margin-bottom: 6px;
}

section { padding: 88px var(--gutter); }
.section-head { max-width: 720px; margin-bottom: 36px; }
h2 {
  margin: 0;
  font: 600 clamp(32px, 3.4vw, 52px)/0.98 var(--display);
  letter-spacing: -0.04em;
}
.sub { margin: 12px 0 0; color: var(--muted); max-width: 58ch; }

.cards {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 16px;
}
.cards.two { grid-template-columns: 1.2fr 0.8fr; }
article.card, .card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  text-decoration: none;
  color: inherit;
}
article.card:hover, a.card:hover { border-color: var(--line-strong); }
.card .reg {
  color: var(--accent-text);
  font: 500 11px/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card h3 {
  margin: 14px 0 8px;
  font: 600 26px/1.1 var(--display);
  letter-spacing: -0.03em;
}
.card p { margin: 0; color: var(--muted); }
.card .meta {
  margin-top: auto;
  padding-top: 22px;
  color: var(--dim);
  font: 500 12px/1.4 var(--mono);
}
.card .door {
  margin-top: 14px;
  color: var(--ink);
  font-size: 14px;
}

.wall {
  min-height: 720px;
  display: flex;
  align-items: flex-end;
  padding: 0;
  border-top: 1px solid var(--line);
}
.wall .eagle {
  inset: 0 -1% auto 55%;
  height: 100%;
}
.wall .eagle img { object-fit: contain; object-position: right top; }
.wall-copy {
  width: min(460px, 42vw);
  margin: 0 0 11vh var(--gutter);
  padding: 24px 0;
}

.system {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(7, 7, 8, 0.2), rgba(7, 7, 8, 0.72)),
    url("/marca/field.png") right center / 72% auto no-repeat;
}
[data-theme="light"] .system {
  background:
    linear-gradient(180deg, rgba(244, 243, 239, 0.55), rgba(244, 243, 239, 0.88)),
    url("/marca/field.png") right center / 72% auto no-repeat;
}
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.steps strong { display: block; margin-bottom: 6px; }
.steps span { color: var(--muted); }

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  border-top: 1px solid var(--line);
}
.channels { display: grid; gap: 12px; margin-top: 28px; }
.channels a {
  display: grid;
  gap: 2px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.channels small {
  color: var(--accent-text);
  font: 500 11px/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
form {
  display: grid;
  gap: 12px;
  align-content: start;
}
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  padding: 12px 14px;
}
textarea { min-height: 120px; resize: vertical; }
.note { color: var(--dim); font-size: 13px; margin: 0; }

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding: 36px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.site-footer strong {
  color: var(--ink);
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 14px;
}
.site-footer nav { display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.legal-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.page {
  padding: 56px var(--gutter) 88px;
}
.page-narrow { max-width: 760px; }
.page h1 {
  font-size: clamp(40px, 5vw, 64px);
  margin: 10px 0 8px;
}
.page h2 {
  font-size: 26px;
  margin: 36px 0 10px;
}
.page p, .page li { color: var(--muted); }
.page strong { color: var(--ink); font-weight: 600; }
.updated { color: var(--dim); font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; }

.killspy-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0 24px;
}
.terminal {
  border: 1px solid var(--line-strong);
  background: #070b0f;
  color: #d7ecec;
  padding: 18px 18px 22px;
  font: 13px/1.55 var(--mono);
  box-shadow: var(--shadow);
}
[data-theme="light"] .terminal { background: #10181c; }
.terminal .bar { color: var(--dim); margin-bottom: 12px; }
.terminal .cmd { color: var(--accent); }
.terminal .hit { color: var(--accent); }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 18px;
    background: var(--header);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a, .theme-toggle { padding: 12px 0; }
  .site-nav .go { padding: 12px 14px; }
  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 12px var(--gutter) 36px;
  }
  .hero-copy, .wall-copy, .wall .wall-copy { width: 100%; }
  .hero .eagle {
    position: relative;
    inset: auto 8px 52% 8px;
    order: -1;
    width: auto;
    height: 280px;
    margin: 0 0 8px;
  }
  .hero .eagle img { object-position: right center; object-fit: contain; }
  .brand .mark { width: 30px; height: 40px; margin-right: -4px; }
  .wall { min-height: 0; display: block; padding-top: 0; }
  .wall .eagle {
    position: relative;
    inset: auto;
    width: 100%;
    height: 460px;
    margin: 0;
  }
  .wall-copy { margin: 0; padding: 8px var(--gutter) 56px; }
  .rail, .cards, .cards.two, .steps, .contact, .site-footer, .killspy-hero {
    grid-template-columns: 1fr;
  }
  .rail span { border-right: 0; border-bottom: 1px solid var(--line); }
  section { padding: 64px var(--gutter); }
  .legal-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
