/* =========================================================
   FINCAPMATRIX — design tokens
   ink   #092328  deep #12544F  sage #8BBB92  brass #C9A45C
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Manrope:wght@400;500;600;700&display=swap');

:root{
  --ink:        #092328;
  --ink-2:      #0c2b31;
  --deep:       #12544F;
  --sage:       #8BBB92;
  --sage-dim:   #6f9d78;
  --brass:      #C9A45C;
  --sand:       #EDEAE0;
  --sand-2:     #E3DFD1;
  --paper:      #F6F4EC;
  --ink-text:   #0F2A28;
  --line-dark:  rgba(139,187,146,0.22);
  --line-light: rgba(9,35,40,0.14);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --gutter: clamp(24px, 5vw, 72px);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

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

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

h1, h2, h3, h4{
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p{ margin: 0; }

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

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

/* ---------------------------------------------------------
   NAV
   --------------------------------------------------------- */
.site-nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}
.site-nav.is-solid{
  background: rgba(9,35,40,0.94);
  backdrop-filter: blur(6px);
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: 0 1px 0 var(--line-dark);
}
.nav-badge{
  display: inline-flex;
  align-items: center;
  background: var(--sand);
  border-radius: 8px;
  padding: 7px 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.nav-badge img{ height: 26px; width: auto; }
.nav-links{
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--sand);
}
.nav-links a{
  position: relative;
  padding: 4px 0;
}
.nav-links a::after{
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--brass);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after{ width: 100%; }
.nav-links a[aria-current="page"]{ color: var(--brass); }
.nav-cta{
  border: 1px solid var(--sage);
  border-radius: 999px;
  padding: 8px 18px !important;
}
.nav-cta::after{ display: none; }
.nav-cta:hover{ background: var(--sage); color: var(--ink); }

.nav-toggle{
  display: none;
  background: none;
  border: 0;
  width: 34px; height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 101;
}
.nav-toggle .bar{
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--sand);
  border-radius: 1px;
  transition: transform 0.32s ease, opacity 0.2s ease, top 0.32s ease;
}
.nav-toggle .bar1{ top: 3px; }
.nav-toggle .bar2{ top: 11px; }
.nav-toggle .bar3{ top: 19px; }
.nav-toggle.is-active .bar1{ top: 11px; transform: rotate(45deg); }
.nav-toggle.is-active .bar2{ opacity: 0; }
.nav-toggle.is-active .bar3{ top: 11px; transform: rotate(-45deg); }

@media (max-width: 820px){
  .nav-toggle{ display: block; }
  .nav-links{
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--ink);
    padding: 100px var(--gutter) 40px;
    gap: 26px;
    font-size: 1.2rem;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
  }
  .nav-links.is-open{ transform: translateY(0); }
  .nav-cta{ margin-top: 6px; }
}

/* ---------------------------------------------------------
   HERO / PARALLAX
   --------------------------------------------------------- */
.hero{
  position: relative;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 60%, var(--deep) 140%);
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--sand);
}
.hero-small{ min-height: 62vh; }

.hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}
.hero-video-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(320px 320px at 100% 100%, rgba(9,35,40,0.98) 0%, rgba(9,35,40,0.85) 40%, rgba(9,35,40,0) 100%),
    linear-gradient(180deg, rgba(9,35,40,0.80) 0%, rgba(9,35,40,0.55) 32%, rgba(9,35,40,0.72) 68%, rgba(9,35,40,0.94) 100%),
    linear-gradient(90deg, rgba(9,35,40,0.55) 0%, rgba(9,35,40,0.15) 45%, rgba(9,35,40,0.1) 60%, rgba(9,35,40,0.5) 100%);
}
@media (prefers-reduced-motion: reduce){
  .hero-video{ display: none; }
}

.parallax-layer{
  position: absolute;
  inset: -10% -10% -10% -10%;
  will-change: transform;
  pointer-events: none;
  z-index: 1;
}
.layer-far{ opacity: 0.35; }
.layer-far svg{ width: 100%; height: 100%; }
.layer-lines{ opacity: 0.9; }
.layer-grid{ opacity: 0.16; }

.growth-line{
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw-growth 2.4s cubic-bezier(.22,.7,.25,1) 0.3s forwards;
}
@keyframes draw-growth{
  to{ stroke-dashoffset: 0; }
}
.growth-end .ping{
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: ping-growth 2.6s ease-out 2.4s infinite;
}
@keyframes ping-growth{
  0%{ transform: scale(0.6); opacity: 0.85; }
  70%{ opacity: 0; }
  100%{ transform: scale(2.4); opacity: 0; }
}
.growth-end .dot-end{
  opacity: 0;
  animation: dot-in 0.35s ease-out 2.3s forwards;
}
@keyframes dot-in{ to{ opacity: 1; } }

.hero-inner{
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 96px;
}
.eyebrow-mark{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--sage);
  margin-bottom: 22px;
}
.eyebrow-mark span.rule{
  width: 34px; height: 1px; background: var(--brass);
  display: inline-block;
}
.hero h1{
  font-size: clamp(2.6rem, 6vw, 5rem);
  color: var(--paper);
  max-width: 16ch;
}
.hero h1 em{
  font-style: italic;
  color: var(--sage);
}
.hero .lede{
  margin-top: 26px;
  max-width: 46ch;
  font-size: 1.12rem;
  color: rgba(237,234,224,0.82);
}
.hero-ctas{
  margin-top: 40px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-primary{
  background: var(--sage);
  color: var(--ink);
}
.btn-primary:hover{ background: var(--brass); transform: translateY(-2px); }
.btn-ghost{
  border-color: rgba(237,234,224,0.4);
  color: var(--paper);
}
.btn-ghost:hover{ border-color: var(--sage); color: var(--sage); }

.hero-foot{
  position: absolute;
  left: 0; right: 0; bottom: 34px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  font-size: 0.78rem;
  color: rgba(237,234,224,0.6);
}
.hero-foot .wrap{ display: flex; justify-content: center; width: 100%; }
.scroll-cue{
  display: flex; align-items: center; gap: 10px;
}
.scroll-cue .dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brass);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot{
  0%, 100%{ transform: translateY(0); opacity: 1; }
  50%{ transform: translateY(10px); opacity: 0.35; }
}

/* ---------------------------------------------------------
   SECTION RHYTHM
   --------------------------------------------------------- */
section{ position: relative; }
.band{ padding: clamp(70px, 10vw, 130px) 0; }
.band-sand{ background: var(--sand); }
.band-paper{ background: var(--paper); }
.band-ink{ background: var(--ink); color: var(--sand); }
.band-deep{ background: var(--deep); color: var(--sand); }

.kicker{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--deep);
  margin-bottom: 18px;
}
.band-ink .kicker, .band-deep .kicker{ color: var(--sage); }
.kicker span.rule{ width: 30px; height: 1px; background: var(--brass); display: inline-block; }

.split{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}
@media (max-width: 860px){
  .split{ grid-template-columns: 1fr; }
}
.split h2{ font-size: clamp(1.9rem, 3.4vw, 2.7rem); max-width: 12ch; }
.split .copy{ font-size: 1.05rem; max-width: 56ch; }
.split .copy + .copy{ margin-top: 16px; }

blockquote.pull{
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.4;
  color: var(--ink);
  border-left: 2px solid var(--brass);
  padding-left: 24px;
  margin: 0;
}

/* ---------------------------------------------------------
   LEDGER (services — matrix rows, not cards)
   --------------------------------------------------------- */
.ledger{
  border-top: 1px solid var(--line-dark);
}
.ledger-row{
  display: grid;
  grid-template-columns: 120px 1fr 1.3fr;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(30px, 5vw, 54px) 0;
  border-bottom: 1px solid var(--line-dark);
  align-items: start;
}
.band-sand .ledger-row, .band-paper .ledger-row{ border-color: var(--line-light); }
@media (max-width: 760px){
  .ledger-row{ grid-template-columns: 1fr; gap: 14px; }
}
.ledger-index{
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--brass);
}
.ledger-title{
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 500;
  max-width: 10ch;
}
.ledger-list{
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 12px;
  font-size: 1rem;
}
.ledger-list li{
  padding-left: 20px;
  position: relative;
  color: rgba(237,234,224,0.86);
}
.band-sand .ledger-list li, .band-paper .ledger-list li{ color: var(--ink-text); }
.ledger-list li::before{
  content: "";
  position: absolute; left: 0; top: 0.65em;
  width: 8px; height: 1px;
  background: var(--sage);
}

/* ---------------------------------------------------------
   DIFFERENTIATORS strip
   --------------------------------------------------------- */
.strip{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}
@media (max-width: 900px){ .strip{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .strip{ grid-template-columns: 1fr; } }
.strip-item{
  padding: 30px 24px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.strip-item h3{
  font-size: 1.06rem;
  font-family: var(--sans);
  font-weight: 700;
  margin-bottom: 8px;
}
.strip-item p{ font-size: 0.92rem; color: rgba(15,42,40,0.72); }

/* ---------------------------------------------------------
   STAT ROW
   --------------------------------------------------------- */
.stat-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 5vw, 60px);
}
@media (max-width: 760px){ .stat-row{ grid-template-columns: 1fr; } }
.stat{
  border-top: 1px solid var(--line-dark);
  padding-top: 18px;
}
.stat .num{
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--brass);
  line-height: 1;
}
.stat .label{
  margin-top: 10px;
  font-size: 0.92rem;
  color: rgba(237,234,224,0.75);
}

/* ---------------------------------------------------------
   CLIENTELE marquee
   --------------------------------------------------------- */
.marquee{
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 26px 0;
}
.marquee-track{
  display: flex;
  gap: 60px;
  width: max-content;
  animation: scroll-left 32s linear infinite;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-style: italic;
  color: rgba(237,234,224,0.6);
  white-space: nowrap;
}
.marquee-track span.dot{ color: var(--brass); font-style: normal; margin: 0 6px; }
@keyframes scroll-left{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ---------------------------------------------------------
   CTA band
   --------------------------------------------------------- */
.cta-band{
  padding: clamp(60px, 9vw, 100px) 0;
  text-align: left;
  border-top: 1px solid var(--line-dark);
}
.cta-band .wrap{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2{
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  color: var(--paper);
  max-width: 16ch;
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.site-footer{
  background: var(--ink);
  color: rgba(237,234,224,0.72);
  padding: 64px 0 28px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 760px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-grid h4{
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-grid p{ font-size: 0.95rem; line-height: 1.7; }
.footer-links{ list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-links a{ font-size: 0.95rem; }
.footer-links a:hover{ color: var(--sage); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(237,234,224,0.5);
}
.footer-badge{
  display: inline-flex;
  align-items: center;
  background: var(--sand);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
}
.footer-badge img{ height: 24px; width: auto; }

/* ---------------------------------------------------------
   WHATSAPP FLOAT
   --------------------------------------------------------- */
.whatsapp-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(9,35,40,0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float svg{ width: 28px; height: 28px; }
.whatsapp-float:hover{
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 30px rgba(9,35,40,0.48);
}
.whatsapp-float .wa-ring{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: wa-pulse 2.6s ease-out infinite;
}
@keyframes wa-pulse{
  0%{ transform: scale(1); opacity: 0.7; }
  100%{ transform: scale(1.55); opacity: 0; }
}
@media (max-width: 560px){
  .whatsapp-float{ right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-float svg{ width: 25px; height: 25px; }
}

/* ---------------------------------------------------------
   ABOUT PAGE bits
   --------------------------------------------------------- */
.values-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}
.value-card{
  background: var(--sand);
  padding: 30px 26px;
}
.value-card .mark{
  width: 30px; height: 1px; background: var(--brass);
  margin-bottom: 16px;
}
.value-card h3{
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.value-card p{ font-size: 0.92rem; color: rgba(15,42,40,0.72); }

.team-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
}
@media (max-width: 760px){ .team-grid{ grid-template-columns: 1fr; } }
.team-card{ border-top: 1px solid var(--line-dark); padding-top: 26px; }
.monogram{
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), var(--deep));
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.team-card h3{
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--paper);
}
.team-card .role{
  font-size: 0.86rem;
  color: var(--sage);
  margin: 6px 0 16px;
}
.team-card p.bio{
  font-size: 0.96rem;
  color: rgba(237,234,224,0.8);
  max-width: 48ch;
}

/* ---------------------------------------------------------
   CONTACT PAGE
   --------------------------------------------------------- */
.contact-grid{
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(30px, 6vw, 90px);
}
@media (max-width: 860px){ .contact-grid{ grid-template-columns: 1fr; } }
.contact-info dl{
  display: grid;
  gap: 22px;
  margin: 28px 0 0;
}
.contact-info dt{
  font-size: 0.78rem;
  color: var(--deep);
  margin-bottom: 4px;
}
.contact-info dd{
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink-text);
}
.map-frame{
  margin-top: 34px;
  border: 1px solid var(--line-light);
  filter: grayscale(0.3) sepia(0.12);
  aspect-ratio: 4/3;
  overflow: hidden;
}
.map-frame iframe{ width: 100%; height: 100%; border: 0; }

.form-field{
  margin-bottom: 26px;
}
.form-field label{
  display: block;
  font-size: 0.8rem;
  color: var(--deep);
  margin-bottom: 8px;
}
.form-field input, .form-field textarea{
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line-light);
  background: transparent;
  padding: 10px 2px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink-text);
  transition: border-color 0.25s ease;
}
.form-field input:focus, .form-field textarea:focus{
  outline: none;
  border-color: var(--brass);
}
.form-field textarea{ resize: vertical; min-height: 110px; }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 560px){ .form-row{ grid-template-columns: 1fr; } }
.form-note{
  font-size: 0.82rem;
  color: rgba(15,42,40,0.6);
  margin-top: 6px;
}
.form-status{
  margin-top: 18px;
  font-size: 0.92rem;
  display: none;
}
.form-status.is-visible{ display: block; }
.form-status.ok{ color: var(--deep); }
.form-status.err{ color: #8a3b2b; }

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