/* nueba — single-viewport stealth landing
   Headers: Fraunces (placeholder for licensed Gestura).
   Body / UI: Inter (placeholder for licensed Onsite).
   Drop *.woff2 into /fonts and uncomment the @font-face block to switch. */

/*
@font-face {
  font-family: 'Gestura';
  src: url('/fonts/Gestura-Variable.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Onsite';
  src: url('/fonts/Onsite-Variable.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
*/

:root {
  --paper: #ece7d8;
  --paper-soft: rgba(236, 231, 216, 0.82);
  --paper-faint: rgba(236, 231, 216, 0.55);
  --rule: rgba(236, 231, 216, 0.18);

  --font-serif: 'Gestura', 'Fraunces', 'GT Sectra', 'Tiempos Headline', Georgia, serif;
  --font-sans:  'Onsite', 'Inter', -apple-system, BlinkMacSystemFont, 'Söhne', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; height: 100%; }

html {
  color: var(--paper);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: #06080c;
}

body {
  height: 100dvh;
  overflow: hidden;
  position: relative;
  background:
    url('/bg.svg') center / cover no-repeat fixed,
    #06080c;
}

a { color: inherit; text-decoration: none; }

.page {
  position: relative; z-index: 1;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(24px, 3.2vw, 44px) clamp(28px, 5vw, 64px);
  color: var(--paper);
}

/* Top */
.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 16px;
  color: var(--paper);
}
.monogram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--paper);
  color: var(--paper);
  flex-shrink: 0;
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.monogram-letter {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  color: var(--paper);
  margin-top: -2px;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.wordmark {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--paper);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.links {
  display: flex; align-items: center; gap: 28px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--paper-faint);
}
.links a {
  transition: color .2s ease;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.links a:hover { color: var(--paper); }

/* Empty stage — atmospheric background visible here. */
.stage { }

/* Bottom — statement left, locations right (llmh-style) */
.bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 100px);
  align-items: end;
}
.statement {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.55;
  color: var(--paper-soft);
  max-width: 56ch;
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.statement strong {
  color: var(--paper);
  font-weight: 600;
}
.locations {
  margin: 0;
  font-style: normal;
  text-align: right;
  font-family: var(--font-sans);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.55;
  color: var(--paper);
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

/* ----------------------------------------------------------------------------
   Word-by-word reveal — focus-pull entrance on page load.
---------------------------------------------------------------------------- */
/* Pre-script: hide the text so there is no flash. Once the inline script
   wraps words, it adds .reveal--ready and the animation plays. */
.reveal {
  opacity: 0;
  transition: opacity 0.2s linear;
}
.reveal.reveal--ready {
  opacity: 1;
}
.reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  animation: nueba-word-in 1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 55ms + 250ms);
  will-change: opacity, transform, filter;
}
@keyframes nueba-word-in {
  0%   { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0);   }
}

/* No-JS fallback: if the script never runs, .reveal--ready is never added.
   Force-show after a short delay so users with JS disabled still see content. */
@keyframes reveal-fallback {
  to { opacity: 1; }
}
.reveal:not(.reveal--ready) {
  animation: reveal-fallback 0s 1.5s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal--ready,
  .reveal .word {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
}

@media (max-width: 720px) {
  .bottom {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .locations { text-align: left; }
}

@media (max-width: 480px) {
  .wordmark { letter-spacing: 0.18em; font-size: 16px; }
  .monogram { width: 36px; height: 36px; }
  .monogram-letter { font-size: 21px; }
}
