/* Dunn Capital — site styles
   Palette and type are defined here; adjust tokens to retune the whole site. */

:root {
  --paper: #f4efe4;        /* warm ivory background */
  --paper-alt: #ece5d6;    /* slightly deeper band */
  --ink: #1d2a24;          /* deep green-black text */
  --ink-soft: #4a554f;     /* secondary text */
  --accent: #23392f;       /* hunter green */
  --gold: #9a7b4f;         /* muted brass for ornaments */
  --gold-light: #c2a678;   /* brass on dark green */
  --rule: #d6ccb6;         /* hairlines */
  --on-dark: #efe8d8;      /* text on green */
  --on-dark-soft: #a9b0a8;

  --serif-display: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --serif-text: "EB Garamond", "Garamond", "Times New Roman", serif;

  --wrap: 1160px;
  --narrow: 680px;
  --gutter: 32px;
  --label-col: 260px;

  /* Fine paper grain, drawn in SVG so no image file is needed */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .27 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--grain), var(--paper);
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(154,123,79,.25); }

a { color: inherit; }
a:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
abbr { text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244,239,228,.92);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .4s ease;
}
.masthead.is-scrolled { box-shadow: 0 1px 0 rgba(154,123,79,.25), 0 10px 30px -18px rgba(35,57,47,.35); }
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 24px;
  transition: min-height .4s ease;
}
.masthead.is-scrolled .masthead-inner { min-height: 66px; }
.wordmark {
  font-family: var(--serif-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  white-space: nowrap;
}
.wordmark span { font-weight: 400; }
.nav { display: flex; gap: 40px; }
.nav a {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color .25s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0.2em; bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--accent); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(calc(100vh - 88px), 880px);
  padding: 140px 0 130px;
  text-align: center;
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; }

/* Certificate-style double frame with brass corners */
.hero-frame {
  position: absolute;
  inset: 28px;
  border: 1px solid var(--rule);
  pointer-events: none;
  z-index: 1;
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(214,204,182,.6);
}
.corner {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
}
.corner.tl { top: -5px; left: -5px; }
.corner.tr { top: -5px; right: -5px; }
.corner.bl { bottom: -5px; left: -5px; }
.corner.br { bottom: -5px; right: -5px; }

/* Engraved guilloché (drawn by site.js) */
.guilloche { display: block; pointer-events: none; }
.guilloche path, .guilloche circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
}
.rosette {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(980px, 150vw);
  height: auto;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  color: var(--gold);
  opacity: 0.17;
  z-index: 0;
  -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 71%);
  mask-image: radial-gradient(circle, #000 52%, transparent 71%);
}

.eyebrow {
  margin: 0 0 30px;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
h1 {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(42px, 6.6vw, 80px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.rule {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 240px;
  margin: 44px auto;
  color: var(--gold);
  font-size: 12px;
}
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--gold); opacity: .55; }
.lede {
  max-width: 640px;
  margin: 0 auto;
  font-style: italic;
  font-size: 22px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Hero entrance (CSS only; ends fully visible) */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
.hero-inner > * { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
.hero-inner > :nth-child(1) { animation-delay: .1s; }
.hero-inner > :nth-child(2) { animation-delay: .25s; }
.hero-inner > :nth-child(3) { animation-delay: .45s; }
.hero-inner > :nth-child(4) { animation-delay: .6s; }
.rosette { animation: fade 2.4s ease both; }

/* ---------- Track record band ---------- */
.record {
  position: relative;
  background: var(--accent);
  color: var(--on-dark);
  padding: 96px 0;
}
.band {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  width: calc(100% - 2 * var(--gutter));
  height: 34px;
  color: var(--gold-light);
  opacity: .32;
}
.band-top { top: 22px; }
.band-bottom { bottom: 22px; }
.record-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
  margin: 0 auto;
}
.record-item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}
.record-item + .record-item { border-left: 1px solid rgba(207,196,173,.25); }
.record-item dd {
  margin: 0 0 14px;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(54px, 6vw, 80px);
  line-height: 1;
  color: #f7f2e8;
}
.record-item dt {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ---------- Editorial sections (label left, content right) ---------- */
.split {
  display: grid;
  grid-template-columns: var(--label-col) minmax(0, 1fr);
  column-gap: 64px;
  padding-top: 112px;
  padding-bottom: 112px;
  border-top: 1px solid var(--rule);
}
.record + .section .split { border-top: 0; }
.split-body { max-width: 760px; }

.label {
  margin: 6px 0 0;
  font-family: var(--serif-text);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.label::before {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  margin-bottom: 18px;
  background: var(--gold);
}

.statement {
  margin: 0 0 32px;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.25;
  color: var(--accent);
}
.prose { margin: 0; font-size: 20px; line-height: 1.75; color: var(--ink-soft); }
.intro {
  margin: 0 0 48px;
  font-family: var(--serif-display);
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.3;
  color: var(--accent);
}

/* Practice rows */
.rows { border-bottom: 1px solid var(--rule); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  column-gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
}
.row:first-child { border-top: 0; padding-top: 0; }
.row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.row:hover::after { transform: scaleX(1); }
.row h3 {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  color: var(--accent);
}
.numeral {
  display: block;
  margin-bottom: 6px;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--gold);
}
.row p { margin: 4px 0 0; color: var(--ink-soft); }

/* Scope lists inside each practice */
.scope {
  list-style: none;
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px dotted var(--rule);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.6;
  color: var(--accent);
}
.scope li { display: inline; }
.scope li:not(:last-child)::after {
  content: "\00B7";
  margin: 0 .5em 0 .55em;
  font-style: normal;
  color: var(--gold);
}
.scope .amp { font-style: normal; }

/* "Our Standard" statement band */
.standard {
  position: relative;
  overflow: hidden;
  background: var(--grain), var(--accent);
  color: var(--on-dark);
  padding: 150px 0 140px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}
.standard::before,
.standard::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: rgba(194,166,120,.35);
}
.standard::before { top: 6px; }
.standard::after { bottom: 6px; }
.rosette-standard {
  left: 80%;
  width: min(900px, 150vw);
  color: var(--gold-light);
  opacity: .2;
}
.standard-inner { position: relative; z-index: 1; }
.standard-label {
  margin: 0 0 30px;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.standard-label::before {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  margin-bottom: 18px;
  background: var(--gold-light);
}
.standard-title {
  max-width: 900px;
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #f7f2e8;
}
.standard-title em {
  display: block;
  font-style: italic;
  color: var(--gold-light);
}
.standard-body {
  max-width: 600px;
  margin: 36px 0 0;
  font-size: 20px;
  line-height: 1.7;
  color: #cfd3cb;
}
.standard-triad {
  margin: 44px 0 0;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--on-dark);
}
.standard-triad span {
  margin: 0 14px;
  font-size: 8px;
  vertical-align: 2px;
  color: var(--gold-light);
}
.standard + .section .split { border-top: 0; }

/* Approach stages */
.stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stage {
  position: relative;
  padding: 30px 26px 0 0;
  border-top: 1px solid var(--gold);
}
.stage::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--paper);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.stage-num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
}
.stage h3 {
  margin: 0 0 10px;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.2;
  color: var(--accent);
}
.stage p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); }
.reveal-ready .stage:nth-child(2) { transition-delay: .1s; }
.reveal-ready .stage:nth-child(3) { transition-delay: .2s; }
.reveal-ready .stage:nth-child(4) { transition-delay: .3s; }

/* Coverage grids */
.sub {
  margin: 0 0 0;
  padding-bottom: 14px;
  font-family: var(--serif-text);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.grid {
  list-style: none;
  margin: 0 0 52px;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--gold);
}
.grid:last-child { margin-bottom: 0; }
.grid li {
  display: flex;
  align-items: center;
  padding: 24px 22px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif-display);
  font-size: 25px;
  line-height: 1.2;
  color: var(--accent);
}
.grid-sectors { grid-template-columns: 1fr 1fr; }
.grid-sectors li:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--rule); }
.grid-markets { grid-template-columns: repeat(3, 1fr); }
.grid-markets li { justify-content: center; text-align: center; }
.grid-markets li + li { border-left: 1px solid var(--rule); }
.amp { font-style: italic; color: var(--gold); }
.short { display: none; }

/* Leadership */
.leader { margin-bottom: 26px; }
.leader-name {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(38px, 4.4vw, 52px);
  line-height: 1.1;
  color: var(--accent);
}
.leader-title {
  margin: 10px 0 0;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Contact ---------- */
.contact {
  background: var(--grain), var(--paper-alt);
  border-top: 1px solid var(--rule);
  padding: 112px 0 124px;
  text-align: center;
}
.seal {
  display: block;
  width: 116px;
  height: 116px;
  margin: 0 auto 30px;
  color: var(--gold);
}
.seal-line { fill: none; stroke: currentColor; stroke-width: 1.1; }
.seal-line.thin { stroke-width: .6; }
.seal-text {
  font-family: var(--serif-text);
  font-size: 13px;
  letter-spacing: .12em;
  fill: currentColor;
}
.seal-mono {
  font-family: var(--serif-display);
  font-size: 62px;
  fill: var(--accent);
}
.contact-title {
  margin: 0 0 22px;
  font-family: var(--serif-text);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-intro {
  margin: 0;
  font-family: var(--serif-display);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.3;
  color: var(--accent);
}
.contact-line {
  margin: 30px 0 0;
  font-size: 20px;
  letter-spacing: 0.04em;
}
.contact-line a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  transition: color .2s ease;
}
.contact-line a:hover, .contact-line a:focus-visible { color: var(--gold); }

/* ---------- Footer ---------- */
.footer { background: var(--accent); color: #d9d2c1; padding: 64px 0 56px; text-align: center; }
.footer-mark {
  margin: 0 0 8px;
  font-family: var(--serif-display);
  font-size: 18px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--on-dark);
}
.footer-est {
  margin: 0 0 24px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 16px;
  color: var(--gold-light);
}
.footer-meta { margin: 0 0 22px; font-size: 14px; letter-spacing: 0.04em; }
.footer-meta a { text-decoration: none; border-bottom: 1px solid rgba(217,210,193,.4); }
.footer-meta a:hover { color: #fff; }
.sep { margin: 0 10px; }
.footer-legal { max-width: 640px; margin: 0 auto; font-size: 13px; line-height: 1.6; color: var(--on-dark-soft); }

/* ---------- Scroll reveal (only once site.js is running) ---------- */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
}
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }
.reveal-ready .record-item:nth-child(2) { transition-delay: .12s; }
.reveal-ready .record-item:nth-child(3) { transition-delay: .24s; }
.reveal-ready .row:nth-child(2) { transition-delay: .08s; }
.reveal-ready .row:nth-child(3) { transition-delay: .16s; }

/* ---------- Disclosures page ---------- */
.page { padding: 100px 0 120px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); text-align: center; margin-bottom: 48px; }
.page h2 {
  margin: 44px 0 12px;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 24px;
  color: var(--accent);
}
.page p { margin: 0 0 16px; color: var(--ink-soft); font-size: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  :root { --label-col: 180px; }
  .split { column-gap: 40px; }
  .row { grid-template-columns: 220px minmax(0, 1fr); column-gap: 28px; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; padding-top: 80px; padding-bottom: 80px; }
  .label { margin: 0 0 32px; }
  .row { grid-template-columns: 1fr; }
  .row p { margin-top: 10px; }
  .stages { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

@media (max-width: 760px) {
  :root { --gutter: 22px; }
  html { scroll-padding-top: 0; }
  body { font-size: 18px; }
  .masthead { position: relative; }
  .masthead-inner,
  .masthead.is-scrolled .masthead-inner { flex-direction: column; justify-content: center; padding: 22px 0 18px; gap: 12px; min-height: 0; }
  .wordmark { font-size: 19px; }
  .nav { gap: 14px; }
  .nav a { font-size: 11px; letter-spacing: 0.12em; }

  .hero { min-height: 0; padding: 100px 0 92px; }
  .hero-frame { inset: 12px; }
  .hero-frame::after { inset: 4px; }
  .rule { margin: 34px auto; }
  .lede { font-size: 19px; }

  .record { padding: 72px 0; }
  .band { height: 26px; }
  .band-top { top: 16px; }
  .band-bottom { bottom: 16px; }
  .record-grid { grid-template-columns: 1fr; }
  .record-item { padding: 22px 0; }
  .record-item + .record-item { border-left: 0; border-top: 1px solid rgba(207,196,173,.25); }

  .split { padding-top: 64px; padding-bottom: 64px; }
  .label { margin-bottom: 26px; }
  .statement { margin-bottom: 22px; }
  .prose { font-size: 18px; }
  .intro { margin-bottom: 34px; }

  /* Practice: numeral sits beside the title, tighter rhythm */
  .row { padding: 24px 0; }
  .row h3 { font-size: 25px; }
  .numeral { display: inline; margin: 0 10px 0 0; font-size: 18px; }
  .row p { font-size: 17.5px; line-height: 1.6; }
  .scope { margin-top: 14px; padding-top: 12px; font-size: 17px; line-height: 1.55; }
  .stage { padding: 24px 14px 0 0; }
  .stage h3 { font-size: 22px; }
  .stage p { font-size: 15.5px; }

  /* Coverage: compact 2×2 sectors, single row of markets */
  .grid { margin-bottom: 38px; }
  .grid li { padding: 18px 14px; font-size: 20px; }
  .grid-sectors li:nth-child(odd) { padding-left: 0; }
  .grid-sectors li:nth-child(even) { padding-right: 0; }
  .grid-markets li { padding: 18px 4px; font-size: 18px; white-space: nowrap; }
  .long { display: none; }
  .short { display: inline; }

  .standard { padding: 96px 0 92px; }
  .rosette-standard { left: 70%; top: 30%; opacity: .16; }
  .standard-body { font-size: 18px; margin-top: 26px; }
  .standard-triad { margin-top: 32px; font-size: 11px; letter-spacing: 0.2em; }
  .standard-triad span { margin: 0 8px; }

  .contact { padding: 80px 0 88px; }
  .seal { width: 96px; height: 96px; margin-bottom: 24px; }
  .footer-meta .sep { display: none; }
  .footer-meta a { display: table; margin: 8px auto 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
