/* =========================================================
   Richstone & Co LLC, site stylesheet.
   One file, no framework. Brand: the red of the mark, cream
   and gold.

   LOOK (Cal, 2 Dec 26: the app-style version felt "soft"):
   square corners, flat colour, one pixel rules. No shadows,
   no gradients on surfaces, no glass blur, no pill shapes.
   Only photograph scrims use gradients.

   The layout pieces (segmented tab strip, phone tab bar,
   reveal motion) still come from the members app (material
   cards, gradient buttons, glass pills, segmented control,
   bottom tab bar, press + rise motion) is lifted from the
   Concordia members app (btb-members-app/src/index.css).
   ========================================================= */

/* Fonts are served from this site: no third-party requests.
   Brand type (Cal, 2 Dec 26): Libre Baskerville Regular for the company name and headings,
   Source Sans 3 for everything else (Light 300 spaced capitals for "TRADING HOUSE",
   Regular 400 / Semibold 600 for body copy and navigation). */
@font-face { font-family: 'Libre Baskerville'; src: url('../fonts/libre-baskerville-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('../fonts/source-sans-3-latin.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --red-deep: #5c1215;
  --red-dark: #3a0a0d;
  --red-mid:  #6a161b;
  --red-hi:   #7c1f25;
  --black:      #0f0607;
  --cream:      #f7f5f0;
  --cream-card: #ffffff;
  --cream-deep: #ece8df;
  --gold:       #b08c5c;
  --gold-light: #c9ab80;
  --gold-ink:   #8c6d43;
  --ink:        #1a1112;
  --muted:      #5a4d4b;
  --border:     #d6d0c4;
  --border-strong: #b9b0a3;
  --on-dark:    #f4f0e8;
  --on-dark-mute: rgba(244,240,232,0.72);

  --display: 'Libre Baskerville', Baskerville, Georgia, 'Times New Roman', serif;   /* company name, headings, figures */
  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;   /* body, navigation, buttons, labels */

  --ease: cubic-bezier(0.16, 1, 0.3, 1);        /* the app's EASE_OUT */
  --ease-soft: cubic-bezier(0.2, 0.7, 0.2, 1);  /* the app's "soft, luxurious" curve */

  --topbar-h: 72px;
  --bottomnav-h: 0px;
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 44px);
  --section-y: clamp(64px, 9vw, 124px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 84px); -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  padding-top: var(--topbar-h);
  padding-bottom: var(--bottomnav-h);
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
em, i { font-style: normal; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 0 0 0.45em;
  color: var(--red-deep);
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 4.7vw, 3.8rem); line-height: 1.1; }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.55vw, 1.32rem); line-height: 1.25; letter-spacing: -0.005em; }

.lede { font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.55; font-weight: 400; }
.muted { color: var(--muted); }

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

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--gold); color: var(--ink); padding: 12px 16px; font-weight: 600; border-radius: 0; }
.skip-link:focus { left: 16px; top: 12px; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--cream-card); }
.section--deep  { background: var(--cream-deep); }
/* Red over black, so the dark sections are not one flat red. */
.section--dark {
  background: #4a0d10;
  color: var(--on-dark);
}
.section--black {
  background: #140b0c;
  color: var(--on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3,
.section--black h1, .section--black h2, .section--black h3 { color: var(--on-dark); }
.section--dark .muted, .section--black .muted { color: var(--on-dark-mute); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-head p { font-size: 1.08rem; color: var(--muted); max-width: 58ch; }
.section--dark .section-head p, .section--black .section-head p { color: var(--on-dark-mute); }

.split { display: grid; grid-template-columns: 1fr; gap: clamp(26px, 5vw, 72px); align-items: start; }
.split > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 0.8fr 1.2fr; }
  .split--even { grid-template-columns: 1fr 1fr; align-items: center; }
  .split--photo { grid-template-columns: 0.82fr 1.18fr; align-items: center; }
}
.prose p { max-width: 62ch; }
.prose .lede { margin-bottom: 1.1em; }

/* ---------- Tags: small solid rectangles ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1;
  padding: 6px 8px; border-radius: 2px; white-space: nowrap;
  background: #c8a878; color: #2a0709;
}
.badge--red { background: var(--red-deep); color: #fff; }
.badge--glass { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); padding: 5px 7px; }
.kicker { margin-bottom: 18px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 2px;
  font-size: 13.5px; font-weight: 600; line-height: 1.2; color: var(--ink);
  background: transparent; border: 1px solid var(--border-strong);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  user-select: none;
}
.pill--dark { color: #fff; background: transparent; border-color: rgba(255,255,255,0.4); }
.pill-active, input:checked + .pill { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* ---------- Buttons: solid and outlined rectangles ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 15px 22px; border-radius: 2px; border: 1px solid transparent;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  user-select: none;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .25s var(--ease-soft); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover svg.i-out { transform: translate(2px, -2px); }
.btn:active { transform: translateY(1px); }

/* Primary on cream: red-tinted glass. */
.btn-primary { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.btn-primary:hover { background: #3a0a0d; border-color: #3a0a0d; }
.btn-primary:active { background: #2a0709; }

/* Primary on dark and on photographs: gold-tinted glass. */
.btn-gold { background: #c8a878; border-color: #c8a878; color: #2a0709; }
.btn-gold:hover { background: #d9bf97; border-color: #d9bf97; }

/* Secondary: clear glass (light, and dark for use over imagery). */
.btn-glass { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-glass:hover { background: var(--ink); color: #fff; }
.btn-glass-dark { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-glass-dark:hover { background: #fff; border-color: #fff; color: var(--red-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.text-link { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 600; font-size: 15px; color: var(--red-deep); }
.text-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease-soft); }
.text-link:hover svg { transform: translateX(4px); }
.section--dark .text-link, .section--black .text-link { color: var(--gold-light); }

/* ---------- Cards: white, square, a one pixel edge ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
}
.card-pad { padding: clamp(22px, 2.6vw, 34px); }
.surface-red {
  background: var(--red-deep);
  color: #fff;
}
.surface-red h2, .surface-red h3 { color: #fff; }
.glass-dark {
  background: rgba(20,6,8,0.6);
  border: 1px solid rgba(255,255,255,0.24);
  color: #fff;
}
.pressable { transition: border-color .18s ease, opacity .16s ease; }
.pressable:active { opacity: 0.92; }
@media (hover: hover) {
  a.card.pressable:hover { border-color: var(--red-deep); }
  a.card.pressable:active { border-color: var(--red-deep); }
}

/* ---------- Top bar (the app's top bar, in Richstone red) ---------- */
.top-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--topbar-h);
  background: var(--red-deep);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.top-bar .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; }
.wordmark__mark { height: 52px; width: auto; flex: none; }
.wordmark__name { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1; color: var(--on-dark); letter-spacing: 0; white-space: nowrap; }
.wordmark__sub { display: block; margin-top: 7px; font-size: 10.5px; font-weight: 300; letter-spacing: 0.3em; text-transform: uppercase; line-height: 1; color: rgba(244,240,232,0.78); white-space: nowrap; }

/* Segmented control: recessed track, floating thumb. */
.seg { position: relative; display: inline-flex; gap: 0; padding: 0; background: #fff; border: 1px solid var(--border); }
.seg-item {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 18px;
  font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--muted);
  transition: color .2s ease, background-color .2s ease;
  user-select: none;
}
.seg-item:hover { color: var(--ink); }
.seg-item-active, .seg-item[aria-current="page"] { color: #fff; background: var(--red-deep); }
/* On the green bar: the app's map variant, tinted glass with a gold rim. */
.seg--bar { background: none; border: 0; gap: 4px; }
.seg--bar .seg-item { color: rgba(255,255,255,0.8); padding: 10px 14px; font-size: 15px; border-bottom: 2px solid transparent; }
.seg--bar .seg-item:hover { color: #fff; background: none; }
.seg--bar .seg-item[aria-current="page"] { color: #fff; background: none; border-bottom-color: #c8a878; }
/* With a sliding thumb (JS adds .has-thumb): the active item itself goes clear. */
.seg.has-thumb .seg-item-active { background: none; }
.seg-thumb { position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: 0; background: var(--red-deep); transition: transform .42s var(--ease), width .42s var(--ease); }

/* Bottom tab bar on phones (the app's bottom nav). */
.bottom-nav { display: none; }
@media (max-width: 859px) {
  :root { --topbar-h: 62px; --bottomnav-h: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .top-nav { display: none; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--red-deep);
    border-top: 1px solid rgba(255,255,255,0.07);
  }
  .bottom-nav a { height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: rgba(244,240,232,0.6); }
  .bottom-nav a[aria-current="page"] { color: var(--gold-light); }
  .bottom-nav svg { width: 23px; height: 23px; transition: scale .25s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .bottom-nav a:active svg { scale: 0.86; transition-duration: .08s; }
  .wordmark { gap: 10px; }
  .wordmark__mark { height: 42px; }
  .wordmark__name { font-size: 18px; }
  .wordmark__sub { font-size: 9.5px; margin-top: 6px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--black); color: var(--on-dark); min-height: min(calc(100svh - var(--topbar-h) - var(--bottomnav-h)), 900px); display: flex; align-items: flex-end; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20,6,8,0.9) 0%, rgba(20,6,8,0.74) 38%, rgba(20,6,8,0.3) 68%, rgba(20,6,8,0.05) 100%),
    linear-gradient(0deg, rgba(20,6,8,0.9) 0%, rgba(20,6,8,0) 46%);
}
.hero .wrap { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(28px, 4vw, 52px); }
.hero h1 { color: #fff; max-width: 16ch; margin-bottom: 0.38em; }
.hero__sub { font-size: clamp(1.08rem, 1.55vw, 1.28rem); line-height: 1.55; max-width: 54ch; color: rgba(244,240,232,0.9); margin: 0; }
.hero__meta { margin-top: clamp(36px, 5vw, 64px); border-radius: 0; display: grid; grid-template-columns: 1fr; }
.hero__meta > div { padding: 18px 22px; }
.hero__meta > div + div { border-top: 1px solid rgba(255,255,255,0.16); }
.hero__meta dt { font-size: 12.5px; font-weight: 600; color: rgba(244,240,232,0.7); margin-bottom: 3px; }
.hero__meta dd { margin: 0; font-size: 16.5px; font-weight: 600; color: #fff; line-height: 1.35; }
@media (min-width: 760px) {
  .hero__meta { grid-template-columns: repeat(3, 1fr); }
  .hero__meta > div + div { border-top: 0; border-left: 1px solid rgba(255,255,255,0.16); }
}

/* Inner page header */
.page-head { position: relative; isolation: isolate; overflow: hidden; background: var(--black); color: var(--on-dark); min-height: clamp(380px, 54vh, 560px); display: flex; align-items: flex-end; }
.page-head__bg { position: absolute; inset: 0; z-index: -2; }
.page-head__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,6,8,0.93) 0%, rgba(20,6,8,0.74) 46%, rgba(20,6,8,0.28) 100%), linear-gradient(0deg, rgba(20,6,8,0.85) 0%, rgba(20,6,8,0) 55%); }
.page-head .wrap { padding-top: clamp(72px, 10vw, 130px); padding-bottom: clamp(40px, 5vw, 68px); }
.page-head h1 { color: #fff; font-size: clamp(2.05rem, 4.3vw, 3.4rem); max-width: 19ch; }
.page-head .lede { color: rgba(244,240,232,0.9); max-width: 56ch; margin: 0; font-weight: 400; }

/* ---------- Commodity cards ---------- */
.feature { display: grid; grid-template-columns: 1fr; overflow: hidden; margin-bottom: clamp(16px, 2vw, 24px); }
.feature__body { padding: clamp(26px, 3.6vw, 52px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.feature__body p { color: rgba(244,240,232,0.86); max-width: 50ch; }
.feature__img { position: relative; min-height: 260px; overflow: hidden; }
.feature__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .feature { grid-template-columns: 1.02fr 0.98fr; } .feature__img { min-height: 430px; } }

.card-grid { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } .card-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.media-card { display: flex; flex-direction: column; overflow: hidden; }
.media-card__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #2a1719; }
.media-card__img img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-soft); }
.media-card__img .badge { position: absolute; left: 12px; top: 12px; max-width: calc(100% - 24px); white-space: normal; line-height: 1.3; }
.media-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.media-card__body p { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin-bottom: 18px; }
.media-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 0.45em; font-weight: 600; font-size: 14px; color: var(--red-deep); }
.media-card__more svg { width: 15px; height: 15px; transition: transform .25s var(--ease-soft); }
@media (hover: hover) { .media-card:hover .media-card__img img { scale: 1.05; } .media-card:hover .media-card__more svg { transform: translateX(4px); } }

/* ---------- Figures ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; padding: clamp(10px, 1.6vw, 20px); }
.stats > div { padding: clamp(18px, 2.6vw, 34px); }
.stats__num { font-family: var(--display); font-weight: 400; letter-spacing: -0.012em; font-size: clamp(2.3rem, 4.4vw, 3.5rem); line-height: 1; color: var(--gold-light); font-variant-numeric: tabular-nums; margin: 0 0 10px; }
.stats__label { font-size: 15px; line-height: 1.4; color: rgba(244,240,232,0.86); margin: 0; max-width: 20ch; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats > div + div { border-left: 1px solid rgba(255,255,255,0.1); } }

.capital { border-radius: 0; padding: clamp(26px, 3.4vw, 46px); }
.capital__num { font-family: var(--display); font-weight: 400; letter-spacing: -0.012em; font-size: clamp(2.9rem, 5.8vw, 4.6rem); line-height: 1; color: var(--gold-light); font-variant-numeric: tabular-nums; margin: 0 0 14px; }
.capital__label { font-size: 1.05rem; line-height: 1.5; color: rgba(244,240,232,0.88); max-width: 36ch; margin: 0 0 26px; }
.capital__for { font-size: 13.5px; font-weight: 600; color: rgba(244,240,232,0.7); margin: 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.16); }

/* ---------- Map (the app's light "book" map: cream water, sage land, gold where we are) ---------- */
.geo { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.geo > * { min-width: 0; }
@media (min-width: 960px) { .geo { grid-template-columns: 1.55fr 1fr; } }
.map-card { position: relative; overflow: hidden; aspect-ratio: 10 / 7; background: #f1eee7; }
@media (min-width: 960px) { .map-card { aspect-ratio: auto; min-height: 480px; } }
.map-card > div { position: absolute; inset: 0; }
.map-svg { width: 100%; height: 100%; }
.map-land { fill: #cfc5b5; stroke: #f4f0e8; stroke-width: 0.6; stroke-linejoin: round; }
.map-lit { fill: #b08c5c; stroke: #f4f0e8; stroke-width: 0.8; stroke-linejoin: round; transition: fill .3s ease; cursor: pointer; }
.map-lit.is-active { fill: #5c1215; }
.map-mark { cursor: pointer; }
.map-dot { fill: #5c1215; stroke: #f8e9cf; stroke-width: 2.5; transition: fill .3s ease; }
.map-mark.is-active .map-dot { fill: #b08c5c; stroke: #5c1215; }
.map-ring { fill: none; stroke: #5c1215; stroke-width: 1.5; opacity: 0; }
.map-label { font-family: var(--sans); font-size: 20px; font-weight: 600; fill: #5c1215; stroke: #f4f0e8; stroke-width: 5px; paint-order: stroke; stroke-linejoin: round; }
@media (max-width: 640px) { .map-label { font-size: 31px; stroke-width: 7px; } .map-dot, .map-ring { r: 10; } }

.list-card { overflow: hidden; display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 14px; width: 100%; flex: 1; padding: 13px 22px; text-align: left; transition: background-color .14s ease, transform .16s var(--ease-soft); }
.row + .row { border-top: 1px solid rgba(58,12,16,0.07); }
.row:hover, .row.is-active { background: rgba(58,12,16,0.045); }
.row:active { transform: scale(0.992); }
.row__dot { width: 8px; height: 8px; background: var(--red-deep); flex: none; }
.row__name { font-weight: 600; font-size: 16.5px; line-height: 1.2; }
.row__sub { display: block; font-size: 13.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.row__tags { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 58%; }

/* ---------- Founder ---------- */
.portrait { position: relative; border-radius: 0; overflow: hidden; aspect-ratio: 4 / 5; background: #2a1719; max-width: 480px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__tag { position: absolute; left: 14px; bottom: 14px; right: 14px; border-radius: 2px; padding: 13px 16px; }
.portrait__tag strong { display: block; font-size: 16px; line-height: 1.2; }
.portrait__tag span { display: block; font-size: 13px; color: rgba(255,255,255,0.82); margin-top: 2px; }
.quote { font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 0.7em; }

/* ---------- The mark (About) ---------- */
.plate { border-radius: 0; overflow: hidden; background: #f3e7d1; border: 1px solid rgba(58,12,16,0.08); max-width: 520px; }
.plate img { width: 100%; height: auto; }
.mark-story p { font-size: 1.08rem; line-height: 1.7; max-width: 56ch; }
.mark-story .lede { font-family: var(--display); font-weight: 400; letter-spacing: -0.012em; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; color: var(--red-deep); }

/* ---------- Legal pages ---------- */
.legal-head { padding: clamp(64px, 9vw, 110px) 0 clamp(36px, 5vw, 56px); }
.legal-head h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.legal { max-width: 800px; padding: clamp(24px, 4vw, 56px); }
.legal h2 { font-size: clamp(1.35rem, 2vw, 1.65rem); margin: 1.9em 0 0.5em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4em; }
.legal a { color: var(--red-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Principles ---------- */
.principle { padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; align-items: flex-start; }
.principle .badge { margin-bottom: 20px; }
.principle p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* ---------- Other companies ---------- */
.venture { position: relative; overflow: hidden; border-radius: 0; padding: clamp(26px, 3vw, 40px); display: grid; grid-template-columns: 1fr; gap: 22px; color: #fff; }
.venture__text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.venture h3 { color: #fff; font-size: clamp(1.55rem, 2.3vw, 1.95rem); margin-bottom: 0.4em; }
.venture p { color: rgba(255,255,255,0.86); max-width: 44ch; }
.venture .pill-row { margin: 4px 0 26px; }
.venture .btn { margin-top: auto; }
.venture__logo { width: 96px; height: auto; order: -1; }
.pill--glass { color: #fff; background: transparent; border-color: rgba(255,255,255,0.4); }
@media (min-width: 1080px) {
  .venture { grid-template-columns: 1fr 150px; align-items: center; gap: 28px; }
  .venture__logo { width: 150px; order: 0; justify-self: end; }
}
.venture--concordia { background: #072414; border: 1px solid rgba(255,255,255,0.14); }
.venture--mf { background: #1c2b40; border: 1px solid rgba(255,255,255,0.14); }

/* ---------- Operations ---------- */
.subnav { position: sticky; top: calc(var(--topbar-h) + 38px); z-index: 30; height: 0; display: flex; justify-content: center; align-items: center; padding: 0 12px; pointer-events: none; }
.subnav .seg { pointer-events: auto; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: #fff; border: 1px solid var(--border-strong); }
.subnav .seg::-webkit-scrollbar { display: none; }
.subnav .seg-thumb { background: var(--red-deep); }
.subnav .seg.has-thumb .seg-item-active { color: #fff; }
.subnav .seg:not(.has-thumb) .seg-item-active { background: rgba(92,18,21,0.94); color: #fff; }

.ops { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; margin-bottom: clamp(18px, 2.4vw, 30px); border-radius: 0; }
.ops__img { position: relative; border-radius: 0; overflow: hidden; aspect-ratio: 4 / 3; background: #2a1719; }
.ops__img img { width: 100%; height: 100%; object-fit: cover; }
.ops__img .badge { position: absolute; left: 14px; top: 14px; }
.ops__body { padding: clamp(22px, 3.4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.ops__body h2 { margin-bottom: 0.4em; }
.ops__body p { max-width: 56ch; }
.ops__body p + p { color: var(--muted); }
@media (min-width: 900px) {
  .ops { grid-template-columns: 1fr 1fr; }
  .ops__img { aspect-ratio: auto; min-height: 440px; }
  .ops--flip .ops__img { order: 2; }
}

/* ---------- Company details (an iOS settings list) ---------- */
.kv { overflow: hidden; }
.kv__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 16px clamp(18px, 2.4vw, 28px); }
.kv__row + .kv__row { border-top: 1px solid rgba(58,12,16,0.07); }
.kv dt { grid-column: 1; font-size: 13px; font-weight: 600; color: var(--muted); }
.kv dd { grid-column: 1; margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.kv__copy { grid-column: 2; grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 2px; display: grid; place-items: center; color: var(--muted); background: rgba(58,12,16,0.05); transition: background-color .16s ease, color .16s ease, transform .16s var(--ease-soft); }
.kv__copy:hover { background: rgba(58,12,16,0.1); color: var(--ink); }
.kv__copy:active { transform: scale(0.92); }
.kv__copy svg { width: 17px; height: 17px; }
@media (min-width: 720px) { .kv__row { grid-template-columns: 210px 1fr auto; } .kv dd { grid-column: 2; } .kv__copy { grid-column: 3; grid-row: 1; } }
.kv--stack .kv__row { grid-template-columns: 1fr auto; } .kv--stack dd { grid-column: 1; } .kv--stack .kv__copy { grid-column: 2; grid-row: 1 / span 2; }
.kv-group + .kv-group { margin-top: 22px; }
.kv-title { margin: 0 0 10px 4px; }
.kv-note { margin-top: 18px; font-size: 15px; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: calc(var(--bottomnav-h) + 22px); z-index: 80; translate: -50% 16px; opacity: 0; pointer-events: none; padding: 12px 16px; border-radius: 2px; font-size: 14px; font-weight: 600; color: #fff; background: #1a1112; transition: opacity .3s ease, translate .4s var(--ease); }
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(18px, 2.4vw, 28px); align-items: start; }
.contact-grid > * { min-width: 0; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }
.form { display: grid; gap: 18px; }
.form-two { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .form-two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field > .label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.input {
  width: 100%; border-radius: 2px; padding: 13px 15px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(58,12,16,0.1);
  outline: none; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.input:focus { background: #fff; border-color: rgba(58,12,16,0.45); }
textarea.input { min-height: 150px; resize: vertical; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .pill { cursor: pointer; padding: 10px 14px; font-size: 14.5px; }
.choice input:focus-visible + .pill { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-note { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- Closing band ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark); padding: clamp(80px, 11vw, 150px) 0; background: var(--black); }
.band__bg { position: absolute; inset: 0; z-index: -2; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(20,6,8,0.95) 0%, rgba(20,6,8,0.8) 48%, rgba(20,6,8,0.42) 100%); }
.band h2 { color: #fff; max-width: 17ch; }
.band p { max-width: 52ch; color: rgba(244,240,232,0.88); font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: #120708; color: var(--on-dark); padding: clamp(52px, 7vw, 84px) 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 52px); padding-bottom: clamp(34px, 5vw, 56px); border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1.3fr; } }
.footer-grid p { color: var(--on-dark-mute); font-size: 15px; max-width: 36ch; margin-top: 18px; }
.footer-col h4 { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--gold-light); margin: 0 0 14px; }
.footer-col li { margin-bottom: 9px; font-size: 15px; color: var(--on-dark-mute); line-height: 1.5; }
.footer-col a { color: var(--on-dark); transition: color .2s ease; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13.5px; color: rgba(244,240,232,0.6); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(244,240,232,0.8); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--gold-light); }

/* =========================================================
   Motion. One ease, one reveal, one press (src/lib/motion.ts
   in the app). Everything is off for reduced-motion users,
   and nothing is hidden when JavaScript is off.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  /* Above the fold: fades up on load, staggered. */
  @keyframes rise { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
  .fade-up { animation: rise .6s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }

  /* Below the fold: fades up once when it scrolls into view. */
  .js .reveal { opacity: 0; translate: 0 16px; transition: opacity .7s var(--ease), translate .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.is-in { opacity: 1; translate: 0 0; }

  /* Hero photograph drifts very slowly. */
  @keyframes kenburns { from { scale: 1; } to { scale: 1.07; } }
  .kenburns { animation: kenburns 18s ease-in-out infinite alternate; transform-origin: 60% 50%; }


  /* Map: dots pop in, rings breathe, a tap sends a ripple. */
  @keyframes map-dot-in { 0% { scale: 0; } 70% { scale: 1.18; } 100% { scale: 1; } }
  .is-in .map-dot { transform-box: fill-box; transform-origin: center; animation: map-dot-in .55s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
  @keyframes map-ring { 0% { r: 7; opacity: 0.7; } 100% { r: 28; opacity: 0; } }
  .is-in .map-ring { animation: map-ring 2.6s ease-out .8s infinite; }
  .map-mark.is-active .map-ring { animation: map-ring .9s ease-out infinite; stroke: #b08c5c; stroke-width: 2.5; }
  .map-mark:nth-of-type(2) .map-dot, .map-mark:nth-of-type(2) .map-ring { animation-delay: .12s, 1s; }
  .map-mark:nth-of-type(3) .map-dot { animation-delay: .2s; } .map-mark:nth-of-type(4) .map-dot { animation-delay: .28s; }
  .map-mark:nth-of-type(5) .map-dot { animation-delay: .36s; } .map-mark:nth-of-type(6) .map-dot { animation-delay: .44s; } .map-mark:nth-of-type(7) .map-dot { animation-delay: .52s; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Print (KYC teams print pages): plain, no fixed bars. */
@media print {
  .top-bar, .bottom-nav, .subnav, .toast, .btn-row { display: none !important; }
  body { padding: 0; background: #fff; }
  .js .reveal { opacity: 1 !important; translate: none !important; }
}

/* ---------- Hard-edged details ---------- */
.hero__meta.glass-dark { background: none; border: 0; border-top: 1px solid rgba(255,255,255,0.4); }
.hero__meta > div { padding: 18px 22px 0 0; }
@media (min-width: 760px) { .hero__meta > div + div { padding-left: 22px; border-left: 1px solid rgba(255,255,255,0.4); } }
@media (max-width: 759px) { .hero__meta > div { padding: 14px 0; } .hero__meta > div + div { border-top: 1px solid rgba(255,255,255,0.25); } }
.portrait__tag.glass-dark { left: 0; right: 0; bottom: 0; border: 0; border-top: 1px solid rgba(255,255,255,0.3); background: rgba(20,6,8,0.78); }
.capital.glass-dark { background: none; border: 1px solid rgba(255,255,255,0.3); }
.input { border-color: var(--border-strong); background: #fff; }
.input:focus { border-color: var(--red-deep); outline: 2px solid rgba(92,18,21,0.18); outline-offset: 0; }
.kv__copy { border: 1px solid var(--border); background: #fff; }
.kv__copy:hover { border-color: var(--red-deep); color: var(--red-deep); background: #fff; }
.row:hover, .row.is-active { background: #f7f5f0; }
.media-card, .list-card, .kv, .ops, .legal, .principle { background: #fff; }
.section-head { border-top: 2px solid var(--red-deep); padding-top: 22px; }
.section--dark .section-head, .section--black .section-head { border-top-color: #c8a878; }
.stats.surface-red { padding: 0; }
.venture { border: 0; }
.plate { border: 1px solid var(--border); }
.bottom-nav a[aria-current="page"] { box-shadow: inset 0 2px 0 #c8a878; }

/* ---------- Home hero: the engraved illustration on cream, words in the red of the mark.
   The drawing is large and sits hard in the bottom right corner; the words sit in its empty sky. ---------- */
.hero--art { --hero-h: clamp(640px, calc(100svh - var(--topbar-h)), 900px); background: #f4ead9; color: var(--ink); align-items: flex-start; min-height: var(--hero-h); }
.hero--art::before { display: none; }
.hero--art .wrap { position: relative; z-index: 1; padding-top: clamp(44px, 5vw, 76px); padding-bottom: 48px; }
.hero--art .hero__text { max-width: 540px; }
.hero--art h1 { color: var(--red-deep); max-width: 12ch; }
.hero--art .hero__sub { color: var(--ink); max-width: 44ch; }
.hero--art .btn-row { margin-top: 24px; }
/* As wide as the screen allows, but never taller than the hero, so the whole drawing shows above the fold. */
.hero__art { position: absolute; right: 0; bottom: 0; z-index: 0; width: min(84vw, 1400px, calc(var(--hero-h) * 1.34)); aspect-ratio: 3 / 2; pointer-events: none; }
.hero__art img { display: block; width: 100%; height: 100%; }
@media (max-width: 1099px) {
  /* Narrow screens: words first, the drawing beneath them, cropped to the drawing itself. */
  .hero--art { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .hero--art .wrap { padding-bottom: 0; }
  .hero--art .hero__text { max-width: 620px; }
  .hero__art { order: 2; position: relative; width: 100%; aspect-ratio: 5 / 3; overflow: hidden; margin-top: 12px; }
  .hero__art img { position: absolute; right: 0; bottom: 0; width: 116%; max-width: none; height: auto; }
}
.factbar { background: var(--red-deep); color: #fff; }
.factbar dl { display: grid; grid-template-columns: 1fr; margin: 0 auto; }
.factbar dl > div { padding: 20px 0; }
.factbar dl > div + div { border-top: 1px solid rgba(255,255,255,0.22); }
.factbar dt { font-size: 13px; font-weight: 600; color: rgba(244,240,232,0.72); margin-bottom: 3px; }
.factbar dd { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
@media (min-width: 760px) {
  .factbar dl { grid-template-columns: repeat(3, 1fr); }
  .factbar dl > div { padding: 24px 28px 24px 0; }
  .factbar dl > div + div { border-top: 0; border-left: 1px solid rgba(255,255,255,0.22); padding-left: 28px; }
}

/* Operations: short facts table under each commodity line. */
.ops__facts { margin: 22px 0 0; max-width: 56ch; border-top: 1px solid var(--border); }
.ops__facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.ops__facts dt { font-size: 14px; font-weight: 600; color: var(--muted); }
.ops__facts dd { margin: 0; font-size: 16px; color: var(--ink); }
