/* ==========================================================================
   Ballast Capital Advisory
   Shared stylesheet. Edit tokens below to restyle the whole site at once.
   ========================================================================== */

:root {
  /* Palette: Harbor Navy */
  --bg:           #F5F6F4;
  --navy:         #16283A;
  --brass:        #A07C2C;   /* gold accent on light backgrounds */
  --gold:         #C9A44E;   /* gold accent on navy backgrounds */
  --forest:       #2F5D46;
  --sage:         #EBEFE8;
  --card:         #FAFBF8;
  --body:         #54677B;
  --secondary:    #44576B;
  --muted:        #7C8896;
  --navy-muted:   #A7B6C4;
  --rule:         rgba(22, 40, 58, 0.15);
  --rule-soft:    rgba(22, 40, 58, 0.08);

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans:  'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1312px;
  --radius: 8px;
  --radius-lg: 10px;
}

/* --------------------------------------------------------- reset + base */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
svg { display: block; }

a { color: var(--brass); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.01em; font-family: var(--serif); line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--bg);
  padding: 12px 20px; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--bg); }

/* ------------------------------------------------------------- utilities */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(44px, 5.6vw, 80px); }
.section--tight { padding-block: clamp(30px, 3.6vw, 50px); }
.section--ruled { border-bottom: 1px solid var(--rule); }
.section--lede { padding-bottom: clamp(22px, 2.6vw, 34px); }
.section--notop { padding-top: 0; }
.section--nobot { padding-bottom: 0; }
.section--eyebrow { padding-block: clamp(26px, 3vw, 40px) 0; }
.section--first { padding-top: clamp(22px, 2.6vw, 34px); }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.22em;
  color: var(--brass); text-transform: uppercase;
  font-family: var(--sans);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; flex: none; }
.eyebrow--plain::before { display: none; }

.display {
  font-family: var(--serif);
  font-size: clamp(34px, 5.4vw, 54px);
  line-height: 1.12;
  max-width: 20ch;
}
.display--wide { max-width: 24ch; }

h2.headline, .headline {
  font-family: var(--serif);
  font-size: clamp(28px, 3.9vw, 42px);
  line-height: 1.18;
  max-width: 20ch;
}

.subhead {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.62;
  color: var(--body);
  max-width: 62ch;
}

.prose { color: var(--body); line-height: 1.7; max-width: 66ch; }
.prose + .prose { margin-top: 15px; }

.accent { color: var(--brass); font-style: italic; }
.stack { display: flex; flex-direction: column; }
.gap-14 { gap: 12px; } .gap-18 { gap: 15px; } .gap-22 { gap: 18px; }
.gap-28 { gap: 24px; } .gap-36 { gap: 30px; } .gap-48 { gap: 40px; }

.note { font-size: 13px; font-style: italic; color: #6B7A6E; }

/* ---------------------------------------------------------------- button */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 30px;
  font-family: var(--sans);
  font-size: 15px; font-weight: 600; letter-spacing: 0.03em;
  border-radius: 4px; border: 1px solid transparent;
  background: var(--navy); color: var(--bg);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  text-align: center;
}
.btn:hover { background: #0F1D2B; color: var(--bg); }
.btn--ghost { background: transparent; color: var(--navy); border-color: rgba(22,40,58,0.35); }
.btn--ghost:hover { background: rgba(22,40,58,0.05); color: var(--navy); border-color: var(--navy); }
.btn--onnavy { background: var(--bg); color: var(--navy); }
.btn--onnavy:hover { background: #fff; color: var(--navy); }
.btn--ghost-onnavy { background: transparent; color: var(--bg); border-color: rgba(245,246,244,0.4); }
.btn--ghost-onnavy:hover { background: rgba(245,246,244,0.1); color: var(--bg); }
.btn--sm { padding: 12px 24px; font-size: 14px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.textlink { font-weight: 600; font-size: 15px; letter-spacing: 0.02em; }

/* ------------------------------------------------------------------ logo */

.brand { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand__word { font-family: var(--sans); font-size: 20px; font-weight: 700; letter-spacing: 0.14em; padding-left: 0.14em; }
.brand__sub  { font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: 0.31em; color: var(--body); padding-left: 0.31em; }
.brand--sm .brand__word { font-size: 15px; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245,246,244,0.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 20px;
}
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 30px); }
.nav a {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--secondary);
}
.nav a:hover { color: var(--navy); }
.nav a[aria-current="page"] { font-weight: 600; color: var(--brass); }
.nav a.btn { color: var(--bg); font-weight: 600; }
.nav a.btn:hover { color: var(--bg); }

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  background: none; border: 1px solid var(--rule); border-radius: 4px;
  padding: 10px 14px; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy);
}

/* ------------------------------------------------------------ availability */

.availability {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--forest);
}
.availability::before {
  content: ""; width: 7px; height: 7px; border-radius: 999px;
  background: currentColor; flex: none;
}
.availability--onnavy { color: var(--gold); }

/* ------------------------------------------------------------ proof strip */

.proof {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(26px, 3.2vw, 38px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.proof__track {
  display: flex; align-items: flex-start; width: max-content; margin: 0;
  animation: proof-drift 56s linear infinite;
}
.proof:hover .proof__track, .proof:focus-within .proof__track { animation-play-state: paused; }

/* Two identical sets sit side by side. Travelling from -50% to 0 slides the
   content left to right; the moment the first set arrives the loop restarts
   on the second, so the seam never shows. */
@keyframes proof-drift {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.proof__item {
  flex: none; width: clamp(250px, 25vw, 340px);
  padding-inline: clamp(18px, 2.2vw, 32px);
  border-left: 1px solid var(--rule-soft);
  cursor: default;
}
.proof__n {
  font-family: var(--serif); font-size: clamp(28px, 3.2vw, 38px);
  color: var(--navy); transition: color .22s ease;
}
.proof__l {
  font-size: 14px; line-height: 1.5; color: var(--body); margin-top: 8px;
  transition: color .22s ease;
}
.proof__item:hover .proof__n,
.proof__item:hover .proof__l { color: var(--brass); }

/* ----------------------------------------------------------------- bands */

.band--sage { background: var(--sage); }
.band--navy { background: var(--navy); color: var(--bg); }
.band--navy .subhead, .band--navy .prose { color: var(--navy-muted); }
.band--navy .eyebrow { color: var(--gold); }
.band--navy a:not(.btn) { color: var(--gold); }
.band--navy a:not(.btn):hover { color: #fff; }

.panel .subhead, .panel .prose { color: var(--navy-muted); }
.panel .headline, .panel h2, .panel h3 { color: var(--bg); }
.panel a:not(.btn) { color: var(--gold); }
.panel a:not(.btn):hover { color: #fff; }

.panel {
  background: var(--navy); color: var(--bg);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4.2vw, 60px);
}
.panel--quiet { padding: clamp(24px, 2.6vw, 36px); }

/* ----------------------------------------------------------------- cards */

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 32px);
  display: flex; flex-direction: column; gap: 13px;
}
.card__title { font-family: var(--serif); font-size: 21px; line-height: 1.25; }
.card__body { font-size: 15.5px; line-height: 1.65; color: var(--body); }
.card__num { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--brass); }

.pill {
  align-self: flex-start;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(47,93,70,0.1); color: var(--forest);
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.pill--gold { background: rgba(160,124,44,0.12); color: var(--brass); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--rule-soft); background: rgba(22,40,58,0.03);
  font-size: 12.5px; color: var(--secondary);
}
.tags--onnavy .tag { border-color: rgba(245,246,244,0.2); background: rgba(245,246,244,0.06); color: var(--bg); }

/* --------------------------------------------------------------- ticklist */

.ticks { display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.6; color: var(--secondary); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.58em;
  width: 6px; height: 6px; border-radius: 999px; background: var(--forest);
}
.ticks--onnavy li { color: var(--bg); }
.ticks--onnavy li::before { background: var(--gold); }
.ticks li strong { font-weight: 600; color: var(--navy); }
.ticks--onnavy li strong { color: #fff; }

.label {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--forest);
}
.label--gold { color: var(--brass); }

/* ------------------------------------------------------------- intro duo */

.duo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.duo__aside { border-left: 2px solid var(--brass); padding-left: clamp(20px, 2.4vw, 32px); }

/* --------------------------------------------------------------- process */

.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; position: relative; padding-top: 30px; }
.process__step { display: flex; flex-direction: column; gap: 13px; }

/* the waterline: one continuous rule across the row, gaps included, with the vessel riding on it */
.process__sea {
  position: absolute; left: 0; right: 0; top: 10px; height: 1px;
  background: var(--brass); opacity: 0.5; pointer-events: none;
}
.process__hull { position: absolute; left: 2px; top: -14px; pointer-events: none; }

/* each stage adds ballast: the gauge fills as the engagement goes deeper */
.process__rail { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.process__dot {
  font-family: var(--serif); font-size: 15px; letter-spacing: 0.06em;
  color: var(--brass);
}
.process__gauge {
  width: 100%; height: 3px; border-radius: 2px;
  background: var(--rule-soft); position: relative; overflow: hidden;
}
.process__gauge::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0;
  width: var(--fill, 20%); background: var(--brass); border-radius: 2px;
}
.process__step {
  padding: 14px 16px 16px; margin: -14px -16px -16px;
  border-radius: var(--radius);
  transition: background-color .22s ease;
}
.process__step:hover { background: var(--sage); }
.process__step:hover .process__dot { color: var(--navy); }
.process__step:hover .process__title { color: var(--brass); }
.process__step:hover .process__when { color: var(--brass); }
.process__step .process__title,
.process__step .process__when,
.process__step .process__dot { transition: color .22s ease; }
.process__gauge::before { transition: background-color .22s ease, box-shadow .22s ease; }
.process__step:hover .process__gauge::before {
  background: var(--gold); box-shadow: 0 0 10px rgba(201,164,78,0.65);
}

.process__step:nth-of-type(1) .process__gauge { --fill: 20%; }
.process__step:nth-of-type(2) .process__gauge { --fill: 40%; }
.process__step:nth-of-type(3) .process__gauge { --fill: 60%; }
.process__step:nth-of-type(4) .process__gauge { --fill: 80%; }
.process__step:nth-of-type(5) .process__gauge { --fill: 100%; }

.process__title { font-family: var(--serif); font-size: 19px; }
.process__body { font-size: 14.5px; line-height: 1.6; color: var(--body); }
.process__when { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest); margin-top: auto; }

/* ------------------------------------------------------------- case study */

.case { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 3.2vw, 48px) clamp(32px, 5vw, 80px); align-items: start; }
.case__aside { display: flex; flex-direction: column; gap: 24px; }

.case__img {
  margin: 0; border: 1px solid var(--rule);
  border-radius: var(--radius); overflow: hidden; background: var(--card);
}
.case__img img { display: block; width: 100%; height: auto; }
.case__img figcaption {
  font-size: 12px; line-height: 1.5; color: var(--muted);
  padding: 10px 14px; border-top: 1px solid var(--rule-soft); letter-spacing: 0.02em;
}
.case__client { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; color: var(--body); }

.slot {
  min-height: 260px; border-radius: var(--radius-lg);
  background: var(--sage); border: 1px dashed rgba(22,40,58,0.3);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 32px;
}
.slot__t { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--body); }
.slot__b { font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 34ch; }

.pull {
  border-left: 3px solid var(--brass);
  padding: 4px 0 4px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.pull blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.55; color: var(--navy); }
.pull cite { font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--body); text-transform: uppercase; }
.pull--wide { grid-column: 1 / -1; }
.pull--wide blockquote { font-size: clamp(19px, 1.55vw, 22px); max-width: 92ch; }

.pull--pending { border-left-color: rgba(160,124,44,0.4); }
.pull--pending blockquote, .pull--pending cite { color: var(--muted); font-size: 17px; }
.pull--pending cite { font-size: 13px; }

.pending { color: var(--muted); font-style: italic; }

.copied-note {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: var(--navy); color: var(--bg);
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  padding: 11px 18px; border-radius: 999px; z-index: 999;
  box-shadow: 0 8px 24px rgba(22,40,58,0.22);
  opacity: 0; transition: opacity .18s ease;
}
.copied-note.is-on { opacity: 1; }

.quote-mark { color: var(--gold); }

.attrib { display: flex; align-items: center; gap: 16px; }
.attrib__badge {
  width: 48px; height: 48px; border-radius: 999px; flex: none;
  background: rgba(201,164,78,0.2); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; letter-spacing: 0.04em;
}
.attrib__name { font-size: 16px; font-weight: 600; color: var(--bg); }
.attrib__role { font-size: 14px; color: var(--navy-muted); }

/* ------------------------------------------------------------------ about */

.bio { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(36px, 6vw, 100px); align-items: start; }
.bio__photo { width: 100%; max-width: 400px; aspect-ratio: 400 / 520; object-fit: cover; object-position: 50% 16%; border-radius: var(--radius-lg); }
.bio__cap { margin-top: 18px; }
.bio__name { font-size: 16px; font-weight: 600; color: var(--navy); }
.bio__role { font-size: 14px; color: var(--body); }
.bio__mail { margin-top: 4px; font-family: var(--sans); font-size: 14px; font-weight: 400; line-height: 1.5; }
.bio__mail a { font: inherit; color: var(--brass); border-bottom: 1px solid rgba(160,124,44,0.35); padding-bottom: 1px; }
.bio__mail a:hover { color: var(--navy); border-bottom-color: var(--navy); }

.timeline { display: flex; flex-direction: column; }
.timeline__row {
  display: grid; grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px);
  padding-block: 26px;
  border-top: 1px solid rgba(22,40,58,0.12);
}
.timeline__row:first-child { border-top: 2px solid var(--forest); }
.timeline__yr { font-family: var(--serif); font-size: 17px; color: var(--brass); }
.timeline__org { font-size: 17px; font-weight: 600; color: var(--navy); }
.timeline__desc { font-size: 15px; line-height: 1.65; color: var(--body); margin-top: 6px; max-width: 72ch; }

.creds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.cred__l { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.cred__v { font-size: 15px; line-height: 1.6; color: var(--secondary); margin-top: 8px; }

/* -------------------------------------------------------------------- faq */

.faq { display: flex; flex-direction: column; }
.faq__group { padding-block: 12px; }
.faq__item { border-top: 1px solid var(--rule); padding-block: 24px; }
.faq__q { font-family: var(--serif); font-size: 21px; line-height: 1.3; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.faq__a { font-size: 16px; line-height: 1.7; color: var(--body); margin-top: 12px; max-width: 78ch; }
.faq__a.pending { color: var(--muted); }

/* ---------------------------------------------------------- newsletter */

.signup { display: flex; flex-wrap: wrap; gap: 12px; }
.signup input {
  flex: 1 1 260px; min-width: 0;
  padding: 15px 18px; font-family: var(--sans); font-size: 15px;
  color: var(--navy); background: var(--card);
  border: 1px solid var(--rule); border-radius: 4px;
}
.signup input::placeholder { color: var(--muted); }

/* ------------------------------------------------------------------ footer */

.site-footer { border-top: 1px solid var(--rule); padding-block: 34px; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: clamp(16px, 2.5vw, 32px); font-size: 13px; color: var(--body); }
.site-footer nav a { color: var(--body); }
.site-footer nav a:hover { color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  .proof__track { animation: none; transform: none; }
  .proof { -webkit-mask-image: none; mask-image: none; }
  .proof__track { flex-wrap: wrap; width: 100%; }
  .proof__item[aria-hidden="true"] { display: none; }
  .proof__item { width: 25%; }
  * { transition-duration: .01ms !important; }
}

/* ============================================================ breakpoints */

@media (max-width: 1080px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bio { grid-template-columns: minmax(0, 1fr) 320px; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding-top: 0; }
  .process__sea, .process__hull { display: none; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }

  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 24px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding-block: 14px; font-size: 16px; border-top: 1px solid var(--rule-soft); }
  .nav .btn { margin-top: 16px; border-top: 0; }
  .site-header { position: relative; }
  .site-header__inner { position: relative; }

  .duo { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .duo__aside { border-left: 0; border-top: 2px solid var(--brass); padding-left: 0; padding-top: 24px; }
  .case { grid-template-columns: minmax(0, 1fr); }
  .case__aside { padding-top: 0; }
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .bio { grid-template-columns: minmax(0, 1fr); }
  .bio__figure { order: -1; }
  .bio__photo { max-width: 320px; }
  .creds { grid-template-columns: minmax(0, 1fr); }
  .timeline__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .process { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .btn-row .btn { flex: 1 1 100%; }
}

@media (max-width: 540px) {
  .display { max-width: none; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .site-footer nav { gap: 8px 20px; }
}

@media print {
  .site-header, .nav-toggle, .signup { display: none; }
  body { background: #fff; }
}

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