/* ===========================================================
   NESTLY VENTURES — Design tokens
   =========================================================== */
:root {
  --ink:        #0A1830;   /* primary deep navy */
  --ink-soft:   #142845;   /* panel navy */
  --paper:      #FAF8F3;   /* warm off-white */
  --paper-dim:  #F1EEE5;
  --gold:       #B8892C;   /* muted institutional gold */
  --gold-bright:#D8AE55;
  --slate:      #4B5563;
  --slate-light:#8891A0;
  --line:       rgba(10,24,48,0.10);
  --line-dark:  rgba(216,174,85,0.20);

  --font-display: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ===========================================================
   NAV
   =========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled {
  background: rgba(10,24,48,0.94);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}
.brand .mark {
  width: 30px; height: 30px;
  border: 1.5px solid var(--gold);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold);
}

.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--gold-bright); }
.nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold-bright) !important;
  padding: 9px 20px;
  border-radius: 2px;
  font-size: 13px !important;
}
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  background: linear-gradient(180deg, var(--ink) 0%, #0D1E3A 100%);
  color: #fff;
  padding: 190px 0 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%; top: 10%;
  width: 620px; height: 620px;
  border: 1px solid rgba(216,174,85,0.09);
  border-radius: 50%;
}
.hero::before {
  content: "";
  position: absolute;
  right: 6%; top: 22%;
  width: 420px; height: 420px;
  border: 1px solid rgba(216,174,85,0.14);
  border-radius: 50%;
}
.hero-inner { max-width: 760px; position: relative; z-index: 2; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.12;
  font-weight: 700;
  margin: 0 0 26px;
  letter-spacing: -0.01em;
}
.hero p.lead {
  font-size: 19px;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 0 40px;
  font-weight: 300;
}
.hero-ctas { display: flex; gap: 16px; margin-bottom: 100px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,0.3); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-ghost-dark { border-color: rgba(10,24,48,0.25); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* Ticker — signature element: subsidiary index strip */
.ticker {
  position: relative;
  border-top: 1px solid var(--line-dark);
  background: rgba(0,0,0,0.18);
  overflow: hidden;
  padding: 20px 0;
}
.ticker-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: scroll-left 34s linear infinite;
  width: max-content;
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
.ticker-track span {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-light);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.ticker-track span em {
  color: var(--gold);
  font-style: normal;
}
.ticker-track span::after {
  content: "•";
  color: rgba(216,174,85,0.35);
  margin-left: 14px;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===========================================================
   SECTION shell
   =========================================================== */
section { padding: 120px 0; }
.section-head { max-width: 680px; margin-bottom: 64px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--slate); font-size: 17px; margin: 0; }

/* ===========================================================
   ABOUT
   =========================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}
.about-text p { font-size: 17px; color: var(--slate); margin: 0 0 18px; }
.vm-stack { display: flex; flex-direction: column; gap: 2px; }
.vm-card {
  background: var(--ink);
  color: #fff;
  padding: 34px 36px;
  position: relative;
}
.vm-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--gold);
}
.vm-card h3 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 12px;
  font-weight: 600;
}
.vm-card p { margin: 0; font-size: 18px; font-family: var(--font-display); line-height: 1.5; color: #EDE9DE; }

/* ===========================================================
   BUSINESSES — ledger / subsidiary index
   =========================================================== */
.businesses { background: var(--paper-dim); }
.ledger { border-top: 1px solid var(--line); }
.ledger-row {
  display: grid;
  grid-template-columns: 60px 1fr 1.4fr 160px;
  gap: 28px;
  align-items: center;
  padding: 30px 6px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease, padding-left 0.25s ease;
}
.ledger-row:hover {
  border-left-color: var(--gold);
  background: rgba(184,137,44,0.045);
  padding-left: 18px;
}
.ledger-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--slate-light);
  letter-spacing: 0.05em;
}
.ledger-name {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  color: var(--ink);
}
.ledger-desc { color: var(--slate); font-size: 15.5px; }
.ledger-tag {
  justify-self: end;
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line-dark);
  padding: 7px 14px;
  border-radius: 2px;
  white-space: nowrap;
}

/* ===========================================================
   WHY US — band
   =========================================================== */
.why { background: var(--ink); color: #fff; }
.why .section-head p { color: rgba(255,255,255,0.6); }
.why .section-head h2 { color: #fff; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
}
.why-item {
  background: var(--ink);
  padding: 34px 30px;
}
.why-item .dash {
  width: 22px; height: 2px; background: var(--gold);
  margin-bottom: 18px;
}
.why-item h4 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 700;
}
.why-item p { margin: 0; font-size: 14.5px; color: rgba(255,255,255,0.55); }

/* ===========================================================
   INDUSTRIES
   =========================================================== */
.industries-list { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
}

/* ===========================================================
   CONTACT
   =========================================================== */
.contact { background: var(--paper-dim); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.contact-card {
  background: var(--ink);
  color: #fff;
  padding: 56px;
  position: relative;
}
.contact-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--gold);
}
.contact-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.contact-row:last-child { border-bottom: none; }
.contact-row .label { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-bright); width: 90px; flex-shrink: 0; padding-top: 3px; }
.contact-row .value { font-size: 16px; color: #EDE9DE; }

/* ===========================================================
   FOOTER
   =========================================================== */
footer { background: var(--ink); color: rgba(255,255,255,0.55); padding: 80px 0 30px; border-top: 1px solid rgba(216,174,85,0.15); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: 14.5px; max-width: 280px; line-height: 1.7; }
.footer-col h5 {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 20px; font-weight: 600;
}
.footer-col a, .footer-col span {
  display: block; font-size: 14.5px; margin-bottom: 13px; color: rgba(255,255,255,0.6);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--gold-bright); }
.footer-col .soon { color: rgba(255,255,255,0.28); cursor: default; }
.footer-col .soon::after { content: " — Coming Soon"; font-size: 11px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 26px;
  font-size: 13px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ===========================================================
   Reveal on scroll
   =========================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===========================================================
   Focus visibility
   =========================================================== */
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero { padding-top: 140px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-grid { grid-template-columns: 1fr; }
  .ledger-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 6px; }
  .ledger-tag { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  section { padding: 80px 0; }
  .wrap { padding: 0 22px; }
}
