@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/cormorant-garamond.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --charcoal: #111213;
  --charcoal-2: #17181a;
  --charcoal-3: #1f2023;
  --line: rgba(229, 228, 226, 0.1);
  --bronze: #b08d57;
  --bronze-light: #cfae7a;
  --platinum: #e5e4e2;
  --platinum-dim: #a9a8a4;
  --muted: #8a8985;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--platinum);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--bronze); color: var(--charcoal); }
:focus-visible { outline: 1px solid var(--bronze-light); outline-offset: 4px; }

.skip { position: absolute; left: -9999px; top: 12px; padding: 10px 16px; background: var(--platinum); color: var(--charcoal); z-index: 100; }
.skip:focus { left: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Header */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.top.scrolled { background: rgba(17, 18, 19, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 14px; border-color: var(--line); }
.mark { font-family: var(--sans); font-weight: 500; letter-spacing: 0.42em; font-size: 15px; text-decoration: none; padding: 8px 0; }
.mark span { color: var(--bronze); }
.nav { display: flex; gap: clamp(16px, 3vw, 40px); }
.nav a { font-size: 13px; letter-spacing: 0.08em; text-decoration: none; color: var(--platinum-dim); padding: 10px 0; transition: color 0.3s; }
.nav a:hover { color: var(--platinum); }
@media (max-width: 720px) { .nav a:not(.nav-contact) { display: none; } }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 140px 0 clamp(64px, 12vh, 120px); overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero-art .rings path { fill: none; stroke: var(--bronze); stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(1200px 600px at 78% 34%, rgba(176, 141, 87, 0.14), transparent 60%),
  linear-gradient(180deg, rgba(17, 18, 19, 0.2) 0%, rgba(17, 18, 19, 0.0) 40%, rgba(17, 18, 19, 0.92) 100%); }
.grain { position: absolute; inset: -50%; z-index: -1; opacity: 0.08; pointer-events: none; }
.eyebrow { font-size: 12px; letter-spacing: 0.32em; color: var(--bronze-light); margin: 0 0 28px; }
.hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(72px, 15vw, 210px); line-height: 0.86; letter-spacing: 0.06em; margin: 0 0 32px -0.04em; }
.hero h1 .dot { color: var(--bronze); }
.hero .tag { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 44px); font-weight: 400; line-height: 1.15; margin: 0 0 22px; }
.hero .tag span { display: block; }
.hero .sub { max-width: 46ch; color: var(--platinum-dim); margin: 0 0 40px; font-size: clamp(16px, 1.4vw, 19px); }
.hero .foot { display: flex; align-items: center; gap: 18px; font-size: 13px; letter-spacing: 0.18em; color: var(--muted); }
.hero .foot::before { content: ''; width: 56px; height: 1px; background: var(--bronze); }
.scroll-cue { position: absolute; right: var(--gutter); bottom: clamp(64px, 12vh, 120px); writing-mode: vertical-rl; font-size: 11px; letter-spacing: 0.3em; color: var(--muted); text-decoration: none; }
@media (max-width: 720px) { .scroll-cue { display: none; } }

/* Sections */
section { position: relative; }
.section { padding: clamp(96px, 16vh, 180px) 0; border-top: 1px solid var(--line); }
.label { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: 0.32em; color: var(--bronze-light); margin: 0 0 40px; }
.label::before { content: ''; width: 28px; height: 1px; background: var(--bronze); }
h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.005em; margin: 0; }
h2 em { font-style: italic; color: var(--bronze-light); }

/* Proposition */
.prop { overflow: hidden; }
.prop .strata { position: absolute; inset: 0; z-index: -1; opacity: 0.5; }
.prop .strata path { fill: none; stroke: rgba(229, 228, 226, 0.06); stroke-width: 1; }
.prop-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.prop-body p { margin: 0 0 22px; color: var(--platinum-dim); }
.prop-body p:first-child { color: var(--platinum); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; }
.pillars { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13px; letter-spacing: 0.16em; color: var(--muted); }
.pillars span::before { content: ''; display: inline-block; width: 5px; height: 5px; background: var(--bronze); transform: rotate(45deg); margin-right: 12px; vertical-align: middle; }
@media (max-width: 860px) { .prop-grid { grid-template-columns: 1fr; } }

/* Areas of application */
.areas-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 64px; flex-wrap: wrap; }
.areas-head p { max-width: 38ch; color: var(--platinum-dim); margin: 0; }
.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.area { position: relative; background: var(--charcoal); padding: clamp(32px, 4vw, 56px); padding-top: clamp(170px, 18vw, 230px); min-height: 400px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; transition: background 0.5s ease; }
.area:hover { background: var(--charcoal-2); }
.area svg { position: absolute; top: 24px; right: 24px; width: min(46%, 260px); height: auto; opacity: 0.55; transition: opacity 0.6s ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.1, 1); }
.area:hover svg { opacity: 0.9; transform: scale(1.03); }
.area svg path { fill: none; stroke: var(--bronze); stroke-width: 1; vector-effect: non-scaling-stroke; }
.area svg circle { fill: var(--platinum); }
.num { font-family: var(--serif); font-size: 18px; color: var(--bronze-light); letter-spacing: 0.1em; margin: 0 0 18px; }
.area h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; margin: 0 0 14px; }
.area p { margin: 0; color: var(--platinum-dim); max-width: 34ch; }
@media (max-width: 760px) { .areas { grid-template-columns: 1fr; } .area { min-height: 320px; } }

/* Global */
.global-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.global-head p { color: var(--platinum-dim); margin: 0; max-width: 40ch; }
@media (max-width: 860px) { .global-head { grid-template-columns: 1fr; } }
.map { position: relative; }
.map svg { width: 100%; height: auto; display: block; overflow: visible; }
.map .dots path { fill: none; stroke-linecap: round; stroke-width: 3.1; }
.map .world { stroke: rgba(229, 228, 226, 0.16); }
.map .region { stroke: var(--bronze); transition: stroke 0.4s, opacity 0.4s; }
.map[data-focus] .region { opacity: 0.35; }
.map[data-focus='australia'] .r-australia, .map[data-focus='peru'] .r-peru, .map[data-focus='sadc'] .r-sadc, .map[data-focus='drc'] .r-drc { opacity: 1; stroke: var(--bronze-light); }
.map .r-drc { stroke: var(--platinum); }
.pin circle.core { fill: var(--bronze-light); }
.pin circle.halo { fill: none; stroke: var(--bronze-light); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) { .pin circle.halo { animation: halo 3.6s ease-out infinite; } .pin:nth-of-type(2) circle.halo { animation-delay: 0.9s; } .pin:nth-of-type(3) circle.halo { animation-delay: 1.8s; } .pin:nth-of-type(4) circle.halo { animation-delay: 2.7s; } }
@keyframes halo { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(5); } }
.markets { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.markets button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 26px 24px 4px 0; cursor: pointer; }
.markets button:focus-visible { outline: 1px solid var(--bronze-light); outline-offset: 2px; }
.markets .m-name { display: block; font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; color: var(--platinum); transition: color 0.3s; }
.markets .m-note { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.markets button:hover .m-name, .markets button[aria-pressed='true'] .m-name { color: var(--bronze-light); }
.map-note { margin: 28px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .markets { grid-template-columns: 1fr 1fr; } }

/* Contact */
.contact { text-align: left; overflow: hidden; }
.contact h2 { font-size: clamp(48px, 8vw, 120px); max-width: 12ch; }
.contact .lede { color: var(--platinum-dim); margin: 36px 0 44px; max-width: 46ch; }
.mail { display: inline-flex; align-items: center; gap: 18px; font-family: var(--serif); font-size: clamp(28px, 3.4vw, 46px); text-decoration: none; color: var(--platinum); padding: 6px 0 10px; border-bottom: 1px solid var(--bronze); transition: color 0.3s, gap 0.4s; }
.mail:hover { color: var(--bronze-light); gap: 26px; }
.mail svg { width: 0.7em; height: 0.7em; }
.locale { margin: 44px 0 0; font-size: 13px; letter-spacing: 0.2em; color: var(--muted); }
.contact .pit { position: absolute; right: -12%; bottom: -30%; width: min(70vw, 820px); opacity: 0.35; z-index: -1; }
.contact .pit path { fill: none; stroke: var(--bronze); stroke-width: 0.8; vector-effect: non-scaling-stroke; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 13px; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
.footer nav { display: flex; gap: 24px; }
.footer a { text-decoration: none; color: var(--platinum-dim); padding: 10px 0; }
.footer a:hover { color: var(--platinum); }

/* Reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s cubic-bezier(0.2, 0.7, 0.1, 1), transform 1.1s cubic-bezier(0.2, 0.7, 0.1, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal.d1 { transition-delay: 0.12s; } .js .reveal.d2 { transition-delay: 0.24s; } .js .reveal.d3 { transition-delay: 0.36s; }
  .hero-art .rings { animation: drift 60s ease-in-out infinite alternate; transform-origin: 70% 40%; }
  @keyframes drift { from { transform: scale(1) rotate(0deg); } to { transform: scale(1.06) rotate(2.5deg); } }
}

/* Privacy page */
.doc { padding: 160px 0 120px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 6vw, 72px); line-height: 1.05; margin: 0 0 12px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 56px; }
.doc h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 56px 0 16px; font-weight: 400; }
.doc p, .doc li { color: var(--platinum-dim); }
.doc strong { color: var(--platinum); font-weight: 500; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); color: var(--platinum-dim); }
.doc th { color: var(--platinum); font-weight: 500; }
@media (max-width: 640px) { .doc table, .doc tbody, .doc tr, .doc td, .doc th { display: block; } .doc thead { display: none; } .doc td { padding: 4px 0; border: 0; } .doc tr { padding: 12px 0; border-bottom: 1px solid var(--line); } }
