/* ============================================
   ZENTRIVO — THE JOURNEY
   A cinematic, landscape-driven rebuild. No cards,
   no dashboards — content is delivered as beats in
   a scroll-driven journey through a living world.
   ============================================ */

:root{
  --bg:      #0c0a12;
  --text:    #f6f1e7;
  --text-dim:rgba(246,241,231,0.62);
  --text-faint:rgba(246,241,231,0.4);

  --font-display: 'Fraunces', serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --gutter: clamp(24px, 6vw, 96px);
  --ease: cubic-bezier(.16,.84,.44,1);

  /* per-page mood — overridden inline per page */
  --accent: #ff7a59;
  --sky-top: #1b1035;
  --sky-bottom: #ff7a59;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; background:var(--bg); }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; }
ul{ margin:0; padding:0; list-style:none; }
::selection{ background:var(--accent); color:#1a1120; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; border-radius:4px; }

.container{ width:100%; max-width:1320px; margin:0 auto; padding-left:var(--gutter); padding-right:var(--gutter); }

/* ============================================
   THE WORLD — fixed sky gradient + transparent WebGL canvas
   ============================================ */
.world-sky{
  position:fixed; inset:0; z-index:0;
  background:linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
}
#world-canvas{ position:fixed; inset:0; z-index:1; width:100%; height:100%; pointer-events:none; }

/* content sits above the world */
.journey, .site-nav, .nav-overlay, .closing{ position:relative; z-index:2; }

/* ============================================
   MINIMAL NAV
   ============================================ */
.site-nav{
  position:fixed; top:0; left:0; right:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:28px var(--gutter);
  pointer-events:none;
}
.site-nav > *{ pointer-events:auto; }
.nav-logo{
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-display); font-weight:600; font-size:1.1rem;
  padding:8px 16px; border-radius:100px;
  background:rgba(12,10,18,0.35);
  border:1px solid rgba(246,241,231,0.16);
}
.nav-logo-mark{ width:8px; height:8px; border-radius:50%; background:var(--accent); }
.nav-menu-btn{
  width:52px; height:52px; border-radius:50%;
  background:rgba(12,10,18,0.35);
  border:1px solid rgba(246,241,231,0.16);
  display:flex; align-items:center; justify-content:center;
  position:relative;
  transition:background .3s var(--ease), border-color .3s var(--ease);
}
.nav-menu-btn:hover{ border-color:var(--accent); }
.nav-menu-btn span{
  position:absolute; left:16px; right:16px; height:1.5px; background:var(--text);
  transition:transform .3s var(--ease), opacity .3s var(--ease), top .3s var(--ease);
}
.nav-menu-btn span:nth-child(1){ top:20px; }
.nav-menu-btn span:nth-child(2){ top:26px; }
.nav-menu-btn span:nth-child(3){ top:32px; }
.nav-menu-btn.is-open span:nth-child(1){ top:26px; transform:rotate(45deg); }
.nav-menu-btn.is-open span:nth-child(2){ opacity:0; }
.nav-menu-btn.is-open span:nth-child(3){ top:26px; transform:rotate(-45deg); }

.nav-overlay{
  position:fixed; inset:0; z-index:40;
  background:rgba(9,7,14,0.97);
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
  gap:20px;
  padding:0 var(--gutter);
  opacity:0; pointer-events:none;
  transform:translateY(-12px);
  transition:opacity .4s var(--ease), transform .4s var(--ease);
}
.nav-overlay.is-open{ opacity:1; pointer-events:auto; transform:translateY(0); }
.nav-overlay a{
  font-family:var(--font-display); font-weight:600;
  font-size:clamp(2rem, 7vw, 4.2rem);
  color:var(--text-dim);
  transition:color .3s var(--ease);
}
.nav-overlay a:hover, .nav-overlay a.is-active{ color:var(--accent); }
.nav-overlay-footer{
  display:flex; align-items:center; gap:24px; margin-top:32px;
  font-family:var(--font-mono); font-size:0.8rem; color:var(--text-faint);
}
.nav-overlay-footer a{ color:var(--text-dim); }
.nav-overlay-footer a:hover{ color:var(--accent); }

/* ============================================
   JOURNEY BEATS
   ============================================ */
.journey{ min-height:100px; }
.beat{
  min-height:100vh;
  display:flex;
  align-items:center;
  padding:160px var(--gutter) 120px;
  pointer-events:none;
}
.beat > *{ pointer-events:auto; }
.beat-inner{ max-width:1320px; margin:0 auto; width:100%; }
.beat--left .beat-inner{ text-align:left; }
.beat--right .beat-inner{ text-align:right; margin-left:auto; }
.beat--center .beat-inner{ text-align:center; }

.beat-eyebrow{
  font-family:var(--font-mono); font-size:0.72rem; letter-spacing:0.2em; text-transform:uppercase;
  color:var(--accent);
  display:block; margin-bottom:20px;
}
.beat-title{
  font-family:var(--font-display); font-weight:600; letter-spacing:-0.01em;
  font-size:clamp(2.8rem, 8vw, 7.2rem);
  line-height:1.02;
  max-width:18ch;
  text-shadow:0 4px 40px rgba(0,0,0,0.45);
}
.beat--left .beat-title, .beat--left .beat-copy{ margin-left:0; margin-right:auto; }
.beat--right .beat-title, .beat--right .beat-copy{ margin-left:auto; margin-right:0; }
.beat--center .beat-title, .beat--center .beat-copy{ margin-left:auto; margin-right:auto; }
.beat-copy{
  font-family:var(--font-body); font-size:clamp(1rem, 1.6vw, 1.25rem);
  color:var(--text-dim);
  max-width:46ch;
  margin-top:28px;
  text-shadow:0 2px 20px rgba(0,0,0,0.5);
}
.beat-stat{
  font-family:var(--font-mono); font-size:1rem; color:var(--accent);
  margin-top:20px; display:block;
}
.beat-actions{ margin-top:44px; display:flex; gap:20px; flex-wrap:wrap; }
.beat--right .beat-actions{ justify-content:flex-end; }
.beat--center .beat-actions{ justify-content:center; }

/* ---------- beat with a project showcase image ---------- */
.beat-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(32px, 5vw, 72px);
  align-items:center;
}
.beat-text{ order:1; }
.beat-media{ order:2; }
.beat--right .beat-text{ order:2; }
.beat--right .beat-media{ order:1; }
.beat--center .beat-grid{ grid-template-columns:1fr; justify-items:center; }
.beat--center .beat-media{ order:1; margin-bottom:12px; }
.beat--center .beat-text{ order:2; }

.beat-media-frame{
  position:relative;
  border-radius:20px;
  overflow:hidden;
  aspect-ratio:4/3;
  border:1px solid rgba(246,241,231,0.18);
  box-shadow:0 30px 60px -20px rgba(0,0,0,0.55), 0 0 0 1px rgba(246,241,231,0.04);
  background:rgba(12,10,18,0.3);
}
.beat-media-frame img{
  width:100%; height:100%; object-fit:cover; display:block;
}
.beat--center .beat-media-frame{ max-width:640px; }

/* full, uncropped website screenshots — contain instead of cover, own aspect ratio */
.beat-media-frame.shot{
  aspect-ratio:16/10;
  background:rgba(255,255,255,0.04);
  display:flex; align-items:center; justify-content:center;
}
.beat-media-frame.shot img{ width:100%; height:100%; object-fit:contain; }

@media (max-width: 900px){
  .beat-grid{ grid-template-columns:1fr; }
  .beat-text, .beat-media, .beat--right .beat-text, .beat--right .beat-media{ order:initial; }
  .beat-media{ order:1; margin-bottom:8px; }
  .beat-text{ order:2; }
}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:var(--font-body); font-weight:600; font-size:0.95rem;
  padding:16px 30px; border-radius:100px; border:1px solid transparent;
  transition:transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
  white-space:nowrap;
}
.btn-primary{ background:var(--accent); color:#1a1120; }
.btn-primary:hover{ transform:translateY(-2px); filter:brightness(1.08); }
.btn-ghost{ background:rgba(12,10,18,0.35); border-color:rgba(246,241,231,0.28); color:var(--text); }
.btn-ghost:hover{ border-color:var(--accent); color:var(--accent); transform:translateY(-2px); }

/* a soft scrim behind text blocks that need guaranteed contrast (e.g. long copy) */
.beat-scrim{
  background:linear-gradient(180deg, rgba(9,7,14,0) 0%, rgba(9,7,14,0.55) 40%, rgba(9,7,14,0.55) 60%, rgba(9,7,14,0) 100%);
  padding:48px 0;
  margin:-48px 0;
}

/* wayfinding index — small fixed dots showing which beat you're on */
.beat-index{
  position:fixed; right:28px; top:50%; transform:translateY(-50%); z-index:30;
  display:flex; flex-direction:column; gap:14px;
}
.beat-index button{
  width:8px; height:8px; border-radius:50%; border:none; padding:0;
  background:rgba(246,241,231,0.28);
  transition:background .3s var(--ease), transform .3s var(--ease);
}
.beat-index button.is-active{ background:var(--accent); transform:scale(1.4); }

/* ============================================
   CLOSING / CONTACT / FOOTER (solid ground — world fades out here)
   ============================================ */
.closing{
  background:var(--bg);
  border-top:1px solid rgba(246,241,231,0.1);
  padding:140px var(--gutter) 0;
}
.closing-inner{ max-width:1320px; margin:0 auto; text-align:center; }
.closing-title{
  font-family:var(--font-display); font-weight:600;
  font-size:clamp(2.2rem, 5.5vw, 4.2rem);
  max-width:16ch; margin:0 auto 40px auto; line-height:1.05;
}
.closing-actions{ display:flex; flex-direction:column; align-items:center; gap:24px; margin-bottom:120px; }
.email-copy{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-mono); font-size:0.95rem; color:var(--text-dim);
  border:1px solid rgba(246,241,231,0.18); border-radius:100px; padding:10px 10px 10px 20px;
  background:rgba(255,255,255,0.03);
}
.email-copy button{
  width:32px; height:32px; border-radius:50%; border:none;
  background:rgba(255,255,255,0.08); color:var(--text);
  display:flex; align-items:center; justify-content:center;
  transition:background .3s var(--ease), color .3s var(--ease); flex-shrink:0;
}
.email-copy button:hover{ background:var(--accent); color:#1a1120; }
.email-copy button svg{ width:15px; height:15px; }
.copy-toast{ font-size:0.78rem; color:var(--accent); opacity:0; transition:opacity .3s var(--ease); }
.copy-toast.is-visible{ opacity:1; }

.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:48px;
  padding:64px 0; border-top:1px solid rgba(246,241,231,0.1);
  text-align:left;
}
.footer-brand p{ color:var(--text-dim); font-size:0.9rem; max-width:32ch; margin:18px 0 24px 0; }
.footer-col h4{ font-family:var(--font-mono); font-size:0.72rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-faint); margin-bottom:20px; }
.footer-col ul li{ margin-bottom:12px; }
.footer-col a, .footer-col span{ color:var(--text-dim); font-size:0.92rem; transition:color .3s var(--ease); }
.footer-col a:hover{ color:var(--text); }
.social-row{ display:flex; gap:12px; margin-top:8px; }
.social-row a{ width:38px; height:38px; border-radius:50%; border:1px solid rgba(246,241,231,0.18); display:flex; align-items:center; justify-content:center; transition:border-color .3s var(--ease); }
.social-row a:hover{ border-color:var(--accent); }
.social-row svg{ width:16px; height:16px; }
.newsletter-form{ display:flex; border:1px solid rgba(246,241,231,0.22); border-radius:100px; overflow:hidden; margin-top:8px; }
.newsletter-form input{ flex:1; background:transparent; border:none; color:var(--text); padding:12px 18px; font-size:0.88rem; font-family:var(--font-body); min-width:0; }
.newsletter-form input::placeholder{ color:var(--text-faint); }
.newsletter-form input:focus{ outline:none; }
.newsletter-form button{ background:var(--accent); color:#1a1120; border:none; padding:0 22px; font-weight:600; font-size:0.85rem; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; padding:28px 0 40px; color:var(--text-faint); font-size:0.82rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px){
  .beat--right .beat-inner, .beat--left .beat-inner{ text-align:center; }
  .beat--right .beat-title, .beat--left .beat-title,
  .beat--right .beat-copy, .beat--left .beat-copy{ margin-left:auto; margin-right:auto; }
  .beat--right .beat-actions, .beat--left .beat-actions{ justify-content:center; }
  .beat-index{ display:none; }
  .footer-grid{ grid-template-columns:1fr 1fr; row-gap:40px; }
}
@media (max-width: 560px){
  .beat{ padding:130px var(--gutter) 90px; }
  .footer-grid{ grid-template-columns:1fr; }
}
