/* =========================================================================
   YANDEH CONSULTING LLC — Stylesheet
   Aesthetic: Refined editorial. Serif display, sans body, navy/charcoal/cream.
   Fonts loaded via <link> in HTML head for performance (with system fallbacks).
   ========================================================================= */

/* ----- Tokens ----------------------------------------------------------- */
:root {
  /* Brand palette — anchored on logo navy + warm neutrals */
  --navy-900: #0a1f3d;       /* deepest brand navy (logo Y mark) */
  --navy-800: #11294f;
  --navy-700: #1a3866;
  --navy-500: #2c4f87;
  --navy-300: #6b85ad;

  --charcoal: #1c1c1e;
  --slate-700: #3a3f47;
  --slate-500: #6c7280;
  --slate-300: #b3b8c2;
  --slate-100: #e6e8ec;

  --cream-50:  #fafaf6;       /* primary background */
  --cream-100: #f4f1ea;
  --cream-200: #ebe6d9;
  --paper:     #ffffff;

  --gold:      #a48634;       /* restrained accent (logo gray-bar substitute) */
  --gold-soft: #c9b577;

  --rule:      #d9d4c5;

  /* Type stack — Google Fonts loaded in HTML; rich system fallbacks here */
  --serif: 'Cormorant Garamond', 'Iowan Old Style', 'Apple Garamond', Garamond, 'Times New Roman', Georgia, serif;
  --sans:  'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, 'Courier New', monospace;

  /* Layout */
  --container: 1240px;
  --container-narrow: 880px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ----- Typography ------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  line-height: 1.12;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; color: var(--navy-800); }

p { color: var(--slate-700); }
p + p { margin-top: 1em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--slate-700);
}

.rule {
  width: 56px;
  height: 1px;
  background: var(--gold);
  border: none;
  margin: 1.5rem 0;
}

/* ----- Layout primitives ----------------------------------------------- */
.container       { width: 100%; max-width: var(--container);        margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow{ width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }

section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

/* ----- Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 246, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--navy-900);
}
.brand-mark { width: 38px; height: 42px; flex-shrink: 0; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy-900);
}
.brand-name sup {
  font-size: 0.55em;
  font-weight: 500;
  vertical-align: super;
  margin-left: 1px;
}
.brand-sub {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-top: 4px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
}
.nav-list a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate-700);
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}
.nav-list a:hover,
.nav-list a.is-active { color: var(--navy-900); }
.nav-list a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--gold);
}

.nav-list a.nav-cta,
a.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: var(--navy-900);
  color: var(--cream-50);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 1px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-list a.nav-cta:hover,
a.nav-cta:hover { background: var(--navy-700); color: var(--cream-50); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  color: var(--navy-900);
}

@media (max-width: 880px) {
  .nav-list, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-list.is-open {
    display: flex;
    position: absolute;
    top: 78px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--cream-50);
    border-bottom: 1px solid var(--rule);
  }
  .nav-list.is-open a { padding: 0.6rem 0; font-size: 1rem; }
  .nav-list.is-open .nav-cta { display: inline-flex; margin-top: 0.8rem; }
  .brand-sub { display: none; }
}

/* ----- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 85% 10%, rgba(10, 31, 61, 0.05), transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(164, 134, 52, 0.06), transparent 60%),
    var(--cream-50);
}
.hero::before {
  /* subtle vertical rule down the right */
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  right: 8%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--rule) 20%, var(--rule) 80%, transparent);
  opacity: 0.6;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: end;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.6fr 1fr; gap: 5rem; }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.hero-eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
}
.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 18ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--slate-700);
  max-width: 52ch;
  margin-bottom: 2.4rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  align-items: center;
}
.hero-meta {
  border-left: 1px solid var(--rule);
  padding-left: 1.6rem;
  font-size: 0.92rem;
  color: var(--slate-500);
}
.hero-meta strong {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--navy-800);
  margin-bottom: 0.2rem;
}

/* ----- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 1px;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--navy-900);
  color: var(--cream-50);
}
.btn-primary:hover { background: var(--navy-700); transform: translateY(-1px); box-shadow: 0 12px 28px -16px rgba(10, 31, 61, 0.45); }
.btn-ghost {
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-ghost:hover { background: var(--navy-900); color: var(--cream-50); }
.btn-link {
  color: var(--navy-800);
  font-weight: 500;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-link:hover { color: var(--gold); }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ----- Section heads --------------------------------------------------- */
.sec-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 880px) {
  .sec-head { grid-template-columns: 1fr 1.3fr; gap: 4rem; }
}
.sec-head .eyebrow { margin-bottom: 0.6rem; }
.sec-head h2 { max-width: 14ch; }
.sec-head .sec-intro {
  font-size: 1.05rem;
  color: var(--slate-700);
  max-width: 58ch;
}

/* ----- Differentiator block (home) ------------------------------------ */
.diff {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 960px) {
  .diff-grid { grid-template-columns: 0.85fr 1.4fr; gap: 5rem; }
}
.diff-aside {
  position: relative;
  padding-top: 0.5rem;
}
.diff-aside .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.diff-aside h2 { margin-top: 0.8rem; max-width: 12ch; }
.diff-body p { font-size: 1.05rem; }
.diff-body p + p { margin-top: 1.4rem; }

/* ----- Service cards --------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 720px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.svc {
  padding: 2.5rem 2rem 2.8rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: transparent;
  transition: background 0.4s var(--ease);
  position: relative;
}
.svc:hover { background: var(--paper); }
@media (min-width: 1080px) { .svc:nth-child(4n) { border-right: none; } }
@media (min-width: 720px) and (max-width: 1079px) { .svc:nth-child(2n) { border-right: none; } }
@media (max-width: 719px) { .svc { border-right: none; } }

.svc-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}
.svc h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 1rem;
  line-height: 1.25;
}
.svc p {
  font-size: 0.95rem;
  color: var(--slate-700);
  line-height: 1.6;
}

/* ----- Engagement cards ----------------------------------------------- */
.engagement {
  background: var(--navy-900);
  color: var(--cream-100);
  position: relative;
  overflow: hidden;
}
.engagement::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 80% 0%, rgba(164, 134, 52, 0.10), transparent 50%),
    radial-gradient(ellipse 70% 60% at 0% 100%, rgba(107, 133, 173, 0.10), transparent 50%);
  pointer-events: none;
}
.engagement > .container { position: relative; z-index: 1; }
.engagement h2, .engagement h3 { color: var(--cream-50); }
.engagement .eyebrow { color: var(--gold-soft); }
.engagement .sec-intro { color: var(--slate-300); }
.engagement .sec-head { border-color: rgba(255, 255, 255, 0.12); }

.eng-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
@media (min-width: 720px)  { .eng-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .eng-grid { grid-template-columns: repeat(4, 1fr); } }

.eng {
  padding: 2.4rem 1.8rem 2.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (min-width: 1080px) { .eng:nth-child(4n) { border-right: none; } }
@media (min-width: 720px) and (max-width: 1079px) { .eng:nth-child(2n) { border-right: none; } }
@media (max-width: 719px) { .eng { border-right: none; } }
.eng .num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gold-soft);
  letter-spacing: 0.18em;
  margin-bottom: 1.2rem;
}
.eng h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}
.eng p {
  font-size: 0.92rem;
  color: var(--slate-300);
  line-height: 1.6;
}

/* ----- Industries strip ------------------------------------------------ */
.industries {
  background: var(--cream-100);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.ind-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 880px) {
  .ind-grid { grid-template-columns: 0.85fr 1.4fr; gap: 5rem; }
}
.ind-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.ind-list li {
  flex: 1 1 auto;
  min-width: 200px;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 400;
  color: var(--navy-800);
}
.ind-list li:last-child { border-right: none; }

/* ----- Origin / Yandé block ------------------------------------------- */
.origin {
  background: var(--cream-50);
}
.origin-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: clamp(2.5rem, 5vw, 4rem);
  background: var(--paper);
  border: 1px solid var(--rule);
  position: relative;
}
@media (min-width: 880px) {
  .origin-card { grid-template-columns: 0.7fr 1.4fr; gap: 4rem; }
}
.origin-card::before {
  content: "Y";
  position: absolute;
  top: -0.05em;
  right: 0.1em;
  font-family: var(--serif);
  font-size: clamp(8rem, 14vw, 14rem);
  font-style: italic;
  font-weight: 400;
  color: var(--cream-100);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}
.origin-card > * { position: relative; z-index: 1; }
.origin-aside h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 2.4rem;
  color: var(--navy-900);
  margin-bottom: 0.4rem;
}
.origin-aside .pron {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--slate-500);
  letter-spacing: 0.06em;
}
.origin-body p { font-size: 1.02rem; }
.origin-body p + p { margin-top: 1.2rem; }

/* ----- About-page hero & bio ------------------------------------------ */
.page-head {
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--cream-50);
  border-bottom: 1px solid var(--rule);
}
.page-head h1 { max-width: 22ch; margin-top: 0.8rem; }
.page-head .lede { margin-top: 1.5rem; max-width: 64ch; }

.bio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 880px) {
  .bio-grid { grid-template-columns: 0.85fr 1.4fr; gap: 4.5rem; align-items: start; }
}
.bio-photo-wrap {
  position: sticky;
  top: 110px;
}
.bio-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(8%) contrast(0.98);
  border-bottom: 3px solid var(--gold);
}
.bio-id {
  margin-top: 1.4rem;
}
.bio-id .name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--navy-900);
  line-height: 1.1;
}
.bio-id .role {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-top: 0.4rem;
}

.bio-body p { font-size: 1.05rem; }
.bio-body p + p { margin-top: 1.3rem; }

.bio-section { margin-top: 3rem; }
.bio-section h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--rule);
}
.bio-section p { font-size: 1rem; }
.bio-section ul {
  list-style: none;
  margin-top: 0.6rem;
}
.bio-section ul li {
  padding: 0.6rem 0;
  border-bottom: 1px dotted var(--rule);
  font-size: 0.98rem;
  color: var(--slate-700);
}
.bio-section ul li:last-child { border-bottom: none; }
.bio-section ul li strong {
  display: block;
  color: var(--navy-800);
  font-weight: 600;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.cred {
  padding: 0.55rem 1rem;
  border: 1px solid var(--navy-900);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy-900);
  letter-spacing: 0.03em;
  background: var(--paper);
}

.research-block {
  margin-top: 3rem;
  padding: 2.2rem 2rem;
  background: var(--navy-900);
  color: var(--cream-100);
  position: relative;
}
.research-block::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
}
.research-block h3 {
  color: var(--gold-soft);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: none;
  padding: 0;
}
.research-block p {
  color: var(--slate-300);
  font-size: 1rem;
  line-height: 1.7;
}
.research-block p + p { margin-top: 1rem; }
.research-block em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--cream-50);
  font-size: 1.08em;
}
.research-block .nda {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: var(--slate-300);
  font-style: italic;
}

/* ----- Services page extended ----------------------------------------- */
.svc-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 4rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 880px) {
  .svc-detail { grid-template-columns: 0.5fr 1.4fr; }
}
.svc-detail:last-child { border-bottom: none; }
.svc-detail .num {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.svc-detail h3 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  font-weight: 500;
  color: var(--navy-900);
  margin-top: 0.5rem;
}
.svc-detail p { font-size: 1.02rem; }
.svc-detail ul {
  list-style: none;
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 720px) {
  .svc-detail ul { grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; }
}
.svc-detail ul li {
  padding-left: 1.2rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--slate-700);
}
.svc-detail ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 6px; height: 1px;
  background: var(--gold);
}

/* ----- Contact page --------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 5rem; }
}
.contact-info h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
  margin-top: 2rem;
}
.contact-info h3:first-of-type { margin-top: 0; }
.contact-info p, .contact-info a {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--navy-800);
  line-height: 1.5;
}
.contact-info a:hover { color: var(--gold); }
.contact-info address {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--navy-800);
  line-height: 1.55;
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.form-card h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.form-card .form-intro {
  font-size: 0.95rem;
  color: var(--slate-700);
  margin-bottom: 2.2rem;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.4rem;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
.field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-800);
  margin-bottom: 0.5rem;
}
.field label .req {
  color: var(--gold);
  margin-left: 3px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--cream-50);
  border: 1px solid var(--rule);
  border-radius: 1px;
  font-size: 0.98rem;
  color: var(--charcoal);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(10, 31, 61, 0.08);
}
.field textarea {
  resize: vertical;
  min-height: 140px;
  font-family: var(--sans);
}
.form-card button[type="submit"] {
  margin-top: 1rem;
  padding: 1rem 2.2rem;
  background: var(--navy-900);
  color: var(--cream-50);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.form-card button[type="submit"]:hover { background: var(--navy-700); transform: translateY(-1px); }

.form-status {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
  border-left: 3px solid var(--gold);
  background: var(--cream-100);
  color: var(--navy-800);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-error { border-color: #b03434; color: #6e1f1f; background: #fbecec; }

/* hidden honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ----- Legal page ----------------------------------------------------- */
.legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 960px) {
  .legal-grid { grid-template-columns: 220px 1fr; gap: 4rem; align-items: start; }
}
.legal-toc {
  position: sticky;
  top: 110px;
  list-style: none;
  border-left: 1px solid var(--rule);
  padding-left: 1.2rem;
}
.legal-toc li { padding: 0.45rem 0; }
.legal-toc a {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  transition: color 0.25s var(--ease);
}
.legal-toc a:hover { color: var(--navy-900); }

.legal-section {
  padding-bottom: 4rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--rule);
}
.legal-section:last-child { border-bottom: none; margin-bottom: 0; }
.legal-section h2 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}
.legal-section .eff-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--slate-500);
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
  display: block;
}
.legal-section h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-top: 2.2rem;
  margin-bottom: 0.7rem;
}
.legal-section p { font-size: 0.98rem; line-height: 1.7; }
.legal-section p + p { margin-top: 0.9rem; }

/* ----- Footer --------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: var(--slate-300);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; } }
.footer-brand .brand { color: var(--cream-50); }
.footer-brand .brand-name { color: var(--cream-50); }
.footer-brand .brand-sub { color: var(--slate-300); }
.footer-brand p {
  margin-top: 1.4rem;
  max-width: 32ch;
  color: var(--slate-300);
  font-size: 0.93rem;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  font-size: 0.93rem;
  color: var(--slate-300);
  transition: color 0.25s var(--ease);
}
.footer-col a:hover { color: var(--cream-50); }

.footer-bot {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-bot p {
  font-size: 0.82rem;
  color: var(--slate-300);
  max-width: 70ch;
  line-height: 1.6;
}
.footer-bot .legal-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-bot .legal-links a {
  font-size: 0.8rem;
  color: var(--slate-300);
}
.footer-bot .legal-links a:hover { color: var(--cream-50); }

/* ----- Industries strip (revised — with descriptors) ----------------- */
.ind-list-detailed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
@media (min-width: 720px) {
  .ind-list-detailed { grid-template-columns: repeat(2, 1fr); }
}
.ind-list-detailed li {
  padding: 1.6rem 1.8rem;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
@media (min-width: 720px) { .ind-list-detailed li:nth-child(2n) { border-right: none; } }
@media (max-width: 719px) { .ind-list-detailed li { border-right: none; } }

.ind-list-detailed .ind-name {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--navy-900);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}
.ind-list-detailed .ind-desc {
  display: block;
  font-size: 0.93rem;
  color: var(--slate-700);
  line-height: 1.55;
}

/* ----- Engagement (case study) cards --------------------------------- */
.eng-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
}
@media (min-width: 880px)  { .eng-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .eng-cards { grid-template-columns: repeat(3, 1fr); } }

.eng-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  padding: 2.2rem 2rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.eng-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -28px rgba(10, 31, 61, 0.4);
}
.eng-card .eng-sector {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eng-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--navy-900);
  margin-bottom: 1.2rem;
  line-height: 1.25;
}
.eng-card .eng-row {
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px dotted var(--rule);
}
.eng-card .eng-row:last-of-type { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.eng-card .eng-row-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 0.4rem;
}
.eng-card .eng-row-text {
  font-size: 0.96rem;
  color: var(--slate-700);
  line-height: 1.55;
}
.eng-card .eng-row.eng-outcome .eng-row-label { color: var(--gold); }
.eng-card .eng-row.eng-outcome .eng-row-text {
  color: var(--navy-800);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 500;
}

.eng-disclaimer {
  margin-top: 3.5rem;
  padding: 1.4rem 1.8rem;
  background: var(--cream-100);
  border-left: 3px solid var(--gold);
  font-size: 0.92rem;
  color: var(--slate-700);
  font-style: italic;
  line-height: 1.6;
}

/* ----- Research page ------------------------------------------------- */
.research-hero {
  background: var(--navy-900);
  color: var(--cream-100);
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}
.research-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 90% 10%, rgba(164, 134, 52, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(107, 133, 173, 0.10), transparent 60%);
  pointer-events: none;
}
.research-hero > .container { position: relative; z-index: 1; }
.research-hero .eyebrow { color: var(--gold-soft); }
.research-hero h1 {
  color: var(--cream-50);
  margin-top: 0.9rem;
  max-width: 22ch;
}
.research-hero .lede {
  color: var(--slate-300);
  margin-top: 1.5rem;
  max-width: 62ch;
}
.research-hero h1 em {
  color: var(--gold-soft);
  font-style: italic;
  font-weight: 400;
}

.research-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 4rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 880px) {
  .research-section { grid-template-columns: 0.6fr 1.4fr; }
}
.research-section:last-of-type { border-bottom: none; }
.research-section .num {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.research-section h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 500;
  color: var(--navy-900);
  margin-top: 0.5rem;
  line-height: 1.2;
}
.research-section h2 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.research-section p { font-size: 1.02rem; line-height: 1.7; }
.research-section p + p { margin-top: 1.1rem; }
.research-section em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--navy-800);
}

.research-cta {
  background: var(--cream-100);
  padding: clamp(2rem, 4vw, 3rem);
  margin-top: 3rem;
  border-left: 3px solid var(--gold);
}
.research-cta h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--navy-900);
  margin-bottom: 0.8rem;
}
.research-cta p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* ----- FAQ ----------------------------------------------------------- */
.faq {
  background: var(--cream-100);
  border-top: 1px solid var(--rule);
}
.faq-list {
  border-top: 1px solid var(--rule);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.6rem 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy-900);
  transition: color 0.25s var(--ease);
}
.faq-q:hover { color: var(--gold); }
.faq-q .faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  color: var(--gold);
}
.faq-q .faq-icon::before,
.faq-q .faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.faq-q .faq-icon::before {
  top: 50%; left: 0; right: 0;
  height: 1.5px;
  transform: translateY(-50%);
}
.faq-q .faq-icon::after {
  left: 50%; top: 0; bottom: 0;
  width: 1.5px;
  transform: translateX(-50%);
}
.faq-item.is-open .faq-q .faq-icon::after { transform: translateX(-50%) scaleY(0); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-item.is-open .faq-a { max-height: 500px; }
.faq-a-inner {
  padding: 0 0 1.8rem;
  font-size: 0.98rem;
  color: var(--slate-700);
  line-height: 1.7;
  max-width: 70ch;
}

/* ----- Reveal (animation removed for reliability) ---------------------
   The .reveal class is kept so existing markup is unaffected, but it now
   has no effect — content is always visible. Reliability > entrance fx
   for a professional site.
   ----------------------------------------------------------------------- */
.reveal { /* intentionally empty */ }

/* ----- Selection ------------------------------------------------------ */
::selection { background: var(--navy-900); color: var(--cream-50); }
