/* Taíno Labs — survey plate
   Archaeological line-drawing on gridded paper. Line, not fill.
   The grid is always visible. The K is the only warm color. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    repeating-linear-gradient(var(--line-grid) 0 1px, transparent 1px var(--grid)),
    repeating-linear-gradient(90deg, var(--line-grid) 0 1px, transparent 1px var(--grid));
  background-size: var(--grid) var(--grid);
}

img, svg { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay); }

::selection { background: var(--teal-light); color: var(--ink); }

.wrap { width: min(100% - 2 * var(--gutter), 1080px); margin-inline: auto; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 6.5vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 600; }
p { max-width: var(--measure); }

.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--ink-soft);
  line-height: 1.55;
}
.mono { font-family: var(--mono); }
.teal { color: var(--teal); }
.clay { color: var(--clay); }

/* ---------- the floating guanín K ---------- */
.k {
  font-family: var(--mono);
  color: var(--guanin);
  font-weight: 600;
  display: inline-block;
  animation: float 6s ease-in-out infinite;
}
.k-sup { vertical-align: super; font-size: 0.5em; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-0.18em) rotate(-1.5deg); }
}
@media (prefers-reduced-motion: reduce) { .k { animation: none; } }

/* ---------- specimen label ---------- */
.specimen {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 8px;
}
.specimen::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--teal);
}

/* ---------- scale bar ---------- */
.scale-bar {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin: 24px 0 8px;
}
.scale-bar span {
  display: block;
  height: 8px;
  border: 1px solid var(--ink);
  width: 48px;
}
.scale-bar span:nth-child(odd) { background: var(--ink); }
.scale-bar span:nth-child(even) { background: var(--paper); }
.scale-bar-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--ink-faint);
  margin-left: 8px;
  letter-spacing: 0.04em;
}

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 0.15em;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: clamp(12px, 2.5vw, 28px); align-items: center; }
.nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-faint);
  transition: color 0.15s;
}
.nav a:hover { color: var(--teal-deep); }
@media (max-width: 640px) { .nav a.hide-sm { display: none; } }

/* ---------- hero ---------- */
.hero {
  padding: clamp(72px, 14vh, 160px) 0 clamp(48px, 8vh, 80px);
  position: relative;
  border-bottom: none;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 860px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-layout .glyph-plate { max-width: 260px; margin: 0 auto 16px; order: -1; }
}
.hero h1 { margin-bottom: 0.35em; }
.hero .lead { margin-bottom: 1.6em; }

/* glyph as survey specimen */
.glyph-plate {
  position: relative;
  padding: 24px;
  border: 1px solid var(--ink);
}
.glyph-plate::before {
  content: "SPEC. 001";
  position: absolute;
  top: 8px;
  right: 12px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}
.glyph-plate::after {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 24px;
  right: 24px;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 12px,
    var(--paper) 12px 24px
  );
}
.glyph-plate img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: var(--r);
  border: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  transition: background 0.15s, transform 0.1s;
}
.btn:hover {
  color: var(--paper);
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--paper-warm);
  color: var(--ink);
  border-color: var(--ink);
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- sections ---------- */
section {
  padding: clamp(56px, 9vh, 96px) 0;
  border-top: 1px solid var(--line);
  position: relative;
}

/* annotation line: thin teal horizontal with measurement */
.annotation {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(24px, 3.5vw, 40px);
}
.annotation::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--teal);
}
.annotation span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ---------- dual AI definition ---------- */
.dual {
  display: grid;
  gap: 0;
  margin: 28px 0;
  max-width: 560px;
}
.dual div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.dual dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}
.dual dd { color: var(--ink-soft); }
.dual b { color: var(--ink); font-weight: 600; }

/* ---------- mission band ---------- */
.band {
  background: var(--ink);
  color: var(--paper);
  background-image: none;
}
.band .annotation span { color: rgba(255,255,255,0.5); }
.band .annotation::before { background: rgba(255,255,255,0.35); }
.band .lead { color: rgba(255,255,255,0.78); }

.split {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 1px;
  margin: 28px 0;
  border: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
}
.split > div { padding: 20px 22px; }
.split .social { background: rgba(14,124,134,0.2); }
.split .profit { background: rgba(200,145,47,0.12); }
.split .pct {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}
.split .lbl {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.65);
}
@media (max-width: 620px) { .split { grid-template-columns: 1fr; } }

/* ---------- three legs grid ---------- */
.legs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--ink);
  overflow: hidden;
  background: var(--ink);
}
@media (max-width: 800px) { .legs { grid-template-columns: 1fr; } }
.leg {
  background: var(--paper);
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.leg-glyph {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  margin-bottom: 4px;
  opacity: 0.7;
}
.leg h3 { color: var(--ink); }
.leg .tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--clay);
  letter-spacing: 0.02em;
}
.leg p { color: var(--ink-soft); font-size: 0.94rem; flex: 1; }
.leg a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- partners shelf ---------- */
.shelf {
  margin-top: 20px;
  border: 1px dashed var(--line);
  padding: 24px;
  position: relative;
}
.shelf::before {
  content: "PARTNERS";
  position: absolute;
  top: -9px;
  left: 20px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  background: var(--paper);
  padding: 0 8px;
}

/* ---------- areíto block ---------- */
.areito-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
@media (max-width: 820px) { .areito-block { grid-template-columns: 1fr; } }
.areito-block .warm {
  font-family: var(--body);
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  line-height: 1.3;
  color: var(--clay);
  font-weight: 400;
  max-width: 20ch;
}

/* ---------- north star ---------- */
.north-star {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.north-star .count {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.north-star .label {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 32ch;
}

/* ---------- status chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  padding: 5px 12px;
  line-height: 1.4;
}
.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* ---------- closing ---------- */
.close-block {
  text-align: center;
  padding: clamp(64px, 10vh, 120px) 0;
}
.close-block .pull {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  max-width: 22ch;
  margin: 0 auto 1.4em;
}

/* ---------- product card ---------- */
.product-card {
  border: 1px solid var(--ink);
  padding: clamp(24px, 4vw, 40px);
  max-width: 640px;
  position: relative;
}
.product-card::before {
  content: "SPEC. 002";
  position: absolute;
  top: 8px;
  right: 12px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}
.product-specs {
  display: grid;
  gap: 0;
  margin: 20px 0;
}
.product-specs div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.product-specs dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
}
.product-specs dd { color: var(--ink-soft); font-size: 0.92rem; }
.product-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--ink);
}
.price-amount {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}
.price-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--ink);
  padding: 40px 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  background-image: none;
  background: var(--paper-warm);
}
.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.foot-lines { display: flex; flex-direction: column; gap: 4px; }
.foot-lines .mono { font-size: 0.72rem; color: var(--ink-faint); }

/* ---------- compass rose (nav anchor) ---------- */
.compass {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  z-index: 10;
  opacity: 0.3;
  transition: opacity 0.2s;
}
.compass:hover { opacity: 0.7; }
@media (max-width: 640px) { .compass { display: none; } }

/* ---------- keyboard focus ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn:focus-visible { outline-color: var(--guanin); }
.band :focus-visible { outline-color: var(--guanin); }

/* ---------- prose (long docs) ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin: 1.6em 0 0.5em; }
.prose h3 { margin: 1.4em 0 0.4em; }
.prose p { margin: 0.9em 0; color: var(--ink-soft); }
.prose blockquote {
  border-left: 2px solid var(--teal);
  padding-left: 18px;
  margin: 1.2em 0;
  color: var(--ink-faint);
  font-style: italic;
}

/* ---------- utility ---------- */
.mt { margin-top: 1.2em; }
.mt-2 { margin-top: 2em; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }

/* ---------- reveal on scroll ---------- */
.reveal > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible > * { opacity: 1; transform: none; }
.reveal > *:nth-child(2) { transition-delay: 0.08s; }
.reveal > *:nth-child(3) { transition-delay: 0.16s; }
.reveal > *:nth-child(4) { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal > * { opacity: 1; transform: none; transition: none; }
}
