/* DemandX — LexHive design system (tokens taken from lexhive.com) */
:root {
  /* LexHive palette */
  --abyss: #1b2731;        /* background        hsl(207 29% 15%) */
  --abyss-deep: #121a21;   /* footer            hsl(207 29% 10%) */
  --slate: #273745;        /* card / alt band   hsl(207 28% 21%) */
  --steel: #3c5467;        /* border / muted    hsl(207 26% 32%) */
  --parchment: #d4c8b9;    /* body text         hsl(32 24% 78%) */
  --ice: #f5f8fa;          /* headings          hsl(204 33% 97%) */
  --brass: #d48f49;        /* accent            hsl(30 62% 56%) */
  --bronze: #af703c;       /* primary deep      hsl(27 49% 46%) */
  --deep-rust: #5d3219;
  --teal: #5b8fa9;
  --radius: 4px;

  --display: 'Libre Baskerville', Georgia, serif;
  --engraved: 'Cinzel', Georgia, serif;
  --body-font: 'EB Garamond', Georgia, serif;
  --label: 'Space Grotesk', -apple-system, Helvetica, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--body-font); font-size: 18px; color: var(--parchment); background: var(--abyss); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2 { font-family: var(--display); font-weight: 400; color: var(--ice); line-height: 1.25; }
h3, h4 { font-family: var(--engraved); font-weight: 500; color: var(--ice); line-height: 1.35; letter-spacing: 1.5px; text-transform: uppercase; }
[id] { scroll-margin-top: 78px; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.narrow { max-width: 900px; margin-left: auto; margin-right: auto; }
.eyebrow { font-family: var(--label); font-size: 12px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; color: var(--brass); margin-bottom: 14px; }

/* nav */
.site-header { background: rgba(27, 39, 49, .92); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--steel); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo img { height: 32px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-family: var(--label); color: var(--parchment); text-decoration: none; font-size: 12.5px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; transition: color .15s; }
.site-nav a:hover, .site-nav a.active { color: var(--ice); }
.site-nav > a { position: relative; }
.site-nav > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--brass); transform: scaleX(0); transition: transform .15s; }
.site-nav > a:hover::after, .site-nav > a.active::after { transform: scaleX(1); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--parchment); margin: 5px 0; transition: transform .2s, opacity .2s; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brass); color: var(--abyss); font-family: var(--label); font-weight: 600; padding: 10px 18px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* hero */
.hero { background: linear-gradient(160deg, var(--slate) 0%, var(--abyss) 62%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; padding: 86px 24px; }
.hero h1 { font-size: 44px; margin-bottom: 24px; }
.hero p { font-size: 19px; margin-bottom: 32px; max-width: 480px; }
.hero-art img { width: min(440px, 90%); margin: 0 auto; }
.btn { display: inline-block; font-family: var(--label); background: var(--brass); color: var(--abyss); font-weight: 600; font-size: 12.5px; letter-spacing: 1.8px; text-transform: uppercase; text-decoration: none; padding: 15px 28px; border: 1px solid var(--brass); border-radius: var(--radius); cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: #e2a163; border-color: #e2a163; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--brass); }
.btn.ghost:hover { background: rgba(212,143,73,.14); color: var(--brass); }
.btn.small { padding: 10px 18px; font-size: 11.5px; }

/* legal iconography divider */
.divider { background: var(--abyss); padding: 0 24px; }
.divider svg { display: block; max-width: 1180px; margin: 0 auto; height: 40px; width: 100%; fill: none; stroke: var(--steel); stroke-width: 1.5; }
.divider svg path { fill: rgba(212,143,73,.18); stroke: var(--brass); }
.divider svg g line { stroke: var(--brass); }

/* about + service tiles */
.about { padding: 78px 0 84px; }
.about-intro h2 { font-size: 36px; margin-bottom: 22px; }
.about-intro p { margin-bottom: 18px; }
.about-intro a { color: var(--brass); text-decoration: none; border-bottom: 1px solid rgba(212,143,73,.45); }
.about-intro a:hover { border-bottom-color: var(--brass); }

.stat-row { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin: 46px auto 0; max-width: 680px; text-align: center; }
.stat-row li { border-left: 1px solid var(--steel); padding: 6px 16px; }
.stat-row li:first-child { border-left: 0; }
.stat-num { display: block; font-family: var(--display); font-size: 42px; line-height: 1.1; color: var(--brass); }
.stat-num.tbc { font-family: var(--label); font-size: 20px; letter-spacing: 2px; color: var(--steel); border: 1px dashed var(--steel); border-radius: var(--radius); padding: 8px 0; }
.stat-label { display: block; font-family: var(--label); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--parchment); margin-top: 10px; }
.stat-note { text-align: center; font-size: 15px; color: var(--steel); margin-top: 14px; }

.tile-grid { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; margin-top: 56px; }
.tile-grid > li { grid-column: span 2; }
.tile-grid > li:nth-child(4) { grid-column: 2 / span 2; }
.tile-grid > li:nth-child(5) { grid-column: 4 / span 2; }
.tile { background: var(--slate); border: 1px solid var(--steel); border-radius: var(--radius); padding: 30px 28px; }
.tile-icon { display: block; width: 44px; height: 44px; margin-bottom: 18px; }
.tile-icon svg { width: 44px; height: 44px; fill: none; stroke: var(--brass); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font-size: 15px; margin-bottom: 12px; }
.tile p { font-size: 17px; }
.world-map { margin: 60px auto 0; width: min(760px, 100%); border-radius: var(--radius); }

/* features */
.feature { padding: 92px 0; }
.feature.alt { background: var(--slate); border-top: 1px solid rgba(60,84,103,.5); border-bottom: 1px solid rgba(60,84,103,.5); }
.feature-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.feature-grid.flip .feature-copy { order: 2; }
.feature-grid.flip .feature-art { order: 1; }
.feature-num { display: block; font-family: var(--engraved); font-size: 46px; font-weight: 600; color: var(--brass); line-height: 1; margin-bottom: 16px; }
.feature h2 { font-size: 31px; margin-bottom: 16px; }
.feature h3 { font-family: var(--body-font); font-size: 20px; font-weight: 500; font-style: italic; letter-spacing: normal; text-transform: none; color: var(--brass); margin-bottom: 16px; line-height: 1.45; }
.feature p { font-size: 18px; }
.feature-art img { border-radius: var(--radius); border: 1px solid var(--steel); box-shadow: 0 20px 48px rgba(0,0,0,.45); }

/* values */
.values { padding: 96px 0; border-top: 1px solid rgba(60,84,103,.5); }
.values h2 { font-size: 36px; margin-bottom: 8px; }
.value-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px; }
.value { border: 1px solid var(--steel); border-top: 2px solid var(--brass); border-radius: var(--radius); padding: 28px 26px 30px; background: linear-gradient(180deg, rgba(39,55,69,.7), rgba(27,39,49,.7)); }
.value-num { font-family: var(--engraved); font-size: 30px; font-weight: 600; color: var(--brass); line-height: 1; }
.value h3 { font-size: 15px; margin: 14px 0 10px; }
.value-lede { font-style: italic; color: var(--ice); margin-bottom: 10px; }
.value p { font-size: 17px; }

/* team teaser */
.team-teaser { padding: 92px 0; }
.team-teaser.alt { background: var(--slate); border-top: 1px solid rgba(60,84,103,.5); border-bottom: 1px solid rgba(60,84,103,.5); }
.team-teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.team-teaser h2 { font-size: 31px; margin-bottom: 16px; }
.team-teaser p { margin-bottom: 28px; }
.team-teaser-art img { border-radius: var(--radius); border: 1px solid var(--steel); box-shadow: 0 20px 48px rgba(0,0,0,.45); }

/* team page */
.page-head { padding: 72px 0 8px; }
.page-head h1 { font-size: 40px; margin-bottom: 16px; }
.roster { padding: 48px 0 92px; }
.roster-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.person { background: var(--slate); border: 1px solid var(--steel); border-radius: var(--radius); padding: 26px; }
.avatar { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--abyss); border: 1px solid var(--steel); display: grid; place-items: center; margin-bottom: 20px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback { font-family: var(--engraved); font-size: 52px; color: var(--steel); }
.person[data-photo="pending"] .avatar { background: repeating-linear-gradient(135deg, rgba(60,84,103,.18) 0 12px, transparent 12px 24px), var(--abyss); }
.person h2 { font-size: 24px; margin-bottom: 4px; }
.role { font-family: var(--label); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; }
.bio { margin-top: 16px; border-top: 1px solid var(--steel); padding-top: 14px; }
.pending-copy { font-size: 16px; color: var(--steel); font-style: italic; }

.intake { padding: 92px 0; }
.intake.alt { background: var(--slate); border-top: 1px solid rgba(60,84,103,.5); }
.intake h2 { font-size: 31px; margin-bottom: 16px; }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0 40px; }
.photo-strip figure { border: 1px solid var(--steel); border-radius: var(--radius); overflow: hidden; background: var(--abyss); }
.photo-strip img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.photo-strip figcaption { font-family: var(--label); font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--parchment); padding: 12px 14px; }

/* footer */
.site-footer { background: var(--abyss-deep); color: var(--parchment); border-top: 1px solid var(--steel); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding: 72px 24px 52px; }
.footer-col h4 { font-size: 13px; letter-spacing: 2px; margin-bottom: 18px; color: var(--ice); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--parchment); text-decoration: none; font-size: 17px; }
.footer-col a:hover { color: var(--brass); }
.footer-mail { display: inline-block; margin-top: 12px; color: var(--brass); text-decoration: none; font-weight: 600; }
.footer-mail:hover { text-decoration: underline; }
.loc { margin-bottom: 18px; }
.loc-city { display: block; font-family: var(--label); font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--ice); margin-bottom: 6px; }
.loc p { font-size: 16px; line-height: 1.55; }
.footer-bar { border-top: 1px solid rgba(60,84,103,.5); padding: 22px 0; font-family: var(--label); font-size: 12.5px; letter-spacing: .6px; }
.footer-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 26px; width: auto; }
.footer-brand a { color: var(--brass); text-decoration: none; }
.footer-links a { color: var(--parchment); text-decoration: none; }
.footer-links a:hover { color: var(--brass); }

/* responsive */
@media (max-width: 1000px) {
  .tile-grid, .value-grid, .roster-grid { grid-template-columns: repeat(2, 1fr); }
  .tile-grid > li, .tile-grid > li:nth-child(4), .tile-grid > li:nth-child(5) { grid-column: auto; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  body { font-size: 17px; }
  .hero-grid, .feature-grid, .team-teaser-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 52px; }
  .feature-grid.flip .feature-copy { order: 1; }
  .feature-grid.flip .feature-art { order: 2; }
  .hero h1 { font-size: 32px; }
  .page-head h1 { font-size: 30px; }
  .about-intro h2, .values h2 { font-size: 28px; }
  .feature h2, .team-teaser h2, .intake h2 { font-size: 26px; }
  .stat-row { grid-template-columns: 1fr; gap: 18px; }
  .stat-row li { border-left: 0; border-top: 1px solid var(--steel); padding-top: 18px; }
  .stat-row li:first-child { border-top: 0; }
  .photo-strip { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--abyss); border-bottom: 1px solid var(--steel); flex-direction: column; align-items: flex-start; padding: 18px 24px 24px; gap: 18px; box-shadow: 0 16px 30px rgba(0,0,0,.45); max-height: calc(100vh - 66px); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .site-nav > a::after { display: none; }
  .footer-bar .container { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .tile-grid, .value-grid, .roster-grid, .footer-grid { grid-template-columns: 1fr; }
  .tile-grid > li, .tile-grid > li:nth-child(4), .tile-grid > li:nth-child(5) { grid-column: auto; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.map-embed{margin:28px 0;border:1px solid rgba(255,255,255,.12);border-radius:var(--radius);overflow:hidden}.map-embed iframe{display:block}
