:root {
  --ink: #0b1220;
  --ink-2: #131c2e;
  --ink-3: #1c2740;
  --paper: #f6f3ec;
  --paper-2: #ece7dc;
  --line: #d9d2c3;
  --line-dark: rgba(232, 226, 212, 0.14);
  --text: #1a2233;
  --muted: #5b6475;
  --muted-dark: #9aa3b5;
  --cream: #e8e2d4;
  --gold: #c9a45c;
  --gold-2: #b08a42;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::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: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.dark .eyebrow { color: var(--gold); }

h1, h2, h3 { margin: 0; font-weight: 400; }
.display {
  font-family: var(--serif);
  font-size: clamp(44px, 7.4vw, 96px);
  line-height: .98;
  letter-spacing: -.015em;
}
.display em { font-style: italic; color: var(--gold); }
.h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -.01em;
}
.h2 em { font-style: italic; color: var(--gold-2); }
.dark .h2 em { color: var(--gold); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; }
.dark .lede { color: var(--muted-dark); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 18, 32, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-color: var(--line-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand-mark { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-weight: 700; letter-spacing: .16em; font-size: 15px; }
.brand-text span { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--muted-dark); margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--cream); font-size: 14px; font-weight: 500; opacity: .78;
  transition: opacity .2s; position: relative;
}
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  border: 1px solid rgba(201, 164, 92, .55); color: var(--cream) !important; opacity: 1 !important;
  padding: 9px 16px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; }
.menu-btn { display: none; background: none; border: 0; color: var(--cream); width: 44px; height: 44px; cursor: pointer; padding: 0; }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 5px auto; transition: transform .3s var(--ease), opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.dark { background: var(--ink); color: var(--cream); }
.hero { position: relative; padding: 170px 0 110px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 520px at 85% 10%, rgba(201, 164, 92, .16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(70, 96, 150, .22), transparent 60%);
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: end; }
.hero h1 { margin: 26px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s; font-family: inherit;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d8b56c; }
.btn-ghost { border-color: var(--line-dark); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--ink-3); }

.hero-index { border-top: 1px solid var(--line-dark); }
.hero-index-label { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--muted-dark); padding: 16px 0 6px; text-transform: uppercase; }
.hero-index ol { list-style: none; margin: 0; padding: 0; counter-reset: idx; }
.hero-index li { counter-increment: idx; border-bottom: 1px solid var(--line-dark); }
.hero-index a {
  display: flex; align-items: baseline; gap: 18px; padding: 15px 0; text-decoration: none;
  transition: padding .3s var(--ease), color .2s;
}
.hero-index a::before { content: "0" counter(idx); font-family: var(--mono); font-size: 12px; color: var(--gold); min-width: 22px; }
.hero-index a span { font-size: 18px; font-weight: 500; }
.hero-index a:hover { padding-left: 8px; color: #fff; }

.hero-foot {
  margin-top: 90px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted-dark); text-transform: uppercase;
}
.hero-foot b { color: var(--cream); font-weight: 500; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 76px; }
.section { padding: clamp(84px, 11vw, 150px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 80px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .h2 { margin-top: 18px; }

/* Company */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 110px); }
.about-copy p { margin: 0 0 20px; color: var(--muted); font-size: 18px; }
.about-copy p:first-child { color: var(--text); font-size: clamp(20px, 2vw, 24px); line-height: 1.45; }
.facts { border-top: 1px solid var(--text); }
.fact { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.fact dt { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.fact dd { margin: 0; font-weight: 500; }
.facts dl { margin: 0; }

/* Portfolio */
.portfolio { background: var(--paper-2); }
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card {
  grid-column: span 2; position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 28px; min-height: 360px; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(11, 18, 32, .35); border-color: #cdc3ae; }
.card:hover::after { transform: scaleX(1); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 36px; }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--ink); color: var(--gold);
  display: grid; place-items: center;
}
.card-icon svg { width: 26px; height: 26px; }
.card-num { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.card-sector { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 10px; }
.card h3 { font-family: var(--serif); font-size: 32px; line-height: 1.05; margin-bottom: 14px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card-foot { margin-top: auto; padding-top: 26px; }
.card-link {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}
.card-link svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.card-link:hover svg { transform: translate(2px, -2px); }
.card-status { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; }

/* Structure */
.structure { position: relative; overflow: hidden; }
.org { margin-top: 10px; }
.org-parent {
  margin: 0 auto; max-width: 420px; text-align: center; padding: 26px 24px;
  border: 1px solid rgba(201, 164, 92, .6); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(201, 164, 92, .12), rgba(201, 164, 92, .03));
}
.org-parent small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; }
.org-parent strong { font-size: 22px; letter-spacing: .08em; font-weight: 700; }
.org-parent span { display: block; color: var(--muted-dark); font-size: 14px; margin-top: 6px; }
.org-lines { position: relative; height: 70px; }
.org-lines::before { content: ""; position: absolute; left: 50%; top: 0; height: 35px; width: 1px; background: var(--gold); opacity: .6; }
.org-lines::after { content: ""; position: absolute; left: calc((100% - 70px) / 12); right: calc((100% - 70px) / 12); top: 35px; height: 1px; background: var(--gold); opacity: .6; }
.org-children { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.org-child {
  position: relative; text-align: center; padding: 22px 12px; border: 1px solid var(--line-dark); border-radius: 12px;
  background: rgba(255, 255, 255, .02); font-weight: 600; font-size: 15px; line-height: 1.3;
  transition: border-color .3s, background .3s;
}
.org-child::before { content: ""; position: absolute; left: 50%; top: -36px; height: 35px; width: 1px; background: var(--gold); opacity: .6; }
.org-child small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--muted-dark); font-weight: 400; text-transform: uppercase; margin-top: 8px; }
.org-child:hover { border-color: rgba(201, 164, 92, .6); background: rgba(201, 164, 92, .06); }
.org-note { text-align: center; color: var(--muted-dark); font-size: 14px; margin-top: 34px; }

.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(70px, 9vw, 110px); border-top: 1px solid var(--line-dark); }
.role { padding: 30px 28px 10px 0; }
.role + .role { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.role-num { font-family: var(--mono); font-size: 12px; color: var(--gold); }
.role h3 { font-size: 19px; font-weight: 600; margin: 14px 0 10px; }
.role p { margin: 0; color: var(--muted-dark); font-size: 15px; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principle { padding: 34px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: #fbf9f4; }
.principle-mark { font-family: var(--serif); font-size: 58px; line-height: 1; color: var(--gold); font-style: italic; }
.principle h3 { font-size: 21px; font-weight: 600; margin: 18px 0 10px; }
.principle p { margin: 0; color: var(--muted); font-size: 16px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.address-card { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 34px; background: rgba(255, 255, 255, .02); }
.address-card small { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.address-card address { font-style: normal; font-size: 22px; line-height: 1.5; margin: 14px 0 24px; }
.address-card address strong { display: block; font-weight: 700; letter-spacing: .06em; font-size: 16px; margin-bottom: 6px; color: #fff; }
.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--cream); background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-dark); border-radius: 10px; padding: 14px 16px; width: 100%;
  transition: border-color .2s, background .2s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, .05); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--muted-dark); margin: 4px 0 0; }

/* Footer */
.site-footer { background: #070c16; color: var(--muted-dark); padding: 70px 0 34px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-top h4 { margin: 0 0 16px; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-top a { text-decoration: none; color: var(--cream); opacity: .8; }
.footer-top a:hover { opacity: 1; }
.footer-brand p { max-width: 38ch; margin: 18px 0 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; font-size: 13px; }
.footer-bottom a { color: var(--muted-dark); }

/* Legal page */
.legal { padding: 150px 0 100px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-family: var(--serif); font-size: clamp(40px, 6vw, 64px); line-height: 1.05; margin: 18px 0 10px; }
.legal h2 { font-size: 20px; font-weight: 600; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal .updated { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner, .section-head, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card { grid-column: span 1; }
  .roles { grid-template-columns: 1fr 1fr; }
  .role:nth-child(3) { padding-left: 0; border-left: 0; }
  .role:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .principles { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 18, 32, .97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    padding: 8px var(--gutter) 26px; border-bottom: 1px solid var(--line-dark);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
  }
  .menu-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .menu-open .site-header { background: rgba(11, 18, 32, .97); }
  .nav-links li { border-bottom: 1px solid var(--line-dark); }
  .nav-links a { display: block; padding: 16px 0; font-size: 17px; opacity: 1; }
  .nav-links a::after { display: none; }
  .nav-links li:last-child { border: 0; padding-top: 18px; }
  .nav-cta { text-align: center; }
  .org-lines { display: none; }
  .org-children { grid-template-columns: 1fr; gap: 10px; margin-top: 18px; position: relative; }
  .org-child { text-align: left; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .org-child small { margin-top: 0; text-align: right; }
  .org-child::before { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 130px 0 70px; }
  .hero-foot { margin-top: 60px; flex-direction: column; }
  .cards { grid-template-columns: 1fr; }
  .card { grid-column: span 1; min-height: 0; }
  .fact { grid-template-columns: 1fr; gap: 4px; }
  .roles { grid-template-columns: 1fr; }
  .role, .role + .role { padding: 26px 0 8px; border-left: 0; }
  .role + .role { border-top: 1px solid var(--line-dark); }
  .field-row { grid-template-columns: 1fr; }
  .address-card { padding: 26px 22px; }
  .address-card address { font-size: 19px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

/* Top-level parent above the holding company in the org chart */
.org-top { max-width: 340px; padding: 18px 20px; background: rgba(255, 255, 255, .03); border-color: var(--line-dark); }
.org-top strong { font-size: 17px; letter-spacing: .04em; }
.org-stem { width: 1px; height: 34px; margin: 0 auto; background: var(--gold); opacity: .6; }

/* Companies that are in formation (not yet registered) */
.forming-tag {
  display: inline-block; font-family: var(--mono); font-style: normal; font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-2); border: 1px dashed currentColor; border-radius: 999px;
  padding: 3px 9px; vertical-align: middle; font-weight: 500;
}
.dark .forming-tag, .hero-index .forming-tag { color: var(--gold); }
.hero-index .forming-tag { margin-left: 8px; font-size: 9.5px; }
.card.forming { border-style: dashed; border-color: #c9bda4; background: transparent; }
.card.forming .card-icon { background: transparent; border: 1px dashed var(--gold-2); color: var(--gold-2); }
.org-child.forming, .tree-sub div.forming { border-style: dashed; border-color: rgba(201, 164, 92, .55); background: transparent; }
.org-child.forming small { color: var(--gold); }
@media (max-width: 1020px) { .org-children { grid-template-columns: repeat(3, 1fr); } .org-lines { display: none; } .org-child::before { display: none; } .org-children { margin-top: 18px; } }
