/* ============================================================
   PEER VENTURES — neutral-tech · clean · v2
   ============================================================ */

:root {
  --bg:        #0a0a0c;
  --bg-soft:   #0f0f12;
  --surface:   rgba(255,255,255,.028);
  --surface-2: rgba(255,255,255,.05);
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.14);
  --text:      #f4f4f5;
  --text-2:    #a1a1aa;
  --text-3:    #6b6b74;
  --accent:    #d9b56a;
  --accent-2:  #ecd39a;
  --accent-bg: rgba(217,181,106,.10);
  --maxw:      1120px;
  --sans:      "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --r:         16px;
  --r-lg:      24px;
  --r-pill:    999px;
  --ease:      cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-bg); color: var(--accent-2); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 100; transition: width .1s linear;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
  border-bottom: 1px solid transparent;
  padding: 20px 0;
}
.nav.scrolled {
  background: rgba(10,10,12,.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--text); }
.logo svg { width: 30px; height: 30px; color: var(--accent); flex-shrink: 0; }
.logo-word { font-weight: 600; font-size: 16px; letter-spacing: .01em; }
.logo-word span { color: var(--text-3); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 14px; color: var(--text-2); transition: color .2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 14px; font-weight: 500; color: var(--bg) !important;
  background: var(--text); padding: 9px 18px; border-radius: var(--r-pill);
  transition: transform .2s var(--ease), opacity .2s ease;
}
.nav-cta:hover { transform: translateY(-1px); opacity: .9; }

/* Burger */
.nav-right { display: flex; align-items: center; gap: 18px; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.lang-toggle button { background: none; border: none; font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--text-3); padding: 6px 11px; cursor: pointer; transition: color .2s ease, background .2s ease; }
.lang-toggle button.on { color: var(--text); background: var(--surface-2); }
.lang-toggle button:not(.on):hover { color: var(--text-2); }
@media (max-width: 760px){ .nav-links { display: none; } .burger { display: flex !important; } }
.burger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), opacity .2s ease; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(10,10,12,.86);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-size: 26px; font-weight: 500; color: var(--text-2); padding: 12px; transition: color .2s ease; }
.mobile-menu a:hover { color: var(--text); }
.mobile-close { position: absolute; top: 24px; right: 28px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--text); font-size: 22px; cursor: pointer; }

/* ---------- Reveal (only hides once JS has run → no-JS shows everything) ---------- */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-ready [data-reveal].d1 { transition-delay: .08s; }
.reveal-ready [data-reveal].d2 { transition-delay: .16s; }
.reveal-ready [data-reveal].d3 { transition-delay: .24s; }
.reveal-ready [data-reveal].d4 { transition-delay: .32s; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- Hero (fills the viewport on load, no scroll needed) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 100px 0 60px; overflow: hidden; }
.hero-arch { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-48%); width: min(760px, 92vw); color: var(--line); pointer-events: none; z-index: 0; }
.hero-arch path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2.4s var(--ease) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .container { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 500; letter-spacing: .04em; color: var(--text-2); padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); margin-bottom: 30px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.hero h1 {
  font-size: clamp(44px, 8vw, 92px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 26px;
  max-width: 14ch;
}
.hero h1 .muted { color: var(--text-3); }
.hero .lede { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-2); max-width: 52ch; margin: 0 0 40px; line-height: 1.5; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  padding: 14px 26px; border-radius: var(--r-pill); cursor: pointer;
  transition: transform .2s var(--ease), background .2s ease, border-color .2s ease, opacity .2s ease;
}
.btn-primary { background: var(--text); color: var(--bg); border: 1px solid var(--text); }
.btn-primary:hover { transform: translateY(-2px); opacity: .92; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--text-3); background: var(--surface-2); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Section frame ---------- */
section { position: relative; }
.block { position: relative; padding: 120px 0; border-top: 1px solid var(--line); overflow: hidden; }
.block > .container { position: relative; z-index: 1; }
.section-motif { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(1000px, 118%); color: var(--line); opacity: .4; pointer-events: none; z-index: 0; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.h2 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 20px; }
.sub { font-size: 18px; color: var(--text-2); max-width: 56ch; margin: 0; line-height: 1.55; }
.block-head { max-width: 640px; margin-bottom: 60px; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); }
.stat { padding: 30px 8px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat-n { font-size: clamp(32px, 5vw, 52px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat-l { font-size: 13px; color: var(--text-3); margin-top: 10px; letter-spacing: .02em; }
@media (max-width: 680px){ .stats { grid-template-columns: repeat(2,1fr); } .stat:nth-child(3){ border-left: none; } .stat:nth-child(n+3){ padding-top: 30px; border-top: 1px solid var(--line); } }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(135deg, rgba(255,255,255,.04), transparent 46%), var(--surface); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.principle { padding: 40px 34px; border-left: 1px solid var(--line); transition: background .3s ease; }
.principle:first-child { border-left: none; }
.principle:hover { background: var(--surface); }
.principle .pico { width: 40px; height: 40px; color: var(--accent); margin-bottom: 22px; }
.principle h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; }
.principle p { font-size: 15px; color: var(--text-2); margin: 0; line-height: 1.6; }
@media (max-width: 820px){ .principles { grid-template-columns: 1fr; } .principle { border-left: none; border-top: 1px solid var(--line); } .principle:first-child { border-top: none; } }

/* ---------- Portfolio: arches ---------- */
.gates { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
@media (max-width: 760px){ .gates { grid-template-columns: 1fr; } }
.gate {
  position: relative; display: block; padding: 36px 34px 30px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(255,255,255,.055), transparent 44%), var(--surface);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(0,0,0,.25);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s ease, box-shadow .3s ease;
}
.gate::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(340px 200px at var(--mx,50%) var(--my,0%), rgba(255,255,255,.09), transparent 70%);
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.gate:not(.locked):hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 -1px 0 rgba(0,0,0,.25), 0 22px 50px -20px rgba(0,0,0,.65); }
.gate:not(.locked):hover::after { opacity: 1; }
.gate-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.gate-arch { width: 46px; height: 46px; color: var(--accent); }
.badge { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--text-3); white-space: nowrap; }
.badge.live { color: var(--accent-2); border-color: rgba(217,181,106,.4); background: var(--accent-bg); }
.gate h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 10px; }
.gate p { font-size: 15px; color: var(--text-2); margin: 0 0 22px; line-height: 1.55; min-height: 3em; }
.gate-go { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--accent-2); }
.gate-go svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.gate:hover .gate-go svg { transform: translateX(4px); }
.gate.locked .gate-go { color: var(--text-3); }

/* Door transition veil */
.veil { position: fixed; inset: 0; z-index: 200; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .5s ease; display: grid; place-items: center; }
.veil.active { opacity: 1; }
.veil svg { width: 90px; height: 90px; color: var(--accent); opacity: 0; }
.veil.active svg { animation: gatePulse .5s var(--ease) forwards; }
@keyframes gatePulse { 0%{ opacity:0; transform: scale(.9);} 100%{ opacity:1; transform: scale(1.05);} }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 120px 1fr; gap: 40px; align-items: center; }
@media (max-width: 620px){ .founder { grid-template-columns: 1fr; text-align: left; gap: 24px; } }
.founder-mark { width: 108px; height: 108px; border-radius: 24px; border: 1px solid var(--line-2); background: linear-gradient(135deg, rgba(255,255,255,.07), transparent 50%), var(--surface); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); box-shadow: inset 0 1px 0 rgba(255,255,255,.09); display: grid; place-items: center; color: var(--accent); }
.founder-mark svg { width: 52px; height: 52px; }
.founder h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.founder .role { font-size: 14px; color: var(--accent-2); margin-bottom: 16px; }
.founder p { font-size: 17px; color: var(--text-2); margin: 0; max-width: 60ch; line-height: 1.6; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 50px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 50px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand svg { width: 26px; height: 26px; color: var(--accent); }
.footer-brand .logo-word { font-size: 16px; font-weight: 600; }
.footer-addr { font-size: 14px; color: var(--text-3); line-height: 1.8; }
.footer-addr a { color: var(--text-2); }
.footer-addr a:hover { color: var(--text); }
.footer-col h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 11px; transition: color .2s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }

/* ---------- Legal ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 160px 0 100px; }
.legal h1 { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 10px; }
.legal .updated { font-size: 13px; color: var(--text-3); margin-bottom: 44px; }
.legal h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 40px 0 14px; }
.legal p, .legal li { font-size: 15.5px; color: var(--text-2); line-height: 1.75; }
.legal ul { padding-left: 20px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent-2); }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); margin-bottom: 36px; }
.back:hover { color: var(--text); }
