/* ==========================================================================
   Invespar Capital — site stylesheet
   Theme: warm ivory surfaces with the logo's deep forest green + metallic gold
   as the consistent accent system.
   ========================================================================== */

:root {
  /* Palette sampled from the final logo: deep forest green + warm metallic gold */
  --forest: #0A2A20;          /* exact mean background of the logo artwork */
  --forest-900: #071F18;
  --forest-800: #0E3528;
  --forest-700: #154534;
  --forest-600: #1E5642;
  --gold: #C9A961;
  --gold-light: #E6CF9A;
  --gold-dark: #B8914F;
  --gold-text: #86672F;       /* gold for text on light backgrounds (AA contrast) */
  --gold-100: #F4ECDA;
  --gold-grad: linear-gradient(135deg, #E6CF9A 0%, #C9A961 48%, #B8914F 100%);
  --ink: #17221D;
  --body: #3F4A44;
  --muted: #5E6862;
  --line: #E8E1D2;
  --line-strong: #D6CCB8;
  --bg: #FDFBF7;
  --bg-soft: #F6F1E7;
  --bg-tint: #F2EBDC;
  --on-dark: #E4E2D8;
  --on-dark-muted: #AEB8AF;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(10, 42, 32, .06), 0 1px 1px rgba(10, 42, 32, .04);
  --shadow: 0 14px 34px -16px rgba(10, 42, 32, .22), 0 2px 6px rgba(10, 42, 32, .05);
  --shadow-lg: 0 30px 60px -24px rgba(10, 42, 32, .38);
  --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;  /* UI labels, buttons, nav */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --header-h: 96px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.7rem, 5.4vw, 4.5rem); font-weight: 500; letter-spacing: -0.012em; }
h2 { font-size: clamp(2.05rem, 3.5vw, 2.95rem); font-weight: 500; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
::selection { background: var(--gold-light); color: var(--forest-900); }

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible, .site-header :focus-visible { outline-color: var(--gold-light); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--forest); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 1.05em 1.6em; border-radius: 3px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform .18s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--forest); color: #F5EFE0; border-color: var(--forest); box-shadow: inset 0 -2px 0 var(--gold); }
.btn-primary:hover { background: var(--forest-800); color: #fff; transform: translateY(-1px); box-shadow: inset 0 -2px 0 var(--gold-light), 0 12px 24px -14px rgba(10, 42, 32, .6); }
.on-dark .btn-primary, .btn-gold { background: var(--gold-grad); color: var(--forest-900); border-color: transparent; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6); }
.on-dark .btn-primary:hover, .btn-gold:hover { background: var(--gold-grad); color: var(--forest-900); filter: brightness(1.06); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .7); }
.btn-navy { background: var(--forest); color: #F5EFE0; }
.btn-navy:hover { background: var(--forest-800); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--gold-dark); }
.btn-ghost:hover { border-color: var(--forest); color: var(--forest); background: var(--gold-100); }
.btn-light { background: var(--gold-grad); color: var(--forest-900); }
.btn-light:hover { color: var(--forest-900); filter: brightness(1.06); transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: var(--gold-light); border-color: rgba(230, 207, 154, .5); }
.btn-outline-light:hover { border-color: var(--gold-light); color: #fff; background: rgba(230, 207, 154, .08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--forest);            /* same green as the logo artwork's background */
  border-bottom: 1px solid rgba(201, 169, 97, .28);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .6);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

/* Logo artwork is unaltered (only the empty green margin was cropped and the
   file resized). It sits on a background of the same sampled green; the soft
   edge mask hides the artwork's slight background vignette so it blends. */
.brand { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: 4px; }
.logo-frame { display: block; height: 96px; aspect-ratio: 760 / 577; }
.logo-frame picture, .logo-frame img { display: block; width: 100%; height: 100%; }
/* The file keeps ~130px of the artwork's own empty green on every side; only that
   margin is feathered, so the artwork itself is untouched. */
.logo-frame img {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-composite: intersect;
}
.brand { margin-left: -14px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-head); font-size: .74rem; font-weight: 500; color: var(--on-dark);
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; padding: 10px 10px; border-radius: 3px; position: relative;
  transition: color .15s, background-color .15s;
}
.nav a:hover { color: var(--gold-light); }
.nav a[aria-current="page"] { color: var(--gold-light); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 1px;
  background: var(--gold-grad);
}
.nav .btn { margin-left: 12px; padding: .95em 1.3em; font-size: .72rem; }
.nav .btn::after { display: none; }
.nav a.btn-navy, .nav a.btn-navy:hover { background: var(--gold-grad); color: var(--forest-900); }
.nav a.btn-navy:hover { filter: brightness(1.07); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 4px; border: 1px solid rgba(201, 169, 97, .45);
  background: transparent; cursor: pointer; color: var(--gold-light);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s ease, top .25s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  :root { --header-h: 76px; }
  .logo-frame { height: 76px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--forest); padding: 18px 22px 32px; overflow-y: auto;
    border-top: 1px solid rgba(201, 169, 97, .28);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .nav a { font-size: .9rem; padding: 17px 12px; border-bottom: 1px solid rgba(230, 207, 154, .14); border-radius: 0; }
  .nav a[aria-current="page"]::after { left: 0; right: auto; top: 16px; bottom: 16px; width: 2px; height: auto; }
  .nav .btn { margin: 22px 0 0; justify-content: center; border-bottom: 0; padding: 1.2em; font-size: .85rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; position: relative; }
.section-sm { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: linear-gradient(180deg, var(--bg-soft), #fff); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-size: .74rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold-grad); }
.on-dark .eyebrow { color: var(--gold-light); }
.on-dark .eyebrow::before { background: var(--gold-light); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.lead { font-size: 1.18rem; color: var(--body); line-height: 1.7; }
.muted { color: var(--muted); }

/* Grid-line texture */
.grid-bg {
  background-image:
    linear-gradient(rgba(10, 42, 32, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 42, 32, .055) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 100px 0 116px; background: linear-gradient(180deg, #FBF7EE 0%, var(--bg) 100%); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10, 42, 32, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 42, 32, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -260px;
  background: radial-gradient(circle, rgba(201, 169, 97, .16), transparent 62%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--gold-text); font-style: italic; font-weight: 500; }
.hero .lead { max-width: 580px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding: 0; list-style: none; }
.hero-tags li {
  font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--forest); background: transparent;
  border: 1px solid var(--line-strong); border-radius: 2px; padding: 7px 14px;
}

/* Decorative gold mark (replaces the former at-a-glance card) */
.hero-mark { position: relative; justify-self: center; width: min(400px, 100%); aspect-ratio: 1; }
.hero-mark::before, .hero-mark::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero-mark::before { inset: -22px; border: 1px solid rgba(184, 145, 79, .38); }
.hero-mark::after { inset: -46px; border: 1px dashed rgba(184, 145, 79, .22); }
.hero-mark { display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 42%, #0F3A2C 0%, var(--forest) 62%, var(--forest-900) 100%); box-shadow: 0 0 0 1px rgba(201, 169, 97, .55), var(--shadow-lg); }
.hero-mark img { display: block; width: 66%; height: auto; transform: translateY(-2%); }
.hero-mark picture { display: contents; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: 92px 0 84px; background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.page-hero::after, .hero::after { mix-blend-mode: multiply; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10, 42, 32, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 42, 32, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
  pointer-events: none;
}
.page-hero::after {
  content: ""; position: absolute; width: 560px; height: 560px; right: -160px; top: -240px;
  background: radial-gradient(circle, rgba(201, 169, 97, .14), transparent 62%); pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.5rem, 4.6vw, 3.8rem); max-width: 860px; }
.page-hero .lead { max-width: 680px; margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-text); }
.crumbs span[aria-hidden] { margin: 0 8px; opacity: .6; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 22px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; margin-bottom: 0; color: var(--body); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D9CCAE; }
.card-hover::after {
  content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; border-radius: 2px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.card-hover:hover::after { transform: scaleX(1); }
.icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--forest); border: 1px solid rgba(201, 169, 97, .5); color: var(--gold-light);
}
.icon svg { width: 26px; height: 26px; }
.icon .g { color: var(--gold); }
.card h3 { font-size: 1.55rem; }
.card .num { font-family: var(--font-head); font-size: .8rem; color: var(--gold-text); font-weight: 600; letter-spacing: .1em; margin-bottom: 14px; display: block; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-family: var(--font-head); font-weight: 600; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--forest); padding-bottom: 4px; border-bottom: 1px solid var(--gold); }
.card-link:hover { color: var(--gold-text); }
.card-link svg { width: 1.1em; height: 1.1em; color: var(--gold-text); transition: transform .18s ease; }
.card-link:hover svg { transform: translateX(3px); }

/* ---------- Split / text blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.top { align-items: start; }
.prose p { font-size: 1.05rem; }
.prose h2 { margin-top: 0; }

/* Legacy band */
.legacy {
  position: relative; overflow: hidden; color: var(--on-dark);
  background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(201, 169, 97, .16), transparent 60%),
              linear-gradient(160deg, var(--forest) 0%, var(--forest-900) 100%);
}
.legacy::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(230, 207, 154, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 207, 154, .04) 1px, transparent 1px);
  background-size: 56px 56px; pointer-events: none;
}
.legacy { border-top: 1px solid rgba(201, 169, 97, .35); border-bottom: 1px solid rgba(201, 169, 97, .35); }
.legacy .wrap { position: relative; }
.legacy h2 { color: #F5EFE0; }
.legacy p { color: var(--on-dark); }
.legacy blockquote {
  margin: 0; padding: 0 0 0 30px; border-left: 1px solid var(--gold);
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 2.4vw, 1.95rem); line-height: 1.4; color: var(--gold-light); font-weight: 500;
}
.legacy cite { display: block; margin-top: 18px; font-style: normal; font-family: var(--font-body); font-size: .88rem; color: var(--on-dark-muted); }
.legacy cite a { color: var(--gold-light); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 26px 34px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: #C9A961; outline: 1px solid rgba(201, 169, 97, .7); outline-offset: 3px; }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 28px; bottom: 0; width: 1px; background: rgba(201, 169, 97, .3); }
.timeline li:last-child::after { display: none; }
.timeline strong { display: block; color: var(--gold-light); font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 2px; }
.timeline span { font-size: .95rem; color: var(--on-dark-muted); }

/* Markets */
.market {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 40px 38px; min-height: 280px;
  border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 118px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.market:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.market .code {
  position: absolute; top: 10px; right: 26px; font-family: var(--font-display); font-weight: 500;
  font-size: 8.5rem; line-height: 1; letter-spacing: .02em; color: transparent;
  -webkit-text-stroke: 1px rgba(184, 145, 79, .45); user-select: none;
}
.market::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10, 42, 32, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 42, 32, .05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(200deg, #000, transparent 60%);
          mask-image: linear-gradient(200deg, #000, transparent 60%);
}
.market.tone-a { background: linear-gradient(200deg, #F2EADA 0%, #fff 60%); }
.market.tone-b { background: linear-gradient(200deg, #E9EEE8 0%, #fff 60%); }
.market::after { content: ""; position: absolute; left: 38px; right: 38px; bottom: 0; height: 2px; background: var(--gold-grad); transform: scaleX(.18); transform-origin: left; transition: transform .35s ease; }
.market:hover::after { transform: scaleX(1); }
.market > * { position: relative; }
.market h3 { font-size: 2.1rem; margin-bottom: 8px; }
.market p { margin: 0; max-width: 420px; }
.market .tag { display: inline-block; align-self: flex-start; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 12px; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 6px; padding: 64px 64px;
  border: 1px solid rgba(201, 169, 97, .45);
  background: radial-gradient(ellipse 50% 90% at 100% 100%, rgba(201, 169, 97, .22), transparent 60%),
              linear-gradient(135deg, var(--forest) 0%, var(--forest-900) 100%);
  color: var(--on-dark); display: grid; grid-template-columns: 1.3fr auto; gap: 40px; align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(230, 207, 154, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 207, 154, .05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
          mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #F5EFE0; margin-bottom: 12px; }
.cta-band p { margin: 0; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* Values */
.values { counter-reset: v; }
.value { padding: 28px 0 0; border-top: 1px solid var(--gold); }
.value h3 { display: flex; align-items: baseline; gap: 12px; }
.value h3::before { counter-increment: v; content: "0" counter(v); font-family: var(--font-head); font-size: .74rem; font-weight: 600; color: var(--gold-text); letter-spacing: .12em; }
.value p { font-size: .98rem; margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--forest); color: var(--gold-light); border: 1px solid var(--gold); font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin-bottom: 18px;
}
.steps h3 { font-size: 1.4rem; margin-bottom: 8px; }
.steps p { font-size: .95rem; margin: 0; }

/* Strategy detail blocks */
.pillar { display: grid; grid-template-columns: 300px 1fr; gap: 56px; padding: 56px 0; border-top: 1px solid var(--line); }
.pillar:first-child { border-top: 0; padding-top: 0; }
.pillar .icon { width: 60px; height: 60px; }
.pillar h2 { font-size: 2.2rem; }
.pillar .kicker { font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .14em; color: var(--gold-text); text-transform: uppercase; }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.check-list li { position: relative; padding-left: 30px; font-size: .98rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2386672F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: stretch; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.person:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.person-top {
  position: relative; padding: 34px 30px 26px; display: flex; align-items: center; gap: 18px;
  background: linear-gradient(160deg, var(--bg-tint), #fff 80%); border-bottom: 1px solid var(--line);
}
.person { border-top: 2px solid var(--gold); }
.person-top::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10, 42, 32, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 42, 32, .05) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000);
          mask-image: linear-gradient(90deg, transparent 20%, #000);
}
.person-top > * { position: relative; }
/* Team headshots: larger 4:5 portraits with a thin gold frame */
.person-photo { flex-shrink: 0; width: 200px; margin: 0; padding: 5px; background: #fff; border: 1px solid var(--gold); border-radius: 12px; box-shadow: 0 18px 34px -20px rgba(10, 42, 32, .55); }
.person-photo picture, .person-photo img { display: block; width: 100%; }
.person-photo img { aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: 50% 0%; border-radius: 8px; }
.person-photo.pos-cal img { object-position: 50% 30%; }
.person-top:has(.person-photo) { align-items: flex-end; gap: 26px; padding: 30px 30px 26px; }
.person-top:has(.person-photo) h2 { font-size: 2rem; }
.person-top:has(.person-photo) > div { padding-bottom: 10px; }
.person-photo.full { width: 250px; }
.person-photo.full img { aspect-ratio: auto; object-fit: contain; }
.person-photo figcaption { margin: 9px 4px 3px; font-family: var(--font-display); font-style: italic; font-size: .95rem; line-height: 1.35; color: var(--muted); text-align: center; text-wrap: balance; }
.person.founder .person-top:has(.person-photo) { align-items: flex-start; justify-content: center; gap: 6px; padding: 40px 36px; }
.person.founder .person-photo { margin-bottom: 16px; }
.person.founder .person-body { align-self: center; }
.history-aside .person-photo.full { width: 100%; margin-bottom: 18px; }
.person h2, .person h3 { font-size: 1.75rem; margin: 0 0 4px; }
.role { font-family: var(--font-head); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); margin: 0; }
.person-body { padding: 26px 30px 30px; }
.person-body p { font-size: .97rem; }
.person-body p:last-child { margin-bottom: 0; }
.focus { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; padding: 0; list-style: none; }
.focus li { font-size: .76rem; font-weight: 500; color: var(--forest); background: var(--bg-soft); border: 1px solid var(--line-strong); padding: 4px 10px; border-radius: 2px; }
/* Draft bios — swap the text and remove .bio-draft when approved. */
.bio-draft { position: relative; background: #FFFBEB; border: 1px dashed #E3B53B; border-radius: 10px; padding: 14px 16px; color: #5A4A1A; font-size: .93rem !important; }
.bio-draft .flag { display: block; font-family: var(--font-head); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8A6A00; margin-bottom: 6px; }
.person.founder { grid-column: 1 / -1; display: grid; grid-template-columns: 340px 1fr; }
.person.founder .person-top { border-bottom: 0; border-right: 1px solid var(--line); flex-direction: column; align-items: flex-start; justify-content: center; padding: 40px 36px; }
.person.founder .person-body { padding: 40px 44px; }
.person.founder .person-body p { font-size: 1.05rem; line-height: 1.75; }

/* ---------- Portfolio ---------- */
/* Portfolio property cards */
.pcard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(201, 169, 97, .55); }
.pcard-media { position: relative; aspect-ratio: 3 / 2; background: var(--forest-800); overflow: hidden; }
.pcard-media picture, .pcard-media img { display: block; width: 100%; height: 100%; }
.pcard-media img { object-fit: cover; }
.pcard-media.pos-top img { object-position: 50% 0%; }
.pcard-media.contain { background: #F3EFE6; }
.pcard-media.contain img { object-fit: contain; }
.media-label { position: absolute; right: 12px; bottom: 12px; font-family: var(--font-head); font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); background: rgba(7, 31, 24, .78); padding: 3px 9px; border-radius: 2px; }
.pcard-body { padding: 22px 24px 22px; border-top: 2px solid var(--gold); }
.pcard-body h2 { font-size: 1.7rem; line-height: 1.15; margin: 0 0 2px; }
.pcard-loc { margin: 0 0 16px; color: var(--gold-text); font-size: .9rem; font-weight: 500; letter-spacing: .03em; }
.pcard-specs { margin: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; border-top: 1px solid var(--line); padding-top: 14px; }
.pcard-specs > div { padding: 0 22px; border-left: 1px solid var(--line); }
.pcard-specs > div:first-child { padding-left: 0; border-left: 0; }
.pcard-specs dt { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.pcard-specs dd { line-height: 1.3; margin: 0; font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); white-space: nowrap; }
@media (max-width: 760px) {
  .pcard-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 420px) {
  .pcard-body { padding: 18px 18px 18px; }
  .pcard-specs > div { padding: 0 14px; }
  .pcard-specs dd { font-size: 1rem; }
  .pcard-specs > div:last-child dd { white-space: normal; }
}


/* ---------- Portfolio page: classic design (scoped to body.pf-classic on portfolio.html) ---------- */
body.pf-classic { --parch: #F4ECDB; --parch-2: #FAF5EA; --rule: #B8914F; --rule-soft: rgba(184, 145, 79, .45); }
.pf-classic main { background: var(--parch); background-image: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255, 252, 244, .9), transparent 70%), radial-gradient(ellipse 120% 80% at 50% 100%, rgba(201, 169, 97, .10), transparent 70%); }
.pf-classic .page-hero { background: transparent; border-bottom: 0; text-align: center; padding: 84px 0 34px; }
.pf-classic .page-hero::before, .pf-classic .page-hero::after { display: none; }
.pf-classic .page-hero .crumbs { justify-content: center; }
.pf-classic .page-hero .eyebrow { justify-content: center; }
.pf-classic .page-hero .eyebrow::before { display: none; }
.pf-classic .page-hero .eyebrow { font-family: var(--font-display); font-size: .95rem; font-weight: 600; letter-spacing: .32em; }
.pf-classic .page-hero h1 { margin: 0 auto 10px; font-weight: 500; letter-spacing: .01em; }
.pf-classic .page-hero .lead { margin: 0 auto; max-width: 620px; font-family: var(--font-display); font-size: 1.28rem; line-height: 1.6; font-style: italic; color: #4C5550; }
.pf-ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto 22px; }
.pf-ornament span { display: block; width: 76px; height: 4px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule-soft); }
.pf-ornament i { display: block; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--rule); background: transparent; }
.pf-classic .section { padding: 46px 0 96px; }

.pf-classic .pcard-grid { gap: 34px 34px; }
.pf-classic .pcard { position: relative; background: var(--parch-2); border: 1px solid var(--rule); border-radius: 0; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 18px 36px -28px rgba(60, 42, 12, .45); padding: 16px 16px 0; overflow: visible; }
.pf-classic .pcard::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--rule-soft); pointer-events: none; }
.pf-classic .pcard:hover { transform: none; border-color: var(--rule); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 22px 40px -26px rgba(60, 42, 12, .5); }
.pf-classic .pcard-media { margin: 8px; padding: 9px; background: #FFFDF7; border: 1px solid rgba(10, 42, 32, .22); box-shadow: inset 0 0 0 1px rgba(184, 145, 79, .25); aspect-ratio: 3 / 2; overflow: hidden; }
.pf-classic .pcard-media picture { border: 1px solid rgba(10, 42, 32, .28); overflow: hidden; background: #EFE7D6; }
.pf-classic .pcard-media img { transition: filter .5s ease; }
.pf-classic .pcard:hover .pcard-media img { filter: sepia(.22) saturate(.92) brightness(1.02); }
.pf-classic .pcard-media.contain picture { background: #F7F1E4; }
.pf-classic .media-label { right: 20px; bottom: 20px; background: rgba(250, 245, 234, .92); color: var(--gold-text); border: 1px solid var(--rule-soft); font-family: var(--font-display); font-size: .78rem; font-style: italic; font-weight: 600; letter-spacing: .06em; text-transform: none; padding: 2px 10px; }
.pf-classic .pcard-body { border-top: 0; padding: 14px 18px 30px; text-align: center; }
.pf-classic .pcard-body h2 { font-size: 1.95rem; font-weight: 500; letter-spacing: .02em; margin: 0 0 2px; }
.pf-classic .pcard-loc { font-family: var(--font-display); font-weight: 600; font-size: .92rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 14px; }
.pf-classic .pcard-specs { justify-content: center; border-top: 0; padding-top: 14px; position: relative; }
.pf-classic .pcard-specs::before { content: ""; position: absolute; top: 0; left: 50%; width: 120px; margin-left: -60px; border-top: 1px solid var(--rule-soft); }
.pf-classic .pcard-specs > div { border-left: 1px solid var(--rule-soft); padding: 0 22px; }
.pf-classic .pcard-specs > div:first-child { border-left: 0; padding-left: 22px; }
.pf-classic .pcard-specs dt { font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .24em; color: #6F665A; margin-bottom: 2px; }
.pf-classic .pcard-specs dd { font-size: 1.12rem; color: var(--forest); }
@media (max-width: 420px) {
  .pf-classic .pcard { padding: 10px 10px 0; }
  .pf-classic .pcard-media { margin: 6px; padding: 6px; }
  .pf-classic .media-label { right: 14px; bottom: 14px; }
  .pf-classic .pcard-body { padding: 12px 8px 24px; }
  .pf-classic .pcard-specs > div, .pf-classic .pcard-specs > div:first-child { padding: 0 12px; }
  .pf-classic .pcard-loc { letter-spacing: .2em; }
}

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--font-head); font-size: .88rem; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); font-family: var(--font-body); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 4px; padding: 12px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230A2A20' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #C4B89E; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(201, 169, 97, .35); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.form-foot small { color: var(--muted); font-size: .85rem; max-width: 420px; }

.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { width: 44px; height: 44px; margin: 0; flex-shrink: 0; }
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .95rem; }
.contact-list span, .contact-list a { font-size: .95rem; }

/* Disclaimer */
.disclaimer { font-size: .85rem; line-height: 1.65; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.disclaimer strong { color: var(--ink); font-family: var(--font-head); display: block; margin-bottom: 6px; font-size: .9rem; }
.disclaimer p { margin: 0 0 .7em; }
.disclaimer p:last-child { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: var(--on-dark-muted); padding: 80px 0 32px; position: relative; overflow: hidden; border-top: 1px solid rgba(201, 169, 97, .45); }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gold-grad); opacity: .85; pointer-events: none;
}
.site-footer .wrap { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer-logo { display: inline-block; margin: 0 0 24px; border: 1px solid rgba(201, 169, 97, .38); border-radius: 4px; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .7); }
/* In the footer the full artwork (with its own green field) is shown as a framed logo block. */
.footer-logo .logo-frame { height: 150px; }
.footer-logo .logo-frame img { -webkit-mask-image: none; mask-image: none; }
.footer-about { font-size: .95rem; max-width: 330px; }
.site-footer h2 { color: var(--gold-light); font-family: var(--font-head); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark); text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-bottom { margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(201, 169, 97, .25); display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; font-size: .84rem; }
.footer-bottom p { margin: 0; }
.footer-legal { max-width: 720px; color: #95A198; }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-mark { display: none; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .person.founder { grid-template-columns: 1fr; }
  .person.founder .person-top { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; align-items: center; justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pillar { grid-template-columns: 1fr; gap: 20px; }
  .person-photo { width: 150px; }
  .person-photo.full { width: 200px; }
  .person.founder .person-top:has(.person-photo) { flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: 26px; }
  .person.founder .person-photo { margin-bottom: 0; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .section { padding: 76px 0; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 44px 30px; }
  .cta-actions { justify-content: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .check-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 64px 0 76px; }
  .page-hero { padding: 60px 0 56px; }
  .cards-4, .steps, .team-grid { grid-template-columns: 1fr; }
  .person.founder .person-top { flex-direction: column; align-items: flex-start; }
  .person.founder .person-body { padding: 28px 26px; }
  .person-photo { width: 132px; padding: 4px; }
  .person-photo.full { width: 240px; padding: 5px; }
  .person.founder .person-top:has(.person-photo) { flex-direction: column; align-items: flex-start; gap: 6px; padding: 26px 22px; }
  .person.founder .person-photo { margin-bottom: 14px; }
  .person-top:has(.person-photo) { gap: 18px; padding: 24px 22px 22px; }
  .person-top:has(.person-photo) h2 { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .market { padding: 96px 26px 32px; min-height: 0; }
  .market .code { font-size: 6.5rem; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- Our History (editorial) ---------- */
.history-hero { padding-bottom: 64px; }
.history-hero h1 { font-size: clamp(3rem, 7vw, 5.4rem); letter-spacing: -0.01em; margin-bottom: 0; }
.history { padding-top: 96px; }
.history-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 72px; align-items: start; max-width: 1040px; }
.history-aside { position: sticky; top: calc(var(--header-h) + 40px); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.history-aside-name { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; color: var(--ink); margin: 0; }
.history-rule { display: block; width: 56px; height: 1px; margin-top: 18px; background: var(--gold-grad); }
.history-article { max-width: 700px; }
.history-article h2 {
  font-size: clamp(2.3rem, 3.8vw, 3.1rem); margin-bottom: 28px; padding-bottom: 24px;
  border-bottom: 1px solid var(--gold);
}
.history-article p { font-size: 1.16rem; line-height: 1.85; color: var(--body); margin-bottom: 1.35em; }
.history-article strong { color: var(--forest); font-weight: 600; }
.history-article .history-lede { font-family: var(--font-head); font-size: clamp(1.35rem, 2.2vw, 1.65rem); line-height: 1.45; letter-spacing: -0.015em; margin-bottom: 1.1em; }
.history-article .history-lede strong { color: var(--ink); }
.history-article .history-lede + p::first-letter {
  float: left; font-family: var(--font-head); font-weight: 600; font-size: 4.1em; line-height: .82;
  margin: .08em .1em 0 0; color: var(--gold-text);
}
.history-article .history-intro { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 1.95rem); line-height: 1.42; color: var(--ink); margin-bottom: 1.1em; }
.history-article .history-intro strong { color: var(--gold-text); }
.history-article p:last-child { margin-bottom: 0; }

.history-close {
  position: relative; overflow: hidden; padding: 120px 0; text-align: center;
  background: radial-gradient(ellipse 55% 90% at 50% 120%, rgba(201, 169, 97, .2), transparent 65%),
              linear-gradient(160deg, var(--forest) 0%, var(--forest-900) 100%);
  border-top: 1px solid rgba(201, 169, 97, .45); border-bottom: 1px solid rgba(201, 169, 97, .45);
}
.history-close::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(230, 207, 154, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 207, 154, .04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.history-close figure { position: relative; margin: 0 auto; max-width: 900px; }
.history-mark { display: block; font-family: var(--font-display); font-size: 7rem; line-height: .55; color: var(--gold); margin-bottom: 14px; }
.history-close blockquote { margin: 0; }
.history-close blockquote p {
  margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.9rem, 3.8vw, 3.1rem); line-height: 1.25;
  color: var(--gold-light);
}
.history-close blockquote strong { font-weight: 600; }
.history-next { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding-top: 32px; }
.history-next-card {
  display: flex; flex-direction: column; gap: 4px; padding: 30px 32px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.history-next-card .eyebrow { margin-bottom: 6px; }
.history-next-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D9CCAE; color: var(--ink); }
.history-next-title { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; }
.history-next-title svg { width: .9em; height: .9em; color: var(--gold-text); transition: transform .18s ease; }
.history-next-card:hover .history-next-title svg { transform: translateX(4px); }
@media (max-width: 820px) {
  .history { padding-top: 64px; }
  .history-grid { grid-template-columns: 1fr; gap: 32px; }
  .history-aside { position: static; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 16px; }
  .history-aside:has(.person-photo) { flex-direction: column; align-items: flex-start; }
  .history-aside .person-photo.full { width: 280px; max-width: 100%; margin-bottom: 10px; }
  .history-aside:has(.person-photo) .history-aside-name { display: block; }
  .history-rule, .history-aside-name { display: none; }
  .history-article p { font-size: 1.06rem; }
  .history-close { padding: 84px 0; }
  .history-next { grid-template-columns: 1fr; }
}

/* Home asset-type cards (no body copy, so no fixed height) */
.cards-3 .market { min-height: 0; padding-bottom: 46px; }
