/* ==========================================================================
   Fullmore Taylor Legacy Group LLC — site stylesheet
   One design system for every page. Tokens first, then base, layout,
   components, page-specific pieces, and utilities.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset, SIL Open Font License) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --c-bg: #070706;
  --c-bg-raised: #0c0b09;
  --c-surface: #12110e;
  --c-surface-2: #181611;
  --c-line: #2a251b;
  --c-line-gold: rgba(216, 173, 85, 0.32);
  --c-text: #f3eee4;
  --c-text-soft: #d6cfc2;
  --c-muted: #aaa294;
  --c-gold: #d8ad55;
  --c-gold-bright: #f0cf86;
  --c-gold-deep: #a97b2c;
  --c-on-gold: #15110a;
  --c-success: #9fd3a4;
  --c-error: #f3a29a;

  /* Type */
  --f-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-xl: clamp(1.35rem, 1.1rem + 0.8vw, 1.6rem);
  --fs-h3: clamp(1.45rem, 1.25rem + 0.7vw, 1.75rem);
  --fs-h2: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem);
  --fs-h1: clamp(2.6rem, 1.6rem + 4.4vw, 5.25rem);

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-section: clamp(4rem, 3rem + 5vw, 7.5rem);

  /* Shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-card: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --shadow-lift: 0 26px 50px -20px rgba(0, 0, 0, 0.85);

  /* Layout */
  --container: 1180px;
  --container-narrow: 780px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --header-h: 76px;

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

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--c-bg);
  background-image:
    radial-gradient(ellipse 60% 40% at 80% -5%, rgba(216, 173, 85, 0.09), transparent 70%),
    radial-gradient(ellipse 50% 35% at 0% 100%, rgba(216, 173, 85, 0.04), transparent 70%);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  overflow-x: hidden;
}

main { flex: 1 0 auto; }

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 0 0 var(--sp-4);
  color: var(--c-text);
  text-wrap: balance;
  font-variant-numeric: lining-nums;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-size: var(--fs-xl); font-weight: 600; }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--c-gold-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--c-text); }

strong { font-weight: 600; color: var(--c-text); }

::selection { background: var(--c-gold); color: var(--c-on-gold); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--c-gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 100;
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-gold);
  color: var(--c-on-gold);
  font-weight: 700;
  border-radius: var(--r-sm);
  text-decoration: none;
}
.skip-link:focus { top: var(--sp-3); color: var(--c-on-gold); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.section { padding-block: var(--sp-section); position: relative; }
.section + .section { border-top: 1px solid var(--c-line); }
.section--raised { background: linear-gradient(180deg, var(--c-bg-raised), var(--c-bg)); }

.section-head { max-width: 760px; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--c-muted); font-size: var(--fs-lg); }

.split {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
  .split--top { align-items: start; }
}

.grid { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.stack > * + * { margin-top: var(--sp-5); }

/* ---------- Typography components ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-4);
  font-family: var(--f-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.section-head--center .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.lead {
  font-size: var(--fs-lg);
  color: var(--c-text-soft);
  max-width: 62ch;
}

.muted { color: var(--c-muted); }

.accent { color: var(--c-gold-bright); font-style: italic; }

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  color: var(--c-gold);
  margin: var(--sp-6) auto;
  max-width: 320px;
}
.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-line-gold));
}
.ornament::after { transform: scaleX(-1); }
.ornament span {
  width: 8px; height: 8px;
  background: var(--c-gold);
  transform: rotate(45deg);
}

.quote {
  font-family: var(--f-serif);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  font-style: italic;
  line-height: 1.25;
  color: var(--c-text);
  text-align: center;
  max-width: 24ch;
  margin: 0 auto;
}
.quote-attrib {
  display: block;
  text-align: center;
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--f-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn svg { width: 1em; height: 1em; flex: none; }
.btn--primary {
  background: linear-gradient(135deg, var(--c-gold-bright), var(--c-gold) 55%, var(--c-gold-deep));
  color: var(--c-on-gold);
}
.btn--primary:hover {
  color: var(--c-on-gold);
  box-shadow: 0 10px 28px -10px rgba(216, 173, 85, 0.55);
  transform: translateY(-1px);
}
.btn--secondary {
  border-color: var(--c-line-gold);
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.015);
}
.btn--secondary:hover {
  border-color: var(--c-gold);
  color: var(--c-gold-bright);
}
.btn[disabled],
.btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-gold-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--c-line-gold);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--c-text); border-color: var(--c-gold); }
.text-link svg { width: 1em; height: 1em; transition: transform 0.2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 6, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--c-text);
  flex: none;
}
.brand:hover { color: var(--c-text); }
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}
.brand__text {
  display: flex;
  flex-direction: column;
  font-family: var(--f-serif);
  line-height: 1.05;
  text-transform: uppercase;
}
.brand__name {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--c-gold-bright);
}
.brand__sub {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--c-text-soft);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0 var(--sp-4);
  border: 1px solid var(--c-line-gold);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--c-text);
  font: 600 var(--fs-xs) / 1 var(--f-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 12px;
}
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease), top 0.25s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 0.2rem + 1.2vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: var(--sp-2) 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  text-decoration: none;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.site-nav__link:hover { color: var(--c-text); }
.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: var(--c-gold-bright); }

.site-nav__link--portal {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--c-line-gold);
  border-radius: var(--r-pill);
  color: var(--c-gold-bright);
}
.site-nav__link--portal svg { width: 14px; height: 14px; }
.site-nav__link--portal::after { display: none; }
.site-nav__link--portal:hover,
.site-nav__link--portal[aria-current="page"] {
  border-color: var(--c-gold);
  background: rgba(216, 173, 85, 0.08);
  color: var(--c-gold-bright);
}

/* Collapsed navigation (only when JS is available to open it) */
@media (max-width: 1079px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: #0a0a09;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-lift);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .js .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-3) var(--gutter) var(--sp-5);
  }
  .js .site-nav__list li + li { border-top: 1px solid var(--c-line); }
  .js .site-nav__link {
    display: flex;
    padding: var(--sp-4) 0;
    font-size: var(--fs-sm);
  }
  .js .site-nav__link::after { display: none; }
  .js .site-nav__link--portal {
    justify-content: center;
    margin-top: var(--sp-4);
    padding: var(--sp-3) var(--sp-4);
  }
  .js .site-nav__list li:last-child { border-top: 0; }

  /* Without JS the list simply wraps beneath the brand */
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: var(--sp-3); }
  html:not(.js) .site-nav__list { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .eyebrow { font-size: 0.72rem; letter-spacing: 0.14em; gap: var(--sp-2); }
  .eyebrow::before, .section-head--center .eyebrow::after { width: 18px; }
  .brand__sub { display: none; }
  .brand__name { font-size: 1.05rem; }
  .brand img { width: 42px; height: 42px; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 0 var(--sp-3); }
}

/* ---------- Hero (home) ---------- */
.hero {
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(3.5rem, 2rem + 5vw, 6rem);
}
.hero__grid {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-8); }
}
.hero h1 { margin-bottom: var(--sp-5); font-size: clamp(2.6rem, 1.5rem + 3.6vw, 4.6rem); }
.hero h1 em { font-style: italic; color: var(--c-gold-bright); }
.hero__company {
  font-family: var(--f-serif);
  font-size: var(--fs-xl);
  color: var(--c-text-soft);
  margin-bottom: var(--sp-3);
}
.hero__emblem {
  position: relative;
  margin: 0 auto;
  max-width: 460px;
  width: 100%;
}
.hero__emblem::before {
  content: "";
  position: absolute;
  inset: 8%;
  background: radial-gradient(circle, rgba(216, 173, 85, 0.18), transparent 68%);
  filter: blur(24px);
  z-index: -1;
}
.hero__emblem img {
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line-gold);
  box-shadow: var(--shadow-lift);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem);
  border-bottom: 1px solid var(--c-line);
}
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: var(--sp-5); }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-5);
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--c-muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: var(--sp-2); color: var(--c-line-gold); }
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-gold-bright); }
.breadcrumb [aria-current="page"] { color: var(--c-text-soft); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  background: linear-gradient(180deg, var(--c-surface-2), var(--c-surface));
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}
.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--c-muted); }
.card__index {
  font-family: var(--f-serif);
  font-size: var(--fs-sm);
  letter-spacing: 0.2em;
  color: var(--c-gold);
  margin-bottom: var(--sp-4);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--sp-5);
  border: 1px solid var(--c-line-gold);
  border-radius: 12px;
  color: var(--c-gold);
}
.card__icon svg { width: 22px; height: 22px; }
.card--quiet { background: transparent; box-shadow: none; }
.card--gold { border-color: var(--c-line-gold); }

/* ---------- Venture (portfolio) cards ---------- */
.venture-list { display: grid; gap: var(--sp-5); }
@media (min-width: 760px) { .venture-list--preview { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); } }

.venture {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  height: 100%;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  background: linear-gradient(180deg, var(--c-surface-2), var(--c-surface));
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}
.venture__top { display: flex; align-items: center; gap: var(--sp-4); }
.venture__mark {
  font-variant-numeric: lining-nums;
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 1px solid var(--c-line-gold);
  background: radial-gradient(circle at 30% 20%, rgba(240, 207, 134, 0.16), transparent 70%), var(--c-bg);
  font-family: var(--f-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--c-gold-bright);
  letter-spacing: 0.02em;
}
.venture__name { margin: 0; font-size: var(--fs-h3); }
.venture__category {
  margin: 2px 0 0;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.venture__desc { color: var(--c-text-soft); margin: 0; }
.venture__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-line);
}
.venture__note { margin: 0; font-size: var(--fs-sm); color: var(--c-muted); }

/* Full-width portfolio entries */
@media (min-width: 900px) {
  .venture--feature {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--sp-6) var(--sp-8);
    align-items: start;
  }
  .venture--feature .venture__body { grid-column: 2; grid-row: 1 / span 2; }
  .venture--feature .venture__foot { grid-column: 1; border-top: 0; padding-top: 0; margin-top: 0; }
}
.venture__body > * + * { margin-top: var(--sp-4); }
.venture__points {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--c-muted);
  font-size: var(--fs-sm);
}
.venture__points li { position: relative; padding-left: 1.4rem; }
.venture__points li + li { margin-top: var(--sp-2); }
.venture__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--c-gold);
  transform: rotate(45deg);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-muted);
}
.badge--live { border-color: rgba(159, 211, 164, 0.35); color: var(--c-success); }
.badge--live::before { background: var(--c-success); }
.badge--dev { border-color: var(--c-line-gold); color: var(--c-gold-bright); }
.badge--dev::before { background: var(--c-gold); }

/* ---------- Value / pillar lists ---------- */
.value-grid {
  display: grid;
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (min-width: 640px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .value-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.value-grid.value-grid--stack { grid-template-columns: 1fr; }
.value {
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  background: var(--c-bg-raised);
}
.value h3 {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-2);
}
.value h3::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--c-gold);
  transform: rotate(45deg);
}
.value p { color: var(--c-muted); font-size: var(--fs-sm); }

.pillar {
  display: grid;
  gap: var(--sp-5);
  padding-block: var(--sp-7);
  border-top: 1px solid var(--c-line);
}
.pillar:last-child { border-bottom: 1px solid var(--c-line); }
@media (min-width: 900px) {
  .pillar { grid-template-columns: 0.4fr 1fr 1fr; gap: var(--sp-7); }
}
.pillar__num {
  font-family: var(--f-serif);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  line-height: 1;
  color: var(--c-gold);
}
.pillar h2, .pillar h3 { font-size: var(--fs-h3); font-weight: 600; }
.pillar__label {
  margin-bottom: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.pillar p { color: var(--c-text-soft); }

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--c-text-soft);
}
.check-list li + li { margin-top: var(--sp-3); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.45em;
  width: 0.45rem;
  height: 0.8rem;
  border: solid var(--c-gold);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Numbered process steps */
.steps { counter-reset: step; display: grid; gap: var(--sp-5); margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line-gold);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: var(--sp-3);
  font-family: var(--f-serif);
  font-size: var(--fs-lg);
  letter-spacing: 0.16em;
  color: var(--c-gold);
}
.steps h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.steps p { color: var(--c-muted); font-size: var(--fs-sm); }

/* ---------- Feature panel ---------- */
.panel {
  padding: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(216, 173, 85, 0.1), transparent 70%),
    var(--c-surface);
  border: 1px solid var(--c-line-gold);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
}
.panel__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--sp-5);
  border-radius: 50%;
  border: 1px solid var(--c-line-gold);
  color: var(--c-gold);
}
.panel__icon svg { width: 24px; height: 24px; }
.panel h2 { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem); }

.note {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--c-line);
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.note svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--c-gold); }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--gutter);
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(216, 173, 85, 0.12), transparent 70%),
    var(--c-surface);
  border: 1px solid var(--c-line-gold);
  border-radius: var(--r-lg);
}
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p:not(.eyebrow) { max-width: 58ch; margin-inline: auto; color: var(--c-text-soft); }
.cta-band .btn-row { justify-content: center; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--sp-5); }
.form__row { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}
.field { display: grid; gap: var(--sp-2); }
.field label,
.field legend {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text);
}
.field .req { color: var(--c-gold); }
.field__hint { font-size: var(--fs-xs); color: var(--c-muted); }
.input,
.select,
.textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 1rem;
  background: var(--c-bg);
  color: var(--c-text);
  border: 1px solid #3a3428;
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d8ad55' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 18px;
}
.select option { background: var(--c-surface); color: var(--c-text); }
.input:hover, .select:hover, .textarea:hover { border-color: #57492f; }
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: none;
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(216, 173, 85, 0.25);
}
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: var(--c-error); }
.field__error {
  display: none;
  font-size: var(--fs-xs);
  color: var(--c-error);
}
.field.has-error .field__error { display: block; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  display: none;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-sm);
  border: 1px solid var(--c-line);
  font-size: var(--fs-sm);
}
.form-status.is-visible { display: block; }
.form-status--success { border-color: rgba(159, 211, 164, 0.4); background: rgba(159, 211, 164, 0.07); color: var(--c-success); }
.form-status--error { border-color: rgba(243, 162, 154, 0.4); background: rgba(243, 162, 154, 0.07); color: var(--c-error); }
.form-status--error a, .form-status--success a { color: inherit; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.form__foot p { margin: 0; font-size: var(--fs-xs); color: var(--c-muted); max-width: 46ch; }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(21, 17, 10, 0.3);
  border-top-color: var(--c-on-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Contact details ---------- */
.contact-detail {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.contact-detail + .contact-detail { margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--c-line); }
.contact-detail .card__icon { margin-bottom: 0; flex: none; }
.contact-detail h3 { font-size: var(--fs-lg); font-family: var(--f-sans); font-weight: 600; margin-bottom: var(--sp-1); }
.contact-detail p { margin: 0; color: var(--c-muted); font-size: var(--fs-sm); }
.contact-detail a { overflow-wrap: anywhere; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 72ch; }
.prose h2 {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p, .prose li { color: var(--c-text-soft); }
.prose ul { padding-left: 1.25rem; margin: 0 0 var(--sp-4); }
.prose li + li { margin-top: var(--sp-2); }
.prose li::marker { color: var(--c-gold); }

.legal-layout { display: grid; gap: var(--sp-7); }
@media (min-width: 960px) {
  .legal-layout { grid-template-columns: 240px 1fr; gap: var(--sp-8); align-items: start; }
  .toc { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
}
.toc {
  padding: var(--sp-5);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-bg-raised);
}
.toc h2 {
  font-family: var(--f-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--sp-3);
}
.toc ol { margin: 0; padding-left: 1.2rem; font-size: var(--fs-sm); }
.toc li + li { margin-top: var(--sp-2); }
.toc li::marker { color: var(--c-muted); }
.toc a { color: var(--c-text-soft); text-decoration: none; }
.toc a:hover { color: var(--c-gold-bright); text-decoration: underline; }
.meta-line { font-size: var(--fs-sm); color: var(--c-muted); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(4rem, 3rem + 6vw, 8rem); }
.notfound__code {
  font-family: var(--f-serif);
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  line-height: 1;
  color: var(--c-gold);
  margin-bottom: var(--sp-3);
}
.notfound h1 { font-size: var(--fs-h2); }
.notfound .lead { margin-inline: auto; }
.notfound .btn-row { justify-content: center; }
.notfound__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3) var(--sp-5);
  margin: var(--sp-7) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  padding-block: var(--sp-8) var(--sp-6);
  background: #050504;
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.site-footer__grid { display: grid; gap: var(--sp-7); }
@media (min-width: 760px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 1080px) {
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
.site-footer .brand { margin-bottom: var(--sp-4); }
.site-footer__mission { max-width: 40ch; }
.site-footer h2 {
  font-family: var(--f-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--sp-4);
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: var(--sp-2); }
.site-footer a { color: var(--c-text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--c-gold-bright); text-decoration: underline; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-xs);
}
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; gap: var(--sp-5); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.text-center { text-align: center; }
.lead--center { margin-inline: auto; }
.btn-row--center { justify-content: center; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .skip-link, .btn-row, .toc { display: none; }
  a { color: #000; }
  h1, h2, h3, .prose p, .prose li { color: #000; }
}

/* Serif numerals: Cormorant defaults to old-style figures; use lining figures for numbering. */
.steps li::before,
.pillar__num,
.card__index,
.notfound__code,
.quote { font-variant-numeric: lining-nums; }
