/* ==========================================================================
   Credex Energy Mines — site styles
   Palette sampled from the brand file:
   Forest Green #0A5941 · Deep Forest #12201C · Terracotta #B4551F
   Teal #10A87A · Cream #F4F1EA · Slate Grey #6B7573
   ========================================================================== */

:root {
  --forest: #0A5941;
  --forest-dark: #07422F;
  --deep: #12201C;
  --terracotta: #B4551F;
  --teal: #10A87A;
  --cream: #F4F1EA;
  --cream-dark: #EAE5DA;
  --slate: #6B7573;
  --ink: #1E2622;
  --rule: #D6D0C3;

  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --measure: 68ch;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display-serif {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--forest);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.25rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.75rem 0 1rem; }
h3 { font-size: 1.25rem; margin: 1.75rem 0 .5rem; }

p { max-width: var(--measure); }
p + p { margin-top: 0; }
strong { font-weight: 600; color: var(--deep); }

a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }

ul.plain { list-style: none; padding: 0; margin: 0; }
ul.lead-list { max-width: var(--measure); padding-left: 1.2rem; }
ul.lead-list li { margin-bottom: .75rem; }
ul.lead-list li::marker { color: var(--terracotta); }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Header — mirrors the letterhead: green rule, mark left, mono address right
   -------------------------------------------------------------------------- */

.brand-rule { height: 6px; background: var(--forest); }

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.site-header .navbar { padding: .75rem 0; }
.site-header .navbar > .container, .site-header .navbar { flex-wrap: wrap; }
.site-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
}
.site-header .navbar-brand img {
  height: 46px;
  width: 46px;
}
.brand-text { line-height: 1.05; }
.brand-text .name {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: .22em;
  color: var(--forest);
  display: block;
}
.brand-text .sub {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .28em;
  color: var(--slate);
  display: block;
  margin-top: .25rem;
}
.site-header .nav-link {
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
  padding: .5rem .85rem;
  border-bottom: 2px solid transparent;
}
.site-header .nav-link:hover { color: var(--forest); }
.site-header .nav-link.active {
  color: var(--forest);
  border-bottom-color: var(--terracotta);
}
.site-header .navbar-toggler {
  border-color: var(--rule);
}
.site-header .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(180,85,31,.35); }

.btn-credex {
  background: var(--forest);
  color: #fff;
  border: 1px solid var(--forest);
  border-radius: 3px;
  font-family: var(--sans);
  font-weight: 500;
  padding: .7rem 1.35rem;
  letter-spacing: .01em;
}
.btn-credex:hover, .btn-credex:focus {
  background: var(--forest-dark);
  border-color: var(--forest-dark);
  color: #fff;
}
.btn-credex-outline {
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 3px;
  padding: .7rem 1.35rem;
  font-weight: 500;
}
.btn-credex-outline:hover { background: var(--forest); color: #fff; }

/* --------------------------------------------------------------------------
   Page structure
   -------------------------------------------------------------------------- */

.page-intro {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.page-intro .lead-copy { max-width: 60ch; }
.intro-mark { color: var(--forest); opacity: .9; padding: 0 1rem; }
.intro-mark svg { width: 100%; max-width: 280px; height: auto; display: block; margin-left: auto; }
.page-intro .lead-copy {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--deep);
}
.section { padding: 3.25rem 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-tight { padding: 2.5rem 0; }
.section-green {
  background: var(--forest);
  color: #E8EFEB;
}
.section-green h1, .section-green h2, .section-green h3 { color: #fff; }
.section-green strong { color: #fff; }
.section-green a { color: #D7F0E3; }
.section-green a:hover { color: #fff; }
.section-green ul.lead-list li::marker { color: var(--teal); }
.section-deep {
  background: var(--deep);
  color: #DDE3DF;
}
.section-deep h2, .section-deep h3 { color: #fff; }
.section-deep strong { color: #fff; }

.two-col { column-gap: 4rem; }

/* Fact table (contact page, meta tables) */
.fact-table {
  width: 100%;
  max-width: 44rem;
  border-collapse: collapse;
  font-size: .98rem;
}
.fact-table th, .fact-table td {
  padding: .8rem .9rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  text-align: left;
}
.fact-table th {
  width: 11rem;
  font-weight: 500;
  color: var(--slate);
  font-family: var(--sans);
}
.fact-table td { color: var(--deep); }

/* Definition pairs (belief lists, benefit lists) */
.def-list { max-width: var(--measure); }
.def-list dt {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--forest);
  margin-top: 1.5rem;
}
.def-list dd { margin: .3rem 0 0; }

/* Process steps — numbered because the content really is a sequence */
.process { counter-reset: step; max-width: 50rem; }
.process li {
  list-style: none;
  position: relative;
  padding: 1.25rem 0 1.25rem 3.5rem;
  border-top: 1px solid var(--rule);
}
.process li:last-child { border-bottom: 1px solid var(--rule); }
.process li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 1.2rem;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-family: var(--mono);
  font-size: .9rem;
  display: grid;
  place-items: center;
}
.process li strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--forest);
  margin-bottom: .25rem;
}

/* Founder block */
.founder-figure {
  background: var(--cream-dark);
  border: 1px dashed var(--slate);
  border-radius: 4px;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--slate);
  padding: 1.5rem;
  font-size: .9rem;
}
.founder-sig {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--deep);
  margin-top: 1.5rem;
}
.founder-sig span { display: block; font-family: var(--sans); font-weight: 400; color: var(--slate); }

/* Audience cards on home / partner */
.audience {
  border-top: 3px solid var(--forest);
  padding: 1.5rem 0 0;
  height: 100%;
}
.audience h3 { margin-top: 0; }
.audience p { font-size: 1rem; }

/* FAQ */
.faq-group h2 {
  font-size: 1.05rem;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--slate);
  margin: 3rem 0 .5rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--rule);
}
.faq-group h2:first-child { margin-top: 0; }
.accordion-credex .accordion-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
}
.accordion-credex .accordion-button {
  background: transparent;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--forest);
  padding: 1.1rem 0;
  box-shadow: none;
}
.accordion-credex .accordion-button:not(.collapsed) { color: var(--terracotta); }
.accordion-credex .accordion-button::after { filter: hue-rotate(110deg) saturate(.6); }
.accordion-credex .accordion-body { padding: 0 0 1.4rem; max-width: var(--measure); }

/* Contact form */
.form-credex .form-label { font-weight: 500; color: var(--deep); }
.form-credex .form-control, .form-credex .form-select {
  border: 1px solid #BFB8A9;
  border-radius: 3px;
  background: #fff;
  padding: .7rem .85rem;
}
.form-credex .form-control:focus, .form-credex .form-select:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(10,89,65,.18);
}

/* --------------------------------------------------------------------------
   Footer — the four-word strip from the brand file
   -------------------------------------------------------------------------- */

.site-footer {
  background: #11201B;
  color: #B9C2BD;
  padding: 3rem 0 2rem;
  font-size: .95rem;
}
.site-footer a { color: #DDE3DF; text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.site-footer .footer-brand img { width: 150px; height: auto; display: block; }
.footer-nav li { margin-bottom: .4rem; }
.footer-nav a { border-bottom: 1px solid transparent; }
.footer-nav a:hover { border-bottom-color: var(--teal); }
.site-footer .mono {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  color: #9AA5A0;
}
.cycle-strip {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .28em;
  color: #9AA5A0;
  border-top: 1px solid #2B3A34;
  padding-top: 1.25rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.cycle-strip span { transition: color .5s; }
.cycle-strip span.is-on { color: var(--teal); font-weight: 600; }

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */

.hero {
  padding: 3.5rem 0 2rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  max-width: 14ch;
}
.hero h1 { max-width: none; }
.hero-title span { display: block; overflow: hidden; padding: .06em 0 .14em; margin-bottom: -.14em; }
.hero-title span i { display: block; font-style: normal; }
.hero .lead-copy {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--deep);
  max-width: 58ch;
}

/* --------------------------------------------------------------------------
   Animated scenes
   -------------------------------------------------------------------------- */

.scene-wrap {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.scene-wrap svg {
  display: block;
  width: 100%;
  height: auto;
}
.scene-caption {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  font-size: .85rem;
}
.scene-caption span {
  flex: 1 1 auto;
  padding: .6rem .9rem;
  color: var(--slate);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: -1px;
  transition: color .3s, background .3s;
}
.scene-caption span.is-on {
  color: #fff;
  background: var(--forest);
}
.scene-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem .9rem;
  font-size: .8rem;
  color: var(--slate);
  border-top: 1px solid var(--rule);
}
.scene-controls button {
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--forest);
  border-radius: 3px;
  font-size: .8rem;
  padding: .25rem .7rem;
}
.scene-controls button:hover { background: var(--cream); }

/* Scene one timing: 16s loop. Percentages map to the caption steps in main.js */
.scene-1 { --loop: 16s; }
.scene-1 [class^="s1-"], .scene-1 [class*=" s1-"] {
  animation-duration: var(--loop);
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

/* Farmer's sickle arm swings during 0–18% */
.s1-arm {
  transform-box: fill-box;
  transform-origin: 15% 20%;
  animation-name: s1-arm;
}
@keyframes s1-arm {
  0%, 18% { transform: rotate(0deg); }
  3% { transform: rotate(-55deg); }
  6% { transform: rotate(10deg); }
  9% { transform: rotate(-55deg); }
  12% { transform: rotate(10deg); }
  15% { transform: rotate(-55deg); }
  18.5%, 100% { transform: rotate(0deg); }
}
/* Farmer walks left to right across the field while cutting */
.s1-farmer { animation-name: s1-farmer; }
@keyframes s1-farmer {
  0% { transform: translateX(0); }
  18% { transform: translateX(150px); }
  20% { transform: translateX(150px); }
  25%, 100% { transform: translateX(-30px); }
}
/* Standing crop — each column falls as the farmer passes */
.s1-crop { transform-box: view-box; }
.s1-crop.c1 { animation-name: s1-crop-1; }
.s1-crop.c2 { animation-name: s1-crop-2; }
.s1-crop.c3 { animation-name: s1-crop-3; }
.s1-crop.c4 { animation-name: s1-crop-4; }
.s1-crop.c5 { animation-name: s1-crop-5; }
@keyframes s1-crop-1 { 0%,3% {transform:none} 5%,100% {transform:rotate(85deg) scaleY(.3);opacity:.35} }
@keyframes s1-crop-2 { 0%,6% {transform:none} 8%,100% {transform:rotate(85deg) scaleY(.3);opacity:.35} }
@keyframes s1-crop-3 { 0%,9% {transform:none} 11%,100% {transform:rotate(85deg) scaleY(.3);opacity:.35} }
@keyframes s1-crop-4 { 0%,12% {transform:none} 14%,100% {transform:rotate(85deg) scaleY(.3);opacity:.35} }
@keyframes s1-crop-5 { 0%,15% {transform:none} 17%,100% {transform:rotate(85deg) scaleY(.3);opacity:.35} }

/* Stubble left in the field, then fire on it 22–46% */
.s1-fire { transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; animation-name: s1-fire; }
@keyframes s1-fire {
  0%, 21% { opacity: 0; transform: scaleY(.2); }
  24% { opacity: 1; transform: scaleY(1); }
  27% { transform: scaleY(1.25) scaleX(.9); }
  30% { transform: scaleY(.9) scaleX(1.1); }
  33% { transform: scaleY(1.2); }
  36% { transform: scaleY(.95); }
  40% { transform: scaleY(1.15); }
  44% { opacity: 1; transform: scaleY(.9); }
  48%, 100% { opacity: 0; transform: scaleY(.1); }
}
/* Smoke puffs: rise from the fire, drift right and are drawn into the intake 26–62% */
.s1-smoke { opacity: 0; animation-name: s1-smoke; }
.s1-smoke.p2 { animation-delay: calc(var(--loop) * .02); }
.s1-smoke.p3 { animation-delay: calc(var(--loop) * .04); }
.s1-smoke.p4 { animation-delay: calc(var(--loop) * .06); }
.s1-smoke.p5 { animation-delay: calc(var(--loop) * .08); }
@keyframes s1-smoke {
  0%, 25% { opacity: 0; transform: translate(0, 0) scale(.5); }
  28% { opacity: .9; transform: translate(8px, -45px) scale(.9); }
  36% { opacity: .85; transform: translate(90px, -125px) scale(1.2); }
  46% { opacity: .8; transform: translate(220px, -115px) scale(1.05); }
  52% { opacity: .6; transform: translate(280px, -60px) scale(.7); }
  55%, 100% { opacity: 0; transform: translate(300px, -38px) scale(.2); }
}
/* Intake fan spins while smoke is being drawn in */
.s1-fan { transform-box: fill-box; transform-origin: 50% 50%; animation-name: s1-fan; }
@keyframes s1-fan {
  0%, 30% { transform: rotate(0deg); }
  60% { transform: rotate(1440deg); }
  100% { transform: rotate(1440deg); }
}
/* Converter glows while working 40–70% */
.s1-glow { opacity: 0; animation-name: s1-glow; }
@keyframes s1-glow {
  0%, 38% { opacity: 0; }
  44% { opacity: .9; }
  60% { opacity: .9; }
  70%, 100% { opacity: 0; }
}
/* Biochar granules drop from the chute 56–78% */
.s1-char { opacity: 0; animation-name: s1-char; }
.s1-char.g2 { animation-delay: calc(var(--loop) * .025); }
.s1-char.g3 { animation-delay: calc(var(--loop) * .05); }
.s1-char.g4 { animation-delay: calc(var(--loop) * .075); }
.s1-char.g5 { animation-delay: calc(var(--loop) * .10); }
@keyframes s1-char {
  0%, 56% { opacity: 0; transform: translateY(0); }
  58% { opacity: 1; transform: translateY(0); }
  66% { opacity: 1; transform: translateY(50px); }
  68%, 100% { opacity: 0; transform: translateY(50px); }
}
/* Soil darkens and sprouts grow 66–92% */
.s1-soil-rich { opacity: 0; animation-name: s1-soil; }
@keyframes s1-soil {
  0%, 62% { opacity: 0; }
  76% { opacity: 1; }
  96% { opacity: 1; }
  100% { opacity: 0; }
}
.s1-sprout { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); animation-name: s1-sprout; }
.s1-sprout.t2 { animation-delay: calc(var(--loop) * .03); }
.s1-sprout.t3 { animation-delay: calc(var(--loop) * .06); }
@keyframes s1-sprout {
  0%, 72% { transform: scaleY(0); }
  84% { transform: scaleY(1.1); }
  88% { transform: scaleY(1); }
  96% { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}
/* "CO2 stays out" tag 78–96% */
.s1-tag { opacity: 0; animation-name: s1-tag; }
@keyframes s1-tag {
  0%, 78% { opacity: 0; transform: translateY(6px); }
  82% { opacity: 1; transform: translateY(0); }
  95% { opacity: 1; }
  100% { opacity: 0; }
}

/* Scene two timing: 14s loop */
.scene-2 { --loop2: 14s; }
.scene-2 [class^="s2-"], .scene-2 [class*=" s2-"] {
  animation-duration: var(--loop2);
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
/* Factory stack smoke: rises, drifts to the capture unit and is drawn in */
.s2-smoke { opacity: 0; animation-name: s2-smoke; }
.s2-smoke.q2 { animation-delay: calc(var(--loop2) * .05); }
.s2-smoke.q3 { animation-delay: calc(var(--loop2) * .10); }
.s2-smoke.q4 { animation-delay: calc(var(--loop2) * .15); }
.s2-smoke.q5 { animation-delay: calc(var(--loop2) * .20); }
.s2-smoke.q6 { animation-delay: calc(var(--loop2) * .25); }
@keyframes s2-smoke {
  0% { opacity: 0; transform: translate(0,0) scale(.4); }
  4% { opacity: .9; transform: translate(6px,-30px) scale(.8); }
  16% { opacity: .85; transform: translate(90px,-75px) scale(1.25); }
  32% { opacity: .8; transform: translate(270px,-45px) scale(1.1); }
  42% { opacity: .55; transform: translate(370px,25px) scale(.7); }
  46%, 100% { opacity: 0; transform: translate(400px,42px) scale(.2); }
}
.s2-fan { transform-box: fill-box; transform-origin: 50% 50%; animation-name: s2-fan; animation-timing-function: linear; }
@keyframes s2-fan { to { transform: rotate(360deg); } }
.s2-fan { animation-duration: 2.2s !important; }
/* Captured CO2 travels down the pipe into storage 30–90% */
.s2-pulse { opacity: 0; animation-name: s2-pulse; }
.s2-pulse.r2 { animation-delay: calc(var(--loop2) * .08); }
.s2-pulse.r3 { animation-delay: calc(var(--loop2) * .16); }
.s2-pulse.r4 { animation-delay: calc(var(--loop2) * .24); }
@keyframes s2-pulse {
  0%, 30% { opacity: 0; offset-distance: 0%; }
  34% { opacity: 1; }
  58% { opacity: 1; offset-distance: 100%; }
  60%, 100% { opacity: 0; offset-distance: 100%; }
}
.s2-store { opacity: .25; animation-name: s2-store; }
@keyframes s2-store {
  0%, 45% { opacity: .25; }
  75% { opacity: 1; }
  95% { opacity: 1; }
  100% { opacity: .25; }
}
.s2-tag { opacity: 0; animation-name: s2-tag; }
@keyframes s2-tag {
  0%, 70% { opacity: 0; transform: translateY(6px); }
  76% { opacity: 1; transform: translateY(0); }
  95% { opacity: 1; }
  100% { opacity: 0; }
}
/* Sky clears over the factory as the capture takes effect */
.s2-haze { animation-name: s2-haze; }
@keyframes s2-haze {
  0%, 20% { opacity: 1; }
  70% { opacity: .1; }
  95% { opacity: .1; }
  100% { opacity: 1; }
}

/* Paused state (button) */
.scene-paused [class^="s1-"], .scene-paused [class*=" s1-"],
.scene-paused [class^="s2-"], .scene-paused [class*=" s2-"] { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene-wrap [class^="s1-"], .scene-wrap [class*=" s1-"],
  .scene-wrap [class^="s2-"], .scene-wrap [class*=" s2-"] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .scene-wrap .s1-fire, .scene-wrap .s1-smoke, .scene-wrap .s1-char, .scene-wrap .s2-smoke, .scene-wrap .s2-pulse { opacity: .6 !important; }
}

/* --------------------------------------------------------------------------
   Home: distinction block, work-with-us block
   -------------------------------------------------------------------------- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  max-width: 56rem;
}
.compare > div { padding: 1.75rem; }
.compare .avoid { background: #fff; }
.compare .remove { background: var(--forest); color: #E8EFEB; }
.compare h3 { margin-top: 0; }
.compare .remove h3 { color: #fff; }
.compare p { font-size: 1rem; margin-bottom: 0; }
@media (max-width: 767.98px) {
  .compare { grid-template-columns: 1fr; }
}

.stat-row { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2rem; }
.stat-row div { max-width: 16rem; }
.stat-row .stat {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--forest);
  line-height: 1.2;
}
.stat-row .stat-note { font-size: .92rem; color: var(--slate); }

@media (max-width: 991.98px) {
  .site-header .navbar-nav { padding: .5rem 0 1rem; }
  .site-header .nav-link.active { border-bottom-color: transparent; border-left: 3px solid var(--terracotta); padding-left: .6rem; }
  .two-col { column-count: 1 !important; }
}

@media (max-width: 575.98px) { .brand-text .sub { display: none; } .site-header .navbar-collapse { flex-basis: 100%; } }


/* --------------------------------------------------------------------------
   Update: layout components that fill the page, and the motion layer
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute; left: -999px; top: .5rem;
  background: var(--forest); color: #fff; padding: .5rem 1rem; z-index: 2000; border-radius: 3px;
}
.skip-link:focus { left: .5rem; color: #fff; }

/* Section surfaces */
.section-soil { background: #EDE8DC; }
.section-cta { background: #fff; }

/* Tiles: belief / benefit / pathway grids */
.tile {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--forest);
  border-radius: 4px;
  padding: 1.35rem 1.35rem 1.1rem;
  height: 100%;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .35s;
}
.tile h3 { margin-top: 0; font-size: 1.12rem; }
.tile p { font-size: .97rem; margin-bottom: 0; }
.tile:hover { transform: translateY(-4px); border-top-color: var(--terracotta); box-shadow: 0 14px 30px -18px rgba(10,89,65,.45); }
.tile-now { border-top-color: var(--terracotta); background: #FBF7EE; }
.tile-now h3::after {
  content: "where we start";
  display: inline-block; margin-left: .6rem; font-family: var(--sans); font-size: .72rem; font-weight: 500;
  color: var(--terracotta); border: 1px solid var(--terracotta); border-radius: 999px; padding: .1rem .5rem; vertical-align: middle;
}

/* Panels: partner blocks, contact facts, FAQ aside */
.panel {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.75rem;
  height: 100%;
  transition: border-color .35s, box-shadow .35s;
}
.panel:hover { border-color: #B8B0A0; }
.panel h2 { font-size: 1.45rem; }

/* Reasons list: bold lead + note */
.reasons { display: grid; gap: .75rem; }
.reasons li {
  background: #fff;
  border-left: 4px solid var(--terracotta);
  padding: .9rem 1.1rem;
  border-radius: 0 4px 4px 0;
  color: var(--slate);
  font-size: .97rem;
}
.reasons li span {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--forest);
}

/* Pathway list on green */
.pathway-list { display: grid; gap: .6rem; }
.pathway-list li {
  display: grid; grid-template-columns: 4.5rem 1fr; align-items: center; gap: 1rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  padding: .8rem 1rem;
  border-radius: 4px;
  color: #fff;
}
.pathway-list li span {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .15em; color: var(--teal);
  border-right: 1px solid rgba(255,255,255,.2);
}
.pathway-list li:first-child span { color: #F4C9A6; }

.quote-card {
  background: var(--forest);
  color: #fff;
  border-radius: 4px;
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
}
.quote-card::before {
  content: "“"; position: absolute; left: 1.2rem; top: -.6rem; font-family: var(--serif);
  font-size: 7rem; line-height: 1; color: rgba(255,255,255,.12);
}
.quote-card p { font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; margin: 0 0 .75rem; position: relative; }
.quote-card span { color: var(--teal); font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; }

blockquote.pull {
  border-left: 3px solid var(--terracotta);
  padding: .25rem 0 .25rem 1.25rem;
  margin: 1.5rem 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--deep);
  max-width: var(--measure);
}

.sticky-note { position: sticky; top: 6rem; }

.link-more { display: inline-block; margin-top: .75rem; font-weight: 500; text-decoration: none; border-bottom: 2px solid var(--terracotta); }
.link-more:hover { color: var(--terracotta); }

.btn-credex-light { background: #fff; color: var(--forest); border: 1px solid #fff; border-radius: 3px; padding: .7rem 1.35rem; font-weight: 500; }
.section-green .btn-credex-light { color: var(--forest); }
.btn-credex-light:hover, .section-green .btn-credex-light:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Founder photo */
.founder-photo {
  position: relative;
  margin: 0;
  padding: 0 .9rem .9rem 0;
}
.founder-photo::before {
  content: ""; position: absolute; right: 0; bottom: 0; left: .9rem; top: .9rem;
  background: var(--forest); border-radius: 4px;
}
.founder-photo::after {
  content: ""; position: absolute; right: .35rem; top: .35rem; width: 14px; height: 14px; border-radius: 50%; background: var(--terracotta);
}
.founder-photo img {
  position: relative; display: block; width: 100%; height: auto; border-radius: 4px; object-fit: cover;
  filter: saturate(.95);
}
.founder-photo-lg { max-width: 380px; }
.founder-strip .founder-photo { max-width: 260px; }

/* Hero */
.hero { padding: 3.25rem 0 1.5rem; position: relative; }
.hero-title span { display: block; overflow: hidden; }
.hero-panel {
  background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 1.75rem;
  position: relative;
}
.hero-panel p { font-size: 1rem; }
.hero-mark { color: var(--forest); margin-bottom: 1rem; }

/* Process: line draws in as steps reveal */
.process li { transition: background .4s; }
.process li::before { transform: scale(.6); opacity: 0; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .5s; }
.process li.in::before { transform: scale(1); opacity: 1; }
.process li::after {
  content: ""; position: absolute; left: 1.05rem; top: 3.5rem; bottom: -1px; width: 2px;
  background: var(--rule); transform: scaleY(0); transform-origin: top; transition: transform .7s .25s ease-out;
}
.process li.in::after { transform: scaleY(1); }
.process li:last-child::after { display: none; }

/* Audience cards: quiet hover */
.audience { transition: border-color .35s; padding-top: 1.25rem; }
.audience:hover { border-top-color: var(--terracotta); }

/* Particles on the green section */
.section-particles { position: relative; overflow: hidden; }
.section-particles::before, .section-particles::after {
  content: ""; position: absolute; inset: -20% -10%; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(16,168,122,.55) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(244,241,234,.35) 0 1.5px, transparent 2.5px);
  background-size: 180px 220px, 260px 300px;
  background-position: 0 0, 90px 60px;
  animation: drift 40s linear infinite;
  opacity: .5;
}
.section-particles::after { background-size: 320px 260px, 140px 180px; animation-duration: 65s; animation-direction: reverse; opacity: .3; }
.section-particles .container { position: relative; z-index: 1; }
@keyframes drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(-180px,-220px,0); } }

/* Animated brand mark */
.mark-anim { display: block; }
.mark-anim .m-arc {
  stroke-dasharray: 520; stroke-dashoffset: 520;
  animation: arc-draw 1.6s cubic-bezier(.4,0,.2,1) forwards;
  animation-delay: calc(var(--i) * .18s);
}
.mark-anim .m-core { fill: var(--terracotta); transform-box: fill-box; transform-origin: center; animation: core-pop .6s .9s cubic-bezier(.2,.9,.3,1.4) both; }
.mark-anim .m-dot {
  opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: dot-in .45s forwards, dot-ripple 5s ease-in-out infinite;
  animation-delay: calc(1s + var(--i) * .1s), calc(2.4s + var(--i) * .16s);
}
@keyframes arc-draw { to { stroke-dashoffset: 0; } }
@keyframes core-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes dot-in { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@keyframes dot-ripple { 0%, 100% { transform: scale(1); } 8% { transform: scale(1.35); } 18% { transform: scale(1); } }

/* Hero headline: lines rise into view on load */
.hero-title span i { transform: translateY(110%); animation: rise .8s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-title span:nth-child(1) i { animation-delay: .05s; }
.hero-title span:nth-child(2) i { animation-delay: .17s; }
.hero-title span:nth-child(3) i { animation-delay: .29s; }
@keyframes rise { to { transform: translateY(0); } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Buttons: subtle press */
.btn-credex, .btn-credex-outline, .btn-credex-light { transition: background .25s, color .25s, transform .2s, box-shadow .25s; }
.btn-credex:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(10,89,65,.7); }
.btn-credex:active { transform: translateY(0); }

/* Nav link underline slide */
.site-header .nav-link { position: relative; border-bottom: 0; }
.site-header .nav-link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .15rem; height: 2px;
  background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.site-header .nav-link:hover::after, .site-header .nav-link.active::after { transform: scaleX(1); }

@media (max-width: 991.98px) {
  .sticky-note { position: static; }
  .site-header .nav-link.active { border-left: 0; padding-left: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-title span i { transform: none; animation: none; }
  .mark-anim .m-arc { stroke-dashoffset: 0; animation: none; }
  .mark-anim .m-core, .mark-anim .m-dot { animation: none; opacity: 1; }
  .section-particles::before, .section-particles::after { animation: none; }
  .process li::before, .process li::after { transition: none; transform: none; opacity: 1; }
  .tile, .btn-credex { transition: none; }
}


/* --------------------------------------------------------------------------
   Update 2: motion cards, icons, compare facts, panel sizing
   -------------------------------------------------------------------------- */

.panel-auto { height: auto; }
.panel { display: flex; flex-direction: column; }

/* Tiles with an animated line icon */
.tile-ico { padding-top: 1.1rem; }
.tile-ico-mark {
  width: 52px; height: 52px; color: var(--forest);
  margin-bottom: .75rem;
}
.tile-ico-mark .ico { width: 52px; height: 52px; display: block; }
.tile:hover .tile-ico-mark { color: var(--terracotta); }

/* Motion cards (partner page) */
.mcard {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s, border-color .4s;
}
.mcard:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(10,89,65,.55); border-color: #B8B0A0; }
.mcard-visual {
  position: relative;
  height: 150px;
  display: grid; place-items: center;
  color: var(--cream);
  background: linear-gradient(135deg, #07422F 0%, var(--forest) 55%, #0C6B4E 100%);
  background-size: 200% 200%;
  animation: sheen 9s ease-in-out infinite;
  overflow: hidden;
}
.mcard-visual::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(16,168,122,.5) 0 1.5px, transparent 2.5px);
  background-size: 28px 28px;
  opacity: .35;
  animation: drift 30s linear infinite;
}
.mcard-visual .ico { width: 84px; height: 84px; position: relative; z-index: 1; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.mcard:hover .mcard-visual .ico { transform: scale(1.1) translateY(-3px); }
.mcard-body { padding: 1.4rem 1.4rem .5rem; flex: 1 1 auto; }
.mcard-body h2 { font-size: 1.35rem; margin: 0 0 .6rem; }
.mcard-body p { font-size: .97rem; max-width: none; }
.mcard-link {
  display: block;
  padding: .95rem 1.4rem;
  border-top: 1px solid var(--rule);
  font-weight: 500;
  text-decoration: none;
  color: var(--forest);
  transition: background .3s, color .3s, padding-left .3s;
}
.mcard-link::after { content: " →"; }
.mcard:hover .mcard-link { background: var(--forest); color: #fff; padding-left: 1.7rem; }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Compare block: icons, equal fill, fact rows */
.compare { max-width: none; }
.compare > div { display: flex; flex-direction: column; }
.compare-ico { width: 44px; height: 44px; margin-bottom: .6rem; }
.compare-ico .ico { width: 44px; height: 44px; }
.compare .avoid .compare-ico { color: var(--slate); }
.compare .remove .compare-ico { color: var(--teal); }
.compare-facts { margin: auto 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .92rem; display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; }
.compare-facts dt { color: var(--slate); font-weight: 500; }
.compare-facts dd { margin: 0; color: var(--deep); }
.compare .remove .compare-facts { border-top-color: rgba(255,255,255,.2); }
.compare .remove .compare-facts dt { color: #A9D9C5; }
.compare .remove .compare-facts dd { color: #fff; }
.compare p { margin-bottom: 1rem; }

.quote-card-sm { padding: 1.6rem 1.5rem; margin: 0; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.quote-card-sm p { font-size: 1.3rem; }
.founder-strip .founder-photo { max-width: 360px; }

/* Icon animations */
.ico { display: block; }
.ico .sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * .35s); }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.ico .spin { transform-box: fill-box; transform-origin: center; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ico .draw { stroke-dasharray: 90; stroke-dashoffset: 90; animation: draw 2.4s ease-out forwards infinite; animation-duration: 4s; }
@keyframes draw { 0% { stroke-dashoffset: 90; } 45%, 100% { stroke-dashoffset: 0; } }
.ico .wind { stroke-dasharray: 60; stroke-dashoffset: 60; animation: wind 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * .3s); }
@keyframes wind { 0% { stroke-dashoffset: 60; opacity: 0; } 30% { opacity: 1; } 70% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: -60; opacity: 0; } }
.ico .drop { transform-box: fill-box; transform-origin: center; animation: drop 2.6s ease-in infinite; }
@keyframes drop { 0% { transform: translateY(-10px); opacity: 0; } 25% { opacity: 1; } 70% { transform: translateY(6px); opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }
.ico .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: bar 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * .25s); }
@keyframes bar { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
.ico .grow { transform-box: fill-box; transform-origin: 50% 100%; animation: grow 4s ease-in-out infinite; }
@keyframes grow { 0% { transform: scaleY(.15); } 40%, 85% { transform: scaleY(1); } 100% { transform: scaleY(.15); } }
.ico .tip { transform-box: fill-box; transform-origin: center; animation: tip 4s ease-out infinite; }
@keyframes tip { 0%, 40% { transform: scale(0); } 50% { transform: scale(1.4); } 60%, 100% { transform: scale(1); } }
.ico .tick { stroke-dasharray: 20; stroke-dashoffset: 20; animation: tick 4s ease-out infinite; animation-delay: calc(var(--i) * .3s); }
@keyframes tick { 0% { stroke-dashoffset: 20; } 20%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 20; } }
.ico .bubble { transform-box: fill-box; transform-origin: center; animation: bubble 2.4s ease-in infinite; animation-delay: calc(var(--i) * .6s); }
@keyframes bubble { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-16px); opacity: 0; } }
.ico .dash { stroke-dasharray: 6 6; animation: dashmove 3s linear infinite; }
@keyframes dashmove { to { stroke-dashoffset: -24; } }
.ico .fall { transform-box: fill-box; transform-origin: center; animation: fall 2.6s ease-in-out infinite; }
@keyframes fall { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }

.form-note-ok { color: var(--forest); font-weight: 500; }
.form-note-err { color: var(--terracotta); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .ico * { animation: none !important; stroke-dashoffset: 0 !important; transform: none !important; opacity: 1 !important; }
  .mcard, .mcard-visual, .mcard-visual::after { animation: none; transition: none; }
}

/* Partner cards: two-column masonry so short cards don't stretch to match long ones */
.mcard-grid { columns: 2; column-gap: 1.5rem; }
.mcard-cell { break-inside: avoid; margin-bottom: 1.5rem; display: block; }
.mcard-grid .mcard { height: auto; }
@media (max-width: 767.98px) { .mcard-grid { columns: 1; } }
