:root {
  --midnight: #16212e;
  --navy: #1f2e3f;
  --graphite: #2b3540;
  --slate: #2e4150;
  --gold: #a8862e;
  --gold-light: #c9a95a;
  --paper: #faf8f4;
  --tint: #f2eee6;
  --line: #e0dbd0;
  --text: #26303b;
  --muted: #5a6470;
  --on-dark: #f5f1e8;
  --on-dark-muted: rgba(245, 241, 232, 0.72);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
  --prose: 62ch;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

h1, h2, h3 { font-weight: 500; color: var(--midnight); margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); line-height: 1.08; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.18; margin-bottom: 1.25rem; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; }

.eyebrow, .kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}
.eyebrow { color: var(--gold); }
.kicker { color: var(--muted); }
.kicker.gold { color: var(--gold); }
.lead { max-width: var(--prose); color: var(--muted); font-size: 1.05rem; margin-bottom: 3rem; }
.fine { font-size: 0.8rem; color: var(--muted); }
.fine a { color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--midnight); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--midnight);
  color: #fff;
  border: 1px solid var(--midnight);
  padding: 15px 28px;
  font: 600 0.78rem/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--slate); border-color: var(--slate); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-gold { background: var(--gold-light); border-color: var(--gold-light); color: var(--midnight); }
.btn-gold:hover { background: #d8bb73; border-color: #d8bb73; }
.btn-ghost { background: transparent; border-color: rgba(245, 241, 232, 0.5); color: var(--on-dark); }
.btn-ghost:hover { background: rgba(245, 241, 232, 0.08); border-color: var(--on-dark); }
.text-link { color: inherit; font-size: 0.95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.nav-brand img { height: 50px; width: auto; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--graphite);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-links a:hover { color: var(--midnight); border-color: var(--gold); }
.nav-toggle { display: none; }

/* Hero */
.hero {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(201, 169, 90, 0.10), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--midnight) 70%);
  color: var(--on-dark);
  padding: clamp(80px, 12vw, 148px) 0 clamp(72px, 10vw, 128px);
}
.hero-inner { position: relative; }
.hero-mark { position: absolute; right: 32px; top: 50%; transform: translateY(-50%); width: clamp(220px, 26vw, 340px); opacity: 0.92; }
@media (max-width: 1000px) { .hero-mark { display: none; } }
.hero h1 { color: #fff; max-width: 16ch; margin-bottom: 1.75rem; }
.hero-sub { max-width: 58ch; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--on-dark-muted); margin-bottom: 2.5rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* Capabilities band */
.capabilities { background: var(--graphite); color: var(--on-dark); }
.cap-list {
  list-style: none; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.cap-list li {
  padding: 22px 20px;
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.cap-list li:first-child { border-left: 0; }

/* Sections */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--midnight); color: var(--on-dark); }
.section-dark h2 { color: #fff; }
.section-dark .prose p { color: var(--on-dark-muted); }
.section-dark .fine { color: rgba(245, 241, 232, 0.55); }
.split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.prose { max-width: var(--prose); }
.prose p { font-size: 1.02rem; }

/* Value chain */
.icon { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chain { margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); padding-top: 48px; }
.chain-steps {
  list-style: none; margin: 0 0 32px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  position: relative;
}
.chain-steps::before {
  content: ""; position: absolute; left: 16%; right: 16%; top: 20px;
  border-top: 1px dashed var(--gold-light);
}
.chain-steps li { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.chain-steps .icon { background: var(--paper); padding: 0 6px; width: 52px; box-sizing: content-box; margin-bottom: 14px; }
.chain-label { font-weight: 600; color: var(--midnight); }
.chain-note { font-size: 0.86rem; color: var(--muted); }
.chain-line { text-align: center; font-size: 1.15rem; color: var(--midnight); margin: 0; letter-spacing: -0.01em; }

/* Solutions */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--midnight);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-top-color: var(--gold); box-shadow: 0 10px 30px rgba(22, 33, 46, 0.06); }
.card .icon { margin-bottom: 22px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .use { margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.88rem; }
.card .use span { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.fit {
  margin-top: 40px;
  display: grid; grid-template-columns: auto 1fr; gap: 12px 40px; align-items: center;
  padding: 28px 32px;
  background: var(--midnight); color: var(--on-dark);
}
.fit-size { margin: 0; font-size: 1.2rem; font-weight: 500; color: #fff; letter-spacing: -0.01em; }
.fit-detail { margin: 0; font-size: 0.88rem; color: var(--on-dark-muted); }

/* Market figures */
.stats { background: var(--midnight); color: var(--on-dark); padding: clamp(48px, 7vw, 72px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat-num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; color: var(--gold-light); margin-bottom: 12px; }
.stat-label { margin: 0 0 4px; font-size: 0.95rem; }
.stat-src { margin: 0; font-size: 0.76rem; color: rgba(245, 241, 232, 0.6); }
@media (max-width: 600px) { .stats-grid { grid-template-columns: 1fr; } }

/* Founders */
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.founder {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px;
  display: grid; grid-template-columns: 132px 1fr; gap: 28px; align-items: start;
}
.portrait {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
}
.founder h3 { font-size: 1.4rem; margin-bottom: 6px; }
.founder-summary { color: var(--text); font-size: 0.95rem; }
details { border-top: 1px solid var(--line); padding-top: 12px; }
summary {
  cursor: pointer; list-style: none;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--midnight);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: " +"; color: var(--gold); }
details[open] summary::after { content: " –"; }
details p { margin-top: 12px; font-size: 0.92rem; color: var(--muted); }
.complement {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.complement li {
  text-align: center; padding: 16px;
  border-top: 1px solid var(--gold-light);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--graphite);
}

/* Process */
.steps {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.steps li { border-top: 1px solid var(--midnight); padding-top: 20px; }
.step-num { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 14px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.principles { margin-top: clamp(56px, 7vw, 88px); padding: 40px; background: var(--tint); }
.principles-title { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; }
.principles-list { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.principles-list dt { font-weight: 600; color: var(--midnight); margin-bottom: 6px; }
.principles-list dd { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Capital partners */
.partner-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin: 2rem 0 1.5rem; }
.section-dark .text-link { color: var(--gold-light); }

/* Contact */
.contact-intro > p:not(.eyebrow):not(.fine) { color: var(--muted); }
.contact-list { margin: 28px 0; display: grid; gap: 16px; }
.contact-list dt { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 2px 0 0; }
.contact-list a { color: var(--midnight); }

.enquiry { background: #fff; border: 1px solid var(--line); }
.tabs { display: none; }
.enquiry.has-tabs .tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.tabs button {
  font: 500 0.92rem var(--sans);
  padding: 18px 16px;
  background: var(--tint); color: var(--muted);
  border: 0; border-bottom: 2px solid transparent;
  cursor: pointer;
}
.tabs button[aria-selected="true"] { background: #fff; color: var(--midnight); border-bottom-color: var(--gold); }
.tab-panel { padding: 32px; }
.enquiry:not(.has-tabs) .tab-panel + .tab-panel { border-top: 1px solid var(--line); }

.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-size: 0.82rem; font-weight: 500; color: var(--midnight); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form input:not([type="checkbox"]), .form textarea, .form select {
  font: inherit; font-size: 0.95rem; font-weight: 400;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #b9b4a8;
  background: #fff;
  color: var(--text);
  border-radius: 0;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--gold); outline-offset: -1px; border-color: var(--gold); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.form .check input { margin-top: 4px; accent-color: var(--midnight); width: 16px; height: 16px; flex: none; }
.form .fine { margin: 0; }
.form .btn { justify-self: start; }
.hidden-field { position: absolute; left: -9999px; }
.form-status { margin: 0; font-size: 0.9rem; }
.form-status:empty { display: none; }
.form-status.ok { color: #2f6b45; }
.form-status.error { color: #a23b2a; }

/* Footer */
.site-footer { background: var(--midnight); color: var(--on-dark-muted); padding: 64px 0 48px; font-size: 0.84rem; }
.footer-logo { width: 150px; margin-bottom: 28px; }
.site-footer a { color: var(--gold-light); }
.footer-entity { line-height: 1.8; }
.footer-entity strong { color: var(--on-dark); font-weight: 500; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 24px; margin-top: 24px; font-size: 0.76rem; color: rgba(245, 241, 232, 0.6); max-width: 120ch; }
.footer-heading { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 12px; }
.footer-links { margin: 24px 0 8px; }
.footer-copy { margin: 0; font-size: 0.74rem; color: rgba(245, 241, 232, 0.5); }
.footer-mobile { display: none; }
@media (max-width: 600px) {
  .footer-desktop { display: none; }
  .footer-mobile { display: block; }
}

/* Subtle fade-in (only when motion is allowed; content is visible without it) */
.motion .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.motion .reveal.in { opacity: 1; transform: none; }

/* Legal pages */
.page { padding: clamp(56px, 8vw, 96px) 0; }
.page .container { max-width: 820px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; }
.page h2 { font-size: 1.2rem; margin: 2.25rem 0 0.75rem; }
.page .entity { color: var(--muted); margin-bottom: 2rem; }
.page .clause { display: inline-block; text-indent: 0; min-width: 2.6em; color: var(--muted); font-variant-numeric: tabular-nums; }
.page h2 .clause { min-width: 1.6em; color: var(--gold); }
.page .cl { padding-left: 2.6em; text-indent: -2.6em; }
.page .cl.indent { padding-left: 2.6em; text-indent: 0; margin-bottom: 0.25em; }
.page .sub { list-style: none; margin: 0 0 1em; padding-left: 2.6em; }
.page .sub li { padding-left: 2.2em; text-indent: -2.2em; margin-bottom: 0.4em; }
.page .sub .clause { min-width: 2.2em; }
.page p:not(.eyebrow):not(.fine):not(.draft-note), .page li { color: var(--text); }
.draft-note { background: var(--tint); border-left: 3px solid var(--gold); padding: 14px 18px; font-size: 0.88rem; color: var(--muted); margin-bottom: 2rem; }
.back { display: inline-block; margin-top: 2.5rem; color: var(--midnight); }

/* Tablet */
@media (max-width: 1000px) {
  .nav-links { gap: 20px; }
  .steps, .principles-list { grid-template-columns: repeat(2, 1fr); }
  .founders { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .fit { grid-template-columns: 1fr; }
  .cap-list { grid-template-columns: repeat(2, 1fr); }
  .cap-list li:nth-child(3) { border-left: 0; }
  .cap-list li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.12); }
}

/* Mobile menu kicks in before the six links get cramped */
@media (max-width: 860px) {
  .nav-toggle {
    display: block;
    background: none; border: 1px solid var(--midnight);
    color: var(--midnight);
    font: 600 0.72rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
    padding: 10px 14px; cursor: pointer;
  }
  .nav-toggle-close { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }
  .nav-links {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(22, 33, 46, 0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 15px 32px; border-bottom: 0; border-top: 1px solid var(--line); }
}

/* Phone */
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .container { padding: 0 16px; }
  .nav-brand img { height: 42px; }
  .nav-links a { padding: 15px 16px; }
  .hero-ctas .btn, .partner-ctas .btn { width: 100%; text-align: center; }
  .cap-list li { padding: 16px 8px; font-size: 0.68rem; letter-spacing: 0.1em; }
  .chain-steps { grid-template-columns: 1fr; gap: 28px; }
  .chain-steps::before { display: none; }
  .steps, .principles-list, .row-2, .complement { grid-template-columns: 1fr; }
  .complement { gap: 0; }
  .founder { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .portrait { width: 120px; }
  .principles { padding: 28px 20px; }
  .tab-panel { padding: 22px 18px; }
  .tabs button { font-size: 0.82rem; padding: 16px 8px; }
  .fit { padding: 24px 20px; }
}
