@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62.5% 125%;
  src: url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Archivo Variable";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62.5% 125%;
  src: url("/assets/fonts/archivo-latin-wdth-italic.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

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

:root {
  --ink-0: #05080e;
  --ink-1: #0a111c;
  --fog-0: #f2f5f9;
  --fog-1: #d4dce8;
  --fog-2: #9aa7ba;
  --accent: #f5a623;
  --accent-hover: #ffb638;
  --accent-ink: #221503;
  --font-display: "Archivo Variable", "Archivo", system-ui, -apple-system, sans-serif;
  --font-text: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --gutter: max(1.25rem, env(safe-area-inset-left));
}

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

html {
  background: var(--ink-0);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--fog-0);
  background: var(--ink-0);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: #fff;
  color: #111;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Escena fotográfica full-bleed ── */
.stage {
  position: relative;
  z-index: 0;
  background: var(--ink-0);
}

.hero {
  display: block;
  margin: 0;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

.shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 14, 0.32) 0%,
    rgba(5, 8, 14, 0.06) 24%,
    rgba(5, 8, 14, 0) 46%,
    rgba(5, 8, 14, 0.62) 78%,
    #05080e 100%
  );
}

/* ── Contenedor editorial ── */
.shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  margin-top: -3.2rem;
  padding:
    0
    max(1.25rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    var(--gutter);
  max-width: 44rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.brand__logos {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem 1.05rem;
}

.logo-altar {
  display: block;
  width: min(9.5rem, 42vw);
  height: auto;
}

.brand__sep {
  width: 1px;
  height: 1.45rem;
  margin-bottom: 0.12rem;
  background: rgba(242, 245, 249, 0.3);
  flex: none;
}

.logo-niviuk {
  display: block;
  width: min(6.6rem, 30vw);
  height: auto;
  margin-bottom: 0.2rem;
  opacity: 0.94;
}

.brand__sub {
  margin: 0;
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fog-1);
}

main {
  margin-top: 1.25rem;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.65rem;
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.status-line::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.2);
  flex: none;
}

.status-line::after {
  content: "";
  width: 2.5rem;
  border-top: 1px dashed rgba(245, 166, 35, 0.55);
  flex: none;
}

h1 {
  margin: 0;
  max-width: 13ch;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-size: clamp(2.15rem, 8.2vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 0.98;
  text-wrap: balance;
}

h1 em {
  font-style: italic;
  font-weight: 800;
  color: var(--fog-0);
}

.lead {
  margin: 0.75rem 0 0;
  max-width: 34rem;
  color: var(--fog-1);
  font-size: 0.98rem;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.15rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 24rem;
  min-height: 3.45rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color 140ms ease, transform 140ms ease;
}

.cta svg {
  flex: none;
}

.cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.cta:focus-visible,
.contact-links a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.25rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--fog-0);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-decoration-color: rgba(242, 245, 249, 0.35);
  text-underline-offset: 0.25em;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

.contact-links a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.contact-links .data-link {
  font-family: var(--font-data);
  font-size: 0.875rem;
}

footer {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(242, 245, 249, 0.12);
  color: var(--fog-2);
  font-size: 0.8125rem;
  line-height: 1.45;
}

footer p {
  margin: 0;
}

/* ── Desktop (>= 900px): escena a pantalla completa con lectura izquierda ── */
@media (min-width: 900px) {
  .stage {
    position: fixed;
    inset: 0;
  }

  .hero,
  .hero img {
    width: 100%;
    height: 100%;
  }

  .hero img {
    object-fit: cover;
    object-position: 78% 42%;
  }

  .shade {
    background:
      linear-gradient(
        90deg,
        rgba(5, 8, 14, 0.86) 0%,
        rgba(5, 8, 14, 0.62) 28%,
        rgba(5, 8, 14, 0.18) 52%,
        rgba(5, 8, 14, 0) 68%
      ),
      linear-gradient(
        180deg,
        rgba(5, 8, 14, 0.56) 0%,
        rgba(5, 8, 14, 0.14) 18%,
        rgba(5, 8, 14, 0) 38%,
        rgba(5, 8, 14, 0.78) 84%,
        rgba(5, 8, 14, 0.94) 100%
      );
  }

  .shell {
    min-height: 100vh;
    min-height: 100dvh;
    margin-top: 0;
    max-width: 44rem;
    padding: 2.75rem 4.25rem 1.85rem;
  }

  .logo-altar {
    width: 11.75rem;
  }

  .brand__sep {
    height: 1.7rem;
    margin-bottom: 0.14rem;
  }

  .logo-niviuk {
    width: 7.75rem;
    margin-bottom: 0.24rem;
  }

  .brand__sub {
    font-size: 0.75rem;
  }

  main {
    margin-top: auto;
    padding-top: 2.5rem;
  }

  h1 {
    font-size: clamp(2.85rem, 3.6vw, 3.85rem);
  }

  .lead {
    font-size: 1.1rem;
  }

  .cta {
    width: auto;
    padding-inline: 1.75rem;
  }

  footer {
    margin-top: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta,
  .contact-links a {
    transition: none;
  }

  .cta:hover {
    transform: none;
  }
}
