/* ==========================================================================
   DVI — dvi-ag.com
   Single stylesheet, single page. No frameworks, no build step.
   Structure follows the Greenleaf site so the two stay maintainable
   side by side; the palette is DVI's.
   ========================================================================== */

:root {
  /* One brand colour, sampled from the logo: #037cc1. Everything else is a
     tint or shade of it, plus a neutral ink. A second accent hue was tried
     and dropped — the oval mark is the only mark on the page and competing
     colour made it read as decoration. */
  --blue-900: #052940;
  --blue-800: #073d5f;
  --blue-700: #05628f;   /* body links and buttons — passes AA on white */
  --blue-600: #037cc1;   /* BRAND */
  --blue-500: #3aa0d8;
  --blue-100: #d4ebf8;
  --blue-050: #f0f8fd;

  --slate-900: #16212b;
  --slate-800: #2f3a45;
  --slate-600: #626d78;
  --slate-400: #9aa4ae;
  --slate-200: #e0e5ea;
  --slate-100: #f1f4f7;

  --wheat: #c58b1f;      /* used once, on the hero accent rule */

  --white: #ffffff;
  --text: var(--slate-800);
  --muted: var(--slate-600);

  --maxw: 1140px;
  --gutter: 24px;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(16, 33, 43, .08), 0 8px 24px rgba(16, 33, 43, .06);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --brand-gradient: linear-gradient(90deg, var(--blue-600), var(--blue-500) 55%, var(--blue-700));
}

/* --- reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-700); }
a:hover { color: var(--blue-600); }

h1, h2, h3, h4 {
  line-height: 1.15;
  color: var(--slate-900);
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.025em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); letter-spacing: -.03em; }
h3 { font-size: 1.22rem; letter-spacing: -.018em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* Anchor targets clear the sticky header instead of hiding under it. */
[id] { scroll-margin-top: 104px; }

/* --- layout --------------------------------------------------------------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap--narrow { max-width: 780px; }

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--tint { background: var(--blue-050); }

.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* Four product cards. Fixed column counts rather than auto-fit: auto-fit drops
   to three and leaves the fourth card stranded on its own row. Narrow columns
   suit these cards — the media is portrait, so a wider card makes the photo
   taller rather than bigger. */
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .grid--4 { grid-template-columns: 1fr; } }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue-600);
  margin: 0 0 .7em;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--brand-gradient);
  vertical-align: middle;
  margin-right: 10px;
  margin-bottom: 3px;
}

.lede { font-size: 1.15rem; color: var(--muted); }

/* --- header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow .25s ease, border-color .25s ease;
}

.site-header.is-stuck {
  box-shadow: 0 1px 0 rgba(16, 33, 43, .05), 0 6px 22px rgba(16, 33, 43, .09);
  border-bottom-color: transparent;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--slate-900);
}

/* The oval mark carries no wordmark of its own, so the company name sits
   beside it as live text — it scales with the viewport and stays selectable.
   Supplied at 2x this height for retina. */
.brand img { height: 56px; width: auto; }

.brand__name {
  display: block;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  line-height: 1.25;
  color: var(--slate-900);
}

.brand__name span {
  display: block;
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  display: block;
  padding: 9px 13px;
  border-radius: var(--radius);
  color: var(--slate-800);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
}

/* :not(.btn) — the CTA keeps its own colours, otherwise its white label
   vanishes into the blue fill on hover. */
.nav a:not(.btn):hover { background: var(--blue-050); color: var(--blue-700); }

/* `.nav a` (0,1,1) outranks `.btn--primary` (0,1,0). */
.nav a.btn--primary,
.nav a.btn--primary:hover { color: var(--white); }
.nav a.btn { white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: .95rem;
  cursor: pointer;
  color: var(--slate-800);
}

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background .18s ease, color .18s ease, border-color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--blue-700); color: var(--white); }
.btn--primary:hover { background: var(--blue-800); color: var(--white); box-shadow: 0 6px 18px rgba(5, 98, 143, .28); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: var(--white); }

.btn--outline { background: transparent; border-color: var(--blue-700); color: var(--blue-700); }
.btn--outline:hover { background: var(--blue-050); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

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

/* Three layers on ::before, front to back: a dark scrim, an optional photo,
   and the field SVG that shows through until one is set. */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--blue-900);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(5, 41, 64, .48), rgba(5, 41, 64, .80)),
    var(--hero-image, none),
    url('/images/hero-field.svg');
  background-size: cover, cover, cover;
  background-position: center, center, bottom center;
  background-repeat: no-repeat;
  transform: scale(1.07);
  animation: heroDrift 26s ease-out forwards;
}

.hero__inner { position: relative; z-index: 1; }

@keyframes heroDrift {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}

/* Accent rule along the bottom edge, slowly drifting. */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-600), var(--wheat), var(--blue-500));
  background-size: 300% 100%;
  animation: accentDrift 18s linear infinite;
}

@keyframes accentDrift {
  from { background-position: 0% 50%; }
  to   { background-position: 300% 50%; }
}

/* Vertical padding only — .wrap owns the gutter and a `padding` shorthand
   here would wipe it out. */
.hero__inner { padding-top: 112px; padding-bottom: 100px; max-width: 800px; }
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero p { font-size: 1.2rem; color: rgba(255, 255, 255, .88); max-width: 62ch; }

/* --- cards ---------------------------------------------------------------- */

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity .22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-100);
  box-shadow: 0 2px 6px rgba(16, 33, 43, .07), 0 16px 34px rgba(16, 33, 43, .10);
}

.card:hover::after { opacity: 1; }

.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .97rem; }

.card__tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-050);
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* --- stats ---------------------------------------------------------------- */

.stats {
  position: relative;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: var(--slate-200);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Brand rule across the top of the band. */
.stats::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  z-index: 3;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--brand-gradient);
}

.stat {
  background: var(--white);
  padding: 28px 24px;
  text-align: center;
  transition: background .22s ease;
}
.stat:hover { background: var(--blue-050); }

.stat__num {
  display: block;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--blue-700);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
}

.stat__label {
  display: block;
  margin-top: 6px;
  font-size: .85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* --- spec list ------------------------------------------------------------ */

.spec-list { list-style: none; margin: 0; padding: 0; }

.spec-list li {
  position: relative;
  padding: 10px 0 10px 30px;
  border-bottom: 1px solid var(--slate-200);
  color: var(--muted);
}
.spec-list li:last-child { border-bottom: 0; }

.spec-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-500);
}

.spec-list strong { color: var(--slate-900); }

/* --- feedstock chips ------------------------------------------------------ */

/* The list of manure types we run. Chips rather than a table — a table
   invites a column of numbers, and there are deliberately none on this page. */
.chips { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }

.chips li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--white);
  font-size: .95rem;
  font-weight: 600;
  color: var(--slate-900);
  box-shadow: 0 1px 2px rgba(16, 33, 43, .05);
}

.chips li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-600);
  flex: none;
}

/* --- statement band ------------------------------------------------------- */

.statement {
  position: relative;
  overflow: hidden;
  background: var(--slate-900);
  color: var(--white);
  padding: 96px 0;
}

/* Oversized oval mark, bled off the right edge as texture. */
.statement::before {
  content: "";
  position: absolute;
  right: -90px;
  top: 50%;
  width: 440px;
  height: 440px;
  margin-top: -220px;
  background: url('/images/mark.png') no-repeat center / contain;
  opacity: .09;
  pointer-events: none;
}

/* `.statement p` below is also (0,1,1); at equal specificity the later rule
   would win, so this one is scoped tighter on purpose. */
.statement p.statement__quote {
  position: relative;
  max-width: 22ch;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.035em;
  color: var(--white);
}

.statement__quote em { font-style: normal; color: var(--blue-500); }

.statement p {
  position: relative;
  max-width: 54ch;
  margin-top: 28px;
  color: rgba(255, 255, 255, .72);
  font-size: 1.08rem;
}

/* --- forms ---------------------------------------------------------------- */

.form { display: grid; gap: 18px; }

.field { display: grid; gap: 6px; }

.field label { font-weight: 600; font-size: .92rem; color: var(--slate-900); }
.field .hint { font-size: .82rem; color: var(--muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: .97rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(3, 124, 193, .18);
}

.field textarea { min-height: 130px; resize: vertical; }

.field-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }

/* Honeypot. Off-screen rather than display:none so bots still fill it. */
.hp { position: absolute; left: -9999px; }

/* --- info panel ----------------------------------------------------------- */

.info-panel {
  background: var(--blue-900);
  color: rgba(255, 255, 255, .85);
  border-radius: var(--radius);
  padding: 32px;
}

.info-panel h3 { color: var(--white); }
.info-panel a { color: var(--white); }

.info-panel dl { margin: 0; display: grid; gap: 20px; }
.info-panel dt {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue-500);
  font-weight: 700;
  margin-bottom: 3px;
}
.info-panel dd { margin: 0; }

/* --- callout -------------------------------------------------------------- */

.callout {
  background: var(--blue-800);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.callout h2 { color: var(--white); margin-bottom: .2em; }
.callout p { color: rgba(255, 255, 255, .85); margin: 0; }

/* --- icons ---------------------------------------------------------------- */

/* Inline SVGs use stroke="currentColor" and take their size from here, so
   recolouring the parent recolours the icon. */
.icon {
  width: 28px;
  height: 28px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--blue-700);
  margin-bottom: 16px;
}

/* --- ghost section numerals ----------------------------------------------- */

.section[data-num] { position: relative; overflow: hidden; }

.section[data-num]::before {
  content: attr(data-num);
  position: absolute;
  top: -.28em;
  right: 2%;
  font-size: clamp(9rem, 22vw, 20rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.06em;
  color: var(--slate-900);
  opacity: .035;
  pointer-events: none;
  user-select: none;
}

.section--tint[data-num]::before { color: var(--blue-800); opacity: .06; }

/* --- scroll progress ------------------------------------------------------ */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 80;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--brand-gradient);
  pointer-events: none;
}

/* --- footer --------------------------------------------------------------- */

.site-footer {
  background: var(--slate-900);
  color: rgba(255, 255, 255, .68);
  padding: 56px 0 28px;
  font-size: .93rem;
}

.site-footer__logo { height: 44px; width: auto; margin-bottom: 20px; }

.site-footer h4 {
  color: var(--white);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1em;
}

.site-footer a { color: rgba(255, 255, 255, .68); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }

.site-footer__grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1.6fr 1fr 1fr;
}

.site-footer__bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(255, 255, 255, .45);
}

/* --- motion --------------------------------------------------------------- */

/* Tagged with data-reveal by js/main.js so the markup stays clean. Anything
   the observer never reaches stays visible. */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.2, .7, .3, 1), transform .6s cubic-bezier(.2, .7, .3, 1);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

[data-reveal][style*="--d"] { transition-delay: var(--d); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero::before { animation: none; transform: none; }
  .hero::after { animation: none; background-size: 100% 100%; }

  [data-reveal],
  [data-reveal].is-visible { opacity: 1; transform: none; transition: none; }

  .card:hover, .btn:hover { transform: none; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    padding: 8px var(--gutter) 16px;
    box-shadow: var(--shadow);
  }

  .nav.is-open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--slate-100); }
  .nav .btn { margin-top: 12px; text-align: center; border-bottom: 0; }

  .site-header__bar { position: relative; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .statement { padding: 64px 0; }
  .statement::before { width: 270px; height: 270px; margin-top: -135px; right: -80px; }
  .section[data-num]::before { display: none; }
  .hero__inner { padding-top: 76px; padding-bottom: 66px; }

  .brand img { height: 42px; }
  .brand__name { font-size: .84rem; }
  .brand__name span { font-size: .72rem; }
  .site-header__bar { min-height: 74px; }

  .field-row { grid-template-columns: 1fr; }
  .callout { padding: 28px; }
  .info-panel { padding: 24px; }
}

@media print {
  .site-header, .site-footer, .btn-row, .progress { display: none; }
}

/* --- product card media --------------------------------------------------- */

/* Bleeds to the card edge, so the negative margin has to match .card's
   28px padding exactly. The ::after hover rule draws a 3px bar over the top
   edge, which is why the image corners are only rounded, not clipped away. */
.card__media {
  margin: -28px -28px 22px;
  /* Portrait. Every product here is photographed as a tall bottle or a bed of
     pellets shot straight down; a 4:3 frame could not hold a whole bottle
     without pillarboxing it. */
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--slate-100);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

.card:hover .card__media img { transform: scale(1.04); }

/* --- photo figure --------------------------------------------------------- */

.figure {
  margin: 0 auto;
  /* Portrait photo in a two-column row — cap it so the image does not tower
     over the prose beside it. */
  max-width: 400px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.figure figcaption {
  padding: 14px 18px;
  font-size: .88rem;
  color: var(--muted);
  border-top: 1px solid var(--slate-200);
}

/* --- inline metric trio --------------------------------------------------- */

/* Lighter than .stats — used inside a two-column section where the full
   bordered band would be too heavy. */
.metrics { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }

.metrics > li {
  border-left: 3px solid var(--blue-600);
  padding: 2px 0 2px 18px;
}

.metrics b {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-700);
  letter-spacing: -.03em;
  line-height: 1.15;
}

.metrics span { display: block; color: var(--muted); font-size: .95rem; margin-top: 2px; }

@media (prefers-reduced-motion: reduce) {
  .card:hover .card__media img { transform: none; }
}

/* --- product chemistry rows ----------------------------------------------- */

/* What the material actually is, chemically — the one place on the page where
   composition is named. Grades, assays and lab reports stay off the site and
   go out on request. */
.card__chem {
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--slate-200);
  display: grid;
  gap: 9px;
  font-size: .88rem;
}

.card__chem > div { display: grid; gap: 1px; }

.card__chem dt {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .7rem;
  font-weight: 700;
  padding-top: 2px;
}

.card__chem dd { margin: 0; color: var(--slate-900); font-weight: 600; }


