:root {
  --ink: #0d0c0a;
  --paper: #f6efe0;
  --paper-soft: #fff9ec;
  --copper: #b45f35;
  --gold: #d8b765;
  --cyan: #32d6c9;
  --violet: #6f50ff;
  --green: #7bcf8b;
  --line: rgba(13, 12, 10, 0.22);
  --shadow: 0 28px 90px rgba(13, 12, 10, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(13, 12, 10, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(13, 12, 10, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 38px 38px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(50, 214, 201, 0.18), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(216, 183, 101, 0.24), transparent 26%),
    radial-gradient(circle at 50% 88%, rgba(111, 80, 255, 0.13), transparent 28%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

#field {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.86;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(13, 12, 10, 0.14);
  background: rgba(246, 239, 224, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand span {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 850;
}

.brand strong,
nav a,
.eyebrow,
.section-kicker,
.hero-panel span,
.metrics span,
.proof-timeline time {
  font: 800 0.76rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

nav a {
  padding: 9px 11px;
  border: 1px solid rgba(13, 12, 10, 0.18);
  background: rgba(255, 249, 236, 0.55);
}

nav a:hover {
  background: var(--ink);
  color: var(--paper);
}

main {
  width: min(1460px, 100%);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 68vh;
  display: grid;
  align-items: end;
  padding: clamp(56px, 6vw, 88px) clamp(18px, 5vw, 78px) 38px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 7vw 3vw auto auto;
  width: min(620px, 48vw);
  aspect-ratio: 1;
  z-index: -1;
  border: 1px solid rgba(255, 249, 236, 0.4);
  background:
    conic-gradient(from 120deg, rgba(50, 214, 201, 0.18), rgba(216, 183, 101, 0.44), rgba(111, 80, 255, 0.2), rgba(50, 214, 201, 0.18));
  filter: blur(6px);
  clip-path: polygon(50% 0, 88% 16%, 100% 54%, 77% 90%, 35% 98%, 5% 68%, 9% 24%);
}

.hero-media {
  position: absolute;
  right: clamp(-90px, -3vw, -20px);
  bottom: -9vh;
  z-index: -1;
  width: min(660px, 50vw);
  opacity: 0.88;
  filter: drop-shadow(0 36px 75px rgba(13, 12, 10, 0.28));
}

.hero-media img {
  width: 100%;
  transform: translateZ(0);
}

.hero-copy {
  width: min(780px, 100%);
  padding-bottom: clamp(112px, 15vh, 150px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--copper);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.8rem, 8.8vw, 8.4rem);
  font-weight: 500;
  line-height: 0.84;
  letter-spacing: 0;
}

.hero-line {
  width: min(700px, 100%);
  margin-bottom: 14px;
  color: rgba(13, 12, 10, 0.86);
  font-size: clamp(1.12rem, 1.55vw, 1.38rem);
  line-height: 1.55;
}

.mode-line {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 26px;
  border-left: 3px solid var(--copper);
  padding: 6px 0 6px 12px;
  color: rgba(13, 12, 10, 0.82);
  font: 800 0.82rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink);
  padding: 12px 15px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
}

.hero-actions a + a {
  background: rgba(255, 249, 236, 0.62);
  color: var(--ink);
}

.hero-actions a:hover {
  border-color: var(--copper);
  background: var(--copper);
  color: var(--paper);
}

.hero-panel {
  position: absolute;
  right: clamp(18px, 5vw, 78px);
  bottom: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(720px, calc(100% - 36px));
  border: 1px solid rgba(13, 12, 10, 0.16);
  background: rgba(255, 249, 236, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-panel div {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid rgba(13, 12, 10, 0.12);
}

.hero-panel div:last-child {
  border-right: 0;
}

.hero-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--copper);
}

.hero-panel strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
}

.section {
  margin: 0 clamp(18px, 5vw, 78px) 34px;
  padding: clamp(44px, 6vw, 82px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: end;
  margin-bottom: 28px;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5.3vw, 6.4rem);
  font-weight: 500;
  line-height: 0.95;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

p {
  color: rgba(13, 12, 10, 0.72);
  font-size: 1.02rem;
  line-height: 1.6;
}

.signal-band {
  border-top: 1px solid rgba(13, 12, 10, 0.16);
  padding-top: 30px;
}

.principles,
.profile-grid,
.proof-timeline {
  display: grid;
  gap: 14px;
}

.principles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.principles article,
.profile-grid article,
.proof-timeline article {
  min-width: 0;
  border: 1px solid rgba(13, 12, 10, 0.16);
  background: rgba(255, 249, 236, 0.74);
  box-shadow: 0 14px 34px rgba(13, 12, 10, 0.08);
}

.principles article {
  padding: 22px;
}

.principles span {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--copper);
  font: 800 0.78rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tech-section {
  display: grid;
  grid-template-columns: minmax(290px, 0.72fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.tech-visual {
  min-width: 0;
  border: 1px solid rgba(13, 12, 10, 0.16);
  background:
    radial-gradient(circle at 20% 18%, rgba(50, 214, 201, 0.18), transparent 24%),
    rgba(13, 12, 10, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tech-visual img {
  width: 100%;
  mix-blend-mode: screen;
  opacity: 0.82;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.metrics div {
  min-width: 0;
  border-top: 1px solid rgba(13, 12, 10, 0.24);
  padding-top: 16px;
}

.metrics strong {
  display: block;
  margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 0.96;
}

.metrics span {
  color: rgba(13, 12, 10, 0.6);
}

.profile-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-grid article {
  padding: 20px;
}

.profile-grid article:nth-child(2) {
  background: rgba(50, 214, 201, 0.12);
}

.profile-grid article:nth-child(3) {
  background: rgba(216, 183, 101, 0.16);
}

.profile-grid article:nth-child(4) {
  background: rgba(111, 80, 255, 0.1);
}

.card-mark {
  display: grid;
  width: 46px;
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 48px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
}

.proof-section {
  border-top: 1px solid rgba(13, 12, 10, 0.16);
}

.proof-timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-timeline article {
  position: relative;
  padding: 22px;
}

.proof-timeline article::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22px;
  width: 62px;
  height: 3px;
  background: var(--copper);
}

.proof-timeline time {
  display: block;
  margin-bottom: 42px;
  color: var(--copper);
}

.sources {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 72px;
  border-top: 1px solid rgba(13, 12, 10, 0.16);
}

.sources ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sources a {
  display: block;
  border: 1px solid rgba(13, 12, 10, 0.16);
  background: rgba(255, 249, 236, 0.74);
  padding: 15px 16px;
  font-weight: 800;
}

.sources a:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.site-header,
.hero-panel,
.principles article,
.profile-grid article,
.proof-timeline article,
.sources a,
.tech-visual {
  backdrop-filter: blur(14px);
}

.hero::after {
  content: "";
  position: absolute;
  left: clamp(18px, 5vw, 78px);
  bottom: 26px;
  width: min(220px, 34vw);
  height: 1px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(13, 12, 10, 0.34), transparent);
  opacity: 0.28;
  transform: rotate(-2deg);
}

.profile-grid article,
.proof-timeline article {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.profile-grid article:hover,
.proof-timeline article:hover {
  border-color: rgba(180, 95, 53, 0.34);
  box-shadow: 0 18px 48px rgba(13, 12, 10, 0.11);
  transform: translateY(-2px);
}

.gato-negro {
  position: fixed;
  left: clamp(10px, 1.6vw, 22px);
  bottom: clamp(9px, 1.5vw, 20px);
  z-index: 35;
  width: 29px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0.1;
  filter: drop-shadow(0 1px 1px rgba(246, 239, 224, 0.72));
  transform: translate(-6px, 10px);
  transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease;
}

.gato-negro:hover,
.gato-negro:focus-visible,
body.gato-awake .gato-negro {
  opacity: 0.78;
  transform: translateY(0);
  outline: 0;
}

.gato-body,
.gato-head,
.gato-tail {
  position: absolute;
  display: block;
  background: var(--ink);
}

.gato-body {
  right: 6px;
  bottom: 2px;
  width: 18px;
  height: 11px;
  border-radius: 12px 12px 8px 8px;
}

.gato-head {
  right: 0;
  bottom: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.gato-head::before,
.gato-head::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-bottom: 7px solid var(--ink);
  border-left: 4px solid transparent;
}

.gato-head::before {
  left: -1px;
  transform: rotate(-22deg);
}

.gato-head::after {
  right: -1px;
  transform: rotate(24deg);
}

.gato-tail {
  left: 0;
  bottom: 10px;
  width: 14px;
  height: 5px;
  border-radius: 999px;
  transform: rotate(-32deg);
  transform-origin: right center;
}

.gato-tail::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -6px;
  width: 5px;
  height: 12px;
  border: 4px solid var(--ink);
  border-right: 0;
  border-bottom: 0;
  border-radius: 999px 0 0 0;
  background: transparent;
}

body.gato-awake::before {
  background:
    radial-gradient(circle at 18% 20%, rgba(50, 214, 201, 0.22), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(216, 183, 101, 0.3), transparent 26%),
    radial-gradient(circle at 50% 88%, rgba(111, 80, 255, 0.18), transparent 28%);
}

body.gato-awake .hero-panel {
  box-shadow: 0 28px 90px rgba(13, 12, 10, 0.2), 0 0 0 1px rgba(50, 214, 201, 0.22);
}

@media (max-width: 1040px) {
  .hero {
    min-height: 74vh;
  }

  .hero-media {
    width: min(560px, 66vw);
    opacity: 0.32;
  }

  .hero-panel,
  .section-head,
  .tech-section,
  .sources {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 10px;
  }

  .principles,
  .profile-grid,
  .proof-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    padding: 12px;
  }

  .brand strong {
    display: none;
  }

  nav {
    flex: 1;
  }

  nav a {
    flex: 1 1 42%;
    text-align: center;
  }

  .hero {
    min-height: 72vh;
    padding: 50px 14px 24px;
  }

  .hero::before {
    inset: 20vw -12vw auto auto;
    width: 76vw;
  }

  .hero-media {
    right: -110px;
    bottom: 0;
    width: 470px;
    opacity: 0.22;
  }

  .hero-copy {
    padding-bottom: 20px;
  }

  h1 {
    font-size: clamp(3.7rem, 18vw, 5.6rem);
  }

  .hero-panel {
    display: none;
  }

  .section {
    margin-inline: 14px;
    padding: 42px 0;
  }

  h2 {
    font-size: clamp(2.25rem, 12vw, 3.9rem);
  }

  .principles,
  .profile-grid,
  .proof-timeline,
  .metrics {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
