/* VARELX Holdings — variant 2.
   Built on the "Slash" reference (brand/reference/DESIGN-2.md): one continuous dark canvas,
   high-contrast serif for headings ≥28px against Inter, pill controls, hairlines instead of
   shadows. Colours re-cut to the brand: deep navy instead of near-black, logo gold instead of
   copper. The gilded gradient appears only in the group-structure and strategy diagrams. */

@font-face {
  font-family: "Caslon Display";
  src: url("fonts/libre-caslon-display-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #0a1428;
  --card: #07101f;
  --panel: #101c33;
  --hairline: #1c2a45;
  --line-2: #2a3a5a;
  --steel: #7c88a3;
  --fog: #9aa5bc;
  --mist: #b3bccd;
  --silver: #ccd3e0;
  --bone: #e4e8f0;
  --white: #ffffff;
  --gold: #d4a94a;
  --gilded: linear-gradient(103deg, #a8843f, #f3dfae 40%, #a8843f 70%, rgba(168, 132, 63, 0));
  --gilded-v: linear-gradient(180deg, #f3dfae, #a8843f 60%, rgba(168, 132, 63, 0.15));

  --serif: "Caslon Display", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1216px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(96px, 11vw, 160px);
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: var(--line-2) var(--void);
  background: var(--void);
}
body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  caret-color: var(--gold);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: var(--card); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 50; background: var(--white); color: var(--card); padding: 10px 18px; border-radius: 9999px; text-decoration: none; font-weight: 500; font-size: 0.875rem; }
.skip:focus { top: 12px; }

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

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: 0.01em; color: var(--white); }
.display { font-size: clamp(3rem, 6.1vw, 5.5rem); line-height: 1; text-wrap: balance; }
.h-lg { font-size: clamp(2.5rem, 4.4vw, 4rem); line-height: 1.08; text-wrap: balance; }
.h-md { font-size: clamp(2.125rem, 3.6vw, 3.25rem); line-height: 1.1; text-wrap: balance; }
.h-sm { font-size: clamp(1.75rem, 2.8vw, 2.75rem); line-height: 1.12; }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.45; letter-spacing: -0.01em; color: var(--fog); }

.icon { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Pills ---------- */

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px;
  border-radius: 9999px; font-size: 0.875rem; font-weight: 500; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 240ms var(--ease), color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.pill-solid { background: var(--white); color: var(--card); }
.pill-solid:hover { background: var(--silver); }
.pill-ghost { color: var(--white); box-shadow: inset 0 0 0 1px var(--white); }
.pill-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.pill .icon { transition: transform 280ms var(--ease); }
.pill:hover .icon { transform: translateX(3px); }

.tag {
  display: inline-flex; align-items: center; min-height: 26px; padding: 4px 11px;
  border-radius: 9999px; box-shadow: inset 0 0 0 1px var(--steel);
  font-size: 0.75rem; font-weight: 500; color: var(--mist); letter-spacing: 0.01em; white-space: nowrap;
}
.tag.dashed { box-shadow: none; border: 1px dashed var(--steel); }

.textlink { color: var(--gold); text-decoration: none; font-weight: 500; font-size: 0.9375rem; display: inline-flex; align-items: center; gap: 6px; }
.textlink:hover { text-decoration: underline; }
.textlink .icon { transition: transform 280ms var(--ease); }
.textlink:hover .icon { transform: translate(2px, -2px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  background: rgba(10, 20, 40, 0.86);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 -1px 0 var(--hairline);
}
.site-header .wrap { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; }
.brand .mark { height: 30px; width: auto; }
.brand .word { height: 26px; width: auto; }
.menu { display: flex; gap: 4px; }
.menu a { font-size: 0.875rem; color: var(--fog); text-decoration: none; padding: 8px 12px; border-radius: 2px; transition: color 200ms var(--ease); }
.menu a:hover, .menu a[aria-current="page"] { color: var(--white); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.contact-link { font-size: 0.875rem; color: var(--fog); text-decoration: none; padding: 8px 4px; }
.contact-link:hover, .contact-link[aria-current="page"] { color: var(--white); }
.header-actions .pill { min-height: 40px; padding: 8px 18px; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(64px, 8vw, 112px) var(--section); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 28px; }
.hero-copy .lead { max-width: 30rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Group card: the hero's "product" — the structure of the group itself. */
.group-card {
  background: var(--card); border-radius: 10px; padding: 28px;
  box-shadow: 0 0 0 1px var(--hairline);
}
.group-card .top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 22px; }
.group-card .who { display: flex; align-items: center; gap: 14px; }
.group-card .who img { height: 34px; width: auto; }
.group-card .who strong { display: block; color: var(--white); font-weight: 500; font-size: 1.0625rem; }
.group-card .who span { display: block; color: var(--fog); font-size: 0.8125rem; }
.group-card .rows { position: relative; padding-left: 28px; }
.group-card .rows::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 34px; width: 1.5px; background: var(--gilded-v); }
.group-card .row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 18px 0; box-shadow: inset 0 -1px 0 var(--hairline);
}
.group-card .row:first-child { box-shadow: inset 0 1px 0 var(--hairline), inset 0 -1px 0 var(--hairline); }
.group-card .row::before { content: ""; position: absolute; left: -21px; top: 50%; width: 14px; height: 1.5px; background: #c9a55e; }
.group-card .row b { display: block; color: var(--white); font-weight: 500; font-size: 1rem; }
.group-card .row span { display: block; color: var(--fog); font-size: 0.875rem; margin-top: 2px; }
.group-card .row.future b { color: var(--mist); }
.group-card .foot { padding-top: 18px; font-size: 0.8125rem; color: var(--steel); }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.center { text-align: center; display: grid; justify-items: center; gap: 20px; }
.center .lead { max-width: 40rem; }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.body-copy { max-width: 40rem; color: var(--mist); font-size: 1.0625rem; line-height: 1.6; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  background: var(--card); border-radius: 10px; padding: 32px;
  box-shadow: 0 0 0 1px var(--hairline);
  display: flex; flex-direction: column; gap: 18px; min-height: 100%;
}
.card p { color: var(--mist); font-size: 1rem; line-height: 1.55; }
.card .textlink { margin-top: auto; padding-top: 8px; }
.card.future { background: transparent; box-shadow: none; border: 1px dashed var(--line-2); }

.stages { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 72px); padding-top: 36px; }
.stages::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1.5px; background: var(--gilded); }
.stage { position: relative; display: grid; gap: 10px; padding-right: 24px; }
.stage::before { content: ""; position: absolute; top: -42px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--void); box-shadow: inset 0 0 0 1.5px #e6c98a; }
.stage p { color: var(--fog); font-size: 0.9375rem; line-height: 1.5; max-width: 22rem; }

.focus { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.focus .tag { min-height: 40px; padding: 8px 18px; font-size: 0.9375rem; color: var(--bone); }
.subhead { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.013em; color: var(--white); font-weight: 400; }

.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 880px; margin-inline: auto; }
.person { background: var(--card); border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--hairline); display: grid; }
.person .photo { background: var(--panel); aspect-ratio: 1 / 1; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.person .photo img { width: 88%; height: 94%; object-fit: contain; object-position: 50% 100%; }
.person .info { padding: 22px 24px 24px; display: grid; gap: 4px; }
.person h3 { font-size: 1.25rem; font-weight: 500; color: var(--white); letter-spacing: -0.01em; }
.person .role { font-size: 0.875rem; color: var(--fog); }
.person .textlink { margin-top: 12px; }
.person .textlink svg.li { width: 16px; height: 16px; fill: currentColor; stroke: none; }

.ir { text-align: center; display: grid; justify-items: center; gap: 22px; }
.ir .mail { font-family: var(--serif); font-size: clamp(1.75rem, 4vw, 3rem); color: var(--white); letter-spacing: 0.01em; text-decoration: none; box-shadow: inset 0 -1px 0 var(--steel); overflow-wrap: anywhere; }
.ir .mail:hover { box-shadow: inset 0 -1px 0 var(--gold); }
.rule { height: 1px; background: var(--hairline); border: 0; margin: 0; }

/* ---------- Inner pages ---------- */

.page-head { padding-block: clamp(72px, 9vw, 128px) clamp(48px, 6vw, 80px); }
.page-head .center { gap: 22px; }
.doc { max-width: 760px; margin-inline: auto; display: grid; gap: 56px; padding-bottom: var(--section); }
.doc section { display: grid; gap: 16px; }
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 2.8vw, 2.25rem); color: var(--white); letter-spacing: 0.01em; line-height: 1.15; }
.doc h3 { font-size: 1.0625rem; font-weight: 600; color: var(--white); margin-top: 8px; }
.doc p, .doc li { color: var(--mist); font-size: 1.0625rem; line-height: 1.65; }
.doc a { color: var(--gold); }
.doc .notice { background: var(--card); border-radius: 10px; padding: 24px 28px; box-shadow: 0 0 0 1px var(--line-2); }
.doc .notice p { color: var(--bone); }
.toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.toc a { min-height: 36px; }
.updated { font-size: 0.875rem; color: var(--steel); }

.routes { display: grid; gap: 12px; }
.route {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px;
  background: var(--card); border-radius: 10px; padding: 22px 26px; box-shadow: 0 0 0 1px var(--hairline);
  text-decoration: none; transition: box-shadow 240ms var(--ease);
}
.route:hover { box-shadow: 0 0 0 1px var(--steel); }
.route b { display: block; color: var(--white); font-weight: 500; font-size: 1.0625rem; }
.route span { display: block; color: var(--gold); margin-top: 2px; overflow-wrap: anywhere; }
.route .icon { font-size: 1.25rem; color: var(--fog); transition: transform 280ms var(--ease); }
.route:hover .icon { transform: translateX(3px); color: var(--white); }

.lost { min-height: calc(100svh - var(--header-h)); display: grid; place-items: center; padding: 64px var(--gutter); }

/* ---------- Footer ---------- */

.site-footer { box-shadow: inset 0 1px 0 var(--hairline); padding-block: 72px 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.footer-grid .logo { width: 150px; }
.footer-grid .tagline { margin-top: 18px; color: var(--fog); font-size: 0.875rem; max-width: 18rem; }
.footer-grid .fh { font-size: 0.875rem; font-weight: 500; color: var(--white); margin-bottom: 14px; }
.footer-grid li a { display: inline-flex; min-height: 32px; align-items: center; font-size: 0.875rem; color: var(--fog); text-decoration: none; }
.footer-grid li a:hover { color: var(--white); }
.disclaimers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; padding-top: 32px; box-shadow: inset 0 1px 0 var(--hairline); font-size: 0.8125rem; line-height: 1.6; color: var(--steel); }
.copy { padding-top: 28px; font-size: 0.8125rem; color: var(--steel); }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .site-header .wrap { grid-template-columns: auto 1fr; }
  .menu, .contact-link { display: none; }
  .brand .word { height: 22px; }
  .stages { grid-template-columns: 1fr; padding-top: 0; padding-left: 32px; gap: 32px; }
  .stages::before { top: 6px; bottom: 40px; left: 5px; right: auto; width: 1.5px; height: auto; background: var(--gilded-v); }
  .stage::before { top: 4px; left: -32px; }
  .people { grid-template-columns: 1fr; max-width: 440px; }
  .disclaimers { grid-template-columns: 1fr; }
  .group-card { padding: 22px; }
  .group-card .top { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; }
}
.focus-block { margin-top: clamp(56px, 7vw, 88px); }
.card .tag, .group-card .top .tag { align-self: flex-start; }
