/* ===================================================================
   M66 VENTURES — luxury black & gold one-page site
   Fonts: Bodoni Moda (display) + Jost (sans)
   =================================================================== */

:root {
  --bg:        #0A0A0C;
  --bg-2:      #0E0E12;
  --bg-3:      #131318;
  --text:      #ECEAE4;
  --muted:     #9C988E;
  --muted-2:   #6F6C66;

  /* Signature gold gradient (matches the logo wordmark) */
  --gold-grad: linear-gradient(135deg, #BF953F 0%, #FCF6BA 28%, #D9B96B 50%, #FBF5B7 72%, #AA771C 100%);
  --gold:      #D6B158;
  --gold-soft: rgba(214, 177, 88, 0.14);
  --gold-line: rgba(214, 177, 88, 0.22);
  --platinum:  linear-gradient(135deg, #E8E8EC 0%, #BFC2C8 45%, #FFFFFF 60%, #9DA0A7 100%);

  --line:      rgba(255, 255, 255, 0.08);
  --card:      rgba(255, 255, 255, 0.022);
  --card-line: rgba(255, 255, 255, 0.07);

  --maxw:      1180px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --radius:    14px;

  --z-nav: 50;
  --z-drop: 60;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Jost', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle film-grain / vignette via fixed layers */
body::before {
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(120% 80% at 50% -10%, rgba(214,177,88,0.10), transparent 55%),
              radial-gradient(100% 60% at 50% 120%, rgba(214,177,88,0.06), transparent 60%);
  pointer-events: none; z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.container--narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--gold); color: #15110A; padding: 10px 16px; border-radius: 0 0 8px 0;
  font-weight: 500;
}
.skip-link:focus { left: 0; }

/* ---------- shared type ---------- */
.gold {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow, .kicker {
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.kicker { position: relative; padding-left: 46px; }
.kicker::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold)); transform: translateY(-50%);
}

.section { padding: clamp(72px, 11vw, 150px) 0; position: relative; z-index: 1; }
.section__title {
  font-family: 'Bodoni Moda', serif; font-weight: 500;
  font-size: clamp(28px, 4.6vw, 50px); line-height: 1.12; letter-spacing: -0.01em;
  color: var(--text); margin-bottom: 22px; max-width: 16ch;
}
.section__intro { color: var(--muted); max-width: 56ch; font-size: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 30px; border-radius: 50px; font-family: 'Jost', sans-serif;
  font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; border: 1px solid transparent; transition: all .35s var(--ease);
  white-space: nowrap;
}
.btn--gold {
  background: var(--gold-grad); color: #1A1407; background-size: 180% 180%; background-position: 0% 50%;
  box-shadow: 0 6px 30px -10px rgba(214,177,88,0.55);
}
.btn--gold:hover { background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 12px 40px -10px rgba(214,177,88,0.7); }
.btn--ghost { color: var(--text); border-color: var(--gold-line); background: rgba(255,255,255,0.01); }
.btn--ghost:hover { border-color: var(--gold); color: #fff; background: var(--gold-soft); transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ===================== NAV ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10,10,12,0.78);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  height: 78px; display: flex; align-items: center; justify-content: space-between;
  transition: height .4s var(--ease);
}
.nav.is-scrolled .nav__inner { height: 66px; }

/* brand wordmark */
.brand { display: inline-flex; align-items: baseline; gap: 9px; line-height: 1; }
.brand__mark {
  font-family: 'Bodoni Moda', serif; font-weight: 700; font-size: 23px; letter-spacing: 0.04em;
  background: var(--gold-grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.brand__word {
  font-family: 'Bodoni Moda', serif; font-weight: 400; font-size: 22px; letter-spacing: 0.22em;
  background: var(--platinum); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.brand__emblem { display: inline-flex; gap: 2px; align-items: flex-end; margin-left: 4px; }
.brand__emblem i { width: 2px; height: 13px; background: var(--gold-grad); display: block; }
.brand__emblem i:nth-child(2) { height: 17px; }

.nav__menu { display: flex; align-items: center; gap: 8px; }
.nav__link {
  position: relative; font-size: 14px; font-weight: 400; letter-spacing: 0.06em;
  color: var(--text); padding: 10px 16px; border-radius: 8px; background: none; border: none;
  cursor: pointer; font-family: 'Jost', sans-serif; transition: color .3s var(--ease);
  display: inline-flex; align-items: center; gap: 7px;
}
.nav__link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); opacity: .8;
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* dropdown */
.dropdown { position: relative; }
.dropdown__btn .chev { transition: transform .35s var(--ease); }
.dropdown.is-open .dropdown__btn { color: #fff; }
.dropdown.is-open .chev { transform: rotate(180deg); }
.dropdown__menu {
  position: absolute; top: calc(100% + 14px); right: 0; width: 360px; z-index: var(--z-drop);
  background: linear-gradient(180deg, rgba(20,20,25,0.98), rgba(14,14,18,0.98));
  border: 1px solid var(--card-line); border-radius: var(--radius); padding: 8px;
  box-shadow: 0 30px 70px -25px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.04);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.985); transform-origin: top right;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.dropdown.is-open .dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.dropdown__menu::before {
  content: ""; position: absolute; top: 1px; left: 8px; right: 8px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}
.pc {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px;
  padding: 13px 14px; border-radius: 10px; transition: background .25s var(--ease);
  position: relative;
}
.pc__name { font-family: 'Bodoni Moda', serif; font-size: 16px; font-weight: 500; color: var(--text); grid-column: 1; }
.pc__desc { font-size: 12.5px; color: var(--muted); grid-column: 1; line-height: 1.45; }
.pc__arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--gold); opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .25s; }
a.pc:hover { background: var(--gold-soft); }
a.pc:hover .pc__name { color: #fff; }
a.pc:hover .pc__arrow { opacity: 1; transform: translateX(2px); }
a.pc:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.pc--soon { opacity: 0.62; }
.pc__tag {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--gold-line); border-radius: 50px; padding: 4px 9px; white-space: nowrap;
}

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__glow {
  position: absolute; left: 50%; top: 38%; width: 900px; height: 900px; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(214,177,88,0.13), transparent 60%); filter: blur(20px);
}
.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.7; }
.hero__lines path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 3.4s var(--ease) forwards; }
.hero__lines path:nth-child(2) { animation-delay: .25s; }
.hero__lines path:nth-child(3) { animation-delay: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__inner { position: relative; z-index: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; text-align: center; }
.hero__title {
  font-family: 'Bodoni Moda', serif; font-weight: 500;
  font-size: clamp(40px, 8vw, 92px); line-height: 1.05; letter-spacing: -0.015em;
  margin: 0 auto 26px; max-width: 16ch;
}
.hero__sub { color: var(--muted); font-size: clamp(16px, 2.2vw, 21px); max-width: 60ch; margin: 0 auto 40px; line-height: 1.65; }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero__scroll { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1px solid var(--gold-line); border-radius: 20px; z-index: 1; }
.hero__scroll span { position: absolute; top: 9px; left: 50%; width: 3px; height: 8px; background: var(--gold); border-radius: 2px; transform: translateX(-50%); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; top: 9px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ===================== ABOUT ===================== */
.about__lead { font-family: 'Bodoni Moda', serif; font-weight: 400; font-size: clamp(20px, 2.8vw, 28px); line-height: 1.55; color: #D8D4CC; max-width: 62ch; }

/* ===================== HOLDINGS GRID ===================== */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 54px; }
.card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding: 34px 30px 30px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--card-line);
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
  overflow: hidden; min-height: 230px;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--gold-line), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s var(--ease);
}
a.card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.04); border-color: transparent; box-shadow: 0 26px 60px -28px rgba(0,0,0,0.9); }
a.card:hover::before { opacity: 1; }
a.card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.card__mono {
  font-family: 'Bodoni Moda', serif; font-weight: 700; font-size: 26px; letter-spacing: 0.02em;
  width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-line); border-radius: 12px; margin-bottom: 22px;
  background: linear-gradient(160deg, rgba(214,177,88,0.12), transparent 70%);
  color: var(--gold);
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
a.card:hover .card__mono { border-color: var(--gold); background: linear-gradient(160deg, rgba(214,177,88,0.20), transparent 70%); }
.card__name { font-family: 'Bodoni Moda', serif; font-weight: 500; font-size: 23px; margin-bottom: 9px; color: var(--text); }
.card__desc { color: var(--muted); font-size: 15px; line-height: 1.55; margin-bottom: 20px; flex: 1; }
.card__link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); transition: gap .3s var(--ease); }
a.card:hover .card__link { gap: 12px; }
.card__tag { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); border: 1px solid var(--line); border-radius: 50px; padding: 5px 12px; }
.card--soon { cursor: default; }
.card--soon .card__mono { opacity: 0.7; }

/* ===================== PHILOSOPHY ===================== */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 54px; }
.pillar { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--card-line); background: var(--card); transition: border-color .4s var(--ease), transform .4s var(--ease); }
.pillar:hover { border-color: var(--gold-line); transform: translateY(-4px); }
.pillar__icon { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 12px; color: var(--gold); background: var(--gold-soft); margin-bottom: 20px; }
.pillar__title { font-family: 'Bodoni Moda', serif; font-weight: 500; font-size: 19px; margin-bottom: 10px; }
.pillar__text { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ===================== CONTACT ===================== */
.contact { text-align: center; }
.contact .kicker { display: inline-block; }
.contact .section__intro { margin: 0 auto; }
.form { margin: 44px auto 0; text-align: left; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 9px; }
.field .opt { color: var(--muted-2); text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  width: 100%; background: rgba(255,255,255,0.025); border: 1px solid var(--card-line); border-radius: 10px;
  padding: 14px 16px; color: var(--text); font-family: 'Jost', sans-serif; font-size: 16px; font-weight: 300;
  transition: border-color .3s var(--ease), background .3s var(--ease); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(214,177,88,0.05); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.form__submit { width: 100%; margin-top: 6px; }
.form__submit[disabled] { opacity: 0.6; cursor: not-allowed; }
.form__status { text-align: center; margin-top: 16px; font-size: 14.5px; min-height: 20px; }
.form__status.is-ok { color: #7BD49A; }
.form__status.is-err { color: #E59A8C; }
.contact__email { margin-top: 30px; color: var(--muted); font-size: 15px; }
.contact__email a { color: var(--gold); border-bottom: 1px solid var(--gold-line); padding-bottom: 1px; transition: border-color .3s; }
.contact__email a:hover { border-color: var(--gold); }

/* ===================== FOOTER ===================== */
.footer { border-top: 1px solid var(--line); padding: 40px 0; position: relative; z-index: 1; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand--sm .brand__mark { font-size: 18px; } .brand--sm .brand__word { font-size: 17px; }
.footer__copy { color: var(--muted-2); font-size: 13.5px; letter-spacing: 0.04em; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { color: var(--muted); font-size: 13.5px; transition: color .3s; }
.footer__links a:hover { color: var(--gold); }

/* ===================== REVEAL ANIMATION ===================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__menu {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,10,12,0.98); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    padding: 12px 20px 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav__menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__link { padding: 15px 8px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; justify-content: space-between; }
  .nav__link::after { display: none; }
  .nav__toggle { display: flex; }
  .dropdown { width: 100%; }
  .dropdown__menu {
    position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: transparent; border: none; padding: 0 0 6px; display: none;
  }
  .dropdown.is-open .dropdown__menu { display: block; }
  .dropdown__menu::before { display: none; }
  .pc { padding: 12px 8px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .btn { width: 100%; }
  .hero__cta { width: 100%; }
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__lines path { stroke-dashoffset: 0; }
}
