* { box-sizing: border-box; }

:root {
  --void: #131316;
  --paper: #efede7;
  --ash: #a8a7a1;
  --graphite: #1e1e22;
  --line: #38383e;
  --beacon: #f7f5f0;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body.nh-root {
  background: var(--void);
  color: var(--paper);
  font-family: 'Manrope', -apple-system, sans-serif;
  margin: 0;
}

body.nh-intro-active { overflow: hidden; height: 100vh; }

h1, h2, .nh-mark-word, .nh-intro-tagline {
  font-family: 'Fraunces', Georgia, serif;
}

.nh-mono, .nh-eyebrow, .nh-caption-label, .nh-coords, .nh-step-n, .nh-nav-links a, .nh-intro-hint, .nh-form label, .nh-form-note {
  font-family: 'IBM Plex Mono', monospace;
}

/* ---------- Intro ---------- */
.nh-intro {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: var(--void);
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
.nh-intro.nh-intro-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.nh-intro-inner { text-align: center; padding: 0 24px; max-width: 560px; }
.nh-intro-mark { display: block; margin: 0 auto 18px; overflow: visible; }
.nh-draw {
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  animation: nh-draw-line 1s cubic-bezier(.4,.1,.2,1) forwards;
}
.nh-draw-2 { animation-delay: 0.15s; }
@keyframes nh-draw-line { to { stroke-dashoffset: 0; } }
.nh-intro-dot {
  opacity: 0; transform: scale(0.3); transform-origin: 68px 18px;
  animation: nh-dot-in 0.5s ease forwards; animation-delay: 0.9s;
}
@keyframes nh-dot-in { to { opacity: 1; transform: scale(1); } }

.nh-intro-word {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; letter-spacing: 0.35em; color: var(--paper);
  opacity: 0; transform: translateY(8px);
  animation: nh-fade-up 0.7s ease forwards; animation-delay: 1.15s;
  margin-bottom: 26px;
}
.nh-intro-word span { color: var(--ash); }

.nh-intro-tagline {
  font-size: clamp(32px, 5vw, 52px); font-weight: 440; line-height: 1.08;
  margin: 0 0 18px; letter-spacing: -0.01em;
  opacity: 0; transform: translateY(10px);
  animation: nh-fade-up 0.8s ease forwards; animation-delay: 1.55s;
}
.nh-intro-copy {
  font-size: 15px; color: var(--ash); line-height: 1.6; margin: 0 auto 40px; max-width: 400px;
  opacity: 0; transform: translateY(10px);
  animation: nh-fade-up 0.8s ease forwards; animation-delay: 2.05s;
}
@keyframes nh-fade-up { to { opacity: 1; transform: translateY(0); } }

.nh-intro-hint {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: #86857f;
  opacity: 0; animation: nh-fade-in 0.8s ease forwards; animation-delay: 2.6s;
}
@keyframes nh-fade-in { to { opacity: 1; } }
.nh-intro-hint i {
  width: 1px; height: 22px; background: linear-gradient(#86857f, transparent);
  animation: nh-hint-pulse 1.6s ease-in-out infinite;
}
@keyframes nh-hint-pulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .nh-draw, .nh-intro-dot, .nh-intro-word, .nh-intro-tagline, .nh-intro-copy, .nh-intro-hint {
    animation: none !important; opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important;
  }
}

/* ---------- Nav ---------- */
.nh-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 5vw;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  border-bottom: 1px solid transparent;
}
body.nh-intro-active .nh-nav { opacity: 0; pointer-events: none; }
.nh-nav--solid {
  background: rgba(19,19,22,0.88);
  backdrop-filter: blur(10px);
  padding: 14px 5vw;
  border-bottom: 1px solid var(--line);
}
.nh-mark { display: flex; align-items: center; text-decoration: none; }
.nh-nav-links { display: flex; align-items: center; gap: 30px; }
.nh-nav-links a {
  color: #d6d5cf; text-decoration: none; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.nh-nav-links a:hover { color: #fff; }
.nh-nav-cta {
  border: 1px solid #55555c; padding: 9px 16px; border-radius: 2px;
}
.nh-nav-cta:hover { border-color: #fff; }

/* ---------- Journey (3D scroll section) ---------- */
.nh-journey { position: relative; height: 650vh; }
.nh-journey-viewport {
  position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--void);
}
#journey-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
#journey-canvas:active { cursor: grabbing; }

.nh-journey-start-hint {
  position: absolute; bottom: 40px; left: 0; right: 0; text-align: center;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: #918f89; z-index: 3; transition: opacity 0.6s ease;
}

.nh-caption {
  position: absolute; left: 6vw; bottom: 14vh; max-width: 380px; z-index: 3;
  opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.nh-caption.nh-caption-visible { opacity: 1; transform: translateY(0); }
.nh-caption-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--beacon);
  margin-right: 10px; box-shadow: 0 0 8px rgba(245,243,238,0.7);
}
.nh-caption-label {
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--paper);
}
.nh-caption p { margin: 10px 0 0; font-size: 15px; color: #c9c8c2; line-height: 1.55; font-family: 'Manrope', sans-serif; }

.nh-coords {
  position: absolute; left: 6vw; bottom: 14vh; z-index: 3;
  opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease;
  display: flex; flex-direction: column; gap: 4px;
}
.nh-coords.nh-coords-visible { opacity: 1; transform: translateY(0); }
.nh-coords-city { font-family: 'Fraunces', serif; font-size: 26px; font-style: italic; color: var(--beacon); }
.nh-coords-num { font-size: 12px; letter-spacing: 0.1em; color: var(--ash); }

.nh-journey-rail {
  position: absolute; right: 5vw; top: 50%; transform: translateY(-50%);
  width: 1px; height: 140px; background: var(--line); z-index: 3;
}
.nh-journey-rail i {
  position: absolute; top: 0; left: -1px; width: 3px; height: 0%;
  background: var(--beacon); box-shadow: 0 0 8px rgba(245,243,238,0.6);
  transition: height 0.1s linear;
}

/* ---------- Sections ---------- */
.nh-section { position: relative; padding: 110px 5vw; max-width: 1280px; margin: 0 auto; }
.nh-section--dark { background: #0d0d10; max-width: none; }
.nh-section--dark > * { max-width: 1280px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.nh-section-head { margin-bottom: 56px; max-width: 560px; position: relative; z-index: 1; }
.nh-eyebrow {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: #9d9c96;
  margin-bottom: 18px;
}
.nh-section-head h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 500; line-height: 1.2; margin: 0; }

.nh-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; z-index: 1; }
.nh-card { border-top: 1px solid var(--line); padding-top: 22px; }
.nh-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 12px; font-family: 'Manrope', sans-serif; }
.nh-card p { color: #adaca6; font-size: 14px; line-height: 1.6; }

.nh-bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; z-index: 0; }

.nh-steps { display: flex; flex-direction: column; gap: 0; position: relative; z-index: 1; }
.nh-step {
  display: grid; grid-template-columns: 70px 1fr; gap: 28px; padding: 28px 0;
  border-top: 1px solid var(--line);
}
.nh-step:last-child { border-bottom: 1px solid var(--line); }
.nh-step-n { font-size: 13px; color: #86857f; letter-spacing: 0.1em; }
.nh-step h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; font-family: 'Manrope', sans-serif; }
.nh-step p { color: #adaca6; font-size: 14px; max-width: 520px; line-height: 1.6; }

.nh-about { max-width: 680px; margin: 0 auto; text-align: center; }
.nh-about .nh-eyebrow { display: block; }
.nh-about h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 500; margin: 18px 0 22px; }
.nh-about p { color: #c4c3bd; line-height: 1.7; font-size: 16px; max-width: 560px; margin: 0 auto; }

.nh-contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; }
.nh-form { display: flex; flex-direction: column; gap: 18px; }
.nh-form label { display: flex; flex-direction: column; gap: 8px; font-size: 11px; color: #adaca6; letter-spacing: 0.04em; }
.nh-form input, .nh-form textarea, .nh-form select {
  background: #1c1c20; border: 1px solid var(--line); color: var(--paper); padding: 12px 14px;
  font-size: 14px; font-family: 'Manrope', sans-serif; border-radius: 2px; resize: vertical;
}
.nh-form select { appearance: none; }
.nh-form input:focus, .nh-form textarea:focus, .nh-form select:focus { outline: none; border-color: #86857f; }
.nh-form-note { font-size: 11px; color: #86857f; margin: 0; }
.nh-contact-details { color: #adaca6; font-size: 14px; line-height: 2; padding-top: 4px; font-family: 'Manrope', sans-serif; }

.nh-btn {
  display: inline-block; background: var(--beacon); color: #0a0a0a; text-decoration: none;
  padding: 14px 28px; font-size: 13px; letter-spacing: 0.06em; font-weight: 600;
  border-radius: 2px; border: none; cursor: pointer; font-family: 'Manrope', sans-serif;
}
.nh-btn:hover { background: #d9d7d0; }

.nh-whatsapp-link {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 14px;
  color: var(--paper); text-decoration: none; font-size: 13px; letter-spacing: 0.02em;
  border: 1px solid var(--line); border-radius: 2px; padding: 10px 16px; transition: border-color 0.2s;
}
.nh-whatsapp-link:hover { border-color: var(--beacon); }

.nh-whatsapp-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 50;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--graphite); border: 1px solid var(--line); color: var(--paper);
  box-shadow: 0 4px 18px rgba(0,0,0,0.45); transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.nh-whatsapp-fab:hover { transform: translateY(-2px); border-color: var(--beacon); background: #232328; }
@media (max-width: 640px) {
  .nh-whatsapp-fab { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}

.nh-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 40px 5vw; border-top: 1px solid var(--line); color: #86857f; font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
}
.nh-footer-brand { display: flex; align-items: center; gap: 14px; }
.nh-footer-tagline { font-family: 'Fraunces', serif; font-style: italic; color: #918f89; font-size: 12px; }

@media (min-width: 1024px) {
  .nh-nav { padding: 26px 4vw; }
  .nh-nav--solid { padding: 16px 4vw; }
  .nh-nav-links { gap: 40px; }
  .nh-caption { max-width: 440px; bottom: 16vh; }
  .nh-caption-label { font-size: 12px; }
  .nh-caption p { font-size: 17px; }
  .nh-coords { bottom: 16vh; }
  .nh-coords-city { font-size: 34px; }
  .nh-coords-num { font-size: 13px; }
  .nh-journey-rail { height: 220px; }
  .nh-section { padding: 150px 4vw; }
  .nh-section-head { margin-bottom: 72px; }
  .nh-grid-4 { gap: 44px; }
  .nh-contact { gap: 90px; }
}

@media (min-width: 1600px) {
  .nh-nav, .nh-section { padding-left: 6vw; padding-right: 6vw; }
  .nh-caption { left: 7vw; }
  .nh-coords { left: 7vw; }
}

@media (max-width: 900px) {
  .nh-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .nh-nav-links { gap: 16px; }
  .nh-nav-links a:not(.nh-nav-cta) { display: none; }
  .nh-grid-4 { grid-template-columns: 1fr; }
  .nh-step { grid-template-columns: 40px 1fr; }
  .nh-contact { grid-template-columns: 1fr; }
  .nh-footer { flex-direction: column; gap: 12px; text-align: center; }
  .nh-footer-brand { flex-direction: column; gap: 8px; }
  .nh-caption, .nh-coords { left: 6vw; right: 6vw; max-width: none; bottom: 12vh; }
  .nh-journey-rail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nh-bg-canvas { display: none; }
}
