/* ═══════════════════════════════════════
   Blue Producers Capital Management Limited
   styles.css
═══════════════════════════════════════ */

/* ── tokens ── */
:root {
  --ink: #0b0c0f;
  --ink-soft: #15171b;
  --text-primary: #ece8e0;
  --text-secondary: #9a9c9f;
  --text-muted: #6c6e72;
  --brass: #b6915c;
  --brass-bright: #cba572;
  --brass-dim: #8a6f4a;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);
  --r: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --maxw: 1240px;
}

/* ── reset ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-primary);
  font-family: 'IBM Plex Sans', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0, rgba(255,255,255,.022) 1px, transparent 1px, transparent 88px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,.016) 0, rgba(255,255,255,.016) 1px, transparent 1px, transparent 88px);
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 560;
  margin: 0;
  color: var(--text-primary);
  letter-spacing: -.01em;
}
em  { font-style: italic; color: var(--brass-bright); font-weight: 500; }
p   { margin: 0; }
a   { color: inherit; text-decoration: none; }
ul  { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; padding: 0; }

::selection         { background: var(--brass); color: var(--ink); }
:focus-visible      { outline: 1.5px solid var(--brass-bright); outline-offset: 3px; }

/* ── utilities ── */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.1rem;
}

.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  position: relative;
  z-index: 1;
}

section {
  padding: 7rem 0;
  position: relative;
  z-index: 1;
}

section h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 0;
}

/* ── reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-stagger.in-view > *                  { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(1)     { transition-delay: .05s; }
.reveal-stagger.in-view > *:nth-child(2)     { transition-delay: .16s; }
.reveal-stagger.in-view > *:nth-child(3)     { transition-delay: .27s; }
.reveal-stagger.in-view > *:nth-child(4)     { transition-delay: .38s; }

/* ── button ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .02em;
  padding: .9rem 1.4rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.btn svg              { transition: transform .35s var(--ease); }
.btn:hover svg        { transform: translateX(4px); }
.btn-primary          { background: var(--brass); color: var(--ink); }
.btn-primary:hover    { background: var(--brass-bright); }
.btn.full             { width: 100%; justify-content: center; }

/* ═══════════ NAV ═══════════ */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 12, 15, .65);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease);
}
#site-nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mark { display: flex; align-items: center; gap: .7rem; }

.mark-box {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-soft);
  border: 1px solid var(--line-strong);
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600; font-size: .78rem;
  color: var(--text-primary);
  flex: none;
}

.mark-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .67rem;
  letter-spacing: .13em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.nav-cta {
  font-size: .86rem;
  font-weight: 500;
  border: 1px solid var(--line-strong);
  padding: .52rem 1.1rem;
  border-radius: var(--r);
  color: var(--text-primary);
  transition: border-color .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { border-color: var(--brass); color: var(--brass-bright); }

/* ═══════════ HERO ═══════════ */
#hero {
  position: relative;
  padding: calc(70px + 5rem) 0 4rem;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-copy h1 { font-size: clamp(2.4rem, 5.2vw, 4.5rem); line-height: 1.05; }

.hero-sub {
  margin-top: 1.6rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* strategy pillar card */
.stack-card {
  border: 1px solid var(--line);
  background: var(--ink-soft);
  padding: 1.6rem 1.6rem 1.3rem;
}

.stack-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.pillar-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .6rem;
  height: 280px;
}

.pillar {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: filter .3s var(--ease);
}
.pillar:hover { filter: brightness(1.14); }

.pillar-fill {
  flex: 0 0 0%;
  min-height: 0;
  background: rgba(255, 255, 255, .09);
  transition: flex-basis 1.1s var(--ease);
}

.pillar[data-s="pc"] .pillar-fill { background: rgba(255, 255, 255, .13); }
.pillar[data-s="pe"] .pillar-fill { background: linear-gradient(180deg, var(--brass-dim), rgba(255,255,255,.10)); }
.pillar[data-s="vc"] .pillar-fill { background: linear-gradient(180deg, var(--brass-bright), var(--brass-dim)); }

.pillar-info {
  flex: none;
  padding: .85rem .75rem .8rem;
  border-top: 1px solid var(--line);
  background: var(--ink-soft);
}

.pillar-name {
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}

.pillar-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .64rem;
  color: var(--text-muted);
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease), opacity .4s var(--ease), margin-top .4s var(--ease);
  white-space: nowrap;
}
.pillar:hover .pillar-sub,
.pillar.active .pillar-sub { max-height: 2rem; opacity: 1; margin-top: .3rem; }

/* pillar animate-in heights */
.pillar-wrap.in-view .pillar[data-s="pc"] .pillar-fill { flex-basis: 38%; transition-delay: .05s; }
.pillar-wrap.in-view .pillar[data-s="pe"] .pillar-fill { flex-basis: 60%; transition-delay: .22s; }
.pillar-wrap.in-view .pillar[data-s="vc"] .pillar-fill { flex-basis: 82%; transition-delay: .38s; }

.stack-axis {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.axis-line { flex: 1; height: 1px; background: var(--line-strong); position: relative; }
.axis-line::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  border: 3px solid transparent;
  border-left-color: var(--line-strong);
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--text-muted);
  z-index: 1;
}
.scroll-cue span {
  width: 1px; height: 34px;
  background: linear-gradient(var(--text-muted), transparent);
  animation: cueMove 2.2s ease-in-out infinite;
}
@keyframes cueMove {
  0%   { opacity: 0; transform: translateY(-6px); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ═══════════ STRATEGIES ═══════════ */
#strategies { border-top: 1px solid var(--line); }

.strategies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.strategy {
  padding: 2.4rem clamp(1.2rem, 2.5vw, 2.4rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease);
}
.strategy:hover { background: rgba(255, 255, 255, .022); }

.strategy-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .67rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .6rem;
}

.strategy h3       { font-size: 1.45rem; font-weight: 500; margin-bottom: .9rem; }
.strategy-body     { color: var(--text-secondary); font-size: .95rem; line-height: 1.7; }
.strategy-tags     { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.strategy-tags li  {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .64rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  padding: .36rem .68rem;
  color: var(--text-secondary);
}

/* ═══════════ APPROACH ═══════════ */
#approach { border-top: 1px solid var(--line); }

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.principle {
  padding: 2.6rem clamp(1.5rem, 3vw, 3rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease);
}
.principle:hover { background: rgba(255, 255, 255, .025); }

.principle-label {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--brass-bright);
  margin-bottom: .8rem;
}
.principle-body { color: var(--text-secondary); font-size: .95rem; line-height: 1.7; max-width: 30rem; }

/* ═══════════ CONTACT ═══════════ */
#contact { border-top: 1px solid var(--line); }

.contact-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.contact-text h2 { margin-bottom: 0; }
.contact-text > p:not(.eyebrow) {
  color: var(--text-secondary);
  margin-top: 1.2rem;
  max-width: 24rem;
  line-height: 1.7;
}

.contact-lines { margin-top: 2.4rem; }
.contact-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .95rem 0;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.contact-line:last-child        { border-bottom: 1px solid var(--line); }
.contact-line span:first-child  { color: var(--text-muted); }
.contact-line a,
.contact-line span:last-child   { color: var(--text-primary); }
.contact-line a                 { transition: color .3s var(--ease); }
.contact-line a:hover           { color: var(--brass-bright); }

/* contact form */
.contact-form {
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--ink-soft);
}

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .67rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--text-primary);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: .92rem;
  padding: .78rem .9rem;
  transition: border-color .3s var(--ease);
  resize: vertical;
}
.field input:focus,
.field textarea:focus { border-color: var(--brass); outline: none; }
.form-note { margin-top: 1rem; font-size: .84rem; color: var(--brass-bright); min-height: 1.2em; }

/* ═══════════ FOOTER ═══════════ */
footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
}
.footer-top {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.footer-wordmark {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.legal {
  margin-top: 2rem;
  font-size: .76rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 62rem;
}
.footer-copy {
  margin-top: 1.8rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  color: var(--text-muted);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .hero-inner               { grid-template-columns: 1fr; }
  .hero-copy                { order: 1; }
  .hero-visual              { order: 2; }
  .hero-copy h1             { max-width: none; }
  .hero-sub                 { max-width: none; }
  .strategies-grid          { grid-template-columns: 1fr 1fr; }
  .contact-inner            { grid-template-columns: 1fr; }
  .contact-text > p:not(.eyebrow) { max-width: none; }
}

@media (max-width: 768px) {
  section               { padding: 5rem 0; }
  .strategies-grid      { grid-template-columns: 1fr; }
  .principles           { grid-template-columns: 1fr; }
  .pillar-wrap          { height: 220px; }
  .pillar-name          { font-size: .76rem; }
}

@media (max-width: 540px) {
  #hero                 { padding: calc(70px + 3.5rem) 0 3.5rem; min-height: auto; }
  .mark-text            { display: none; }
  .pillar-wrap          { height: 180px; gap: .4rem; }
  .hero-copy h1         { font-size: 2.1rem; }
  .pillar-info          { padding: .7rem .55rem; }
  .pillar-name          { font-size: .72rem; }
  .strategy             { padding: 2rem 1.2rem; }
  .principle            { padding: 2rem 1.2rem; }
  .contact-inner        { gap: 2.5rem; }
}

@media (max-width: 380px) {
  .hero-copy h1         { font-size: 1.9rem; }
  .stack-card           { padding: 1.2rem 1.2rem 1rem; }
  .pillar-wrap          { height: 160px; }
}
