/* ================================================================
   WILLMAN & PARTNERS — Design System
   ================================================================ */

/* --- Custom Properties --- */
:root {
  --forest:        #14161C;
  --forest-dark:   #0C0D11;
  --forest-deep:   #050506;
  --forest-light:  #2A2D36;
  --forest-mist:   #F0F1F3;
  --gold:          #34506D;
  --gold-light:    #4F7195;
  --gold-pale:     #EAF0F5;
  --gold-dark:     #22374C;
  --tech:          #B99A5B;
  --tech-pale:     #F7F1E3;
  --cream:         #FAF6EF;
  --white:         #FFFFFF;
  --ink:           #0E1013;
  --ink-70:        rgba(14,16,19,0.70);
  --ink-50:        rgba(14,16,19,0.60);
  --border:        rgba(14,16,19,0.10);
  --border-light:  rgba(255,255,255,0.10);

  --font-display:  'Inter', system-ui, -apple-system, sans-serif;
  --font-accent:   'Playfair Display', Georgia, serif;
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;

  --nav-height:    72px;
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 5vw, 2.5rem);

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  22px;
  --radius-2xl: 32px;
  --radius-full:9999px;

  --shadow-sm:  0 1px 3px rgba(14,16,19,.07), 0 1px 2px rgba(14,16,19,.05);
  --shadow-md:  0 4px 16px rgba(14,16,19,.10), 0 2px 6px rgba(14,16,19,.06);
  --shadow-lg:  0 12px 40px rgba(14,16,19,.12), 0 4px 12px rgba(14,16,19,.07);
  --shadow-xl:  0 24px 64px rgba(14,16,19,.14), 0 8px 24px rgba(14,16,19,.08);
  --shadow-g-sm:0 2px 8px rgba(20,22,28,.16),  0 1px 3px rgba(20,22,28,.10);
  --shadow-g-md:0 8px 32px rgba(20,22,28,.22), 0 3px 8px rgba(20,22,28,.12);
  --shadow-au-sm:0 2px 8px rgba(52,80,109,.20),0 1px 3px rgba(52,80,109,.12);
  --shadow-au-md:0 8px 32px rgba(52,80,109,.26),0 3px 8px rgba(52,80,109,.14);

  --ease-spring: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out:    cubic-bezier(0.4, 0, 0.2, 1);

  /* Signature corner notch — used on buttons, icon badges, and step markers
     so the cut corner reads as an intentional, repeated motif rather than
     a default border-radius. */
  --notch: 10px;
  --notch-sm: 6px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.75rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.375rem, 2.5vw, 1.875rem); }
h4 { font-size: 1.125rem; letter-spacing: -0.01em; }
p  { line-height: 1.72; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--gold);
  border-radius: 1px;
  flex-shrink: 0;
}
.eyebrow--white { color: rgba(255,255,255,.6); }
.eyebrow--white::before { background: rgba(255,255,255,.4); }

.lead {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  line-height: 1.72;
  color: var(--ink-70);
}
.lead--white { color: rgba(255,255,255,.62); }

.divider-gold {
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin-bottom: 1.25rem;
}
.divider-gold--center { margin-left: auto; margin-right: auto; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* --- Section spacing --- */
.section    { padding: 7rem 0; }
.section-lg { padding: 9rem 0; }
.section-sm { padding: 4.5rem 0; }

.bg-white  { background: var(--white); }
.bg-cream  { background: var(--cream); }
.bg-forest { background: var(--forest); }
.bg-dark   { background: var(--forest-deep); }
.bg-deep   { background: var(--forest-dark); }

/* --- Section header --- */
.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 4rem;
}
.section-header .eyebrow { margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header .lead { max-width: 540px; margin: 0 auto; }

.section-header--left { text-align: left; margin-left: 0; }
.section-header--left .lead { margin: 0; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(14,16,19,0.06);
  transition: box-shadow .25s ease, background .25s ease;
}
.nav.scrolled { background: rgba(255,255,255,0.97); box-shadow: 0 4px 32px rgba(14,16,19,0.08); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 1.5rem;
}
.nav-logo img { height: 36px; width: auto; object-fit: contain; }
.nav-logo { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 4px;
  margin: 0 8px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--ink-70);
  transition: color .2s;
  white-space: nowrap;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease-spring);
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-chevron {
  width: 13px; height: 13px;
  opacity: .45;
  transition: transform .2s ease, opacity .2s ease;
  flex-shrink: 0;
}
.nav-dropdown:hover .nav-chevron,
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); opacity: .85; }

/* Dropdown panel */
.nav-dropdown { position: relative; }
.nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--forest-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,.45), 0 4px 16px rgba(0,0,0,.2);
  min-width: 248px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 200;
  padding: 6px;
}
.nav-dropdown:hover .nav-panel,
.nav-dropdown.open  .nav-panel {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dd-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,.72);
  transition: background .15s, color .15s;
}
.dd-item:hover { background: rgba(255,255,255,.07); color: var(--white); }
.dd-icon {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  background: rgba(200,150,62,.12);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.dd-text strong { display: block; font-size: .8125rem; font-weight: 600; color: var(--white); margin-bottom: 2px; }
.dd-text span   { font-size: .6875rem; color: rgba(255,255,255,.45); line-height: 1.4; }
.dd-sep { height: 1px; background: rgba(255,255,255,.08); margin: 5px 10px; }

/* Nav CTA */
.nav-cta { display: flex; align-items: center; flex-shrink: 0; }

/* Hamburger */
.nav-ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.nav-ham:hover { background: rgba(14,16,19,.05); }
.nav-ham span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .25s ease, opacity .25s ease;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 999;
  overflow-y: auto;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: block; }

.m-nav-item { border-bottom: 1px solid var(--border); }
.m-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
  color: var(--ink-70);
  font-weight: 500;
  width: 100%;
  text-align: left;
  transition: color .15s;
}
.m-nav-link:hover, a.m-nav-link:hover { color: var(--gold); }
.m-sub { padding: 0 0 1rem 1rem; display: none; }
.m-sub.open { display: block; }
.m-sub-link {
  display: block;
  padding: 7px 0;
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  transition: color .15s;
}
.m-sub-link:hover { color: var(--gold); }
.m-cta { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); }

/* Nav responsive */
@media (max-width: 1060px) {
  .nav-link { padding: 6px 8px; font-size: .75rem; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-ham { display: flex; }
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--forest-deep);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-grid--simple { grid-template-columns: 1.8fr 1fr 1fr; }
.footer-logo { height: 30px; width: auto; margin-bottom: 1rem; }
.footer-tagline { font-size: .875rem; color: rgba(255,255,255,.38); line-height: 1.65; margin-bottom: 1.5rem; max-width: 240px; }
.footer-col-title { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: .75rem; }
.footer-link { font-size: .875rem; color: rgba(255,255,255,.48); transition: color .15s; }
.footer-link:hover { color: var(--gold); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer-copy { font-size: .75rem; color: rgba(255,255,255,.28); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ================================================================
   BUTTONS
   ================================================================ */
/* Signature button: top-right corner is cut at a fixed angle (the --notch
   motif, echoed in .step-num) and the hover state is a
   fill that sweeps in from the left behind the label, rather than a
   lift + shadow. Label and icon sit in their own stacking layer above
   the sweep so they never get visually swallowed by it. */
.btn {
  --notch-btn: 9px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: .75rem 1.5rem;
  clip-path: polygon(0 0, calc(100% - var(--notch-btn)) 0, 100% var(--notch-btn), 100% 100%, 0 100%);
  font-size: .875rem; font-weight: 600;
  letter-spacing: .015em;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .3s ease, border-color .3s ease;
}
.btn > * { position: relative; z-index: 1; }
.btn::before {
  content: '';
  position: absolute; inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-spring);
  z-index: 0;
}
.btn:hover::before { transform: scaleX(1); }
.btn:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 3px; }
.btn:active { transform: scale(.97); }
.btn .arrow { transition: transform .35s var(--ease-spring); }
.btn:hover .arrow { transform: translateX(5px); }

.btn-lg  { padding: 1rem 2rem; font-size: 1rem; --notch-btn: 12px; }
.btn-sm  { padding: .5rem 1rem; font-size: .75rem; --notch-btn: 6px; }

.btn-gold {
  background: var(--gold-dark); color: var(--white);
}
.btn-gold::before { background: var(--gold); }

.btn-forest {
  background: var(--forest-light); color: var(--white);
}
.btn-forest::before { background: var(--forest); }

.btn-outline-white {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-outline-white::before { background: rgba(255,255,255,.14); }
.btn-outline-white:hover { border-color: rgba(255,255,255,.7); }

.btn-outline-forest {
  background: transparent; color: var(--forest);
  border: 1.5px solid var(--forest);
}
.btn-outline-forest::before { background: var(--forest); }
.btn-outline-forest:hover { color: var(--white); }

.btn-outline-gold {
  background: transparent; color: var(--gold-dark);
  border: 1.5px solid rgba(52,80,109,.4);
}
.btn-outline-gold::before { background: var(--gold); }
.btn-outline-gold:hover { color: var(--white); border-color: var(--gold); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 92vh;
  display: flex; align-items: center;
  padding-top: var(--nav-height);
  padding-bottom: 5rem;
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--cream) 100%);
}
/* Signature decorative mark: thin-stroke geometric line art (a rotated
   square, an arc, a bracket) instead of the blurred gradient-blob
   "glow" pattern. Positioned per-instance via inline style. */
.hero-motif {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(14,16,19,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(14,16,19,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--gold-pale);
  border-left: 2.5px solid var(--gold);
  padding: 6px 14px;
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1.5rem;
}
.hero-badge-dot { width: 4px; height: 4px; background: var(--gold); flex-shrink: 0; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.06;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.hero-title .accent { color: var(--gold); font-family: var(--font-accent); font-style: italic; font-weight: 700; }

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--ink-70);
  line-height: 1.72;
  margin-bottom: 2.5rem;
  max-width: 560px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-textlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .875rem; font-weight: 600; color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--border);
  transition: border-color .25s, color .25s;
}
.hero-textlink:hover { border-color: var(--gold); color: var(--gold-dark); }
.hero-textlink .arrow { transition: transform .3s var(--ease-spring); }
.hero-textlink:hover .arrow { transform: translateX(4px); }

/* Asymmetric hero split — headline on one side, a compact numbered
   spec list on the other, instead of everything centered and stacked. */
.hero-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; gap: 2.5rem; } }

.spec-list { display: flex; flex-direction: column; }
.spec-item {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--border);
}
.spec-item:last-child { border-bottom: 1px solid var(--border); }
.spec-num {
  font-family: var(--font-accent); font-style: italic;
  font-size: .9375rem; color: var(--gold);
  flex-shrink: 0; width: 1.75rem;
}
.spec-label { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.spec-note  { font-size: .8125rem; color: var(--ink-50); margin-top: .15rem; }

/* Editorial list — the numbered-row alternative to a grid of cards.
   No borders, no boxes; a large ghost numeral and a hairline rule
   between rows carry the structure instead. */
.editorial-list { display: flex; flex-direction: column; }
.editorial-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.75rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
}
.editorial-item:last-child { border-bottom: 1px solid var(--border); }
.editorial-num {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--gold);
  opacity: .45;
}
@media (max-width: 640px) {
  .editorial-item { grid-template-columns: 1fr; gap: .5rem; }
  .editorial-num { font-size: 1.5rem; opacity: .7; }
}

/* Card numeral — replaces an icon-library pictogram with a large
   ghost numeral in the corner, echoing the editorial-list treatment
   so the same visual language carries across list and card layouts. */
.card-index {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--gold);
  opacity: .5;
  display: block;
  margin-bottom: 1rem;
}

/* Page-level hero */
.page-hero {
  padding: calc(var(--nav-height) + 5rem) 0 5rem;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--cream) 100%);
  position: relative; overflow: hidden;
}
.page-hero--forest { background: var(--forest); }
.page-hero--sm { padding-top: calc(var(--nav-height) + 3rem); padding-bottom: 3rem; }

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .75rem; color: var(--ink-50);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--ink-50); transition: color .15s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { opacity: .4; }

/* ================================================================
   CARDS
   ================================================================ */
/* Cards get a hairline top rule that draws in from the left on hover,
   instead of lifting off the page — a quieter, more deliberate motion. */
.card {
  background: var(--white);
  border-radius: 4px;
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .5s var(--ease-spring);
}
.card:hover { border-color: rgba(52,80,109,.28); box-shadow: var(--shadow-lg); }
.card:hover::before { width: 100%; }

.card-cream  { background: var(--cream); border-color: rgba(52,80,109,.10); }
.card-forest { background: var(--forest); border: none; box-shadow: var(--shadow-g-md); }
.card-dark   { background: var(--forest-dark); border: 1px solid rgba(255,255,255,.08); }
.card-glass  { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(8px); }

/* ================================================================
   FEATURE / CHECK LIST
   ================================================================ */
.feature-list { display: flex; flex-direction: column; gap: 1rem; }
.feature-item { display: flex; gap: .75rem; align-items: flex-start; }
.fi-check {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.fi-check--gold   { background: rgba(200,150,62,.15); color: var(--gold); }
.fi-check--forest { background: rgba(27,77,53,.1);   color: var(--forest); }
.fi-check--white  { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.fi-label { font-size: .9rem; color: var(--ink-70); line-height: 1.6; }
.fi-label strong { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; font-size: .875rem; }

/* Dark variant */
.feature-item--dark .fi-label { color: rgba(255,255,255,.62); }
.feature-item--dark .fi-label strong { color: var(--white); }

/* Fix: when fi-check is placed directly on the li (alongside feature-item),
   override the 20px size constraint and render the icon via ::before */
.feature-item.fi-check {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
}
.feature-item.fi-check::before {
  content: '✓';
  min-width: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
}
.feature-item.fi-check--forest::before { background: rgba(27,77,53,.1);    color: var(--forest); }
.feature-item.fi-check--gold::before   { background: rgba(200,150,62,.15); color: var(--gold); }
.feature-item.fi-check--white::before  { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }

/* ================================================================
   TRUST / CREDENTIAL STRIP
   ================================================================ */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 2px solid rgba(255,255,255,0.1);
  transition: background .25s, border-top-color .25s;
}
.trust-badge:hover { background: rgba(255,255,255,0.07); border-top-color: var(--gold); }
.trust-badge-icon {
  width: 26px; height: 26px;
  border: 1.5px solid rgba(200,150,62,.55); color: var(--gold-light);
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 0 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-badge-label { font-size: .8125rem; font-weight: 600; color: rgba(255,255,255,.85); white-space: nowrap; }

/* ================================================================
   INTEGRATION BADGES
   ================================================================ */
.logo-row { display: flex; flex-wrap: wrap; gap: .625rem; align-items: center; }
.logo-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px;
  border-radius: 2px;
  font-size: .75rem; font-weight: 600; letter-spacing: .01em;
  border: 1px solid;
  transition: background .2s;
  cursor: default;
}
.logo-badge--dark  { border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.65); background: rgba(255,255,255,.05); }
.logo-badge--dark:hover { background: rgba(255,255,255,.09); }
.logo-badge--light { border-color: rgba(17,24,22,.12); color: var(--ink-70); background: var(--white); }
.logo-badge--light:hover { background: var(--cream); }
.logo-badge-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* ================================================================
   CHALLENGE ITEMS
   ================================================================ */
.challenge-item {
  display: flex; gap: 1rem;
  padding: 1.25rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  transition: background .2s, border-color .2s;
}
.challenge-item:hover { background: rgba(255,255,255,.06); border-color: rgba(200,150,62,.2); }
.ch-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: rgba(200,150,62,.1); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ch-text strong { display: block; font-size: .875rem; font-weight: 600; color: var(--white); margin-bottom: 3px; }
.ch-text span,
.ch-text p   { font-size: .8125rem; color: rgba(255,255,255,.48); line-height: 1.55; }

/* ================================================================
   CTA BAND
   ================================================================ */
.cta-band {
  padding: 6rem 0;
  position: relative; overflow: hidden;
  text-align: center;
}
.cta-band--forest  { background: var(--forest); }
.cta-band--dark    { background: var(--forest-deep); }

/* ================================================================
   PROCESS STEPS
   ================================================================ */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.process-step { text-align: center; }
.step-num {
  --notch-step: 8px;
  width: 46px; height: 46px;
  clip-path: polygon(0 0, calc(100% - var(--notch-step)) 0, 100% var(--notch-step), 100% 100%, 0 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem;
  margin: 0 auto 1.25rem;
}
.step-num--forest { background: var(--forest); color: var(--white); box-shadow: var(--shadow-g-sm); }
.step-num--gold   { background: var(--gold);   color: var(--white); box-shadow: var(--shadow-au-sm); }

/* ================================================================
   TAG / PILL
   ================================================================ */
.tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 2px;
  font-size: .6875rem; font-weight: 600;
}
.tag--forest { background: rgba(27,77,53,.1);   color: var(--forest); }
.tag--gold   { background: rgba(200,150,62,.12); color: var(--gold-dark); }
.tag--white  { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
/* Elements resolve into focus rather than floating up from below:
   a soft blur clears and a slight scale settles to 1, so content
   arrives instead of sliding in. */
.reveal {
  opacity: 0;
  transform: scale(.97);
  filter: blur(6px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-spring), filter .6s ease;
}
.reveal.visible { opacity: 1; transform: scale(1); filter: blur(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }
.reveal-d5 { transition-delay: .5s; }

/* Thin progress rule fixed to the top edge, filled left→right with
   scroll depth. Reuses the gold token pair instead of a stock
   plugin's default red/blue bar. */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gold-pale);
  z-index: 999;
  pointer-events: none;
}
#scroll-progress::after {
  content: '';
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 0;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  transition: transform .1s linear;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  #scroll-progress::after { transition: none; }
}

/* ================================================================
   GRAIN OVERLAY
   ================================================================ */
.grain::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1;
}

/* ================================================================
   LAYOUT UTILITIES
   ================================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split-60 { grid-template-columns: 1.5fr 1fr; }
.split-40 { grid-template-columns: 1fr 1.5fr; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 900px)  {
  .split, .split-60, .split-40 { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 720px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* Lets a heading step down a semantic level (h4 -> h3, etc.) for a
   correct document outline without inheriting the bigger tag default. */
.h-sm { font-size: 1.125rem; letter-spacing: -0.01em; }

/* Visually hidden but present for screen readers / document outline. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.pt-nav { padding-top: var(--nav-height); }

/* ================================================================
   DARK SECTION TEXT — auto-white for bg-dark / bg-deep / bg-forest
   ================================================================
   The global h1-h4 rule sets color:var(--ink) (near black).
   Any section with a dark background needs headings and body text
   to be white. Rather than adding style="" on every element, we
   use descendant selectors here as the single source of truth.
   ================================================================ */

/* --- Headings auto-white in dark containers ---
   NOTE: .page-hero is intentionally excluded — it's a light section now,
   so headings/body text there simply use the default h1-h4/body ink color. */
.bg-dark    h1, .bg-dark    h2, .bg-dark    h3, .bg-dark    h4, .bg-dark    h5,
.bg-deep    h1, .bg-deep    h2, .bg-deep    h3, .bg-deep    h4, .bg-deep    h5,
.bg-forest  h1, .bg-forest  h2, .bg-forest  h3, .bg-forest  h4, .bg-forest  h5,
.page-hero--forest h1, .page-hero--forest h2, .page-hero--forest h3, .page-hero--forest h4,
.cta-band   h1, .cta-band   h2, .cta-band   h3 {
  color: var(--white);
}

/* --- Body text / paragraphs auto-white in dark containers ---
   No child combinator (>) so deeply-nested <p> tags are caught too.
   Exceptions for light-background components are restored below. */
.bg-dark   p,
.bg-deep   p,
.bg-forest p,
.page-hero--forest p {
  color: rgba(255,255,255,0.65);
}

/* Catch section-header and split children that live directly inside dark sections */
.bg-dark   .section-header h2,
.bg-dark   .section-header h3,
.bg-dark   .section-header p,
.bg-deep   .section-header h2,
.bg-deep   .section-header h3,
.bg-deep   .section-header p,
.bg-forest .section-header h2,
.bg-forest .section-header h3,
.bg-forest .section-header p {
  color: var(--white);
}
.bg-dark   .section-header p,
.bg-deep   .section-header p,
.bg-forest .section-header p {
  color: rgba(255,255,255,0.62);
}

/* process-step labels in dark sections */
.bg-dark   .process-step h3, .bg-dark   .process-step p,
.bg-deep   .process-step h3, .bg-deep   .process-step p,
.bg-forest .process-step h3, .bg-forest .process-step p {
  color: rgba(255,255,255,0.7);
}
.bg-dark   .process-step h3,
.bg-deep   .process-step h3,
.bg-forest .process-step h3 { color: var(--white); }

/* --- Restore dark text inside LIGHT-background components ---
   .card and .card-cream use white/cream backgrounds, so their text
   must stay dark even when they're inside a dark section. */
.bg-dark   .card h1, .bg-dark   .card h2, .bg-dark   .card h3, .bg-dark   .card h4,
.bg-dark   .card-cream h1, .bg-dark .card-cream h2, .bg-dark .card-cream h3, .bg-dark .card-cream h4,
.bg-deep   .card h1, .bg-deep   .card h2, .bg-deep   .card h3, .bg-deep   .card h4,
.bg-deep   .card-cream h1, .bg-deep .card-cream h2, .bg-deep .card-cream h3, .bg-deep .card-cream h4,
.bg-forest .card h1, .bg-forest .card h2, .bg-forest .card h3, .bg-forest .card h4,
.bg-forest .card-cream h1, .bg-forest .card-cream h2, .bg-forest .card-cream h3, .bg-forest .card-cream h4 {
  color: var(--ink);
}
.bg-dark   .card p, .bg-dark   .card-cream p,
.bg-deep   .card p, .bg-deep   .card-cream p,
.bg-forest .card p, .bg-forest .card-cream p {
  color: var(--ink-70);
}

/* --- .card-forest and .card-dark always use white text regardless of parent --- */
.card-forest h2, .card-forest h3, .card-forest h4, .card-forest h5 { color: var(--white); }
.card-forest p { color: rgba(255,255,255,0.70); }
.card-dark   h2, .card-dark   h3, .card-dark   h4, .card-dark   h5 { color: var(--white); }
.card-dark   p { color: rgba(255,255,255,0.65); }

/* --- Remove any redundant inline style="color:var(--white)" conflicts ---
   The inline styles set by the agents still win via specificity, which is
   fine — they will simply match the values above. No change needed there. */

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 600px) {
  .section    { padding: 4rem 0; }
  .section-lg { padding: 5rem 0; }
  .hero-ctas  { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  h2 { font-size: 1.75rem; }
}
