/* =====================================================================
   NOON — PREMIUM CHROME
   The shared "creamy filling" — brass-gradient tagline strip, soft
   scroll reveals, unified footer, premium spacing tokens. Once
   imported on a page, classes propagate the homepage register.

   Used by: /practice/, /exchange/, /about/, /projects/, /contact/,
   /exchange/{sub}/, /source/{cat}/, /press/, /sourcing/.
   ===================================================================== */

:root {
  /* Brass gradient hairline — used left and right of taglines */
  --pr-brass-gradient: linear-gradient(90deg, transparent, rgba(206,211,218,0.55), transparent);
  --pr-brass-gradient-l: linear-gradient(90deg, transparent, rgba(206,211,218,0.55));
  --pr-brass-gradient-r: linear-gradient(90deg, rgba(206,211,218,0.55), transparent);

  /* Premium rhythm */
  --pr-rhythm-hero-top: clamp(96px, 14vh, 180px);
  --pr-rhythm-hero-bot: clamp(56px, 8vh, 96px);
  --pr-rhythm-section: clamp(72px, 10vh, 140px);
  --pr-rhythm-stanza: clamp(40px, 6vh, 64px);
}

/* ============================================================
   .eco-image  —  UNIFIED PHOTO FILTER
   Drop any open-source photo (Unsplash, USDA NRCS, USGS, NPS,
   iNaturalist, LBJ Wildflower, etc.) into this class and it
   gets the Noon documentary aesthetic: slightly desaturated,
   warm-brass tinted, gentle inner vignette, hairline brass
   border. Makes amateur captures and stock photos look
   consistent with the rest of the practice.

   Use:
     <figure class="eco-image">
       <img src="..." alt="..." loading="lazy" />
       <figcaption>Optional italic Fraunces caption.</figcaption>
     </figure>

   Sources we recommend (all free, mostly public domain or CC):
     - Unsplash         https://unsplash.com  (no attribution)
     - USDA NRCS        https://www.nrcs.usda.gov  (public domain)
     - USGS             https://www.usgs.gov/media  (public domain)
     - National Park    https://www.nps.gov  (public domain)
     - iNaturalist      https://www.inaturalist.org  (CC, check each)
     - LBJ Wildflower   https://www.wildflower.org  (educational use)
   ============================================================ */
.eco-image {
  display: block;
  margin: clamp(28px, 4vh, 48px) auto;
  max-width: 100%;
  position: relative;
}
.eco-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(206, 211, 218, 0.34);
  border-radius: 2px;
  /* The documentary filter: slightly desaturated, warm-brass tinted,
     gentle vintage feel — unifies amateur and stock photography
     into one consistent register. */
  filter:
    contrast(1.06)
    saturate(0.78)
    sepia(0.22)
    brightness(0.96)
    hue-rotate(-6deg);
  box-shadow:
    0 0 0 1px rgba(15, 15, 14, 0.4) inset,
    0 4px 24px rgba(0, 0, 0, 0.35);
  transition: filter 320ms ease;
}
.eco-image:hover img {
  filter:
    contrast(1.08)
    saturate(0.85)
    sepia(0.22)
    brightness(1.0)
    hue-rotate(-6deg);
}
.eco-image figcaption {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--paper-3, #969CA4);
  margin-top: 12px;
  padding-left: 14px;
  border-left: 1px solid rgba(206, 211, 218, 0.34);
  max-width: 56ch;
}
.eco-image figcaption .credit {
  display: block;
  font-style: normal;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(206, 211, 218, 0.75);
  margin-top: 6px;
}
/* Variants for different scales */
.eco-image--wide { max-width: 880px; }
.eco-image--full { max-width: 1180px; }
.eco-image--narrow { max-width: 560px; }
/* Aspect-ratio variants */
.eco-image--landscape img { aspect-ratio: 16/9; object-fit: cover; }
.eco-image--portrait img  { aspect-ratio: 3/4;  object-fit: cover; }
.eco-image--square img    { aspect-ratio: 1/1;  object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
  .eco-image img { transition: none; }
}

/* ---------- TAGLINE STRIP ----------
   Small mono caps with brass-gradient hairlines on each side.
   Used as the very first element in any premium hero. */
.pr-tagline {
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  margin: 0 auto var(--pr-rhythm-stanza);
  max-width: 820px;
  padding: 0 clamp(16px, 4vw, 48px);
}
.pr-tagline__rule {
  flex: 1; height: 1px;
  background: var(--pr-brass-gradient);
  opacity: 0.85;
}
.pr-tagline__rule--l { background: var(--pr-brass-gradient-l); }
.pr-tagline__rule--r { background: var(--pr-brass-gradient-r); }
.pr-tagline__text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--paper-2, #CFD3D8);
  white-space: nowrap;
  flex-shrink: 0;
}
/* hero taglines sit above the fold — never let the scroll-reveal trap them invisible */
.pr-tagline.pr-reveal { opacity: 1; transform: none; }
@media (max-width: 640px) {
  .pr-tagline__text { font-size: 9.5px; letter-spacing: 0.22em; white-space: normal; text-align: center; }
}

/* ---------- HERO H1 ----------
   Big Fraunces with italic-ember ornament for the closing phrase. */
.pr-h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(48px, 7vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  color: var(--paper, #ECEDEF);
  max-width: 18ch;
  margin: 0 auto clamp(20px, 3vh, 28px);
  text-wrap: balance;
  text-align: center;
}
.pr-h1 em {
  font-style: italic; color: var(--ember, #8FA0B0); font-weight: 400;
}

/* ---------- LEDE ----------
   Italic Fraunces, paper-warm color, generous line-height. */
.pr-lede {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic; font-weight: 400;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.5;
  letter-spacing: -0.006em;
  color: var(--paper-2, #CFD3D8);
  text-align: center;
  max-width: 38ch;
  margin: 0 auto;
  text-wrap: pretty;
}

/* ---------- SOFT REVEAL ----------
   Triggered by IntersectionObserver via /assets/_premium.js.
   Until JS adds .is-revealed, the element is invisible and shifted. */
.pr-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 1100ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1100ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.pr-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children if the container has .pr-reveal-stagger */
.pr-reveal-stagger > .pr-reveal:nth-child(2) { transition-delay: 140ms; }
.pr-reveal-stagger > .pr-reveal:nth-child(3) { transition-delay: 280ms; }
.pr-reveal-stagger > .pr-reveal:nth-child(4) { transition-delay: 420ms; }
.pr-reveal-stagger > .pr-reveal:nth-child(5) { transition-delay: 560ms; }
.pr-reveal-stagger > .pr-reveal:nth-child(6) { transition-delay: 700ms; }
.pr-reveal-stagger > .pr-reveal:nth-child(7) { transition-delay: 840ms; }
.pr-reveal-stagger > .pr-reveal:nth-child(8) { transition-delay: 980ms; }

@media (prefers-reduced-motion: reduce) {
  .pr-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- ATMOSPHERIC BACKDROP ----------
   Subtle radial wash. Adds depth without being a banner. */
.pr-atmos {
  position: relative;
  isolation: isolate;
}
.pr-atmos::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(206,211,218,0.025) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(143,160,176,0.020) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.pr-atmos > * { position: relative; z-index: 1; }

/* ---------- UNIFIED FOOTER ----------
   Three IA columns + utility row + bottom strip.
   Pulls structure from /assets/ia.json (implied).
   Class names use pr-foot* so they don't collide with per-page .foot. */
.pr-foot {
  padding: clamp(56px, 7vh, 96px) clamp(24px, 5vw, 80px);
  border-top: 1px solid rgba(206,211,218,0.22);
  background: var(--bg, #1A1A1A);
  margin-top: clamp(32px, 5vh, 64px);
}
.pr-foot__grid {
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
@media (max-width: 760px) {
  .pr-foot__grid { grid-template-columns: 1fr; gap: 32px; }
}
.pr-foot__col h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--brass, #9AA1AA);
  margin-bottom: 18px;
}
.pr-foot__col h4::after {
  content: '';
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--brass, #9AA1AA);
  opacity: 0.5;
  margin-left: 12px; vertical-align: middle;
}
.pr-foot__col a {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 15px; font-weight: 400;
  line-height: 1.65;
  color: var(--paper-2, #CFD3D8);
  padding: 3px 0;
  text-decoration: none;
  transition: color 220ms ease, padding-left 220ms ease;
}
.pr-foot__col a:hover {
  color: var(--ember, #8FA0B0);
  padding-left: 6px;
}
.pr-foot__col em {
  font-style: italic; color: var(--paper-3, #969CA4);
}

/* Utility row — Press / API / About / Contact */
.pr-foot__util {
  max-width: 1180px; margin: clamp(36px, 5vh, 56px) auto 0;
  padding: 18px 0;
  border-top: 1px solid rgba(206,211,218,0.22);
  border-bottom: 1px solid rgba(206,211,218,0.14);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(20px, 3vw, 40px);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.pr-foot__util a {
  color: var(--paper-3, #969CA4);
  text-decoration: none;
  transition: color 200ms ease;
}
.pr-foot__util a:hover { color: var(--ember, #8FA0B0); }

/* Bottom strip — copyright + brand mark */
.pr-foot__bot {
  max-width: 1180px; margin: 24px auto 0;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 18px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 10px; letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--paper-4, #63686F);
}
.pr-foot__bot a { color: var(--paper-3, #969CA4); }
.pr-foot__bot a:hover { color: var(--ember, #8FA0B0); }
.pr-foot__brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.pr-foot__brand svg {
  width: 18px; height: 18px;
  display: block;
}
.pr-foot__brand-word {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500; font-size: 15px;
  letter-spacing: -0.010em;
  color: var(--paper-2, #CFD3D8);
  text-transform: none;
}

/* ---------- PREMIUM HERO CONTAINER ----------
   Convenience wrapper for interior page heroes. */
.pr-hero {
  padding: var(--pr-rhythm-hero-top) clamp(24px, 5vw, 80px) var(--pr-rhythm-hero-bot);
  text-align: center;
  border-bottom: 1px solid rgba(206,211,218,0.22);
  position: relative;
}
.pr-hero__sub {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--paper-3, #969CA4);
  margin-top: clamp(14px, 2vh, 22px);
}

/* ============================================================
   .src-it — INLINE PROCUREMENT HIGHLIGHTS
   Wrap brand/product mentions in Source articles with this class
   to turn them into actionable "have Noon source it" links.
   Usage:
     <a class="src-it" href="/source-it/?need=Beneficial%20nematodes">
       beneficial nematodes
     </a>
   Renders as: ember-tinted text + brass dashed underline +
   subtle "→" badge on hover. Click routes to /source-it/ with
   the item pre-filled in both the search input and the intake form.
   ============================================================ */
.src-it {
  position: relative;
  color: var(--paper, #ECEDEF);
  border-bottom: 1px dashed var(--brass, #9AA1AA);
  padding-bottom: 1px;
  text-decoration: none;
  background: linear-gradient(180deg, transparent 60%, rgba(143,160,176,0.10) 60%);
  background-size: 100% 200%;
  background-position: 0 0;
  transition: background-position 320ms ease, color 240ms ease, border-color 240ms ease;
  cursor: pointer;
}
.src-it::after {
  content: ' \2192';
  font-family: 'Fraunces', Georgia, serif;
  font-style: normal;
  font-size: 0.78em;
  color: var(--brass, #9AA1AA);
  margin-left: 2px;
  opacity: 0.65;
  transition: opacity 240ms ease, transform 240ms ease, color 240ms ease;
  display: inline-block;
}
.src-it:hover {
  color: var(--ember, #8FA0B0);
  border-color: var(--ember, #8FA0B0);
  background-position: 0 100%;
}
.src-it:hover::after {
  opacity: 1;
  transform: translateX(3px);
  color: var(--ember, #8FA0B0);
}

/* =====================================================================
   NATIVE CROSS-DOCUMENT VIEW TRANSITIONS
   This sheet loads on every page, so this makes site-wide navigation
   feel like one continuous surface — a soft cross-fade between pages.
   Progressive enhancement: browsers without support just hard-cut.
   Honors reduced-motion (near-instant when the user asks for less).
   ===================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 300ms;
  animation-timing-function: cubic-bezier(.4, 0, .2, 1);
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: 1ms; }
}
