/* =========================================================================
   ZABIDOU THEME — main.css
   Fonts: Playfair Display (serif display) + Archivo (sans body/UI)
   ========================================================================= */

:root {
  --bg:            #0a0a0a;
  --bg-alt:        #0c0c0c;
  --bg-card:       #0d0d0d;
  --bg-card-hover: #111111;
  --border:        #1c1c1c;
  --border-card:   #262626;
  --border-hover:  #2e7d46;

  --text:          #ffffff;
  --text-cream:    #f4efe6;   /* warm off-white used on serif display headings */
  --text-muted:    #b7b7b7;
  --text-dim:      #8a8a8a;
  --text-eyebrow:  #2f9e52;

  --green:         #2f9e52;   /* accent green for headings/links */
  --green-bright:  #35b45f;
  --green-btn:     #159a3f;   /* primary filled button */
  --green-btn-h:   #1cb04c;
  --green-dark:    #14401f;   /* logo forest green */
  --green-line:    #1f9d43;

  --font-serif: "Playfair Display", "Times New Roman", serif;
  --font-sans:  "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1240px;
  --nav-h: 74px;

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

/* ------------------------------ Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.08; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Serif display helper + green accent */
.serif { font-family: var(--font-serif); }
.accent { color: var(--green); }
.cream  { color: var(--text-cream); }

/* =========================================================================
   PAGE LOADER
   ========================================================================= */
.page-loader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  opacity: 1;
  transition: opacity .5s var(--ease);
}
.page-loader.is-hidden { opacity: 0; pointer-events: none; }
.page-loader__spin {
  width: 40px; height: 40px;
  color: var(--green);
  animation: zb-spin .8s linear infinite;
}
@keyframes zb-spin { to { transform: rotate(360deg); } }

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 20px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--nav-h);
  padding: 0 10px 0 22px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.62);
  border: 1px solid rgba(47, 158, 82, 0.16);
  box-shadow: 0 12px 40px rgba(2, 6, 4, 0.45);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.site-header.scrolled .container {
  background: rgba(8, 8, 8, 0.9);
  border-color: rgba(47, 158, 82, 0.28);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__logo { width: 42px; height: 42px; flex: none; }
.brand__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 26px;
  color: var(--text-cream);
  letter-spacing: .2px;
}

.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(244, 239, 230, .78);
  padding: 9px 16px;
  border-radius: 999px;
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.main-nav a:hover { color: var(--text); background: rgba(47, 158, 82, .12); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: #04150a;
  background: var(--green);
}
.main-nav .current-menu-item > a:hover,
.main-nav .current_page_item > a:hover { background: var(--green-bright); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.nav-cta {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #04150a;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  transition: background-color .25s var(--ease);
}
.nav-cta:hover { background: var(--green-bright); }
.nav-cta__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  flex: none;
  background: #04150a;
  color: var(--green);
  transition: transform .3s var(--ease);
}
.nav-cta:hover .nav-cta__arrow { transform: rotate(45deg); }

.nav-toggle {
  display: none;
  background: none; border: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  padding: 0;
  transition: background-color .25s var(--ease);
}
.nav-toggle:hover { background: rgba(47, 158, 82, .15); }
.nav-toggle span {
  display: block; height: 2px; width: 20px;
  background: var(--text); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 861px) {
  .nav-cta { display: inline-flex; }
  .main-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .2px;
  padding: 8px 8px 8px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.btn:hover .btn__arrow { transform: rotate(45deg); }

.btn-primary { background: var(--green-btn); color: #fff; }
.btn-primary .btn__arrow { background: rgba(0, 0, 0, .22); color: #fff; }
.btn-primary:hover { background: var(--green-btn-h); }

.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, .22); padding-left: 26px; }
.btn-ghost .btn__arrow { background: rgba(255, 255, 255, .08); color: var(--text); }
.btn-ghost:hover { border-color: var(--green-btn); color: var(--green-bright); }
.btn-ghost:hover .btn__arrow { background: rgba(21, 154, 63, .16); color: var(--green-bright); }

/* =========================================================================
   HERO (homepage)
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 60px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: 32%; left: 50%;
  width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(31,157,67,.13) 0%, rgba(31,157,67,0) 62%);
  pointer-events: none;
  z-index: 0;
}
/* Full-bleed ambient background photo carousel (Gallery block content) */
.hero-carousel-source {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  display: block; margin: 0;
}
.hero-carousel-source .wp-block-image,
.hero-carousel-source figure.wp-block-image {
  position: absolute; inset: 0; margin: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero-carousel-source .wp-block-image.is-active { opacity: 1; }
.hero-carousel-source img { width: 100%; height: 100%; object-fit: cover; }
.hero-carousel-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, var(--bg) 0%, rgba(10,10,10,.97) 45%, rgba(10,10,10,.75) 65%, rgba(10,10,10,.5) 85%, rgba(10,10,10,.4) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 22%);
}
.hero__inner { position: relative; z-index: 2; max-width: 900px; }
.hero__logo {
  width: 108px; height: 108px; margin: 0 auto 34px;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,.6));
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.5px;
}
.hero__title .line-1 { color: var(--text-cream); display: block; }
.hero__title .line-2 { color: var(--green); display: block; }
.hero__rule {
  width: 118px; height: 4px; border-radius: 2px;
  background: var(--green-line);
  margin: 26px auto 30px;
  transform-origin: center;
}
.hero__sub {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.62;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto 40px;
}
.hero__cta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--green-line);
  border-radius: 14px;
  display: flex; justify-content: center;
  padding-top: 8px;
  z-index: 2;
}
.scroll-cue::before {
  content: "";
  width: 4px; height: 8px;
  background: var(--green-bright);
  border-radius: 2px;
  animation: scrollcue 1.6s var(--ease) infinite;
}
@keyframes scrollcue {
  0%   { opacity: 0; transform: translateY(-3px); }
  40%  { opacity: 1; }
  80%  { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; }
}

/* =========================================================================
   SECTION SHELL
   ========================================================================= */
.section { padding: 100px 0; position: relative; }
.section--tight { padding: 80px 0; }
.section__head { text-align: center; max-width: 860px; margin: 0 auto 64px; }
.section__title { text-wrap: balance; }
.section__head .section__lead { max-width: 620px; margin-left: auto; margin-right: auto; }
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
}
.section__title .cream { color: var(--text-cream); }
.section__lead {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
}
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31,157,67,.45), transparent);
  border: 0; margin: 0;
}

/* =========================================================================
   FEATURE CARDS (Field-Proven AI Computer Vision)
   ========================================================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.features-grid--row2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 830px;
  margin: 22px auto 0;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  padding: 34px 32px 38px;
  transition: transform .35s var(--ease), border-color .35s var(--ease),
              background .35s var(--ease), box-shadow .35s var(--ease);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 24px 50px -30px rgba(47,158,82,.5);
}
.feature-card__top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 16px;
}
.feature-card__title {
  font-family: var(--font-serif);
  font-size: 23px;
  line-height: 1.18;
  color: var(--text-cream);
  max-width: 78%;
}
.feature-card__icon { flex: none; color: var(--green); width: 30px; height: 30px; }
.feature-card__icon svg { width: 100%; height: 100%; }
.feature-card__text {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* =========================================================================
   OUR INDUSTRIES (photo cards)
   ========================================================================= */
.industry-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.industry-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-card);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.industry-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.industry-card__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.92) 0%, rgba(10,10,10,.35) 45%, transparent 70%);
}
.industry-card__arrow {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  transition: transform .3s var(--ease);
}
.industry-card:hover .industry-card__arrow { transform: rotate(45deg); }
.industry-card__label {
  position: absolute; left: 24px; right: 24px; bottom: 22px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  color: var(--text-cream);
}
.industry-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 24px 50px -30px rgba(47,158,82,.5);
}
.industry-card:hover .industry-card__img { transform: scale(1.05); }

/* =========================================================================
   INTERIOR PAGE HERO (Precast / Earthworks)
   ========================================================================= */
.page-hero {
  position: relative;
  min-height: 86vh;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 60px) 0 70px;
  overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,.55) 45%, rgba(10,10,10,.98) 100%);
}
.page-hero__inner { position: relative; z-index: 1; max-width: 760px; }
.eyebrow {
  font-size: 13.5px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--text-eyebrow);
  margin-bottom: 18px;
}
.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.04;
}
.page-hero__title .cream { color: var(--text-cream); display: block; }
.page-hero__title .accent { color: var(--green); display: block; }
.page-hero__lede { margin-top: 26px; }
.page-hero__lede p {
  font-size: 17.5px; line-height: 1.7;
  color: rgba(244, 239, 230, .85);
  max-width: 640px;
}
.page-hero__lede p + p { margin-top: 14px; color: var(--text-muted); }

/* Capability number badge — stands in for Home's feature-card icon */
.feature-card__num {
  flex: none;
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 700;
  color: var(--green);
  line-height: 1;
}

/* Photo showcase (Earthworks / Precast) — flexes to however many images a
   page has, from a small 2-photo set up to a larger 4-up set. */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.showcase-grid__item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .9);
}
.showcase-grid__item img {
  width: 100%; height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* =========================================================================
   CONTACT (solid green CTA panel + Contact Form 7)
   ========================================================================= */
.contact {
  padding: 40px 24px 100px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.contact__panel {
  position: relative;
  overflow: hidden;
  background: var(--green);
  border-radius: 14px;
  padding: 50px 28px;
}
.contact__inner {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: start;
}
.contact__heading {
  font-family: var(--font-serif);
  font-size: 30px;
  color: #0a0a0a;
  margin: 0 0 16px;
}
.contact__heading .accent { color: #0a0a0a; }
.contact__copy {
  color: #0a0a0a;
  font-size: 16.8px;
  font-weight: 600;
  line-height: 1.6;
  max-width: 28rem;
}
.wpcf7-form { display: flex; flex-direction: column; gap: 16px; }
.wpcf7-form .form__row { display: grid; gap: 16px; }
.wpcf7-form .form__field label {
  display: block; font-size: 12.8px; font-weight: 600;
  color: #0a0a0a; margin-bottom: 6px;
}
.wpcf7-form .form__field input,
.wpcf7-form .form__field textarea {
  width: 100%;
  background-color: rgba(10, 10, 10, .08);
  border: 1px solid rgba(10, 10, 10, .18);
  border-radius: 4px;
  padding: 14px 16px;
  color: #0a0a0a;
  font-family: var(--font-sans);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.wpcf7-form .form__field input::placeholder,
.wpcf7-form .form__field textarea::placeholder { color: #0a0a0a; }
.wpcf7-form .form__field input:focus,
.wpcf7-form .form__field textarea:focus {
  outline: none;
  border-color: #0a0a0a;
  background-color: rgba(10, 10, 10, .14);
}
.wpcf7-form .form__field textarea { resize: none; }
.wpcf7-form .wpcf7-not-valid-tip { color: #4a0f0f; font-size: 12px; margin-top: 4px; font-weight: 600; }
.wpcf7-form .form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
/* Submit is a real <input>, which can't host the arrow-icon span other
   buttons use — .form__submit-wrap is the visible pill (matches .btn-primary)
   and the input itself renders as plain text sitting on top of it. */
.form__submit-wrap {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 26px;
  background-color: #0a0a0a;
  border-radius: 999px;
  transition: background-color .3s var(--ease);
}
.form__submit-wrap:hover { background-color: #1a1a1a; }
.form__submit-wrap:hover .btn__arrow { transform: rotate(45deg); }
.form__submit-wrap .btn__arrow { background: var(--green-bright); color: #0a0a0a; }
.wpcf7-form .form__submit {
  background: none;
  border: none;
  padding: 0;
  color: var(--green-bright);
  font-family: var(--font-sans);
  font-weight: 600; font-size: 15px;
  cursor: pointer;
  transition: opacity .3s var(--ease);
}
.wpcf7-form .form__submit:disabled { opacity: .5; cursor: not-allowed; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #0a0a0a; color: rgba(10, 10, 10, .8); }
@media (min-width: 640px) {
  .contact__panel { padding: 64px; }
  .wpcf7-form .form__row { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .contact__inner { grid-template-columns: .85fr 1.15fr; gap: 64px; }
}

/* =========================================================================
   NEWS (LinkedIn-style feed)
   ========================================================================= */
.news-wrap { max-width: 1140px; margin: 0 auto; }
.li-card {
  background: #fff; color: #1d1d1f;
  border-radius: 12px;
  padding: 26px 28px;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.9);
}
.li-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.li-profile { display: flex; gap: 16px; }
.li-avatar {
  width: 56px; height: 56px; flex: none; border-radius: 8px;
  background: var(--green-dark); display: flex; align-items: center; justify-content: center;
}
.li-avatar img { width: 72%; }
.li-name { color: #0a66c2; font-weight: 700; font-size: 18px; }
.li-meta { font-weight: 600; font-size: 14px; color: #1d1d1f; }
.li-sub { font-size: 13.5px; color: #56687a; margin: 2px 0; }
.li-link { color: #0a66c2; font-size: 13.5px; }
.li-follow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #0a0a0a; color: #fff; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 22px;
}
.li-follow svg { width: 18px; height: 18px; }
.li-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.li-post {
  border: 1px solid #e6e6e6; border-radius: 10px; padding: 18px;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.li-post:hover { box-shadow: 0 16px 40px -24px rgba(0,0,0,.4); transform: translateY(-3px); }
.li-post__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.li-post__id { display: flex; gap: 10px; align-items: center; }
.li-post__av { width: 38px; height: 38px; border-radius: 6px; background: var(--green-dark); display:flex; align-items:center; justify-content:center; }
.li-post__av img { width: 74%; }
.li-post__name { font-weight: 700; font-size: 14px; color: #1d1d1f; }
.li-post__date { font-size: 12.5px; color: #56687a; }
.li-post__body { font-size: 14px; line-height: 1.55; color: #1d1d1f; white-space: pre-line; }
.li-post__body a { color: #0a66c2; }

/* =========================================================================
   404
   ========================================================================= */
.not-found {
  min-height: 70vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding-top: calc(var(--nav-h) + 60px);
}
.not-found__title { font-size: clamp(36px, 5vw, 56px); margin-bottom: 18px; }
.not-found__copy { color: var(--text-muted); font-size: 17px; margin-bottom: 30px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 34px;
  background: var(--bg-alt);
}
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap; margin-bottom: 40px;
}
.footer-nav ul { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-muted); font-size: 15px; transition: color .25s var(--ease); }
.footer-nav a:hover { color: var(--green-bright); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 13.5px;
}
.footer-tagline { font-family: var(--font-serif); color: var(--text-cream); font-size: 15px; }

/* =========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-scale.in { opacity: 1; transform: none; }

/* Staggered reveal delays, scoped per repeating container (block-editor-authorable content
   has no UI for arbitrary data-* attributes, so delays are structural instead). */
.feature-card:nth-child(2), .numbered__item:nth-child(2), .li-post:nth-child(2) { transition-delay: .08s; }
.feature-card:nth-child(3), .numbered__item:nth-child(3), .li-post:nth-child(3) { transition-delay: .16s; }
.numbered__item:nth-child(4), .li-post:nth-child(4) { transition-delay: .24s; }
.numbered__item:nth-child(5) { transition-delay: .32s; }

/* =========================================================================
   GUTENBERG BLOCK COMPATIBILITY
   Content is authored with core blocks; neutralize default block-library
   wrapper spacing so custom classes render identically to hand-written markup.
   ========================================================================= */
/* :where() keeps this reset's specificity at zero, so it can never outrank a
   component's own margin rule (e.g. .section__head) regardless of which
   appears later in the file — every block-authored element also carries the
   generic .wp-block-group class alongside its real layout class. */
:where(.wp-block-group, .wp-block-columns, .wp-block-gallery) { margin: 0; }
.wp-block-buttons { margin: 0; list-style: none; padding: 0; }
.wp-block-buttons .wp-block-button__link { font-family: inherit; }
.wp-block-image { margin: 0; }

/* Core auto-wraps every Group block's content in a `.wp-block-group__inner-container`
   div (regardless of theme.json), inserting an extra DOM layer between a
   custom-classed group (e.g. .features-grid, .showcase-grid) and the children
   its grid/flex CSS expects to lay out directly. Neutralize that wrapper's box so
   its children participate in the real parent's layout instead of just stacking. */
.wp-block-group__inner-container { display: contents; }
.wp-block-image img { display: block; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .reveal-scale { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .li-posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; left: 20px; right: 20px; top: calc(var(--nav-h) + 26px);
    background: rgba(8, 8, 8, .96);
    border: 1px solid rgba(47, 158, 82, .16);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(2, 6, 4, .45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
    padding: 10px;
  }
  body.nav-open .main-nav { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 2px; align-items: stretch; }
  .main-nav a { padding: 14px 16px; font-size: 16px; border-radius: 12px; }

  .features-grid, .features-grid--row2 { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .features-grid--row2 { margin-top: 22px; }
  .industry-cards { grid-template-columns: 1fr; max-width: 420px; }
  .showcase-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 620px) {
  .li-posts { grid-template-columns: 1fr; }
  .numbered__item { grid-template-columns: 60px 1fr; gap: 14px; }
  .numbered__num { font-size: 30px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
