/* ============================================================
   XIVIUM Holdings — Corporate Site
   Design system: deep pine green · warm brass · stone ivory
   Display: Fraunces  |  Text/UI: Jost
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Greens (dark surfaces) */
  --forest-950: #0d1a15;
  --forest-900: #10201a;
  --forest-850: #142720;
  --forest-800: #193025;
  --forest-750: #1f3a2d;
  --forest-700: #274837;

  /* Sage (muted text on dark) */
  --sage-300: #a9bdaf;
  --sage-200: #c3d2c7;

  /* Warm off-white text on dark */
  --parchment: #ece7d9;

  /* Stone (light surfaces) */
  --stone-50:  #f6f3ea;
  --stone-100: #efeade;
  --stone-200: #e4ddcc;
  --stone-300: #d6cdb7;

  /* Ink (text on light) */
  --ink-900: #14201a;
  --ink-700: #37453c;
  --ink-500: #5d6b60;

  /* Brass accent */
  --brass-600: #9c7a3f;
  --brass-500: #b18d4d;
  --brass-400: #c4a163;
  --brass-300: #dabd84;
  --brass-100: #efe2c2;

  --white: #ffffff;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --maxw: 1240px;
  --maxw-narrow: 940px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(76px, 10vw, 136px);

  --radius: 3px;
  --hair: rgba(196, 161, 99, 0.28);   /* brass hairline */
  --hair-dark: rgba(20, 32, 26, 0.12);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--stone-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

::selection { background: var(--brass-300); color: var(--forest-950); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: inherit;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.6rem, 6.6vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 380;
}
.h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); }
.h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }

.lead {
  font-size: clamp(1.12rem, 1.5vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink-700);
  font-weight: 300;
  max-width: 60ch;
}

p { max-width: 66ch; }
strong { font-weight: 500; }

/* Eyebrow / label */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-600);
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--brass-500);
  display: inline-block;
}
.eyebrow--center { justify-content: center; }
.eyebrow--plain::before { display: none; }

/* Roman numeral marker */
.numeral {
  font-family: var(--font-display);
  font-weight: 300;
  font-variant-numeric: normal;
  letter-spacing: 0.04em;
  color: var(--brass-500);
  line-height: 1;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(52px, 6vw, 84px); }

/* Surfaces */
.surface-stone { background: var(--stone-50); color: var(--ink-900); }
.surface-stone-2 { background: var(--stone-100); color: var(--ink-900); }
.surface-dark {
  background: var(--forest-950);
  color: var(--parchment);
}
.surface-dark h1, .surface-dark h2, .surface-dark h3, .surface-dark h4 { color: var(--white); }
.surface-dark .lead { color: var(--sage-200); }
.surface-dark p { color: var(--sage-300); }

.rule { height: 1px; background: var(--hair); border: 0; }
.rule--ink { background: var(--hair-dark); }

.eyebrow-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--brass-500);
  --fg: var(--forest-950);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.05em 1.9em;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bg);
  border-radius: var(--radius);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  will-change: transform;
}
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover { background: var(--brass-400); border-color: var(--brass-400); transform: translateY(-2px); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost {
  --bg: transparent;
  --fg: var(--brass-400);
  border-color: rgba(196, 161, 99, 0.5);
}
.btn--ghost:hover { background: rgba(196, 161, 99, 0.1); border-color: var(--brass-400); color: var(--brass-300); }

.btn--ghost-ink {
  --bg: transparent;
  --fg: var(--ink-900);
  border-color: rgba(20, 32, 26, 0.28);
}
.btn--ghost-ink:hover { background: rgba(20, 32, 26, 0.05); border-color: var(--ink-900); color: var(--ink-900); }

/* Text link with underline reveal */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-600);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--brass-500), var(--brass-500));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .4s var(--ease), color .3s var(--ease);
}
.surface-dark .tlink { color: var(--brass-300); }
.tlink:hover { background-size: 100% 1px; }
.tlink .arrow { transition: transform .35s var(--ease); }
.tlink:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 26, 21, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid rgba(196, 161, 99, 0.16);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.site-header.is-scrolled { background: rgba(10, 20, 16, 0.92); border-bottom-color: rgba(196, 161, 99, 0.24); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--white); }
.brand__mark { width: 30px; height: 28px; flex: none; }
.brand__mark path { stroke: var(--brass-400); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 460;
  font-size: 1.32rem;
  letter-spacing: 0.16em;
  color: var(--white);
}
.brand__sub {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.58rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--brass-300);
  margin-top: 5px;
  padding-left: 0.12em;
}

.nav__links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav__links a {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--sage-200);
  position: relative;
  padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--brass-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--white); }

.nav__cta { display: inline-flex; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(196, 161, 99, 0.34);
  border-radius: var(--radius);
  position: relative;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 1.5px;
  background: var(--brass-300);
  transform: translate(-50%, -50%);
  transition: transform .35s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span::before { transform: translate(-50%, -6px); }
.nav__toggle span::after  { transform: translate(-50%, 5px); }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--forest-950);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform .5s var(--ease), opacity .4s var(--ease), visibility .4s;
  z-index: 90;
  padding: clamp(24px, 6vw, 48px) var(--gutter);
  display: flex;
  flex-direction: column;
}
.nav__drawer.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.nav__drawer ul { list-style: none; display: flex; flex-direction: column; }
.nav__drawer li { border-bottom: 1px solid rgba(196,161,99,0.14); }
.nav__drawer a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--parchment);
}
.nav__drawer a .idx {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--brass-500);
}
.nav__drawer a[aria-current="page"] { color: var(--brass-300); }
.nav__drawer .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--forest-950); color: var(--parchment); overflow: hidden; isolation: isolate; }
.hero__grain { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; z-index: 0; }
.hero__ridge {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero__ridge svg { width: 100%; height: clamp(150px, 22vw, 300px); display: block; }
.hero__glow {
  position: absolute;
  z-index: 0;
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  top: -18%; right: -10%;
  background: radial-gradient(circle, rgba(196,161,99,0.16), rgba(196,161,99,0) 62%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(96px, 15vh, 176px) clamp(180px, 26vh, 300px);
}
.hero__watermark {
  position: absolute;
  z-index: 0;
  right: clamp(-40px, -2vw, 0px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(12rem, 34vw, 40rem);
  line-height: 0.8;
  color: rgba(196, 161, 99, 0.045);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}
.hero h1 { max-width: 15ch; margin-top: 26px; }
.hero .lead { margin-top: 28px; }
.hero__actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

/* Facts strip */
.facts {
  position: relative;
  z-index: 3;
  margin-top: clamp(48px, 8vw, 76px);
  border-top: 1px solid rgba(196, 161, 99, 0.2);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fact { padding: 30px 26px 4px 0; }
.fact:not(:last-child) { border-right: 1px solid rgba(196,161,99,0.14); }
.fact__val {
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  color: var(--brass-300);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.3em;
}
.fact__val .unit { font-size: 0.42em; color: var(--sage-300); letter-spacing: 0.06em; }
.fact__label {
  margin-top: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-300);
  max-width: 24ch;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--forest-950); color: var(--parchment); position: relative; overflow: hidden; isolation: isolate; }
.page-hero__grain { position: absolute; inset: 0; opacity: 0.45; pointer-events: none; z-index: 0; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero__inner { padding-block: clamp(84px, 13vh, 150px) clamp(64px, 9vh, 104px); }
.page-hero h1 { margin-top: 24px; max-width: 18ch; }
.page-hero .lead { margin-top: 26px; color: var(--sage-200); }
.page-hero__glow {
  position: absolute; z-index: 0;
  width: 50vw; height: 50vw; max-width: 560px; max-height: 560px;
  bottom: -30%; left: -8%;
  background: radial-gradient(circle, rgba(196,161,99,0.14), rgba(196,161,99,0) 60%);
  pointer-events: none;
}

/* Breadcrumb-ish index */
.page-index {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-400);
}

/* ---------- Prose / two-column intro ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.split--even { grid-template-columns: 1fr 1fr; }
.split__aside .eyebrow { margin-bottom: 22px; }
.split__aside h2 { max-width: 14ch; }
.prose > * + * { margin-top: 1.25em; }
.prose p { color: var(--ink-700); }
.surface-dark .prose p { color: var(--sage-300); }

/* ---------- Feature / pillar grid ---------- */
.grid { display: grid; gap: clamp(1px, 0.2vw, 2px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Pillar cards, hairline-joined */
.pillars {
  border: 1px solid var(--hair);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--hair);
  gap: 1px;
}
.surface-stone .pillars { border-color: var(--stone-200); background: var(--stone-200); }
.pillar {
  background: var(--forest-950);
  padding: clamp(30px, 3.4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
  transition: background .4s var(--ease);
}
.surface-stone .pillar { background: var(--stone-50); }
.pillar:hover { background: var(--forest-900); }
.surface-stone .pillar:hover { background: var(--stone-100); }
.pillar__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--brass-500);
  letter-spacing: 0.06em;
}
.pillar h3 { font-size: 1.4rem; }
.surface-stone .pillar h3 { color: var(--ink-900); }
.pillar p { font-size: 0.98rem; line-height: 1.6; }
.surface-stone .pillar p { color: var(--ink-700); }

/* ---------- Portfolio cards ---------- */
.props { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.4vw, 34px); }
.prop {
  position: relative;
  background: var(--forest-950);
  border: 1px solid rgba(196,161,99,0.2);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  overflow: hidden;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.prop:hover { border-color: rgba(196,161,99,0.5); transform: translateY(-3px); }
.prop__ridge { position: absolute; right: 0; bottom: 0; width: 55%; opacity: 0.5; pointer-events: none; }
.prop__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; position: relative; z-index: 1; }
.prop__num { font-family: var(--font-display); font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 300; color: rgba(196,161,99,0.85); line-height: 0.9; }
.prop__tag {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest-950);
  background: var(--brass-400);
  padding: 6px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.prop__tag--outline { color: var(--brass-300); background: transparent; border: 1px solid rgba(196,161,99,0.4); }
.prop__body { margin-top: auto; position: relative; z-index: 1; }
.prop h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 6px; }
.prop__loc { color: var(--brass-300); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.prop__meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 22px; border-top: 1px solid rgba(196,161,99,0.16); padding-top: 18px; }
.prop__meta div { display: flex; flex-direction: column; gap: 3px; }
.prop__meta dt { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-300); }
.prop__meta dd { font-size: 0.95rem; color: var(--parchment); font-family: var(--font-display); font-weight: 350; }

/* ---------- Colorado map ---------- */
.mapfig { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.mapfig__art { position: relative; }
.mapfig__art svg { width: 100%; height: auto; }
.mapfig__legend { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.mapfig__legend li { display: flex; gap: 16px; align-items: flex-start; }
.mapfig__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brass-400); margin-top: 6px; flex: none; box-shadow: 0 0 0 4px rgba(196,161,99,0.16); }
.mapfig__legend h4 { font-family: var(--font-display); font-size: 1.2rem; color: var(--white); margin-bottom: 4px; }
.mapfig__legend p { font-size: 0.94rem; color: var(--sage-300); }

/* ---------- Structure diagram ---------- */
.orgchart { --line: rgba(196,161,99,0.4); margin-top: 12px; }
.org-node {
  background: var(--forest-850);
  border: 1px solid rgba(196,161,99,0.28);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
}
.org-node--root {
  background: linear-gradient(180deg, var(--forest-800), var(--forest-850));
  border-color: rgba(196,161,99,0.55);
  box-shadow: 0 0 40px rgba(196,161,99,0.08);
}
.org-node__kicker { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-400); }
.org-node__name { font-family: var(--font-display); font-size: 1.2rem; color: var(--white); margin-top: 8px; line-height: 1.2; }
.org-node--root .org-node__name { font-size: 1.5rem; }
.org-node__meta { font-size: 0.78rem; color: var(--sage-300); margin-top: 6px; letter-spacing: 0.02em; }

.org-root-wrap { max-width: 460px; margin-inline: auto; }
.org-connector { width: 1px; height: 34px; background: var(--line); margin: 0 auto; }
.org-tier-label {
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-400);
  margin: 4px auto 22px;
}

.org-branches { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); position: relative; }
/* horizontal rail connecting the two branches to the root */
.org-rail { position: relative; height: 34px; }
.org-rail::before { content:""; position:absolute; top:0; left:25%; right:25%; height:1px; background: var(--line); }
.org-rail::after { content:""; position:absolute; top:0; left:50%; width:1px; height:16px; background: var(--line); transform: translateX(-50%) translateY(-16px); }
.org-rail .drop { position:absolute; top:0; width:1px; height:34px; background: var(--line); }
.org-rail .drop.l { left:25%; }
.org-rail .drop.r { right:25%; }

.org-sub { display: flex; flex-direction: column; align-items: center; }
.org-props { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.org-props.three { grid-template-columns: repeat(3, 1fr); }
.org-leaf {
  border: 1px solid rgba(196,161,99,0.2);
  border-radius: var(--radius);
  padding: 14px 8px;
  text-align: center;
  background: var(--forest-900);
}
.org-leaf__num { font-family: var(--font-display); font-size: 1.35rem; color: var(--brass-300); font-weight: 300; }
.org-leaf__type { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-300); margin-top: 4px; }

.caption { font-size: 0.76rem; color: var(--ink-500); letter-spacing: 0.04em; margin-top: 26px; text-align: center; }
.surface-dark .caption { color: var(--sage-300); }

/* ---------- Timeline / roadmap ---------- */
.timeline { display: grid; gap: 1px; background: var(--hair); border-block: 1px solid var(--hair); }
.tl-row {
  background: var(--forest-950);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: clamp(20px, 4vw, 60px);
  padding: clamp(28px, 3.4vw, 44px) 0;
  align-items: baseline;
}
.surface-stone .timeline { background: var(--stone-200); border-color: var(--stone-200); }
.surface-stone .tl-row { background: var(--stone-50); }
.tl-phase { display: flex; flex-direction: column; gap: 6px; }
.tl-phase .numeral { font-size: 2.4rem; }
.tl-phase small { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-300); }
.surface-stone .tl-phase small { color: var(--ink-500); }
.tl-body h3 { font-size: 1.5rem; margin-bottom: 10px; }
.surface-stone .tl-body h3 { color: var(--ink-900); }
.tl-status { display: inline-block; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 4px 11px; border-radius: 100px; margin-top: 14px; }
.tl-status--now { background: var(--brass-400); color: var(--forest-950); }
.tl-status--next { border: 1px solid rgba(196,161,99,0.4); color: var(--brass-300); }
.surface-stone .tl-status--next { color: var(--brass-600); border-color: rgba(156,122,63,0.4); }

/* ---------- Values list ---------- */
.values { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.surface-stone .values { background: var(--stone-200); border-color: var(--stone-200); }
.value { background: var(--stone-50); padding: clamp(26px, 3vw, 40px); display: flex; gap: 20px; }
.surface-dark .value { background: var(--forest-950); }
.value .numeral { font-size: 1.6rem; flex: none; }
.value h3 { font-size: 1.25rem; margin-bottom: 8px; }
.value p { font-size: 0.94rem; color: var(--ink-700); }
.surface-dark .value h3 { color: var(--white); }
.surface-dark .value p { color: var(--sage-300); }

/* ---------- Stat quote / pull ---------- */
.pull { max-width: 20ch; font-family: var(--font-display); font-weight: 320; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -0.015em; }
.pull em { font-style: italic; color: var(--brass-400); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band__grain { position: absolute; inset: 0; opacity: 0.4; z-index: 0; }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { max-width: 16ch; }
.cta-band p { color: var(--sage-300); margin-top: 16px; max-width: 46ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 34px; }
.contact-block h4 { font-family: var(--font-sans); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-600); margin-bottom: 12px; }
.contact-block p, .contact-block a { font-family: var(--font-display); font-weight: 350; font-size: 1.28rem; color: var(--ink-900); line-height: 1.4; }
.contact-block a.tlink { font-family: var(--font-sans); font-size: 0.8rem; }
.contact-block .muted { font-family: var(--font-sans); font-size: 0.95rem; color: var(--ink-500); }

.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-700); font-weight: 500; }
.field label .req { color: var(--brass-600); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink-900);
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass-500);
  box-shadow: 0 0 0 3px rgba(196,161,99,0.16);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b18d4d' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form__note { font-size: 0.8rem; color: var(--ink-500); }
.form__submit { justify-self: start; }

.alert {
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.96rem;
  line-height: 1.5;
}
.alert--ok { background: rgba(177,141,77,0.1); border: 1px solid rgba(177,141,77,0.4); color: var(--ink-900); }
.alert--err { background: rgba(150,60,45,0.08); border: 1px solid rgba(150,60,45,0.35); color: #6d2c22; }
.alert svg { flex: none; margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-950); color: var(--sage-300); position: relative; overflow: hidden; isolation: isolate; }
.site-footer__grain { position: absolute; inset: 0; opacity: 0.4; z-index: 0; }
.site-footer .wrap { position: relative; z-index: 2; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: clamp(56px, 7vw, 88px); }
.footer-brand .brand { margin-bottom: 22px; }
.footer-brand p { font-size: 0.92rem; max-width: 34ch; color: var(--sage-300); }
.footer-col h5 { font-family: var(--font-sans); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-400); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.footer-col a, .footer-col p { font-size: 0.92rem; color: var(--sage-300); transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-col address { font-style: normal; font-size: 0.92rem; line-height: 1.7; color: var(--sage-300); }

.footer-bottom {
  border-top: 1px solid rgba(196,161,99,0.14);
  padding-block: 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-bottom p { font-size: 0.78rem; color: var(--sage-300); letter-spacing: 0.02em; }
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-legal a { font-size: 0.78rem; color: var(--sage-300); }
.footer-legal a:hover { color: var(--white); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .prop, .tlink, .nav__links a::after { transition: none; }
}

/* ---------- Focus visibility ---------- */
:focus-visible { outline: 2px solid var(--brass-400); outline-offset: 3px; border-radius: 2px; }
.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--brass-400); color: var(--forest-950);
  padding: 10px 18px; border-radius: var(--radius); z-index: 200;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Utilities ---------- */
.mt-s { margin-top: 18px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 52px; }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-c { max-width: 62ch; margin-inline: auto; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .split, .split--even { grid-template-columns: 1fr; gap: 36px; }
  .mapfig { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .pillars { grid-template-columns: 1fr; }
  .props { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .pull { max-width: none; }
}

@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 24px 18px 4px 0; }
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid rgba(196,161,99,0.14); padding-bottom: 24px; }
  .org-branches { grid-template-columns: 1fr; gap: 12px; }
  .org-rail { display: none; }
  .org-branches .org-connector-m { display: block; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .tl-row { grid-template-columns: 1fr; gap: 12px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0 !important; border-bottom: 1px solid rgba(196,161,99,0.14); padding: 22px 0 22px; }
  .fact:last-child { border-bottom: 0; }
  .form__row { grid-template-columns: 1fr; }
  .org-props, .org-props.three { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

/* Desktop-only helper defaults */
.org-connector-m { display: none; }

/* ---------- Film grain texture (subtle, on dark surfaces) ---------- */
.hero__grain,
.page-hero__grain,
.cta-band__grain,
.site-footer__grain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: overlay;
  opacity: 0.18;
}

/* 3-up hairline grid (desktop only; falls back to stacked on mobile) */
@media (min-width: 921px) {
  .pillars--3 { grid-template-columns: repeat(3, 1fr); }
}
