/* Bioway — bioway.au
 *
 * BIO-03-33: this replaces the soil-profile theme. That design was deliberate
 * and well-made — the O/A/B/C/R horizons, the depth rail, depth.js — and it is
 * being discarded on the operator's instruction, not because it was broken. It
 * stays in git history.
 *
 * Direction now: green, fresh, organic, alive. Same system as the research site
 * at setup.bioway.au — the tokens below are the shared layer and are duplicated
 * there verbatim, so the two surfaces read as one brand.
 *
 * TYPE. Be Vietnam Pro leads the sans stack even though this page is currently
 * English-only. A stack that leads with a face lacking precomposed Vietnamese
 * glyphs breaks per-character — the base letter renders from one font and the
 * tone mark from another. This page will carry Vietnamese eventually; picking
 * the right stack now costs nothing and picking it later costs a retrofit.
 */

/* ============================================================
   SHARED SYSTEM — keep in sync with bioway-au/assets/site.css
   ============================================================ */

:root {
  --ground:      #F4F7F3;
  --surface:     #FFFFFF;
  --surface-2:   #E9F0E7;
  --ink:         #10231A;
  --ink-muted:   #4C6357;
  --ink-faint:   #7B9187;
  --rule:        #D3E0D3;
  --accent:      #1F7A4D;   /* grown from the research site's #1F5F4B */
  --accent-soft: #E2F1E7;
  --accent-ink:  #14603A;
  --sprout:      #7CC262;   /* young growth — small marks and rules only */
  --amber:       #E39B2E;   /* the logo's warm dot. Used sparingly, or not at all */

  --shadow-sm: 0 1px 2px rgba(16, 35, 26, .05), 0 8px 22px -14px rgba(16, 35, 26, .18);
  --shadow-lg: 0 2px 6px rgba(16, 35, 26, .06), 0 30px 60px -34px rgba(16, 35, 26, .34);

  --sans:  "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", "Noto Serif", Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --measure: 36rem;
}

/* ============================================================
   base
   ============================================================ */

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 clamp(1rem, .96rem + .22vw, 1.1rem)/1.68 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.018em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.15rem; max-width: var(--measure); }
img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: min(100% - 2.75rem, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: .7rem 1.1rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

/* eyebrow — the small label above a section heading */
.eyebrow {
  font: 700 .69rem/1.4 var(--sans);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 .85rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: var(--sprout);
  border-radius: 2px;
  flex: none;
}

/* ============================================================
   masthead
   ============================================================ */

.mast {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 0;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}

.mast--scrolled { border-bottom-color: var(--rule); }

.mast__in {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100% - 2.75rem, var(--wrap));
  margin-inline: auto;
}

.mast__mark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font: 800 1.02rem/1 var(--sans);
  letter-spacing: -.015em;
  text-decoration: none;
  color: var(--ink);
}

.mast__mark img { width: 26px; height: 26px; border-radius: 7px; }
.mast__mark span { color: var(--accent-ink); font-weight: 600; }

.mast__cta {
  margin-left: auto;
  font: 600 .86rem/1 var(--sans);
  text-decoration: none;
  color: var(--accent-ink);
  padding: .62rem .95rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color .16s ease, transform .16s ease;
}

.mast__cta:hover { border-color: var(--accent); transform: translateY(-1px); }

/* ============================================================
   hero
   ============================================================ */

.hero {
  position: relative;
  min-height: min(82vh, 44rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Anchored low: the frame's top half is a blurred forearm and fence, its
     bottom half is soil and seedlings. The bottom half is the brand. */
  object-position: 50% 78%;
  z-index: -2;
}

/* The scrim is what makes white type legible over a photograph at any crop.
   Two layers: a warm green wash for brand, a bottom-weighted darkener for
   contrast. Without the second one the lede fails WCAG on a light frame. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(8, 26, 18, .90) 0%, rgba(8, 26, 18, .55) 38%, rgba(8, 26, 18, .12) 72%),
    linear-gradient(to bottom right, rgba(20, 96, 58, .42), rgba(8, 26, 18, .18));
}

.hero__body {
  padding: 6rem 0 4.2rem;
  color: #fff;
}

.hero .eyebrow { color: #BFE8CF; }
.hero .eyebrow::before { background: var(--sprout); }

.hero__head {
  color: #fff;
  font-size: clamp(2.3rem, 1.35rem + 4.3vw, 4.35rem);
  max-width: 17ch;
  margin-bottom: 1.15rem;
}

.hero__lede {
  color: rgba(255, 255, 255, .93);
  font-size: clamp(1.03rem, .98rem + .35vw, 1.28rem);
  max-width: 40rem;
  margin-bottom: 1.9rem;
}

.btn {
  display: inline-block;
  font: 650 .95rem/1 var(--sans);
  text-decoration: none;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  background: var(--sprout);
  color: #0C2A18;
  border: 0;
  box-shadow: 0 10px 26px -12px rgba(124, 194, 98, .8);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: #8ACF70;
  box-shadow: 0 16px 34px -14px rgba(124, 194, 98, .95);
}

/* ============================================================
   bands
   ============================================================ */

.band { padding: clamp(3.5rem, 2rem + 5vw, 6.5rem) 0; }
.band--tint { background: var(--surface-2); }

.band__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.8rem, 1rem + 3vw, 3.6rem);
  align-items: center;
}

@media (min-width: 860px) {
  .band__grid { grid-template-columns: 1.05fr .95fr; }
  .band__grid--flip .band__text { order: 2; }
}

.band h2 {
  font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.5rem);
  margin-bottom: 1.1rem;
}

.band p { color: var(--ink-muted); }
.band p strong { color: var(--ink); font-weight: 650; }

.band__fig {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}

.band__fig img {
  width: 100%;
  height: clamp(15rem, 30vw, 22rem);
  object-fit: cover;
}

/* ============================================================
   ways to start
   ============================================================ */

.talk { padding: clamp(3.5rem, 2rem + 5vw, 6.5rem) 0; }

.talk__head {
  font-size: clamp(1.75rem, 1.25rem + 2.1vw, 2.7rem);
  margin-bottom: 2.4rem;
}

.ways {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.ways li {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.ways li:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.ways h3 {
  font-size: 1.16rem;
  margin-bottom: .55rem;
  display: flex;
  align-items: baseline;
  gap: .5rem;
}

.ways h3::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--sprout);
  flex: none;
}

.ways p { margin: 0; font-size: .95rem; color: var(--ink-muted); }

/* ============================================================
   contact
   ============================================================ */

.contact {
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  padding: clamp(2rem, 1.2rem + 3vw, 3.4rem);
  box-shadow: var(--shadow-lg);
  background-image: radial-gradient(120% 140% at 88% 8%, rgba(124, 194, 98, .38), transparent 58%);
}

.contact__label {
  font: 700 .69rem/1.4 var(--sans);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #BFE8CF;
  margin: 0 0 .6rem;
}

.contact__mail {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1rem + 1.9vw, 2.25rem);
  letter-spacing: -.02em;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, .38);
  padding-bottom: .12rem;
  margin-bottom: 1.1rem;
  transition: border-color .16s ease;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.contact__mail:hover { border-bottom-color: var(--sprout); }

.contact__note {
  margin: 0;
  color: rgba(255, 255, 255, .9);
  max-width: 34rem;
}

/* ============================================================
   footer
   ============================================================ */

.foot {
  border-top: 1px solid var(--rule);
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  padding: 2.2rem 0 2.8rem;
}

.foot__in { display: grid; gap: .85rem; }

.foot__legal {
  font-size: .84rem;
  color: var(--ink-faint);
  max-width: 46rem;
  margin: 0;
}

.foot__by { font-size: .84rem; color: var(--ink-faint); margin: 0; }
.foot__by a { color: var(--accent-ink); }

/* ============================================================
   narrow
   ============================================================ */

@media (max-width: 560px) {
  .wrap, .mast__in { width: calc(100% - 2rem); }
  .hero { min-height: 78vh; }
  .hero__body { padding: 4.5rem 0 3rem; }
  .mast__cta { display: none; }
}
