/* Javali Virtual — landing page styles.
   Palette: tusk ivory, bristle ink, blaze orange, moss for the lab band. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --paper: #f4efe4;
  --paper-2: #e9e1d0;
  --ink: #1b1713;
  --ink-soft: #564c42;
  --rule: rgb(27 23 19 / 0.18);
  --accent: #e04e1b;
  --on-accent: #1b1713;
  --moss: #22382a;
  --on-moss: #eef0e3;
  /* The contact band inverts the page, so its accent has to invert too. */
  --band-accent: #ff6a33;

  --sans: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 84rem;
  --radius: 0.6rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #13100d;
    --paper-2: #221d18;
    --ink: #f1eadc;
    --ink-soft: #b3a899;
    --rule: rgb(241 234 220 / 0.2);
    --accent: #ff6a33;
    --moss: #1c2f23;
    --band-accent: #c7400d;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.2rem;
}

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
}

.skip:focus {
  top: 0.75rem;
}

/* ── Mark ─────────────────────────────────────────────── */

.mark {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.m-head {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linejoin: round;
}

.m-face {
  fill: var(--mark-face, var(--paper));
}

.m-nostril {
  fill: currentColor;
}

.m-eye {
  fill: var(--mark-eye, var(--band-accent));
}

/* ── Header ───────────────────────────────────────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand .mark {
  width: 2rem;
  height: 2rem;
}

.nav,
.lang,
.label,
.eyebrow,
.tags,
.flow,
.exp__head,
.exp__foot,
.copy,
.def__grammar {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display: none;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.nav a {
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  border-bottom-color: var(--accent);
}

.lang {
  display: inline-flex;
  padding: 0.2rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.lang a {
  padding: 0.3rem 0.6rem;
  border-radius: 0.4rem;
  text-decoration: none;
}

.lang a[aria-current] {
  background: var(--ink);
  color: var(--paper);
}

.lang a:not([aria-current]):hover {
  background: var(--paper-2);
}

@media (min-width: 52rem) {
  .nav {
    display: flex;
  }
}

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}

.hero__layout {
  display: grid;
  gap: clamp(2.25rem, 6vw, 3.5rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* Sized so the longest line ("funcionar.") nearly fills a phone screen. */
.hero__title {
  font-size: clamp(4rem, 26vw, 15.5rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.9;
  letter-spacing: -0.012em;
}

.hero__title .line {
  display: block;
  white-space: nowrap;
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 90ms);
}

.dot {
  color: var(--accent);
}

.hero__mark {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.16em;
  vertical-align: -0.03em;
}

.hero__mark .m-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 6s 1.5s infinite;
}

.hero__side {
  display: grid;
  gap: 1.75rem;
  max-width: 34rem;
}

.lead {
  font-size: clamp(1.2rem, 1.55vw, 1.4rem);
  line-height: 1.35;
}

.def {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.6rem;
  align-items: baseline;
  max-width: 26rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

.def__term {
  font-size: 1.2rem;
  font-weight: 700;
}

.def__grammar {
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
}

.def__text {
  grid-column: 1 / -1;
  color: var(--ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn--solid {
  background: var(--ink);
  color: var(--paper);
}

.btn--solid:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn:active {
  transform: translateY(1px);
}

/* Wide screens: headline on the left, pitch and buttons beside its last line. */
@media (min-width: 64rem) {
  .hero__layout {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: clamp(2.5rem, 5vw, 5rem);
    align-items: end;
  }

  .hero__title {
    font-size: clamp(8rem, 17vw, 15.5rem);
  }

  .hero__side {
    justify-self: end;
    padding-bottom: 0.75rem;
  }
}

/* ── Ticker ───────────────────────────────────────────── */

.ticker {
  overflow: hidden;
  background: var(--accent);
  color: var(--on-accent);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 60s linear infinite;
}

.ticker__group {
  display: flex;
  flex-shrink: 0;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  padding-block: 0.85rem;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__item::after {
  content: "";
  width: 0.42em;
  height: 0.42em;
  margin-inline: 1.4em;
  background: currentColor;
  transform: rotate(45deg);
}

/* ── Sections ─────────────────────────────────────────── */

.section {
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
}

.label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.label__n {
  padding: 0.2rem 0.45rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0.3rem;
}

.h2 {
  max-width: 14em;
  margin-top: 1.1rem;
  font-size: clamp(2.5rem, 6.4vw, 5.75rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.94;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

/* ── Services ─────────────────────────────────────────── */

.svc-list {
  margin: clamp(2.5rem, 5vw, 4.5rem) 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--rule);
}

.svc {
  display: grid;
  gap: 1rem;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--rule);
}

.svc__title {
  font-size: clamp(1.85rem, 3.7vw, 3.2rem);
  font-weight: 700;
  font-stretch: 82%;
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.svc__body p {
  max-width: 46ch;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.7rem;
}

.tags li {
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--rule);
  border-radius: 0.35rem;
}

@media (min-width: 56rem) {
  .svc {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(3rem, 7vw, 7rem);
  }
}

/* ── Lab ──────────────────────────────────────────────── */

.lab {
  background: var(--moss);
  color: var(--on-moss);
}

.lab .label__n {
  background: var(--on-moss);
  color: var(--moss);
}

.lab__lead {
  max-width: 40ch;
  margin-top: 1.5rem;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.4;
  opacity: 0.86;
}

.lab__grid {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.exp {
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border-radius: 1.1rem;
}

.exp--main {
  background: var(--paper);
  color: var(--ink);
}

.exp--next {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  border: 2px dashed color-mix(in srgb, var(--on-moss) 40%, transparent);
}

.exp__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.exp__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-out infinite;
}

.exp__name {
  margin-top: clamp(1.5rem, 4vw, 3rem);
  font-size: clamp(2.9rem, 8vw, 6.5rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.88;
  letter-spacing: -0.012em;
}

.exp__next-name {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  font-stretch: 82%;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.exp__text {
  max-width: 44ch;
  margin-top: 1rem;
  font-size: 1.125rem;
}

.exp--next .exp__text {
  margin-top: 0.6rem;
  font-size: 1rem;
  opacity: 0.8;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.6rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.flow li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.flow li + li::before {
  content: "→";
  font-size: 0.95rem;
}

.flow span {
  padding: 0.45rem 0.7rem;
  background: var(--paper-2);
  border-radius: 0.4rem;
}

.flow li:last-child span {
  background: var(--ink);
  color: var(--paper);
}

.facts {
  display: grid;
  gap: 1rem;
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding-top: 0.85rem;
  border-top: 2px solid var(--ink);
  line-height: 1.4;
}

.exp__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
}

.exp__domain {
  font-weight: 600;
}

.chip {
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 44rem) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 62rem) {
  .lab__grid {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  }
}

/* ── Method ───────────────────────────────────────────── */

.steps {
  display: grid;
  gap: 2.25rem 1.5rem;
  margin: clamp(2.5rem, 5vw, 4.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.step {
  padding-top: 0.9rem;
  border-top: 2px solid var(--ink);
}

.step__n {
  display: block;
  font-size: clamp(3.25rem, 6vw, 4.75rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1;
  color: var(--accent);
}

.step__title {
  margin-top: 0.6rem;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.step p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
}

@media (min-width: 40rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
}

/* ── Contact ──────────────────────────────────────────── */

.contact {
  padding-block: clamp(4.5rem, 10vw, 9rem);
  background: var(--ink);
  color: var(--paper);
}

.contact .label__n {
  background: var(--paper);
  color: var(--ink);
}

.contact__title {
  margin-top: 1.25rem;
  font-size: clamp(2.75rem, 8.4vw, 8rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.9;
  letter-spacing: -0.012em;
}

.contact__title .line {
  display: block;
  text-wrap: balance;
}

.contact__title .line:last-child {
  color: var(--band-accent);
}

.contact__text {
  max-width: 38ch;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.4;
}

.contact__mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.contact__mail a {
  font-size: clamp(1.3rem, 4.7vw, 4.25rem);
  font-weight: 700;
  font-stretch: 82%;
  line-height: 1.1;
  letter-spacing: -0.022em;
  text-decoration: underline;
  text-decoration-color: var(--band-accent);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
  transition: color 0.15s;
}

.contact__mail a:hover {
  color: var(--band-accent);
}

.copy {
  padding: 0.6rem 0.85rem;
  border: 1.5px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.copy:hover {
  background: var(--paper);
  color: var(--ink);
}

.contact__note {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  opacity: 0.72;
}

/* ── Footer ───────────────────────────────────────────── */

.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.75rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.foot .brand {
  color: var(--ink);
}

/* ── 404 ──────────────────────────────────────────────── */

.lost {
  display: grid;
  min-height: 100svh;
  place-content: center;
  justify-items: start;
  gap: 2.5rem;
  padding: var(--gutter);
}

.lost .mark {
  width: 5rem;
  height: 5rem;
}

.lost__title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.95;
  letter-spacing: -0.012em;
}

.lost__item p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
}

.lost__item a {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 700;
}

/* ── Motion ───────────────────────────────────────────── */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.22em);
  }
}

@keyframes blink {
  0%,
  94%,
  100% {
    transform: scaleY(1);
  }
  97% {
    transform: scaleY(0.12);
  }
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 0.6rem transparent;
  }
}

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

  .hero__title .line,
  .hero__mark .m-eye,
  .ticker__track,
  .pulse {
    animation: none;
  }
}
