/* Iron Cove Partners — shared styles */
:root {
  --paper:        #f1ebe0;
  --paper-2:      #e8e1d3;
  --paper-3:      #ddd4c2;
  --ink:          #14202c;
  --ink-2:        #2b3744;
  --muted:        #6c7682;
  --moss:         #2b4233;
  --moss-2:       #3c5644;
  --ochre:        #9a6536;
  --rule:         rgba(20,32,44,0.16);
  --rule-soft:    rgba(20,32,44,0.08);
  --serif:        "Source Serif 4", "Source Serif Pro", "Iowan Old Style", Georgia, serif;
  --sans:         -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:         "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex; flex-direction: column;
  min-height: 100vh;
}
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--moss); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; width: 100%; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; width: 100%; }

.serif { font-family: var(--serif); font-weight: 400; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 112px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-wrap: pretty;
  margin: 0;
}
.display em { font-style: italic; color: var(--moss); }
h2.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.012em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h2.section-title em { font-style: italic; color: var(--moss); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--moss);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
p.lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
}
p { text-wrap: pretty; }

/* nav */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  max-width: 1240px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 30px; height: 30px; display: grid; place-items: center; }
.brand .name { font-family: var(--serif); font-size: 19px; letter-spacing: -0.005em; }
nav.links { display: flex; gap: 28px; align-items: center; }
nav.links a { font-size: 14px; color: var(--ink-2); transition: color .2s ease; }
nav.links a:hover, nav.links a.active { color: var(--moss); }
.nav-cta {
  border: 1px solid var(--ink); color: var(--ink);
  padding: 8px 14px; font-size: 13px; letter-spacing: 0.02em;
  transition: background .2s ease, color .2s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav-cta.active { background: var(--ink); color: var(--paper); }

/* main grows to push footer down */
main { flex: 1 0 auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; font-size: 14.5px; letter-spacing: 0.005em;
  border: 1px solid var(--ink);
  transition: all .2s ease;
  cursor: pointer;
  background: transparent; color: var(--ink);
  font-family: var(--sans);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--moss); border-color: var(--moss); color: var(--paper); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.row-flex { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--rule); background: var(--paper);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--moss); }

/* footer */
footer.foot {
  background: var(--paper);
  padding: 48px 0 36px;
  border-top: 1px solid var(--rule);
  flex-shrink: 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}
.foot-grid h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 500; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.foot-grid p { font-size: 14.5px; color: var(--ink-2); margin: 0; max-width: 32ch; }
.foot-base { display: flex; justify-content: space-between; padding-top: 32px; margin-top: 40px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }

/* responsive */
@media (max-width: 960px) {
  nav.links a:not(.nav-cta) { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-base { flex-direction: column; gap: 12px; }
}

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
