/* ============================================================
   NIGHTWING VENTURES — design tokens
   Atelier x pit-lane: Tom Ford discipline, McLaren precision.
   ============================================================ */

:root{
  --ink:        #0b0b0d;   /* warm near-black, primary background */
  --ink-2:      #0f0f12;   /* secondary background */
  --panel:      #17171b;   /* card surface */
  --panel-2:    #1e1e23;   /* card surface, hover */
  --hairline:   rgba(180,145,91,0.28);
  --hairline-strong: rgba(180,145,91,0.55);
  --paper:      #ece7de;   /* primary text on dark */
  --ash:        #adadb6;   /* secondary text — brightened for legibility */
  --ash-dim:    #8f8f98;   /* tertiary / caption text — brightened for legibility */
  --bronze:     #b4915b;   /* metal accent — labels, rules, hardware */
  --papaya:     #d9531e;   /* burnt papaya — single kinetic accent */

  --display: 'Syne', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --maxw: 1180px;
  --edge: clamp(24px, 5vw, 64px);
}

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

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

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

::selection{ background: var(--papaya); color: var(--ink); }

:focus-visible{
  outline: 2px solid var(--papaya);
  outline-offset: 3px;
}

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

.eyebrow{
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content:"";
  width: 22px;
  height: 1px;
  background: var(--bronze);
  display:inline-block;
}

h1, h2, h3{
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
  color: var(--paper);
}

h1{ font-size: clamp(40px, 6.4vw, 92px); line-height: 0.98; }
h2{ font-size: clamp(28px, 3.6vw, 46px); line-height: 1.04; }
h3{ font-size: 20px; letter-spacing: 0; }

p{ margin: 0; color: var(--ash); }
p.lede{ color: var(--paper); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; }

/* ---------------- Nav ---------------- */
.nav{
  position: sticky; top:0; z-index: 40;
  background: rgba(11,11,13,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--edge);
  display:flex; align-items:center; justify-content:space-between;
}
.wordmark{
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
}
.wordmark span{ color: var(--bronze); }
.wordmark.small{ font-size: 15px; }

.nav-links{ display:flex; gap: 36px; }
.nav-links a{
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ash);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after{
  content:"";
  position:absolute; left:0; bottom:0;
  width:0; height:1px; background: var(--papaya);
  transition: width .25s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"]{ color: var(--paper); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after{ width:100%; }

.nav-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  width: 28px; height: 20px;
  flex-direction: column; justify-content: space-between;
  padding: 0;
}
.nav-toggle span{ display:block; height:1px; background: var(--paper); }

/* ---------------- Hero ---------------- */
.hero{
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--hairline);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: end;
}
.hero-copy{ display:flex; flex-direction:column; gap:22px; }
.hero-line{
  height:1px; background: var(--papaya);
  width: 100%;
  transform-origin: left;
  animation: draw 1.1s cubic-bezier(.65,0,.35,1) both;
}
@keyframes draw{ from{ transform: scaleX(0); } to{ transform: scaleX(1); } }

.spec-plate{
  border: 1px solid var(--hairline);
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ash);
  display:flex; flex-direction:column; gap:10px;
}
.spec-plate .row{ display:flex; justify-content:space-between; gap: 12px; border-bottom: 1px dashed var(--hairline); padding-bottom:8px; }
.spec-plate .row:last-child{ border-bottom:none; padding-bottom:0; }
.spec-plate .row span:first-child{ color: var(--ash-dim); text-transform:uppercase; letter-spacing:.08em; }
.spec-plate .row span:last-child{ color: var(--paper); text-align:right; }

/* ---------------- Sections ---------------- */
section{ padding: 88px 0; }
section.tight{ padding: 64px 0; }
.section-head{ display:flex; flex-direction:column; gap:16px; margin-bottom: 48px; max-width: 720px; }

.rule{ height:1px; background: var(--hairline); border:none; margin:0; }

/* Four pillars strip */
.pillars{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
}
.pillar{
  padding: 28px 22px;
  border-right: 1px solid var(--hairline);
}
.pillar:last-child{ border-right:none; }
.pillar .num{
  font-family: var(--mono); font-size:12px; color: var(--bronze);
  letter-spacing:.1em;
}
.pillar h3{ margin: 14px 0 10px; }
.pillar p{ font-size: 15.5px; }

/* CTA row */
.cta-row{
  display:flex; flex-wrap:wrap; gap: 18px; align-items:center;
}
.btn{
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid var(--bronze);
  display:inline-flex; align-items:center; gap:10px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover{ background: var(--papaya); border-color: var(--papaya); color: var(--ink); }
.btn.ghost{ border-color: var(--hairline-strong); }
.btn.ghost:hover{ background: transparent; color: var(--paper); border-color: var(--paper); }

/* ---------------- Spec cards (Investment Themes signature) ---------------- */
.theme-card{
  position: relative;
  border: 1px solid var(--hairline);
  background: var(--panel);
  padding: 40px 36px;
  display:grid;
  grid-template-columns: 120px 1.3fr 1fr;
  gap: 32px;
  align-items:start;
}
.theme-card + .theme-card{ margin-top: 22px; }

.theme-num{
  font-family: var(--display);
  font-weight: 800;
  font-size: 40px;
  color: transparent;
  -webkit-text-stroke: 1px var(--bronze);
}
.theme-title{ font-family: var(--display); font-size: 21px; font-weight: 800; margin-bottom: 12px; letter-spacing:-.01em; }
.theme-body p{ font-size: 15.5px; }

.theme-specs{ font-family: var(--mono); font-size: 13.5px; display:flex; flex-direction:column; gap:10px; }
.theme-specs .row{ display:flex; flex-direction:column; gap:2px; border-left: 2px solid var(--hairline); padding-left: 12px; }
.theme-specs .row b{ color: var(--ash-dim); text-transform:uppercase; letter-spacing:.06em; font-weight:500; font-size:12px; }
.theme-specs .row span{ color: var(--paper); }

/* corner brackets — signature motif, appear on hover */
.theme-card::before, .theme-card::after,
.theme-card .bracket-tr, .theme-card .bracket-bl{
  content:""; position:absolute; width:16px; height:16px;
  border-color: var(--papaya); opacity:0; transition: opacity .2s ease, transform .2s ease;
}
.theme-card::before{ top:-1px; left:-1px; border-top:1px solid; border-left:1px solid; transform: translate(4px,4px); }
.theme-card .bracket-tr{ top:-1px; right:-1px; border-top:1px solid; border-right:1px solid; transform: translate(-4px,4px); }
.theme-card .bracket-bl{ bottom:-1px; left:-1px; border-bottom:1px solid; border-left:1px solid; transform: translate(4px,-4px); }
.theme-card::after{ bottom:-1px; right:-1px; border-bottom:1px solid; border-right:1px solid; transform: translate(-4px,-4px); }

.theme-card:hover::before, .theme-card:hover::after,
.theme-card:hover .bracket-tr, .theme-card:hover .bracket-bl{
  opacity:1; transform: translate(0,0);
}

/* ---------------- What-we-are / prose block ---------------- */
.prose{ max-width: 760px; }
.prose p + p{ margin-top: 16px; }

/* ---------------- Contact ---------------- */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.plate{
  border: 1px solid var(--hairline);
  padding: 32px;
}
.plate .eyebrow{ margin-bottom: 18px; }
.plate .line{ display:flex; justify-content:space-between; padding: 14px 0; border-bottom: 1px dashed var(--hairline); font-family: var(--mono); font-size: 14px; }
.plate .line:last-child{ border-bottom:none; }
.plate .line span:first-child{ color: var(--ash-dim); text-transform:uppercase; letter-spacing:.08em; }
.plate .line span:last-child{ color: var(--paper); }

.field{ margin-bottom: 22px; }
.field label{
  display:block; font-family: var(--mono); font-size:11px; letter-spacing:.1em;
  text-transform:uppercase; color: var(--bronze); margin-bottom: 8px;
}
.field input, .field textarea{
  width:100%; background: transparent; border: none; border-bottom: 1px solid var(--hairline-strong);
  color: var(--paper); font-family: var(--body); font-size: 15px; padding: 10px 2px;
}
.field input:focus, .field textarea:focus{ outline:none; border-bottom-color: var(--papaya); }
.field textarea{ resize: vertical; min-height: 96px; }

/* ---------------- Footer ---------------- */
.site-footer{ border-top: 1px solid var(--hairline); padding: 56px 0 28px; }
.footer-inner{ display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-col p{ font-size: 14.5px; margin-top: 10px; }
.footer-col .eyebrow{ margin-bottom: 14px; }
.footer-col a, .footer-col span.item{ display:block; font-size: 14.5px; color: var(--ash); margin-bottom: 8px; }
.footer-col a:hover{ color: var(--paper); }
.footer-bottom{
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--hairline);
  font-family: var(--mono); font-size: 12px; color: var(--ash-dim); letter-spacing:.05em;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px){
  .hero-grid, .contact-grid{ grid-template-columns: 1fr; }
  .pillars{ grid-template-columns: repeat(2,1fr); }
  .pillar:nth-child(2){ border-right:none; }
  .theme-card{ grid-template-columns: 1fr; }
  .theme-num{ font-size: 30px; }
  .footer-inner{ grid-template-columns: 1fr; }
  .nav-links{
    position:absolute; top:100%; left:0; right:0;
    background: var(--ink); flex-direction:column; gap:0;
    max-height:0; overflow:hidden; border-bottom: 1px solid var(--hairline);
    transition: max-height .25s ease;
  }
  .nav-links.open{ max-height: 260px; }
  .nav-links a{ padding: 16px var(--edge); border-bottom: 1px solid var(--hairline); }
  .nav-toggle{ display:flex; }
}

@media (prefers-reduced-motion: reduce){
  .hero-line{ animation: none; transform: scaleX(1); }
  html{ scroll-behavior:auto; }
}
