/* Investay Capital — home page */
:root {
  --ink: #16131c;
  --ink-2: #1f1a27;
  --ink-3: #2a2433;
  --paper: #faf8f4;
  --tint: #f3efe7;
  --white: #ffffff;
  --line: #e4ddd1;
  --text: #1c1922;
  --muted: #625c69;
  --cream: #f7eedd;
  --cream-2: rgba(247, 238, 221, 0.72);
  --cream-3: rgba(247, 238, 221, 0.5);
  --line-dark: rgba(247, 238, 221, 0.13);
  --brass: #8a6628;
  --brass-mid: #b88a3c;
  --brass-light: #d6ae63;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: 24px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
section[id], main [id] { scroll-margin-top: 84px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--cream); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 3px; }

/* ---------- type ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}
h1, h2 { font-family: var(--serif); letter-spacing: -0.01em; text-wrap: balance; font-variant-numeric: lining-nums; }
.layer-no, .step-no, .egypt-stat strong, .facts strong { font-variant-numeric: lining-nums; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.35; }
.muted { color: var(--muted); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--brass-light);
  color: var(--ink);
  border: 1px solid var(--brass-light);
  border-radius: var(--radius);
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { background: #e2bf78; border-color: #e2bf78; }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line-dark); }
.btn-ghost:hover { background: rgba(247, 238, 221, 0.06); border-color: var(--cream-3); }
.btn-small { padding: 10px 16px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  color: var(--brass);
  text-decoration: none;
}
.text-link svg { width: 18px; height: 18px; transition: transform .2s; }
.text-link:hover svg, a:hover > .text-link svg { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
  color: var(--cream);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--cream); white-space: nowrap; }
.brand-word { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: 0.22em; }
.brand-sub { font-size: 11px; font-weight: 600; letter-spacing: 0.32em; color: var(--brass-light); }
.nav-links { display: flex; gap: 30px; }
.nav-links a, .nav-signin { color: var(--cream-2); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-signin:hover { color: var(--cream); }
.nav-actions { display: flex; align-items: center; gap: 22px; }
.nav-toggle { display: none; width: 40px; height: 40px; background: none; border: 1px solid var(--line-dark); border-radius: var(--radius); cursor: pointer; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--cream); transition: transform .2s, top .2s; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line-dark); padding: 8px var(--gutter) 18px; }
.mobile-menu a { display: block; padding: 12px 0; color: var(--cream); text-decoration: none; font-size: 16px; border-bottom: 1px solid var(--line-dark); }
.mobile-menu a:last-child { border-bottom: 0; color: var(--brass-light); }

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(22,19,28,0) 60%, var(--ink) 100%),
    repeating-linear-gradient(90deg, rgba(247,238,221,0.035) 0 1px, transparent 1px 120px),
    radial-gradient(1200px 520px at 78% 30%, #2b2238 0%, var(--ink) 70%);
  color: var(--cream);
  padding: 96px 0 0;
  overflow: hidden;
}
.hero .eyebrow { color: var(--brass-light); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 72px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.05; font-weight: 500; }
.lede { margin-top: 28px; font-size: 18.5px; line-height: 1.65; color: var(--cream-2); max-width: 590px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.passport {
  margin: 0;
  background: linear-gradient(160deg, #241e2d 0%, #1b1622 100%);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  padding: 28px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(247,238,221,.05);
  position: relative;
  font-size: 14px;
}
.passport::before {
  content: ''; position: absolute; inset: 10px; border: 1px solid rgba(214,174,99,.18); border-radius: 3px; pointer-events: none;
}
.passport-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.passport-kicker { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-light); }
.passport-id { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--cream-3); letter-spacing: .06em; }
.passport-title { margin: 22px 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line-dark); }
.passport-title strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.25; color: var(--cream); }
.passport-title span { display: block; margin-top: 6px; color: var(--cream-2); }
.passport-rows { margin: 0; display: grid; gap: 12px; }
.passport-rows div { display: flex; justify-content: space-between; gap: 16px; }
.passport-rows dt { color: var(--cream-3); }
.passport-rows dd { margin: 0; text-align: right; color: var(--cream); font-weight: 500; }
.passport-track { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 26px; counter-reset: s; }
.passport-track li { position: relative; padding-top: 18px; font-size: 12px; color: var(--cream-3); }
.passport-track li::before { content: ''; position: absolute; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--cream-3); background: var(--ink-2); z-index: 1; }
.passport-track li::after { content: ''; position: absolute; top: 4px; left: 9px; right: 0; height: 1px; background: var(--line-dark); }
.passport-track li:last-child::after { display: none; }
.passport-track li.done { color: var(--cream-2); }
.passport-track li.done::before { background: var(--brass-light); border-color: var(--brass-light); }
.passport-track li.done::after { background: rgba(214,174,99,.5); }
.passport-track li.now { color: var(--cream); font-weight: 600; }
.passport-track li.now::before { border-color: var(--brass-light); box-shadow: 0 0 0 4px rgba(214,174,99,.18); }
.passport figcaption { margin-top: 22px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-3); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 96px; border-top: 1px solid var(--line-dark); }
.facts li { padding: 30px 28px 40px 0; }
.facts li + li { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.facts strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--cream); margin-bottom: 6px; }
.facts span { font-size: 14px; color: var(--cream-2); line-height: 1.55; }

/* ---------- sections ---------- */
.section { padding: 120px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: var(--cream); }
.section-dark .eyebrow { color: var(--brass-light); }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-sub { margin-top: 20px; font-size: 18px; color: var(--muted); line-height: 1.65; }
.section-dark .section-sub { color: var(--cream-2); }

/* platform */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 88px; align-items: start; }
.split-intro p { font-size: 18px; line-height: 1.7; margin-top: 22px; }
.split-intro h2 + p { margin-top: 26px; }
.split-intro .muted { font-size: 16px; }
.layers { border-top: 1px solid var(--line); }
.layers li { display: grid; grid-template-columns: 72px 1fr; gap: 8px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.layer-no { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--brass-mid); }
.layers h3 { font-size: 21px; margin-bottom: 10px; }
.layers p { color: var(--muted); line-height: 1.7; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { padding: 36px 30px 8px 0; position: relative; }
.steps li + li { padding-left: 30px; border-left: 1px solid var(--line); }
.step-no {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--brass-mid); color: var(--brass); font-family: var(--serif); font-size: 17px; margin-bottom: 24px;
}
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 15.5px; line-height: 1.7; }

/* audiences */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.audience { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 34px 34px; display: flex; flex-direction: column; }
.audience h3 { font-family: var(--serif); font-weight: 500; font-size: 25px; margin-bottom: 24px; }
.audience ul { display: grid; gap: 14px; margin-bottom: 32px; flex: 1; }
.audience li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 15.5px; line-height: 1.55; }
.audience li svg { width: 20px; height: 20px; color: var(--brass-mid); margin-top: 1px; }

/* integrity */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.principles li { padding: 36px 32px 40px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.principles svg { width: 28px; height: 28px; color: var(--brass-light); margin-bottom: 22px; }
.principles h3 { color: var(--cream); margin-bottom: 8px; }
.principles p { color: var(--cream-2); font-size: 15.5px; line-height: 1.65; }

/* team */
.people { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; gap: 28px; }
.person { grid-column: span 2; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.person:nth-child(4) { grid-column: 2 / span 2; }
.person-mark {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(214,174,99,.06) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, #2a2234 0%, var(--ink) 100%);
}
.person-mark span {
  font-family: var(--serif); font-size: 44px; letter-spacing: .08em; color: var(--brass-light);
  width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(214,174,99,.4);
}
.person-mark.has-photo { display: block; background: var(--ink); }
.person-mark img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.person-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.person h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.2; }
.person-role { margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.person-cred { margin-top: 6px; font-size: 14px; line-height: 1.5; min-height: 3em; color: var(--muted); font-weight: 500; }
.person-bio { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.7; color: #3d3844; flex: 1; }
.person-link { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brass); text-decoration: none; }
.person-link svg { width: 16px; height: 16px; }

/* partners */
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.partner { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 38px; }
.partner-top { min-height: 30px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.partner-label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.ticker { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-variant-numeric: tabular-nums; }
.partner h3 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.15; margin-bottom: 16px; }
.partner p { color: var(--muted); line-height: 1.7; }
.egypt {
  margin-top: 24px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px 56px; align-items: center;
  background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 44px 44px 36px;
}
.egypt-stat strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 5vw, 60px); line-height: 1; color: var(--brass-light); }
.egypt-stat span { display: block; margin-top: 12px; color: var(--cream-2); font-size: 15px; line-height: 1.55; max-width: 340px; }
.egypt p { color: var(--cream-2); font-size: 16.5px; line-height: 1.7; }
.egypt-source { grid-column: 1 / -1; font-size: 12px; color: var(--cream-3); padding-top: 18px; border-top: 1px solid var(--line-dark); }

/* insights */
.insights { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.brief {
  display: block; text-decoration: none; color: var(--cream);
  background: linear-gradient(160deg, #2a2234 0%, var(--ink) 100%);
  border-radius: var(--radius); padding: 40px 36px;
  transition: transform .25s;
}
.brief:hover { transform: translateY(-2px); }
.brief-tag { display: block; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 18px; }
.brief h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.2; }
.brief p { margin-top: 14px; color: var(--cream-2); }
.brief .text-link { margin-top: 30px; color: var(--brass-light); }
.articles { border-top: 1px solid var(--line); }
.articles li { border-bottom: 1px solid var(--line); }
.articles a { display: block; padding: 26px 0; text-decoration: none; }
.articles time { font-size: 13px; color: var(--muted); }
.articles h4 { margin-top: 6px; font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.3; transition: color .2s; }
.articles a:hover h4 { color: var(--brass); }
.articles p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.contact-intro > p:not(.eyebrow) { margin-top: 22px; color: var(--cream-2); font-size: 17px; line-height: 1.7; }
.contact-mail a { color: var(--brass-light); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(214,174,99,.4); }
.contact-intro p.fineprint { margin-top: 40px; font-size: 13px; color: var(--cream-3); line-height: 1.6; }
.contact-card { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 6px; padding: 10px 36px 36px; }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line-dark); margin-bottom: 28px; }
.tabs button {
  background: none; border: 0; padding: 18px 0 16px; cursor: pointer;
  font: 600 15px/1 var(--sans); color: var(--cream-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button[aria-selected="true"] { color: var(--cream); border-bottom-color: var(--brass-light); }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 13px; font-weight: 500; color: var(--cream-2); }
.form input, .form textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--cream);
  background: rgba(247,238,221,.04); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 13px 14px; transition: border-color .2s, background .2s;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brass-light); background: rgba(247,238,221,.07); }
.form .btn { justify-self: start; margin-top: 6px; }
.form-status { min-height: 1.4em; font-size: 14px; color: var(--cream-2); }
.form-status.ok { color: #a9d8b8; }
.form-status.err { color: #f0a9a0; }

/* footer */
.footer { background: #110f15; color: var(--cream-2); padding: 80px 0 36px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.footer-brand p { margin-top: 16px; color: var(--cream-3); max-width: 280px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-cols h4 { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--cream); margin-bottom: 18px; }
.footer-cols a { display: block; text-decoration: none; color: var(--cream-2); padding: 5px 0; transition: color .2s; }
.footer-cols a:hover { color: var(--cream); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; color: var(--cream-3); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 22px; }
  .hero-grid { gap: 48px; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .person, .person:nth-child(4) { grid-column: auto; }
  .person:last-child { grid-column: 1 / -1; max-width: calc(50% - 14px); justify-self: center; }
}
@media (max-width: 960px) {
  .nav-links, .nav-signin { display: none; }
  .nav-toggle { display: block; }
  .hero { padding-top: 64px; }
  .hero-grid, .split, .insights, .contact { grid-template-columns: 1fr; gap: 56px; }
  .passport { max-width: 520px; }
  .facts { grid-template-columns: 1fr 1fr; margin-top: 72px; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps li { padding-bottom: 36px; }
  .audiences { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .partners, .egypt { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 88px 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .nav-inner { height: 64px; }
  .nav-actions .btn-small { display: none; }
  .brand-word { font-size: 18px; }
  .hero { padding-top: 48px; }
  .lede { font-size: 17px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .passport { padding: 22px; }
  .facts, .steps, .principles { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 22px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--line-dark); }
  .steps li, .steps li + li { padding: 28px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .people { grid-template-columns: 1fr; }
  .person:last-child { max-width: none; }
  .partner { padding: 30px 24px; }
  .egypt { padding: 32px 24px 28px; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .form .row { grid-template-columns: 1fr; }
  .contact-card { padding: 6px 20px 24px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
