@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0100-02AF; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --grafito: #1C1D1F; --hueso: #F3F1EC; --piedra: #8A8780; --cobre: #B5562B; --cobre-claro: #E7A27F;
  --display: "Archivo", "Arial Black", sans-serif; --mono: "Plex Mono", ui-monospace, monospace;
  --pad: clamp(16px, 3.2vw, 40px);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--grafito); color: var(--hueso); font-family: var(--display);
  min-height: 100svh; overflow: hidden; -webkit-font-smoothing: antialiased;
  display: grid; grid-template-rows: auto 1fr auto;
}
.mono { font-family: var(--mono); }
#terreno { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; touch-action: manipulation; }
.top, .center, .hud { position: relative; z-index: 1; }

.top { display: flex; justify-content: space-between; align-items: center; padding: var(--pad); pointer-events: none; }
.top img { width: clamp(110px, 12vw, 150px); height: auto; }
.mail { pointer-events: auto; color: var(--hueso); text-decoration: none; font-size: 13px; letter-spacing: .06em; padding: 6px 0; background: linear-gradient(var(--cobre), var(--cobre)) left bottom / 0 1px no-repeat; transition: background-size .35s ease, color .2s; }
.mail:hover, .mail:focus-visible { background-size: 100% 1px; color: var(--cobre-claro); }

.center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--pad); pointer-events: none; }
.center a { pointer-events: auto; }
.kicker { font-size: clamp(10px, 1vw, 13px); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--cobre-claro); margin: 0 0 clamp(18px, 3vh, 34px); }
.word-slot { width: min(90vw, 1240px); aspect-ratio: 10992 / 893; display: grid; place-items: center; }
.word-slot h1 { margin: 0; font-weight: 800; font-stretch: 125%; text-transform: uppercase; letter-spacing: .02em; line-height: 1; font-size: min(7.4vw, 102px); white-space: nowrap; }
.js .word-slot.drawn h1 { color: transparent; }
.tagline { font-size: clamp(15px, 1.5vw, 20px); font-weight: 500; font-stretch: 112%; margin: clamp(20px, 3.4vh, 38px) 0 clamp(22px, 3.6vh, 34px); color: var(--hueso); }

.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; background: var(--cobre); color: var(--hueso); text-decoration: none; font-weight: 800; font-stretch: 118%; text-transform: uppercase; font-size: 14px; letter-spacing: .08em; }
.btn .fill { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-rows: repeat(3, 1fr); }
.btn .fill b { background: var(--hueso); transform: scaleX(0); transform-origin: left; transition: transform .42s cubic-bezier(.7,0,.2,1); }
.btn .fill b:nth-child(2) { transition-delay: .06s; } .btn .fill b:nth-child(3) { transition-delay: .12s; }
.btn:hover .fill b, .btn:focus-visible .fill b { transform: scaleX(1); }
.btn:hover, .btn:focus-visible { color: var(--grafito); }
.btn .txt, .btn .arr { transition: color .25s .1s; }
.btn .arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .3s; }
.btn:hover .arr { transform: translateX(4px); }
.btn:focus-visible, .mail:focus-visible { outline: 2px solid var(--cobre-claro); outline-offset: 4px; }

.hud { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: var(--pad); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--piedra); pointer-events: none; }
.hud .coords { color: var(--hueso); min-width: 30ch; }
.hud .hint { transition: opacity .6s; }
.hud .hint.off { opacity: 0; }
.hud .status { display: inline-flex; align-items: center; gap: 10px; }
.hud .status i { width: 8px; height: 8px; background: var(--cobre); transform: rotate(45deg); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

.center > * { opacity: 0; transform: translateY(14px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.center > :nth-child(2) { animation-delay: .15s; } .center > :nth-child(3) { animation-delay: .35s; } .center > :nth-child(4) { animation-delay: .5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
  .hud { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hud .hint { order: 3; }
  .mail { font-size: 12px; }
  .word-slot { width: min(82vw, 440px); aspect-ratio: 6220 / 1811; }
  .btn { padding: 15px 22px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .center > * { animation: none; opacity: 1; transform: none; }
  .hud .status i { animation: none; }
  .btn .fill b { transition: none; }
}
.center > .word-slot { transform: none; animation-name: fade; }
@keyframes fade { to { opacity: 1; } }
