/* =========================================================
   MGA Ventures — styles
   Palette: espresso ink, warm ivory, amber accent (from the
   wood tones in the office photos).
   ========================================================= */
:root {
	--ink: #120f0c;
	--ink-2: #1c1814;
	--ink-3: #2a241e;
	--ink-line: #3a322a;
	--ivory: #f6f1e8;
	--ivory-2: #ede6d9;
	--paper: #fffdf9;
	--line: #ddd3c3;
	--text: #1a1612;
	--text-2: #5d5348;     /* 6.9:1 on ivory */
	--on-ink: #f6f1e8;
	--on-ink-2: #b3a796;   /* 7.6:1 on ink */
	--amber: #f2a03d;
	--amber-2: #ffbe6b;
	--amber-deep: #c9761a;

	--serif: "Instrument Serif", "Times New Roman", serif;
	--sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

	--wrap: 1280px;
	--gut: clamp(16px, 4vw, 56px);
	--sec: clamp(88px, 11vw, 160px);
	--r: 18px;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--ease-io: cubic-bezier(.65, 0, .35, 1);
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
	margin: 0; background: var(--ivory); color: var(--text);
	font: 400 17px/1.6 var(--sans);
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; }
em { font-style: italic; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: -9999px; top: 12px; z-index: 200; background: var(--amber); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--text-2); }
.dark .muted, .foot .muted { color: var(--on-ink-2); }

/* ---------- Type ---------- */
.eyebrow {
	font: 500 12.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
	color: var(--text-2); display: flex; align-items: center; gap: 10px;
}
.dark .eyebrow, .hero .eyebrow, .foot .eyebrow { color: var(--on-ink-2); }
.h2 {
	font: 400 clamp(40px, 6.2vw, 92px)/.98 var(--serif); letter-spacing: -.02em;
	margin-top: 22px; max-width: 16ch; text-wrap: balance;
}
.h2 em, .hero-h em { color: var(--amber-deep); }
.dark .h2 em, .hero-h em, .foot .h2 em { color: var(--amber); }
.h3 { font: 400 clamp(30px, 3.4vw, 46px)/1.05 var(--serif); letter-spacing: -.01em; }

/* ---------- Buttons ---------- */
.btn {
	--bg: var(--ink); --fg: var(--on-ink);
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
	background: var(--bg); color: var(--fg); overflow: hidden; isolation: isolate;
	font: 500 15.5px/1 var(--sans); letter-spacing: -.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn::before {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
	background: var(--fill, var(--amber-2)); transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn .arr { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-amber { --bg: var(--amber); --fg: var(--ink); --fill: var(--amber-2); box-shadow: 0 10px 30px -12px rgba(242,160,61,.7); }
.btn-ghost { --bg: transparent; --fg: var(--on-ink); --fill: rgba(246,241,232,.1); box-shadow: inset 0 0 0 1px rgba(246,241,232,.28); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-lg { min-height: 64px; padding: 0 34px; font-size: 17px; }
.round {
	display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
	border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 18px;
	transition: background .25s ease, color .25s ease, border-color .25s ease, transform .3s var(--ease);
}
.round:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.round:active { transform: scale(.92); }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-weight: 500; }

/* ---------- Curtain ---------- */
.curtain { display: none; }
.js .curtain.on {
	display: grid; place-items: center; position: fixed; inset: 0; z-index: 300;
	background: var(--ink); color: var(--on-ink);
	transition: clip-path 1s var(--ease-io); clip-path: inset(0 0 0 0);
}
.curtain.out { clip-path: inset(0 0 100% 0) !important; }
.curtain-mark { display: flex; font: 400 clamp(80px, 16vw, 200px)/1 var(--serif); overflow: hidden; }
.curtain-mark span { display: inline-block; transform: translateY(105%); animation: rise .9s var(--ease) forwards; }
.curtain-mark span:nth-child(2) { animation-delay: .08s; }
.curtain-mark span:nth-child(3) { animation-delay: .16s; color: var(--amber); font-style: italic; }
.curtain-bar { position: absolute; bottom: 12vh; width: min(240px, 50vw); height: 1px; background: var(--ink-line); }
.curtain-bar i { display: block; height: 100%; background: var(--amber); transform-origin: 0 50%; transform: scaleX(0); animation: grow 1s .2s var(--ease-io) forwards; }
@keyframes rise { to { transform: none; } }
@keyframes grow { to { transform: scaleX(1); } }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--amber-deep), var(--amber-2)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- Header ---------- */
.hdr { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; padding: 0 var(--gut); pointer-events: none; transition: transform .5s var(--ease); }
.hdr.hide { transform: translateY(-140%); }
.hdr-in {
	position: relative; pointer-events: auto; max-width: calc(var(--wrap) - 2 * var(--gut) + 24px); margin: 0 auto;
	display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 10px 0 18px;
	border-radius: 999px; color: var(--on-ink);
	background: rgba(18, 15, 12, .62); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
	box-shadow: inset 0 0 0 1px rgba(246,241,232,.1), 0 20px 40px -24px rgba(0,0,0,.6);
}
.logo { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; white-space: nowrap; }
.logo-mark { font: 400 26px/1 var(--serif); letter-spacing: .01em; }
.logo-word { font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--on-ink-2); }
.nav { position: relative; display: flex; margin-left: auto; }
.nav a { position: relative; z-index: 1; padding: 9px 13px; font-size: 14px; text-decoration: none; color: var(--on-ink-2); border-radius: 999px; transition: color .3s ease; }
.nav a:hover, .nav a.on { color: var(--on-ink); }
.nav-pill {
	position: absolute; top: 0; left: 0; height: 100%; border-radius: 999px; background: rgba(246,241,232,.1);
	opacity: 0; transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s ease;
}
.nav-pill.on { opacity: 1; }
.search-btn {
	display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 12px; margin-left: 6px;
	border-radius: 999px; border: 0; background: rgba(246,241,232,.08); color: var(--on-ink-2); cursor: pointer; font-size: 14px;
	transition: background .25s, color .25s;
}
.search-btn:hover { background: rgba(246,241,232,.16); color: var(--on-ink); }
.search-btn svg, .find svg, .pal-field svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
kbd { font: 500 11px/1 var(--mono); padding: 4px 6px; border-radius: 6px; background: rgba(246,241,232,.1); color: inherit; }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(246,241,232,.08); cursor: pointer; position: relative; }
.burger i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--on-ink); transition: transform .4s var(--ease); }
.burger i:first-child { top: 18px; } .burger i:last-child { top: 25px; }
.hdr.open .burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
.hdr.open .burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
	position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
	background: radial-gradient(120% 80% at 80% 0%, #2a1e12 0%, var(--ink) 55%); color: var(--on-ink); overflow: hidden;
	padding-top: 130px;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
	position: absolute; width: 60vmax; height: 60vmax; left: 0; top: 0; border-radius: 50%; pointer-events: none;
	background: radial-gradient(circle, rgba(242,160,61,.16), transparent 60%);
	transform: translate3d(calc(var(--mx, 70vw) - 30vmax), calc(var(--my, 20vh) - 30vmax), 0);
	transition: transform 1.2s var(--ease);
}
.hero-in { position: relative; padding-bottom: 40px; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(242,160,61,.6); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(242,160,61,0); } 100% { box-shadow: 0 0 0 0 rgba(242,160,61,0); } }
.hero-h {
	font: 400 clamp(48px, 8.4vw, 132px)/.94 var(--serif); letter-spacing: -.025em;
	margin: 26px 0 0; max-width: 14.5ch; text-wrap: balance;
}
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; margin-top: 40px; }
.hero-lede { max-width: 44ch; font-size: clamp(17px, 1.4vw, 19px); color: var(--on-ink-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.thesis {
	display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px;
	border-top: 1px solid var(--ink-line);
}
.thesis > div { padding: 22px 24px 0 0; }
.thesis > div + div { padding-left: 24px; border-left: 1px solid var(--ink-line); }
.thesis dt { font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-2); }
.thesis dd { margin-top: 10px; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.3; }
.hero-marquee {
	position: relative; padding: 22px 0; border-top: 1px solid var(--ink-line);
	-webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-track.slow { animation-duration: 40s; }
.hero-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.mq-logo {
	flex: none; display: grid; place-items: center; width: 132px; height: 58px; margin-right: 14px;
	background: var(--paper); border-radius: 12px; padding: 10px 16px; opacity: .78; transition: opacity .3s;
}
.mq-logo:hover { opacity: 1; }
.mq-logo img { max-height: 38px; max-width: 100px; width: auto; height: auto; object-fit: contain; }
.scroll-cue { position: absolute; right: var(--gut); bottom: 120px; width: 26px; height: 42px; border: 1.5px solid rgba(246,241,232,.4); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--amber); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Split-text reveal */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; transition: transform 1.1s var(--ease); transition-delay: calc(var(--wi) * 45ms); }
.split-in .w > span { transform: none; }

/* ---------- Stats ---------- */
.stats { background: var(--ink); color: var(--on-ink); border-top: 1px solid var(--ink-line); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 0 44px; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--ink-line); }
.stat b { display: block; font: 400 clamp(48px, 6vw, 88px)/1 var(--serif); color: var(--amber); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; font: 500 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-2); }

/* ---------- Sections ---------- */
.sec { position: relative; padding: var(--sec) 0; }
.dark { background: var(--ink); color: var(--on-ink); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: 56px; }
.sec-note { max-width: 34ch; }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(18% 8% 18% 8% round 28px); transition: clip-path 1.5s var(--ease); }
.js [data-reveal="clip"].in { clip-path: inset(0 0 0 0 round var(--r)); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-left { position: sticky; top: 110px; }
.about-photo { margin-top: 44px; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; }
.about-photo img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 15%; will-change: transform; }
.classes { counter-reset: c; padding-top: 8px; }
.classes li {
	position: relative; display: grid; grid-template-columns: 56px 1fr 56px; gap: 18px; align-items: center;
	padding: 34px 0; border-bottom: 1px solid var(--line);
}
.classes li:first-child { border-top: 1px solid var(--line); }
.classes li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease); }
.classes li:hover::after { transform: scaleX(1); }
.cls-n { font: 500 13px/1 var(--mono); color: var(--text-2); }
.classes h3 { font: 400 clamp(30px, 3vw, 42px)/1.05 var(--serif); letter-spacing: -.01em; transition: transform .5s var(--ease); }
.classes li:hover h3 { transform: translateX(8px); }
.classes p { margin-top: 6px; color: var(--text-2); }
.cls-ico { width: 48px; height: 48px; fill: none; stroke: var(--amber-deep); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cls-ico * { stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.in .cls-ico * { stroke-dashoffset: 0; }

/* ---------- Approach ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
.pillar {
	position: relative; display: flex; flex-direction: column; min-height: 400px; padding: 30px;
	border-radius: var(--r); background: var(--ink-2); overflow: hidden;
	box-shadow: inset 0 0 0 1px var(--ink-line);
}
.spot::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
	background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(242,160,61,.16), transparent 55%);
}
.spot:hover::before { opacity: 1; }
.pillar-k { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-2); }
.pillar-v { margin-top: 18px; font: 400 clamp(38px, 3.8vw, 56px)/1 var(--serif); }
.pillar-d { margin-top: 12px; color: var(--on-ink-2); max-width: 28ch; }
.pillar-viz { margin-top: auto; height: 120px; position: relative; }
.stage-viz { display: flex; align-items: flex-end; gap: 10px; }
.stage-viz i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(to top, var(--amber-deep), var(--amber-2)); transform-origin: 50% 100%; transform: scaleY(0); transition: transform 1.2s var(--ease); }
.stage-viz i:nth-child(1) { height: 18%; } .stage-viz i:nth-child(2) { height: 32%; transition-delay: .08s; }
.stage-viz i:nth-child(3) { height: 52%; transition-delay: .16s; } .stage-viz i:nth-child(4) { height: 74%; transition-delay: .24s; }
.stage-viz i:nth-child(5) { height: 100%; transition-delay: .32s; opacity: .35; }
.in .stage-viz i { transform: scaleY(1); }
.ring-viz svg { height: 120px; width: 120px; transform: rotate(-90deg); fill: none; stroke-width: 6; }
.ring-viz circle { stroke: var(--ink-line); }
.ring-viz .ring-fill { stroke: var(--amber); stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: 264; transition: stroke-dashoffset 2s var(--ease) .2s; }
.in .ring-viz .ring-fill { stroke-dashoffset: 66; }
.tags-viz { display: flex; flex-wrap: wrap; align-content: flex-end; gap: 8px; }
.tags-viz span { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--ink-line); font-size: 14px; transform: translateY(20px); opacity: 0; transition: transform .8s var(--ease), opacity .8s, background .3s, color .3s; }
.tags-viz span:nth-child(2) { transition-delay: .1s; } .tags-viz span:nth-child(3) { transition-delay: .2s; }
.in .tags-viz span { transform: none; opacity: 1; }
.pillar:hover .tags-viz span { background: var(--amber); color: var(--ink); border-color: var(--amber); }

.services { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px 80px; margin-top: clamp(80px, 10vw, 140px); }
.services-head p { margin-top: 16px; max-width: 30ch; }
.svc-list li {
	position: relative; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px;
	padding: 22px 0; border-bottom: 1px solid var(--ink-line); overflow: hidden; cursor: default;
}
.svc-list li:first-child { border-top: 1px solid var(--ink-line); }
.svc-list li::before { content: ""; position: absolute; inset: 0; background: var(--amber); transform: translateY(101%); transition: transform .5s var(--ease); z-index: 0; }
.svc-list li > * { position: relative; z-index: 1; transition: color .4s, transform .5s var(--ease); }
.svc-list li:hover::before { transform: none; }
.svc-list li:hover > * { color: var(--ink); }
.svc-list li:hover .svc-t { transform: translateX(14px); }
.svc-n { font: 500 12.5px/1 var(--mono); color: var(--on-ink-2); }
.svc-t { font: 400 clamp(24px, 2.4vw, 34px)/1.1 var(--serif); }
.svc-a { font-size: 22px; opacity: 0; transform: translateX(-12px) !important; }
.svc-list li:hover .svc-a { opacity: 1; transform: none !important; padding-right: 14px; }

/* ---------- Portfolio ---------- */
.find {
	display: flex; align-items: center; gap: 10px; width: min(360px, 100%); height: 52px; padding: 0 18px;
	border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2);
	transition: box-shadow .3s;
}
.find:focus-within { box-shadow: inset 0 0 0 2px var(--amber-deep); }
.find input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font: 400 16px var(--sans); color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
	border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 14.5px;
	transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.chip small { font: 500 11px/1 var(--mono); color: var(--text-2); transition: color .3s; }
.chip:hover { border-color: var(--text); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip[aria-pressed="true"] small { color: var(--amber); }
.result-count { margin: 22px 0 18px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 12px; }
.tile {
	position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 220px; padding: 0;
	border: 0; border-radius: var(--r); background: var(--paper); text-align: left; cursor: pointer; overflow: hidden;
	box-shadow: inset 0 0 0 1px var(--line);
	transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tile:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line), 0 30px 50px -30px rgba(60,40,15,.45); }
.tile.spot::before { background: radial-gradient(300px circle at var(--x, 50%) var(--y, 50%), rgba(242,160,61,.14), transparent 60%); }
.tile-logo { flex: 1; display: grid; place-items: center; padding: 28px 30px 10px; }
.tile-logo img { max-height: 64px; max-width: 78%; object-fit: contain; transition: transform .6s var(--ease); }
.tile-logo img.sq { max-height: 84px; }
.tile:hover .tile-logo img { transform: scale(1.07); }
.tile-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 14px 18px 16px; border-top: 1px solid var(--ivory-2); }
.tile-name { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.tile-sec { display: block; margin-top: 3px; font-size: 13px; color: var(--text-2); line-height: 1.3; }
.tile-plus {
	flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
	background: var(--ink); color: var(--amber); font-size: 15px;
	opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .5s var(--ease);
}
.tile:hover .tile-plus, .tile:focus-visible .tile-plus { opacity: 1; transform: none; }
.badge {
	position: absolute; top: 12px; left: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
	padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--amber);
	font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.grid > li { transition: opacity .45s var(--ease), transform .55s var(--ease); }
.grid > li.enter { opacity: 0; transform: translateY(24px) scale(.96); }
.more-wrap { display: flex; justify-content: center; margin-top: 24px; }
.btn-outline { --bg: transparent; --fg: var(--text); --fill: var(--ink); box-shadow: inset 0 0 0 1px var(--text); transition: color .4s, transform .35s var(--ease); }
.btn-outline:hover { color: var(--on-ink); }
.ecosystem { padding-bottom: calc(var(--sec) * .5); }
.news { padding-top: calc(var(--sec) * .5); }
.empty { padding: 60px 0; text-align: center; color: var(--text-2); }

/* ---------- Funds ---------- */
.funds { background: var(--ivory-2); }
.fund-groups { display: grid; gap: 14px; }
.fgroup {
	display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start;
	padding: 26px; border-radius: calc(var(--r) + 6px); background: var(--ivory);
	box-shadow: inset 0 0 0 1px var(--line);
}
.fgroup-h { position: sticky; top: 100px; }
.fgroup-h h3 { font: 400 32px/1.05 var(--serif); }
.fgroup-h p { margin-top: 8px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.fgroup .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.fgroup .tile { min-height: 180px; }

/* ---------- Team ---------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.person { perspective: 900px; }
.person-card {
	position: relative; display: block; border-radius: var(--r); overflow: hidden; text-decoration: none; aspect-ratio: 4 / 5;
	transform-style: preserve-3d; transition: transform .6s var(--ease); background: var(--ink-2);
}
.person-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: scale(1.06); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.person-card:hover img, .person-card:focus-visible img { filter: none; transform: scale(1); }
.person-card::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, rgba(18,15,12,.92), transparent); }
.person-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.person-cap h3 { font: 400 30px/1 var(--serif); }
.person-cap p { margin-top: 6px; font: 500 11.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--amber-2); }
.li {
	flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	background: rgba(246,241,232,.14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	font: 600 13px/1 var(--sans); transition: background .3s, color .3s, transform .5s var(--ease);
}
.person-card:hover .li { background: var(--amber); color: var(--ink); transform: rotate(-12deg) scale(1.08); }

/* ---------- Ecosystem ---------- */
.eco { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.eco-card {
	position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--r);
	background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden;
	transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.eco-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line), 0 30px 50px -30px rgba(60,40,15,.45); }
.eco-logo { height: 90px; display: flex; align-items: center; }
.eco-logo img { max-height: 70px; max-width: 70%; object-fit: contain; }
.eco-tag { margin-top: 22px; font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber-deep); }
.eco-card h3 { margin-top: 10px; font: 400 34px/1.05 var(--serif); }
.eco-card > p { margin-top: 12px; color: var(--text-2); }
.eco-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.eco-more > div { overflow: hidden; }
.eco-more p { padding-top: 14px; color: var(--text-2); font-size: 15.5px; }
.eco-card.open .eco-more { grid-template-rows: 1fr; }
.eco-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 26px; }
.eco-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; font-weight: 500; font-size: 15px; }
.eco-toggle i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ivory-2); font-style: normal; transition: transform .5s var(--ease), background .3s; }
.eco-card.open .eco-toggle i { transform: rotate(45deg); background: var(--amber); }
.eco-visit { font-size: 14.5px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- News ---------- */
.news { padding-bottom: calc(var(--sec) - 20px); }
.rail-btns { display: flex; gap: 10px; }
.rail {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 420px); gap: 16px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline-offset: -2px;
	padding: 4px max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))) 20px;
	scroll-padding: 0 max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut)));
	cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.drag { cursor: grabbing; scroll-snap-type: none; }
.rail.drag a { pointer-events: none; }
.rail > li { scroll-snap-align: start; }
.story { display: flex; flex-direction: column; height: 100%; text-decoration: none; border-radius: var(--r); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.story-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ivory-2); }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.story:hover .story-img img { transform: scale(1.06); }
.story-co { position: absolute; left: 12px; top: 12px; padding: 6px 11px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.story-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.story-h { font: 400 25px/1.15 var(--serif); }
.story-src { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 20px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.story-src b { font-weight: 500; color: var(--text); transition: color .3s; }
.story:hover .story-src b { color: var(--amber-deep); }

/* ---------- Footer ---------- */
.foot { position: relative; background: var(--ink); color: var(--on-ink); overflow: hidden; }
.foot-marquee { padding: 30px 0; border-bottom: 1px solid var(--ink-line); }
.foot-marquee span { flex: none; padding-right: 40px; font: 400 clamp(40px, 6vw, 86px)/1 var(--serif); white-space: nowrap; color: var(--on-ink-2); }
.foot-marquee em { color: var(--amber); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; padding-top: clamp(64px, 8vw, 120px); padding-bottom: 72px; }
.foot-cta > p.muted { margin-top: 20px; max-width: 40ch; }
.foot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.copy {
	display: inline-flex; align-items: center; gap: 12px; height: 64px; padding: 0 10px 0 26px; border-radius: 999px;
	border: 0; background: rgba(246,241,232,.06); box-shadow: inset 0 0 0 1px var(--ink-line); cursor: pointer; font-size: 16px;
	transition: background .3s;
}
.copy:hover { background: rgba(246,241,232,.12); }
.copy-tag { padding: 9px 14px; border-radius: 999px; background: rgba(246,241,232,.1); font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; transition: background .3s, color .3s; }
.copy.done .copy-tag { background: var(--amber); color: var(--ink); }
.offices { display: grid; gap: 14px; align-content: start; }
.office {
	display: block; padding: 24px; border-radius: var(--r); text-decoration: none; background: var(--ink-2);
	box-shadow: inset 0 0 0 1px var(--ink-line); transition: background .3s, transform .5s var(--ease);
}
.office:hover { background: var(--ink-3); transform: translateX(-6px); }
.office h3 { display: flex; justify-content: space-between; font: 400 28px/1 var(--serif); }
.office h3 span { font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); align-self: center; }
.office p { margin-top: 10px; color: var(--on-ink-2); font-size: 15.5px; line-height: 1.55; }
.foot-base { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-top: 28px; padding-bottom: 28px; border-top: 1px solid var(--ink-line); font-size: 14px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-nav a { color: var(--on-ink-2); text-decoration: none; transition: color .3s; }
.foot-nav a:hover { color: var(--amber); }
.foot-giant {
	font: 400 clamp(160px, 34vw, 520px)/.75 var(--serif); letter-spacing: -.04em; text-align: center;
	color: transparent; -webkit-text-stroke: 1px var(--ink-line); user-select: none; margin-bottom: -.12em;
	background: linear-gradient(180deg, rgba(242,160,61,.14), transparent 70%); -webkit-background-clip: text; background-clip: text;
}

/* ---------- Dialogs ---------- */
dialog { padding: 0; border: 0; color: inherit; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(18,15,12,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet { width: min(560px, calc(100vw - 24px)); border-radius: 26px; background: var(--paper); color: var(--text); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.sheet[open] { animation: pop .55s var(--ease); }
.sheet[open]::backdrop { animation: fade .4s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.96); } }
@keyframes fade { from { opacity: 0; } }
.sheet-in { position: relative; padding: 30px; }
.sheet-x { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; font-size: 15px; }
.sheet-logo { display: grid; place-items: center; height: 160px; margin: 10px 0 26px; border-radius: 18px; background: var(--ivory); }
.sheet-logo img { max-height: 90px; max-width: 60%; object-fit: contain; }
.sheet-name { margin-top: 12px; font: 400 48px/1 var(--serif); letter-spacing: -.01em; }
.sheet-sector { margin-top: 8px; color: var(--amber-deep); font-weight: 500; }
.sheet-note { margin-top: 16px; font-size: 18px; line-height: 1.5; }
.sheet-note:empty { display: none; }
.sheet-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; }
.sheet-nav { display: flex; gap: 8px; margin-left: auto; }
.sheet .eyebrow .badge { position: static; }

.palette { width: min(640px, calc(100vw - 24px)); margin-top: 12vh; border-radius: 22px; background: var(--ink-2); color: var(--on-ink); box-shadow: inset 0 0 0 1px var(--ink-line), 0 40px 80px -20px rgba(0,0,0,.6); }
.palette[open] { animation: pop .45s var(--ease); }
.pal-field { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 64px; border-bottom: 1px solid var(--ink-line); color: var(--on-ink-2); }
.pal-field input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; color: var(--on-ink); font: 400 18px var(--sans); }
.pal-field input::placeholder { color: #8a7f70; }
.pal-list { max-height: min(56vh, 460px); overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.pal-group { padding: 12px 12px 6px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #8a7f70; }
.pal-item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.pal-item[aria-selected="true"] { background: rgba(246,241,232,.08); }
.pal-item[aria-selected="true"] .pal-go { opacity: 1; transform: none; }
.pal-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--paper); overflow: hidden; color: var(--ink); font: 400 20px/1 var(--serif); }
.pal-ico img { max-width: 80%; max-height: 80%; object-fit: contain; }
.pal-ico.round-ph img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: cover; }
.pal-txt { flex: 1; min-width: 0; }
.pal-txt b { display: block; font-weight: 500; }
.pal-txt span { display: block; font-size: 13.5px; color: var(--on-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-go { color: var(--amber); opacity: 0; transform: translateX(-6px); transition: transform .3s var(--ease), opacity .3s; }
.pal-none { padding: 30px 14px; text-align: center; color: var(--on-ink-2); }
.pal-foot { display: flex; gap: 18px; padding: 12px 18px; border-top: 1px solid var(--ink-line); font-size: 12.5px; color: var(--on-ink-2); }
.pal-foot kbd { margin-right: 4px; }
mark { background: none; color: var(--amber); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.nav a { padding: 9px 10px; font-size: 13.5px; }
	.search-btn-txt { display: none; }
}
@media (max-width: 1020px) {
	.burger { display: block; }
	.search-btn { margin-left: auto; }
	.search-btn kbd { display: none; }
	.nav {
		position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; padding: 12px; margin: 0;
		border-radius: 24px; background: #1a1612; max-height: calc(100svh - 100px); overflow-y: auto;
		box-shadow: inset 0 0 0 1px var(--ink-line);
		opacity: 0; transform: translateY(-12px) scale(.98); pointer-events: none; visibility: hidden;
		transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s;
	}
	.hdr.open .nav { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
	.nav a { padding: 14px 16px; font: 400 30px/1 var(--serif); color: var(--on-ink); }
	.nav-pill { display: none; }
	.about-grid, .services, .foot-grid { grid-template-columns: 1fr; }
	.about-left { position: static; }
	.pillars { grid-template-columns: 1fr; }
	.pillar { min-height: 300px; }
	.people { grid-template-columns: repeat(2, 1fr); }
	.eco { grid-template-columns: 1fr; }
	.fgroup { grid-template-columns: 1fr; }
	.fgroup-h { position: static; }
}
@media (max-width: 720px) {
	.hdr { top: 10px; }
	.hdr-in { height: 56px; padding-left: 16px; }
	.hdr .btn-sm { display: none; }
	.logo-word { display: none; }
	.thesis { grid-template-columns: 1fr; }
	.thesis > div, .thesis > div + div { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--ink-line); }
	.scroll-cue { display: none; }
	.stats-in { grid-template-columns: 1fr 1fr; }
	.stat { padding: 28px 0; }
	.stat:nth-child(3) { padding-left: 0; border-left: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid var(--ink-line); }
	.grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.fgroup .grid { grid-template-columns: repeat(2, 1fr); }
	.fgroup { padding: 16px; }
	.tile, .fgroup .tile { min-height: 168px; }
	.tile-logo { padding: 22px 16px 8px; }
	.tile-logo img { max-height: 48px; }
	.tile-meta { padding: 12px 12px 14px; }
	.tile-plus { display: none; }
	.chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 4px; scrollbar-width: none; }
	.chips::-webkit-scrollbar { display: none; }
	.chip { flex: none; }
	.people { gap: 10px; }
	.person-cap { padding: 14px; }
	.person-cap h3 { font-size: 22px; }
	.li { width: 34px; height: 34px; }
	.classes li { grid-template-columns: 36px 1fr; }
	.cls-ico { display: none; }
	.rail { grid-auto-columns: 82vw; }
	.sheet { margin-bottom: 0; border-radius: 26px 26px 0 0; width: 100vw; }
	.sheet-name { font-size: 38px; }
	.btn-lg, .copy { width: 100%; justify-content: center; }
	.copy { justify-content: space-between; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
	.marquee-track { animation: none !important; }
	.js [data-reveal], .w > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
