/* ── FONT ── */
@font-face {
  font-family: 'Onest';
  src: url('../fonts/Onest.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── TOKENS ── */
:root {
  --black:     #0A0A0A;
  --white:     #FFFFFF;
  --cream:     #F8F4EF;
  --cream-mid: #EDE8DF;
  --gray-1:    #F3F2F0;
  --gray-2:    #E4E1DB;
  --gray-3:    #C0BAB2;
  --gray-4:    #8E8880;
  --gray-t:    #5C5852;
  --font:      'Onest', system-ui, -apple-system, sans-serif;
  --max-w:     1200px;
  --pad:       clamp(20px, 5vw, 80px);
  --nav-h:     84px;
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
}

/* ── BASE ── */
html {
  scroll-behavior: smooth;
  overflow-y: scroll;      /* reserve scrollbar gutter from frame 0 — prevents width shift */
  overflow-x: clip;        /* clip horizontal overflow on html, not body */
  background: var(--white); /* light canvas — matches page body; dark nav is self-painted via .nav */
}
[id] { scroll-margin-top: var(--nav-h); }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* overflow-x: hidden removed — on body this hijacks the scroll container
     and can cause position:fixed elements to repaint on scroll/layout */
}
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── SECTION ── */
.section { padding: clamp(72px, 9vw, 120px) 0; }

/* ── LABEL ── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-3);
  margin-bottom: 20px;
}
.label::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 1.5px;
  background: var(--gray-3);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  transition: opacity .2s, transform .15s, box-shadow .2s, background .2s, border-color .2s;
  letter-spacing: -.01em;
  border: 1.5px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.btn-lg { font-size: 16px; padding: 15px 32px; }
.btn-md { font-size: 14px; padding: 11px 22px; }
.btn-sm { font-size: 13px; padding:  8px 18px; }

.btn-dark    { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover  { opacity: .82; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.16); }

.btn-outline { background: transparent; color: var(--black); border-color: var(--gray-2); }
.btn-outline:hover { background: var(--gray-1); border-color: var(--gray-3); }

.btn-white   { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-white:hover { opacity: .88; transform: translateY(-1px); }

/* ──────────────────────────────────
   NAV
────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,.08);
  /* position:fixed already promotes to compositor layer — no extra hint needed */
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  gap: 32px;
}
.nav-logo {
  font-family: 'Onest', system-ui, -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  display: block;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  backface-visibility: hidden;
}
.nav-logo svg {
  height: 22px;
  width: auto;
  display: block;
}
.nav-links     { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: rgba(255,255,255,.55);
  padding: 7px 14px;
  border-radius: 100px;
  transition: color .2s, background .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(255,255,255,.1); }
.nav-links a.active { font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 12px; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); inset-inline: 0;
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 16px var(--pad) 28px;
  flex-direction: column;
  gap: 2px;
  z-index: 99;
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color .2s;
}
.nav-mobile a:last-child { border: none; }
.nav-mobile a:hover { color: var(--white); }

/* ──────────────────────────────────
   FOOTER
────────────────────────────────── */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  align-items: start;
}
.footer-brand .logo-text {
  display: block;
  font-size: 26px;
  font-weight: 300;
  color: rgba(255,255,255,.65);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.38);
  max-width: 200px;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,.52);
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  font-size: 13px;
  color: rgba(255,255,255,.22);
}

/* ──────────────────────────────────
   SCROLL REVEAL
────────────────────────────────── */
.reveal {
  opacity: 0;
  transition: opacity .65s var(--ease-out);
}
.reveal.in { opacity: 1; }
.rd1 { transition-delay: .08s; }
.rd2 { transition-delay: .16s; }
.rd3 { transition-delay: .24s; }
.rd4 { transition-delay: .32s; }
.rd5 { transition-delay: .40s; }

/* ──────────────────────────────────
   RESPONSIVE
────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
