@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Epilogue:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --bg:      #f7f9fc;
  --bg2:     #eef2f7;
  --bg3:     #e6ebf2;
  --border:  #d6dde7;
  --border2: #c3cbd8;
  --muted:   #6b7280;
  --mid:     #4b5563;
  --dark:    #111827;
  --text:    #1f2937;
  --accent:  #2563eb;
  --accent2: #0ea5e9;
  --display: 'Syne', sans-serif;
  --body:    'Epilogue', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
html { overflow-x: hidden; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  border-bottom: 1px solid var(--border);
  background: rgba(250,250,248,0.96);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s;
  overflow: visible;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  display: block;
}
.brand-logo-sm {
  width: 110px;
  height: 110px;
}

@media (max-width: 640px) {
  nav { height: 72px; }
  .brand-logo {
    width: 110px;
    height: 110px;
  }
  .brand-logo-sm {
    width: 96px;
    height: 96px;
  }
}
.logo-glyph {
  width: 32px; height: 32px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.logo-glyph::before {
  content: '';
  position: absolute; inset: 0;
  border: 1.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.4s;
}
.nav-logo:hover .logo-glyph::before { transform: rotate(90deg); }
.logo-glyph svg { width: 13px; height: 13px; fill: var(--accent); position: relative; z-index: 1; }
.logo-wordmark {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--dark);
}
.logo-wordmark em {
  font-style: normal;
  color: var(--accent);
}
.text-logo { display: inline-block; }

.brand-logo, .brand-logo-sm { display: none; }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--display); font-size: 10.5px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s; position: relative;
}
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1.5px; background: var(--accent); transition: width 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--dark); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-contact {
  font-family: var(--display); font-size: 10.5px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: #fff; background: var(--dark);
  padding: 10px 22px; text-decoration: none;
  transition: background 0.2s; white-space: nowrap;
}
.nav-contact:hover { background: var(--accent); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--dark); transition: all 0.3s; }

/* LOADER */
.page-loader {
  position: fixed; inset: 0; background: var(--bg);
  z-index: 9000; display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s 0.1s, visibility 0.5s 0.1s;
  animation: loaderFadeOut 0s 1.5s forwards;
}
@keyframes loaderFadeOut {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; animation: none; }
.loader-text { font-family: var(--display); font-size: 12px; letter-spacing: 6px; text-transform: uppercase; color: var(--muted); }
.loader-bar { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--accent); width: 0; transition: width 0.6s cubic-bezier(0.4,0,0.2,1); }

/* LAYOUT */
.section { padding: 96px 48px; }
.container { max-width: 1200px; margin: 0 auto; }

.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.eyebrow-line { width: 24px; height: 1px; background: var(--accent); flex-shrink: 0; }
.eyebrow-text { font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: 3.5px; text-transform: uppercase; color: var(--accent); }

h1, h2, h3, h4 { font-family: var(--display); }

.h-section {
  font-size: clamp(34px, 3.8vw, 54px);
  font-weight: 800; line-height: 1.02; letter-spacing: -1.5px; color: var(--dark);
}
.h-section em { font-style: italic; font-weight: 300; font-family: var(--body); color: var(--accent); letter-spacing: 0; }

.body-text { font-size: 15px; font-weight: 300; color: var(--mid); line-height: 1.8; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; animation: revealFallback 0s 2s forwards; }
@keyframes revealFallback { to { opacity: 1; transform: translateY(0); } }
.reveal.up { opacity: 1; transform: translateY(0); animation: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; padding: 13px 28px;
  transition: all 0.22s; cursor: pointer; border: none;
}
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--accent); }
.btn-outline { background: transparent; border: 1.5px solid var(--border2); color: var(--mid); }
.btn-outline:hover { border-color: var(--dark); color: var(--dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--dark); }
.btn-arrow::after { content: '→'; }

/* CTA BAND */
.cta-band { background: var(--dark); padding: 80px 48px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta-band h2 { font-family: var(--display); font-size: clamp(26px, 3vw, 44px); font-weight: 800; color: #fff; letter-spacing: -1.5px; line-height: 1.08; max-width: 520px; }
.cta-band-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.cta-btn { background: var(--accent); color: #fff; display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; padding: 14px 30px; transition: background 0.2s; white-space: nowrap; }
.cta-btn:hover { background: var(--accent2); }
.cta-microcopy { font-size: 11px; color: rgba(255,255,255,0.3); }

/* FOOTER */
footer { background: var(--dark); border-top: 1px solid rgba(255,255,255,0.06); padding: 36px 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
footer .logo-wordmark { color: #fff; }
footer .logo-glyph::before { border-color: var(--accent); }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.28); font-weight: 300; }
.footer-links { display: flex; gap: 28px; justify-content: flex-end; }
.footer-links a { font-family: var(--display); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.28); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 0 20px; overflow: visible; }
  .nav-contact { display: none; }
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 24px 24px max(40px, env(safe-area-inset-bottom));
    gap: 0;
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    list-style: none;
    margin: 0;
    height: calc(100vh - 68px);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links li {
    display: block;
    width: 100%;
    flex: 0 0 auto;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:first-child {
    border-top: 1px solid var(--border);
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 20px 0;
    font-size: 18px;
    letter-spacing: 1px;
    color: var(--dark);
    font-family: var(--display);
    font-weight: 700;
    text-transform: uppercase;
  }
  .hamburger { display: flex; }
  .section { padding: 64px 20px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 56px 20px; gap: 32px; }
  .cta-band h2 { font-size: clamp(22px, 5vw, 36px); }
  .cta-band-right { align-items: flex-start; }
  .cta-btn { width: 100%; justify-content: center; text-align: center; }
  footer { grid-template-columns: 1fr; gap: 14px; padding: 28px 20px; }
  .footer-links { justify-content: flex-start; }
  .h-section { font-size: clamp(28px, 6vw, 44px); }
}

@media (max-width: 640px) {
  nav { height: 60px; }
  .nav-links { top: 60px; height: calc(100vh - 60px); }
  .section { padding: 48px 20px; }
  .eyebrow { margin-bottom: 14px; }
  .eyebrow-text { font-size: 9px; }
  .h-section { font-size: clamp(26px, 7vw, 38px); letter-spacing: -1px; }
  .body-text { font-size: 14px; }
  footer { padding: 24px 20px; }
  .footer-links { gap: 16px; }
  .logo-wordmark { font-size: 20px; letter-spacing: 2px; }
}
