/* Hack to Market · landing v3: one screen, four entrance styles (foco, chevron, clasificado, cuenta).
   Ink #0B0B0C, bone #EDEAE0, one accent: acid lime #D2FF3F (a fill or a marker, never text on a light surface).
   Brand device: the lime chevron cell on the 2 / "to". Corner marks (visor) come from the thick "02 Grueso" emblem.
   No third-party requests: fonts are self-hosted (site/fonts/*.woff2, SIL OFL) or from the system stack.
   Earlier versions: site-src/landing-v2-una-pantalla/ and site-src/landing-v1-larga/. */

@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/BigShouldersDisplay-var.woff2") format("woff2");
}
/* local() first for the mono faces: skips the download when JetBrains Mono is installed. */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal; font-weight: 400; font-display: swap;
  src: local("JetBrains Mono Regular"), local("JetBrainsMono-Regular"), url("fonts/JetBrainsMono-var.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal; font-weight: 500; font-display: swap;
  src: local("JetBrains Mono Medium"), local("JetBrainsMono-Medium"), url("fonts/JetBrainsMono-var.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal; font-weight: 700; font-display: swap;
  src: local("JetBrains Mono Bold"), local("JetBrainsMono-Bold"), url("fonts/JetBrainsMono-var.woff2") format("woff2");
}

:root {
  --ink: #0B0B0C;
  --ink-2: #131315;
  --bone: #EDEAE0;
  --lime: #D2FF3F;
  --display: "Big Shoulders Display", "DIN Condensed", Bahnschrift, "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Surfaces: colours come from these tokens. The landing is .dark; the legal pages read on paper. */
body, .light {
  --bg: var(--bone); --fg: var(--ink); --fg-2: #55534B;
  --hair: #C9C5B4; --edge: #77746A;
  --fill: var(--lime); --on-fill: var(--ink); --ul: var(--ink); --focus: var(--ink);
}
.dark, .footer {
  --bg: var(--ink); --fg: var(--bone); --fg-2: #ABAAA2;
  --hair: #2C2C30; --edge: #707076;
  --fill: var(--lime); --on-fill: var(--ink); --ul: var(--lime); --focus: var(--lime);
}
.light, .dark, .footer { background: var(--bg); color: var(--fg); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Type roles on the landing: Big Shoulders Display = every message (headline, place, dates, sub), sized in steps and
   told apart by colour only; JetBrains Mono = interface only (button, form, footer). System sans only on the legal pages. */
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-rows: auto 1fr auto;
  font: 400 1rem/1.55 var(--sans);
  background: var(--bg); color: var(--fg);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; display: block; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

body.dark { font-family: var(--mono); }

a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--ul); text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
a:hover { background: var(--fill); color: var(--on-fill); text-decoration-color: currentColor; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.mono { font: 500 .8125rem/1.5 var(--mono); }
.dim { color: var(--fg-2); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 30;
  background: var(--lime); color: var(--ink); padding: .75rem 1rem;
  font: 700 .875rem/1 var(--mono); text-decoration: none;
}
.skip:focus { top: 1rem; }

h1, h2, h3 {
  margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 75%;
  line-height: .95; letter-spacing: 0; text-wrap: balance;
}
em { font-family: var(--display); font-style: normal; font-weight: 800; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.875rem; padding: .65rem 1.25rem;
  background: var(--fill); color: var(--on-fill); border: 2px solid var(--fill);
  font: 700 .9375rem/1.2 var(--mono); text-decoration: none; cursor: pointer;
}
.btn:hover { background: transparent; color: var(--fg); border-color: var(--fill); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--edge); }
.btn-ghost:hover { border-color: var(--fill); }

/* Header */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--fg); text-decoration: none; white-space: nowrap; }
.brand:hover { background: none; color: var(--fg); }
.brand-logo { display: block; width: auto; height: 1.75rem; }

/* Footer */
.footer { padding-block: .8rem 1rem; border-top: 1px solid var(--hair); color: var(--fg-2); font: 400 .75rem/1.6 var(--mono); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 2rem; }
.footer ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer .collab a { margin-left: .75rem; }

/* The one call to action: a terminal prompt that opens the waitlist */
.prompt {
  display: inline-grid; gap: .3rem; justify-items: start; text-align: left;
  padding: .95rem 1.25rem; background: var(--ink-2); color: var(--bone);
  border: 1px solid #707076; cursor: pointer;
  font: 500 clamp(1rem, 2.2vw, 1.25rem)/1.2 var(--mono);
}
.prompt:hover { border-color: var(--lime); }
.prompt .ps { color: var(--lime); }
.prompt .note { color: var(--fg-2); font: 400 .8125rem/1.2 var(--mono); }
.cursor { display: inline-block; width: .55em; height: 1em; margin-left: .2em; vertical-align: -.12em; background: var(--lime); animation: blink 1.1s steps(1) 4; }
@keyframes blink { 50% { opacity: 0; } }

/* Waitlist sheet (a modal dialog; without JavaScript it is simply shown on the page) */
dialog.sheet { padding: 0; border: 0; background: transparent; color: inherit; max-width: none; max-height: 100dvh; overflow: visible; }
dialog.sheet::backdrop { background: rgba(11, 11, 12, .9); }
.panel { color-scheme: dark; position: relative; border: 1px solid var(--edge); background: var(--ink-2); width: min(28rem, calc(100vw - 2rem)); }
.panel-head { padding: .65rem 3rem .65rem 1rem; border-bottom: 1px solid var(--hair); color: var(--fg-2); }
.panel-head .ps { color: var(--lime); }
.close {
  position: absolute; top: .35rem; right: .35rem; width: 2.5rem; height: 2.5rem; padding: 0;
  background: transparent; border: 0; color: var(--bone); cursor: pointer;
}
.close::before, .close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1.1rem; height: 2px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.close:hover { color: var(--lime); }
.panel-body { padding: clamp(.9rem, 2.4vh, 1.5rem) clamp(1rem, 3vw, 1.5rem) clamp(1rem, 2.6vh, 1.5rem); }
.panel-note { margin-bottom: clamp(.7rem, 2vh, 1.1rem); font-size: .9375rem; line-height: 1.45; color: var(--fg-2); }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: clamp(.6rem, 1.8vh, 1rem); }
label { font: 500 .8125rem/1.4 var(--mono); }
.opt { font-weight: 400; color: var(--fg-2); }
input[type="email"], select {
  width: 100%; min-height: 2.75rem; padding: .55rem .8rem; border-radius: 0;
  font: 400 .9375rem/1.4 var(--mono); color: var(--bone);
  background: var(--ink); border: 1px solid var(--edge);
}
input[type="email"]::placeholder { color: #8D8D93; }
input:focus, select:focus { border-color: var(--lime); }
.consent { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: clamp(.7rem, 2vh, 1.1rem); font: 400 .78125rem/1.5 var(--mono); color: var(--fg-2); }
.consent input { width: 1.25rem; height: 1.25rem; margin: .1rem 0 0; flex: none; accent-color: var(--lime); }
.panel .btn { width: 100%; }
.status { margin-top: .6rem; font-size: .875rem; line-height: 1.4; color: var(--fg-2); }
.status:empty { margin: 0; }
.success h3 { margin-bottom: .6rem; font-size: 2rem; font-weight: 500; }
.success p { color: var(--fg-2); font-size: .9375rem; }
.mail-note { margin-top: .9rem; font: 400 .78125rem/1.5 var(--mono); color: var(--fg-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Style switcher: preview only. Build with --clean to leave it out. */
.devbar {
  position: fixed; z-index: 20; top: .55rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .25rem; padding: .2rem; background: var(--ink-2); border: 1px solid var(--hair); font: 500 .75rem/1 var(--mono);
}
.devbar a { padding: .4rem .55rem; text-decoration: none; color: var(--fg-2); }
.devbar a[aria-current] { background: var(--lime); color: var(--ink); }
.devbar a:hover { background: var(--ink); color: var(--bone); }
.devbar a[aria-current]:hover { background: var(--lime); color: var(--ink); }

.facts { font: 500 clamp(1rem, 1.9vw, 1.25rem)/1.2 var(--mono); letter-spacing: .02em; color: var(--fg); }
.loc-line { font: 700 clamp(1.9rem, 4.2vw, 3rem)/1 var(--display); font-stretch: 75%; color: var(--fg); }
.edition { color: var(--fg); }
.edition .n { color: var(--lime); }

/* ------------------------------------------------------------------ shared motion */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes lock { from { opacity: 0; transform: scale(1.25); } }
@keyframes go { 0% { transform: translateX(-90px); opacity: 0; } 35% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes type { from { width: 0; } }

/* ------------------------------------------------------------------ 1 · FOCO: the emblem locks on, the cell arrives, "distribution" lands (about 1.7 s in all) */
.s-foco .stage { display: grid; align-content: center; justify-items: center; text-align: center; gap: clamp(.65rem, 2vh, 1.3rem); padding-block: clamp(.25rem, 1.5vh, 1rem); }
.s-foco .emblem { width: min(58vw, 24vh, 280px); height: auto; overflow: visible; }
.s-foco h1 { display: grid; justify-items: center; gap: .12em; font-size: clamp(3rem, min(15vw, 13.5vh), 8rem); font-weight: 800; line-height: .88; }
.s-foco h1 .key { display: block; letter-spacing: -.005em; }
.s-foco h1 .dot { color: var(--lime); }
/* Everything that is not "distribution." is the same face, in one small step, told apart by colour */
.s-foco h1 .pre, .s-foco h1 .post, .s-foco .facts, .s-foco .sub {
  font: 500 clamp(1.15rem, min(2vw, 2.9vh), 1.55rem)/1.1 var(--display); letter-spacing: .02em; color: var(--fg-2);
}
.s-foco .facts { color: var(--fg); }
.s-foco .loc-line { margin-top: .3rem; font-weight: 700; letter-spacing: .005em; }
.s-foco .sub { margin-top: -.2rem; }
.s-foco .edition { font: 600 1.25rem/1 var(--display); letter-spacing: .06em; }
.s-foco #corners { transform-origin: 256px 256px; animation: lock .5s var(--ease) 0s both; }
.s-foco #letters { animation: fade .3s ease .3s both; }
.s-foco #selected { animation: go .55s var(--ease) .5s both; }
.s-foco h1 .pre { animation: rise .45s ease .7s both; }
.s-foco h1 .key { animation: rise .55s var(--ease) .8s both; }
.s-foco h1 .post { animation: rise .45s ease 1s both; }
.s-foco .loc-line { animation: rise .45s ease 1.1s both; }
.s-foco .facts { animation: rise .45s ease 1.2s both; }
.s-foco .sub { animation: rise .45s ease 1.3s both; }
.s-foco .cta { animation: rise .45s ease 1.4s both; }

/* ------------------------------------------------------------------ 2 · CHEVRON: the slogan as a poster, the chevron highlights the key word */
.s-chevron .stage { display: grid; align-content: center; justify-items: start; gap: clamp(1rem, 3.2vh, 2rem); }
.s-chevron h1 { font-size: clamp(2.9rem, 9.4vw, 9.25rem); line-height: .88; letter-spacing: -.005em; }
.s-chevron h1 .hl { position: relative; display: inline-block; padding: 0 .3em 0 .12em; color: var(--ink); isolation: isolate; }
.s-chevron h1 .hl::before {
  content: ""; position: absolute; z-index: -1; inset: .03em 0 .02em 0; background: var(--lime);
  clip-path: polygon(0 0, calc(100% - .3em) 0, 100% 50%, calc(100% - .3em) 100%, 0 100%, .3em 50%);
  animation: wipe 1.1s var(--ease) 1.1s both;
}
@keyframes wipe { from { clip-path: polygon(0 0, 0 0, 0 50%, 0 100%, 0 100%, 0 50%); } }
.s-chevron h1 em { display: block; font-size: 1em; margin-top: .04em; letter-spacing: -.01em; }
.s-chevron .sub { color: var(--fg-2); max-width: 32rem; font-size: clamp(.9375rem, 1.5vw, 1.0625rem); }
.s-chevron h1 .l1 { display: block; animation: rise .8s ease .2s both; }
.s-chevron h1 .l2 { display: block; animation: rise .8s ease .45s both; }
.s-chevron h1 em { animation: rise .9s ease 1.9s both; }
.s-chevron .sub { animation: rise .8s ease 2.4s both; }
.s-chevron .cta { animation: rise .8s ease 2.7s both; }

/* ------------------------------------------------------------------ 3 · CLASIFICADO: a status report that types itself, with the venue redacted */
.s-clasificado .stage { display: grid; align-content: center; justify-items: start; gap: clamp(1rem, 3.4vh, 2rem); }
.s-clasificado h1 { font-size: clamp(2.3rem, 6vw, 5rem); font-weight: 300; line-height: .98; animation: fade .9s ease .1s both; }
.s-clasificado h1 em { font-size: 1.08em; }
.dossier { display: grid; grid-template-columns: 12ch 1fr; gap: .15rem 2ch; margin: 0; font: 400 clamp(.8125rem, 1.6vw, 1rem)/1.8 var(--mono); }
.dossier dt { color: var(--fg-2); animation: fade .1s linear var(--d) both; }
.dossier dd { margin: 0; overflow: hidden; white-space: nowrap; width: calc(var(--n) * 1ch); animation: type .8s steps(var(--n)) var(--d) both; }
.redact { display: inline-block; width: 10ch; height: .95em; margin-bottom: -.1em; background: var(--bone); }
.s-clasificado .cta { animation: fade .8s ease 3.4s both; }

/* ------------------------------------------------------------------ 4 · CUENTA: the 48-hour clock, paused, inside the thick corner marks */
.s-cuenta .stage { display: grid; align-content: center; justify-items: center; text-align: center; gap: clamp(.9rem, 2.8vh, 1.75rem); }
.s-cuenta .frame { --t: clamp(10px, 1.7vw, 22px); --arm: clamp(34px, 7vw, 96px); position: relative; padding: clamp(1.6rem, 5vh, 3.25rem) clamp(1.6rem, 6vw, 5rem); }
.s-cuenta .frame i { position: absolute; width: var(--arm); height: var(--arm); border: 0 solid var(--fg); animation: lock .9s var(--ease) .15s both; }
.s-cuenta .frame .c1 { top: 0; left: 0; border-top-width: var(--t); border-left-width: var(--t); }
.s-cuenta .frame .c2 { top: 0; right: 0; border-top-width: var(--t); border-right-width: var(--t); }
.s-cuenta .frame .c3 { bottom: 0; left: 0; border-bottom-width: var(--t); border-left-width: var(--t); }
.s-cuenta .frame .c4 { bottom: 0; right: 0; border-bottom-width: var(--t); border-right-width: var(--t); }
.s-cuenta .clock { display: flex; justify-content: center; margin: 0; white-space: nowrap; font: 800 clamp(3.4rem, 16.5vw, 12.5rem)/.9 var(--display); font-stretch: 75%; }
.s-cuenta .clock .d { width: .5em; text-align: center; }
.s-cuenta .clock .c { width: .28em; text-align: center; color: var(--lime); }
.s-cuenta .clock-note { color: var(--fg-2); margin-top: .5rem; animation: fade .8s ease 1.9s both; }
.s-cuenta h1 { font-size: clamp(1.7rem, 3.6vw, 2.9rem); font-weight: 300; line-height: 1; animation: rise .8s ease 2.2s both; }
.s-cuenta h1 em { font-size: 1.08em; }
.s-cuenta .cta { animation: rise .8s ease 2.6s both; }

/* ------------------------------------------------------------------ legal pages (impressum.html, privacy.html): long reading on paper */
.legal { padding-block: clamp(2rem, 6vw, 4rem); max-width: 46rem; font-size: 1.0625rem; line-height: 1.6; }
.legal h1 { font-size: clamp(2.75rem, 8vw, 4.5rem); font-weight: 500; margin-bottom: 1.5rem; }
.legal h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); line-height: 1; margin: 2.5rem 0 .75rem; }
.legal p, .legal ul { margin-bottom: 1rem; }
.legal ul { padding-left: 1.25rem; }
.legal address { font-style: normal; margin-bottom: 1rem; }
.legal .meta { color: var(--fg-2); font: 400 .875rem/1.5 var(--mono); }
.legal-top { border-bottom: 1px solid var(--hair); }

@media (max-width: 599px) {
  .brand-logo { height: 1.5rem; }
  .devbar { top: 3.7rem; }
  .footer { font-size: .6875rem; padding-block: .6rem .75rem; }
  .footer .collab a { margin-left: .5rem; }
  .dossier { grid-template-columns: 10ch 1fr; }
}
@media (max-width: 599px) and (max-height: 700px) {
  .s-foco .emblem { width: min(52vw, 24vh); }
}
@media (max-height: 700px) and (min-width: 600px) {
  .s-foco .stage { gap: .55rem; }
  .s-foco .emblem { width: min(40vw, 19vh); }
  .s-foco h1 { font-size: clamp(2.6rem, min(15vw, 11.5vh), 6rem); }
  .s-foco .sub { font-size: .8125rem; }
}
@media (max-height: 560px) and (min-width: 600px) {
  .s-foco .emblem { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
