/* ZRE Ventures home page (Luca's design, received 2026-11-25). Only index.html loads it; contact, privacy and
   terms keep site.css. Fonts are self-hosted in fonts/ (SIL Open Font License, from Google Fonts), because the
   server's and the preview's CSP allow same-origin styles, fonts and scripts only. site.js drives the nav, the
   mobile menu, the scroll reveal (.reveal.in) and the form (form.cform, data-kind="deal"). */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/cormorant-garamond.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url(fonts/cormorant-garamond-italic.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url(fonts/dm-sans.woff2) format("woff2"); }

:root {
  --dark: #0d1520;
  --dark-mid: #121e2e;
  --dark-light: #1a2d44;
  --blue: #4a9fd4;
  --blue-light: #6db8e8;
  --blue-dim: rgba(74, 159, 212, .12);
  --blue-border: rgba(74, 159, 212, .22);
  --white: #ffffff;
  --offwhite: #f0f4f8;
  --muted: #8a9fb5;
  --error: #f08080;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { background: var(--dark); color: var(--offwhite); font-family: var(--sans); font-weight: 300; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: linear-gradient(to bottom, rgba(13, 21, 32, .97) 0%, rgba(13, 21, 32, 0) 100%); border-bottom: 1px solid transparent; transition: border-color .4s, background .4s, transform .4s; }
.nav.scrolled { background: rgba(13, 21, 32, .98); border-color: var(--blue-border); }
.nav.open { background: var(--dark); border-color: var(--blue-border); }
.nav.hidden { transform: translateY(-100%); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px var(--gutter); }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
/* logo (David, 2026-11-25): Luca's original, "ZRE" in a blue box, set in the serif; flat and square-cornered so it reads as a mark, not a button; "ZRE / Ventures" beside it */
.logo-mark { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 58px; height: 46px; padding-left: .12em; background: #3a8cc4; font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .12em; line-height: 1; color: #fff; }
.logo-wordmark { display: flex; flex-direction: column; gap: 6px; text-transform: uppercase; white-space: nowrap; line-height: 1; }
.logo-zre { font-size: 19px; font-weight: 700; letter-spacing: .16em; color: var(--white); }
.logo-sub { font-size: 9.5px; font-weight: 500; letter-spacing: .5em; color: var(--blue-light); }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { color: var(--muted); font-size: 13px; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: color .2s; }
.nav-links a:hover { color: var(--blue-light); }
.nav-cta, .btn-primary, .btn-ghost, .submit-btn { font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-radius: 4px; cursor: pointer; transition: background .25s, border-color .25s, color .25s, transform .25s; display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; }
.nav-cta { background: var(--blue); color: var(--white); font-size: 12px; font-weight: 500; padding: 10px 24px; border: 0; }
.btn-primary { background: var(--blue); color: var(--white); font-weight: 500; padding: 15px 34px; border: 0; }
.btn-ghost { background: transparent; color: var(--offwhite); padding: 15px 34px; border: 1px solid rgba(240, 244, 248, .2); }
.nav-cta:hover, .btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-light); }
.menu-btn { display: none; background: none; border: 0; color: var(--white); cursor: pointer; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1px; background: currentColor; transition: transform .3s, top .3s; }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.nav.open .menu-btn span:first-child { top: 22px; transform: rotate(45deg); }
.nav.open .menu-btn span:last-child { top: 22px; transform: rotate(-45deg); }
.mobile { display: none; }

/* HERO */
#hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; padding: 120px var(--gutter) 80px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 55% 55% at 75% 45%, rgba(74, 159, 212, .10) 0%, transparent 65%), radial-gradient(ellipse 40% 60% at 10% 90%, rgba(74, 159, 212, .05) 0%, transparent 60%), linear-gradient(145deg, #0d1520 0%, #121e2e 55%, #0a1828 100%); }
.hero-grid { position: absolute; inset: 0; z-index: 0; opacity: .035; background-image: linear-gradient(var(--blue) 1px, transparent 1px), linear-gradient(90deg, var(--blue) 1px, transparent 1px); background-size: 72px 72px; }
.hero-ring { position: absolute; right: -120px; top: 50%; transform: translateY(-50%); width: 600px; height: 600px; border-radius: 50%; z-index: 0; border: 1px solid rgba(74, 159, 212, .10); }
.hero-ring::after { content: ""; position: absolute; inset: 40px; border-radius: 50%; border: 1px solid rgba(74, 159, 212, .08); }
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-bottom: 28px; opacity: 0; animation: fadeUp .8s .2s forwards; }
.hero-tag::before { content: ""; display: block; width: 28px; height: 1px; background: var(--blue); }
h1 { font-family: var(--serif); font-size: clamp(42px, 6.5vw, 90px); font-weight: 300; line-height: 1.05; color: var(--white); margin-bottom: 28px; opacity: 0; animation: fadeUp .9s .35s forwards; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--blue-light); }
.hero-sub { font-size: 16px; line-height: 1.85; color: var(--muted); max-width: 500px; margin-bottom: 48px; opacity: 0; animation: fadeUp .9s .5s forwards; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: fadeUp .9s .65s forwards; }
.hero-stats { position: absolute; bottom: 60px; right: var(--gutter); z-index: 1; display: flex; gap: 48px; list-style: none; opacity: 0; animation: fadeUp .9s .8s forwards; }
.stat { text-align: right; }
.stat-num { font-family: var(--serif); font-size: 36px; font-weight: 300; color: var(--white); line-height: 1; white-space: nowrap; }
.stat-label { font-size: 11px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin-top: 6px; }

/* MARQUEE: two identical groups slide left by one group's width; the second is aria-hidden */
.marquee-wrap { border-top: 1px solid var(--blue-border); border-bottom: 1px solid var(--blue-border); padding: 16px 0; overflow: hidden; background: var(--dark-mid); width: 100%; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-group { display: flex; flex-shrink: 0; list-style: none; }
.marquee-item { display: inline-flex; align-items: center; gap: 28px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0 36px 0 0; white-space: nowrap; }
.marquee-item::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }

/* SECTIONS */
section { padding: 100px var(--gutter); }
.section-tag { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.section-tag::before { content: ""; display: block; width: 22px; height: 1px; background: var(--blue); }
h2 { font-family: var(--serif); font-size: clamp(34px, 4.2vw, 60px); font-weight: 300; line-height: 1.1; color: var(--white); text-wrap: balance; }

/* ABOUT */
#about { background: var(--dark-mid); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-top: 60px; }
.about-text p { font-size: 15px; line-height: 1.95; color: var(--muted); margin-bottom: 22px; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--offwhite); font-weight: 400; }
.about-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--blue-border); border: 1px solid var(--blue-border); border-radius: 6px; overflow: hidden; }
.spec-cell { background: var(--dark-light); padding: 28px 22px; }
.spec-label { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.spec-values { font-size: 13px; line-height: 1.75; color: var(--offwhite); }

/* FORM */
#submit-deal { background: var(--dark-light); position: relative; overflow: hidden; }
#submit-deal::before { content: ""; position: absolute; top: -300px; right: -300px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(74, 159, 212, .06) 0%, transparent 70%); pointer-events: none; }
.form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 60px; align-items: start; position: relative; }
.form-intro p { font-size: 15px; line-height: 1.9; color: var(--muted); margin-bottom: 40px; }
.process-steps { display: flex; flex-direction: column; gap: 26px; list-style: none; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num { font-family: var(--serif); font-size: 26px; font-weight: 300; color: var(--blue); line-height: 1; flex-shrink: 0; width: 30px; }
.step-text { padding-top: 3px; }
.step-text strong { font-size: 13px; color: var(--white); font-weight: 500; display: block; margin-bottom: 3px; }
.step-text span { font-size: 13px; color: var(--muted); line-height: 1.65; }
.deal-form { display: flex; flex-direction: column; min-width: 0; }
.deal-form fieldset { border: 0; min-width: 0; }
.form-section-label { display: block; width: 100%; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--blue-border); }
fieldset + fieldset .form-section-label { margin-top: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; min-width: 0; }
.form-group label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.form-group label .req { color: var(--blue-light); }
.form-group input, .form-group select, .form-group textarea { background: rgba(255, 255, 255, .04); border: 1px solid var(--blue-border); color: var(--white); font-family: var(--sans); font-size: 16px; font-weight: 300; padding: 12px 15px; min-height: 48px; outline: none; border-radius: 4px; transition: border-color .2s, background .2s; width: 100%; }
.form-group select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-group select:invalid { color: rgba(138, 159, 181, .7); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(138, 159, 181, .55); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); background-color: rgba(74, 159, 212, .05); }
.form-group select option { background: var(--dark-mid); color: var(--white); }
.form-group [aria-invalid="true"] { border-color: var(--error); }
.err { font-size: 12px; color: var(--error); line-height: 1.4; }
.err:empty { display: none; }
.send-err { margin-top: 12px; text-align: center; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit-btn { background: var(--blue); color: var(--white); font-weight: 500; padding: 17px 40px; border: 0; margin-top: 6px; width: 100%; }
.submit-btn:hover { background: var(--blue-light); transform: translateY(-1px); }
.submit-btn:disabled { opacity: .6; cursor: progress; transform: none; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; line-height: 1.6; }
.form-note a { color: var(--offwhite); }
.done { text-align: center; padding: 48px 24px; border: 1px solid var(--blue-border); background: var(--blue-dim); border-radius: 6px; }
.done .tick { width: 52px; height: 52px; border-radius: 12px; background: var(--blue); color: var(--white); font-size: 22px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.done h3 { font-family: var(--serif); font-size: 28px; font-weight: 300; color: var(--white); margin-bottom: 12px; }
.done p { color: var(--muted); font-size: 14px; line-height: 1.75; margin-bottom: 18px; }
.done a { display: inline-block; color: var(--blue-light); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 10px 0; }

/* FOOTER */
footer { background: #080f18; border-top: 1px solid var(--blue-border); padding: 56px var(--gutter) max(32px, env(safe-area-inset-bottom)); }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px 48px; padding-bottom: 36px; border-bottom: 1px solid var(--blue-border); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 36px; }
.footer-links a { display: block; padding: 12px 0; font-size: 12px; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--blue-light); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; }
.footer-copy { font-size: 12px; letter-spacing: .04em; color: rgba(138, 159, 181, .6); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* hidden only once site.js has run (it adds .js to <html>), so the page stays readable if the script never loads */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* TABLET AND PHONE */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .about-grid, .form-layout { gap: 56px; }
}
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .nav-in { padding: 14px var(--gutter); }
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  /* visibility keeps the closed menu's links out of the tab order; the delay lets the closing slide play */
  .mobile { display: block; max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .35s ease, visibility 0s linear .35s; }
  .nav.open .mobile { max-height: 80vh; visibility: visible; transition: max-height .35s ease, visibility 0s; }
  .mobile-in { display: flex; flex-direction: column; padding: 4px var(--gutter) 24px; }
  .mobile-in a { color: var(--offwhite); text-decoration: none; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; padding: 14px 0; border-bottom: 1px solid var(--blue-border); }
  .mobile-in .btn-primary { margin-top: 20px; border-bottom: 0; color: var(--white); }
  section { padding: 72px var(--gutter); }
  #hero { padding: 120px var(--gutter) 56px; justify-content: flex-end; }
  .hero-sub { margin-bottom: 36px; }
  .hero-stats { position: static; margin-top: 48px; flex-wrap: wrap; gap: 24px 40px; }
  .stat { text-align: left; }
  .hero-ring { display: none; }
  .about-grid, .form-layout { grid-template-columns: 1fr; gap: 44px; margin-top: 40px; }
  .form-intro p { margin-bottom: 32px; }
  footer { padding-top: 44px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer-links { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 40px; }
}
@media (max-width: 600px) {
  .footer-links { grid-template-columns: 1fr 1fr; width: 100%; gap: 4px 24px; }
  .footer-bottom { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .about-specs { grid-template-columns: 1fr; }
  .spec-cell { padding: 22px 20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions a { width: 100%; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-stats .stat:first-child { grid-column: 1 / -1; }
  .stat-num { font-size: 32px; }
  .logo-zre { font-size: 17px; }
  .logo-sub { font-size: 9px; letter-spacing: .44em; }
  .logo-mark { width: 48px; height: 40px; font-size: 19px; }
  #hero { padding-top: 96px; }
  .hero-tag { margin-bottom: 20px; }
  h1 { margin-bottom: 20px; }
  .hero-sub { margin-bottom: 28px; }
  .hero-stats { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
