:root {
  --paper: #f1efe4;
  --paper-deep: #e3dfcf;
  --ink: #182019;
  --muted: #62685f;
  --green: #244b2b;
  --green-deep: #102f1c;
  --acid: #b8d52b;
  --purple: #35203e;
  --line: rgba(24, 32, 25, 0.25);
  --line-light: rgba(241, 239, 228, 0.26);
  --serif: "Newsreader", Georgia, serif;
  --sans: "IBM Plex Sans", Arial, sans-serif;
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 72px);
  --nav-height: 76px;
}

[data-theme="dark"] {
  --paper: #141a15;
  --paper-deep: #20281f;
  --ink: #ecebdc;
  --muted: #a9afa4;
  --green: #9db872;
  --green-deep: #0c2215;
  --line: rgba(236, 235, 220, 0.24);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.nav-open {
  overflow: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
  font: inherit;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 5px;
}
.page-grid {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section-space {
  padding-block: clamp(76px, 9vw, 138px);
}
.section-code {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
}
h1 {
  font-size: clamp(4.35rem, 9.4vw, 9rem);
}
h2 {
  font-size: clamp(3.4rem, 6.8vw, 7rem);
}
em {
  font-weight: 400;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 1000;
  background: var(--acid);
  color: #10200f;
  padding: 12px 18px;
}
.skip-link:focus {
  top: 12px;
}

/* Navigation */
.navbar {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--nav-height);
  color: #f6f3e8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.navbar.scrolled {
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  color: var(--ink);
  border-color: var(--line);
  backdrop-filter: blur(10px);
}
.nav-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.brand img {
  width: 28px;
  height: 32px;
  object-fit: cover;
  object-position: center;
}
.nav-links {
  display: flex;
  gap: clamp(18px, 2vw, 34px);
  align-items: center;
  list-style: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: currentColor;
  transition: right 0.25s;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0;
}
.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-contact {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.theme-indicator {
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
}
[data-theme="dark"] .theme-indicator {
  background: currentColor;
}
.hamburger {
  display: none;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 1px;
  background: currentColor;
  margin: 8px 2px;
  transition: transform 0.25s;
}
.hamburger.active span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}
.hamburger.active span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}
.nav-mobile-contact {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: max(680px, 100svh);
  overflow: hidden;
  background: #183922;
  color: #f5f2e7;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(9, 34, 19, 0.94) 0%,
    rgba(13, 48, 26, 0.78) 47%,
    rgba(13, 48, 26, 0.08) 78%
  );
}
.hero-field {
  position: absolute;
  inset: 0;
  background: url("assets/why.png") 74% 57% / cover no-repeat;
  filter: saturate(0.75) contrast(1.08);
}
.hero-grid {
  position: relative;
  z-index: 2;
  min-height: max(680px, 100svh);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  align-items: end;
  padding-top: calc(var(--nav-height) + 28px);
}
.hero-copy {
  align-self: center;
  max-width: 900px;
  padding: 5vh 0 8vh;
}
.hero-copy .section-code {
  color: #cbd9b8;
  margin-bottom: clamp(28px, 5vh, 62px);
}
.hero-copy h1 {
  max-width: 880px;
  font-size: clamp(4.2rem, 8.4vw, 8.2rem);
}
.hero-copy h1 em {
  color: var(--acid);
}
.hero-intro {
  margin-top: clamp(28px, 4vh, 52px);
  margin-left: clamp(0px, 8vw, 110px);
  max-width: 410px;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  padding-left: 24px;
}
.hero-intro p {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.77);
}
.primary-link,
.contact-primary {
  display: inline-flex;
  justify-content: space-between;
  gap: 50px;
  min-width: 270px;
  padding: 14px 0;
  border-block: 1px solid currentColor;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-product {
  align-self: end;
  position: relative;
  height: 79%;
  min-height: 500px;
}
.hero-product img {
  position: absolute;
  z-index: 2;
  right: clamp(-24px, 1.5vw, 20px);
  bottom: -3%;
  width: min(35vw, 470px);
  max-height: 92%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 28px 24px rgba(0, 0, 0, 0.36));
}
.product-index {
  position: absolute;
  top: 12%;
  right: 5%;
  font-size: 0.72rem;
  line-height: 1.3;
  letter-spacing: 0.12em;
}
.product-caption {
  position: absolute;
  bottom: 5%;
  left: 2%;
  z-index: 3;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.65);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Technical rail */
.spec-rail {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}
.rail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 26px;
}
.rail-grid div {
  padding: 0 clamp(18px, 3vw, 42px);
  border-left: 1px solid var(--line);
}
.rail-grid div:first-child {
  padding-left: 0;
  border-left: 0;
}
.rail-grid dt,
.product-specs dt {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.rail-grid dd {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
}

/* Product story */
.story-grid {
  display: grid;
  grid-template-columns: 55px minmax(280px, 0.78fr) minmax(360px, 0.95fr);
  gap: clamp(30px, 6vw, 100px);
  align-items: start;
}
.vertical-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  padding-top: 4px;
}
.story-image {
  margin-top: 70px;
}
.story-image img {
  width: 100%;
  height: clamp(520px, 61svh, 720px);
  object-fit: cover;
  object-position: 52% center;
}
figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.story-copy {
  padding-top: 0;
}
.story-copy .section-code {
  margin-bottom: 50px;
}
.story-copy h2 {
  font-size: clamp(3.25rem, 5.8vw, 6.5rem);
}
.story-copy .lead {
  max-width: 550px;
  margin: 48px 0 66px clamp(0px, 4vw, 70px);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.35;
}
.story-points {
  list-style: none;
  border-top: 1px solid var(--line);
}
.story-points li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.story-points li > span {
  color: var(--green);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}
.story-points strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}
.story-points p {
  color: var(--muted);
  margin-top: 3px;
  font-size: 0.9rem;
}

/* Registered analysis */
.analysis {
  padding-block: clamp(78px, 8vw, 120px);
  background: #132419;
  color: #f0eedf;
}
.analysis-heading {
  display: grid;
  grid-template-columns: 0.7fr 1.5fr 0.8fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 74px;
}
.analysis-heading .section-code {
  align-self: start;
  color: #9eb28f;
}
.analysis-heading h2 {
  color: var(--acid);
}
.analysis-heading > p:last-child {
  max-width: 280px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.85rem;
}
.nutrient-sheet {
  border-top: 1px solid var(--line-light);
}
.nutrient {
  display: grid;
  grid-template-columns: minmax(80px, 0.55fr) 1.7fr 0.8fr;
  align-items: baseline;
  padding: clamp(20px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--line-light);
}
.nutrient .symbol {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  color: rgba(255, 255, 255, 0.7);
}
.nutrient sub {
  font-size: 0.45em;
}
.nutrient strong {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7.2vw, 7.5rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.06em;
}
.nutrient strong small {
  font: 500 0.17em var(--sans);
  margin-left: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nutrient .name {
  justify-self: end;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.nutrient.featured strong {
  color: var(--acid);
}
.analysis-foot {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 30px;
  padding-top: 28px;
  font-size: 0.72rem;
}
.analysis-foot p {
  max-width: 510px;
  color: rgba(255, 255, 255, 0.48);
}
.analysis-foot a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Field journal */
.field-header {
  display: grid;
  grid-template-columns: 0.65fr 1.55fr 0.8fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 80px;
}
.field-header .section-code {
  align-self: start;
}
.field-header p:last-child {
  color: var(--muted);
  max-width: 350px;
  font-size: 0.9rem;
}
.field-composition {
  display: grid;
  grid-template-columns: minmax(350px, 1.25fr) minmax(300px, 0.75fr);
  align-items: start;
  gap: clamp(24px, 5vw, 80px);
}
.field-photo {
  width: 100%;
}
.field-photo img {
  width: 100%;
  height: min(70vw, 760px);
  object-fit: cover;
  object-position: center 58%;
}
.field-photo figcaption span {
  color: var(--green);
}
.field-photo figcaption strong {
  color: var(--ink);
  font-weight: 500;
}
.field-video {
  margin-top: clamp(100px, 16vw, 230px);
}
.video-frame {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--green-deep);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-note {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.video-note span {
  color: var(--green);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.video-note strong {
  display: block;
  margin: 12px 0 7px;
  font: 500 clamp(1.3rem, 2.3vw, 2rem) var(--serif);
}
.video-note p {
  color: var(--muted);
  font-size: 0.83rem;
}

/* Farmer perspectives */
.testimonials {
  padding-block: clamp(78px, 9vw, 138px);
  background: var(--paper-deep);
  overflow: hidden;
}
.testimonial-heading {
  display: grid;
  grid-template-columns: 0.65fr 1.55fr 0.8fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 62px;
}
.testimonial-heading .section-code {
  align-self: start;
}
.testimonial-heading > p:last-child {
  color: var(--muted);
  max-width: 370px;
  font-size: 0.86rem;
}
.testimonial-feature {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(50px, 8vw, 130px);
  align-items: center;
}
.testimonial-photo img {
  width: 100%;
  height: min(58svh, 650px);
  object-fit: cover;
  object-position: center 58%;
}
.testimonial-feature blockquote {
  position: relative;
  padding-top: 54px;
}
.quote-mark {
  position: absolute;
  top: -42px;
  left: -8px;
  color: var(--green);
  font: 400 8rem/1 var(--serif);
  opacity: 0.65;
}
.testimonial-feature blockquote p {
  position: relative;
  font: 400 clamp(2.25rem, 4.5vw, 4.8rem)/1.04 var(--serif);
  letter-spacing: -0.04em;
}
.testimonial-feature blockquote footer,
.testimonial-strip footer {
  margin-top: 30px;
  color: var(--green);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.testimonial-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 72px;
  border-block: 1px solid var(--line);
}
.testimonial-strip blockquote {
  padding: 30px clamp(20px, 3vw, 42px) 34px;
  border-left: 1px solid var(--line);
}
.testimonial-strip blockquote:first-child {
  padding-left: 0;
  border-left: 0;
}
.testimonial-strip p {
  font: 400 clamp(1.05rem, 1.55vw, 1.35rem)/1.35 var(--serif);
}
.testimonial-strip footer {
  margin-top: 20px;
}

/* Application */
.application {
  background: var(--purple);
  color: #f3eee3;
  padding-block: clamp(78px, 8vw, 125px);
}
.application-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(480px, 1.2fr);
  gap: clamp(70px, 10vw, 160px);
}
.application-intro .section-code {
  color: #c1b3c8;
  margin-bottom: 48px;
}
.application-intro h2 {
  font-size: clamp(3.2rem, 5.5vw, 6.3rem);
}
.application-intro > p:not(.section-code) {
  color: rgba(255, 255, 255, 0.6);
  max-width: 410px;
  margin: 42px 0 36px;
}
.text-link-light {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.process {
  position: relative;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.process::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--acid);
  transition: width 1.4s ease;
}
.process.in-view::before {
  width: 100%;
}
.process li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  padding: 28px 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.process .step {
  color: var(--acid);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}
.process strong {
  font: 500 clamp(1.8rem, 3vw, 2.8rem) var(--serif);
}
.process p {
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
  font-size: 0.85rem;
}

/* Product record */
.product-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(480px, 1.15fr);
  gap: clamp(60px, 10vw, 160px);
  align-items: center;
}
.product-heading {
  position: relative;
  min-height: 680px;
}
.product-heading .section-code {
  margin-bottom: 48px;
}
.product-heading h2 {
  position: relative;
  z-index: 2;
  font-size: clamp(4rem, 6.5vw, 7rem);
}
.product-heading img {
  position: absolute;
  right: 2%;
  bottom: -40px;
  width: min(310px, 56%);
  filter: drop-shadow(0 28px 22px rgba(25, 34, 22, 0.2));
}
.product-specs {
  border-top: 1px solid var(--line);
}
.product-specs div {
  display: grid;
  grid-template-columns: minmax(130px, 0.6fr) 1.4fr;
  gap: 30px;
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
}
.product-specs dd {
  font: 500 clamp(1.25rem, 2.3vw, 2rem) var(--serif);
}

/* FAQ */
.faq {
  padding-top: 20px;
}
.faq-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(500px, 1.28fr);
  gap: clamp(60px, 10vw, 160px);
}
.faq-heading {
  position: sticky;
  top: calc(var(--nav-height) + 45px);
  align-self: start;
}
.faq-heading .section-code {
  margin-bottom: 44px;
}
.faq-heading h2 {
  font-size: clamp(4rem, 6.2vw, 6.7rem);
}
.faq-heading a {
  display: inline-block;
  margin-top: 48px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  display: grid;
  grid-template-columns: 60px 1fr 24px;
  gap: 10px;
  align-items: center;
  padding: 30px 0;
  cursor: pointer;
  list-style: none;
  font: 500 clamp(1.25rem, 2.2vw, 1.8rem) var(--serif);
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  justify-self: end;
  font: 400 1.4rem var(--sans);
}
.faq-list details[open] summary::after {
  content: "−";
}
.faq-list summary span {
  color: var(--green);
  font: 600 0.64rem var(--sans);
  letter-spacing: 0.12em;
}
.faq-list details p {
  max-width: 620px;
  padding: 0 30px 32px 70px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Contact */
.contact {
  position: relative;
  min-height: 800px;
  background: #15331e;
  color: #f5f1e6;
  overflow: hidden;
}
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(12, 36, 20, 0.98) 0%,
    rgba(12, 36, 20, 0.88) 50%,
    rgba(12, 36, 20, 0.22) 78%
  );
}
.contact-photo {
  position: absolute;
  inset: 0;
  background: url("assets/footer.png") 78% 46% / cover no-repeat;
  filter: saturate(0.7);
}
.contact-grid {
  position: relative;
  z-index: 2;
  min-height: 800px;
  padding-block: 130px 90px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 80px;
  align-items: end;
}
.contact-copy .section-code {
  color: #cad6bd;
  margin-bottom: 50px;
}
.contact-copy h2 {
  font-size: clamp(4.1rem, 7.8vw, 8.2rem);
}
.contact-copy h2 em {
  color: var(--acid);
}
.contact-copy > p:not(.section-code) {
  max-width: 430px;
  margin: 45px 0 35px;
  color: rgba(255, 255, 255, 0.68);
}
.contact-details {
  font-style: normal;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}
.contact-details p {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.contact-details span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.contact-details a,
.contact-details strong {
  font: 500 clamp(1rem, 1.7vw, 1.35rem) var(--serif);
}
.contact-details strong {
  display: block;
}

/* Footer */
.footer {
  background: #0d1911;
  color: #e6e4d8;
  padding-block: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.3fr 1.2fr auto;
  gap: 40px;
  align-items: end;
}
.footer-brand {
  font-size: 1.35rem;
}
.footer-grid > p {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  max-width: 280px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-grid .copyright {
  white-space: nowrap;
}
.back-to-top {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s;
  cursor: pointer;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.2, 0.75, 0.25, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Tablet */
@media (max-width: 1050px) {
  .navbar.scrolled {
    background: var(--paper);
    backdrop-filter: none;
  }
  .nav-links {
    display: none;
  }
  .nav-inner {
    grid-template-columns: 1fr auto;
  }
  .hamburger {
    display: block;
    width: 44px;
    height: 44px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    transition:
      background 0.25s,
      color 0.25s,
      border-color 0.25s;
  }
  .hamburger span {
    margin-block: 7px;
  }
  .navbar.scrolled .hamburger {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
  }
  .navbar.scrolled .hamburger.active {
    background: var(--green-deep);
    color: #f3f0e5;
    border-color: var(--green-deep);
  }
  .nav-links.open {
    position: fixed;
    z-index: 101;
    display: flex;
    inset: var(--nav-height) 0 0;
    width: 100vw;
    height: calc(100dvh - var(--nav-height));
    overflow-y: auto;
    background: var(--green-deep);
    color: #f3f0e5;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    padding: clamp(28px, 7vh, 70px) var(--gutter);
    font: 500 clamp(2.4rem, 7vw, 4rem) var(--serif);
    letter-spacing: -0.03em;
    text-transform: none;
  }
  .nav-actions {
    position: relative;
    z-index: 102;
  }
  .nav-mobile-contact {
    display: block;
  }
  .nav-links a::after {
    bottom: -3px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  }
  .hero-product img {
    width: min(40vw, 420px);
    right: -22px;
  }
  .story-grid {
    grid-template-columns: 35px 1fr 1fr;
    gap: 34px;
  }
  .analysis-heading,
  .field-header {
    grid-template-columns: 0.5fr 1.4fr 0.8fr;
  }
  .testimonial-heading {
    grid-template-columns: 0.5fr 1.4fr 0.8fr;
  }
  .testimonial-feature {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
  }
  .application-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
  }
  .product-grid {
    gap: 60px;
  }
}

/* Mobile */
@media (max-width: 760px) {
  :root {
    --nav-height: 66px;
    --gutter: 20px;
  }
  .theme-label,
  .nav-contact {
    display: none;
  }
  .nav-actions {
    gap: 10px;
  }
  .brand {
    font-size: 1.3rem;
  }
  .brand img {
    width: 24px;
    height: 28px;
  }
  .theme-toggle {
    width: 38px;
    height: 38px;
    justify-content: center;
  }
  .hero {
    min-height: max(660px, 100svh);
  }
  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(9, 35, 19, 0.82) 0%,
      rgba(9, 35, 19, 0.76) 46%,
      rgba(9, 35, 19, 0.95) 100%
    );
  }
  .hero-field {
    background-position: 54% center;
  }
  .hero-grid {
    min-height: max(660px, 100svh);
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: calc(var(--nav-height) + 36px);
  }
  .hero-copy {
    padding: 0;
    align-self: start;
  }
  .hero-copy .section-code {
    margin-bottom: 20px;
  }
  .hero-copy h1 {
    font-size: clamp(3.45rem, 15.5vw, 5rem);
    line-height: 0.88;
  }
  .hero-intro {
    margin: 22px 0 0;
    max-width: 315px;
    padding-left: 15px;
  }
  .hero-intro p {
    font-size: 0.86rem;
    margin-bottom: 15px;
  }
  .primary-link {
    min-width: 240px;
    padding-block: 10px;
    font-size: 0.66rem;
  }
  .hero-product {
    position: absolute;
    inset: auto 0 0;
    height: min(43svh, 345px);
    min-height: 280px;
    overflow: visible;
  }
  .hero-product img {
    width: clamp(190px, 51vw, 235px);
    max-height: none;
    right: max(8px, 4vw);
    bottom: -24px;
  }
  .product-index {
    top: 20%;
    left: 20px;
    right: auto;
  }
  .product-caption {
    left: 20px;
    bottom: 22px;
  }
  .rail-grid {
    grid-template-columns: 1fr 1fr;
    padding-block: 0;
  }
  .rail-grid div {
    padding: 20px 12px;
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .rail-grid div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .rail-grid div:nth-child(n + 3) {
    border-bottom: 0;
  }
  .rail-grid dd {
    font-size: 0.98rem;
  }
  .section-space {
    padding-block: 78px;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .vertical-label {
    writing-mode: horizontal-tb;
    transform: none;
    margin-bottom: 24px;
  }
  .story-image {
    margin: 0;
  }
  .story-image img {
    height: min(65svh, 580px);
    min-height: 440px;
  }
  .story-copy {
    padding-top: 62px;
  }
  .story-copy .section-code {
    margin-bottom: 30px;
  }
  .story-copy h2 {
    font-size: 3.5rem;
  }
  .story-copy .lead {
    margin: 32px 0 45px;
    font-size: 1.3rem;
  }
  .analysis {
    padding-block: 76px;
  }
  .analysis-heading {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 50px;
  }
  .analysis-heading h2 {
    font-size: 4rem;
  }
  .analysis-heading > p:last-child {
    max-width: 100%;
  }
  .nutrient {
    grid-template-columns: 70px 1fr;
    padding: 24px 0;
  }
  .nutrient strong {
    font-size: clamp(3.2rem, 17vw, 5rem);
  }
  .nutrient .name {
    grid-column: 2;
    justify-self: start;
    margin-top: 12px;
  }
  .analysis-foot {
    flex-direction: column;
  }
  .field-header {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 50px;
  }
  .field-header h2 {
    font-size: 3.8rem;
  }
  .field-composition {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .field-photo img {
    height: min(67svh, 600px);
    min-height: 450px;
  }
  .field-photo figcaption {
    flex-direction: column;
    gap: 4px;
  }
  .field-video {
    margin-top: 0;
    margin-left: 34px;
  }
  .testimonial-heading {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 48px;
  }
  .testimonial-heading h2 {
    font-size: 3.8rem;
  }
  .testimonial-feature {
    grid-template-columns: 1fr;
    gap: 54px;
  }
  .testimonial-photo {
    margin-right: 42px;
  }
  .testimonial-photo img {
    height: min(56svh, 540px);
    min-height: 400px;
  }
  .testimonial-feature blockquote {
    padding: 25px 0 0 28px;
  }
  .quote-mark {
    top: -45px;
    left: 16px;
    font-size: 7rem;
  }
  .testimonial-feature blockquote p {
    font-size: clamp(2.1rem, 9.5vw, 3.4rem);
  }
  .testimonial-strip {
    grid-template-columns: 1fr;
    margin-top: 62px;
  }
  .testimonial-strip blockquote,
  .testimonial-strip blockquote:first-child {
    padding: 26px 0 28px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .testimonial-strip blockquote:last-child {
    border-bottom: 0;
  }
  .application-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .application-intro .section-code {
    margin-bottom: 28px;
  }
  .application-intro h2 {
    font-size: 3.8rem;
  }
  .process li {
    grid-template-columns: 48px 1fr;
    gap: 14px;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .product-heading {
    min-height: 560px;
  }
  .product-heading h2 {
    font-size: 4.3rem;
  }
  .product-heading img {
    width: 245px;
    bottom: -25px;
  }
  .product-specs div {
    grid-template-columns: 105px 1fr;
    gap: 18px;
  }
  .product-specs dd {
    font-size: 1.25rem;
  }
  .faq {
    padding-top: 0;
  }
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .faq-heading {
    position: static;
  }
  .faq-heading .section-code {
    margin-bottom: 28px;
  }
  .faq-heading h2 {
    font-size: 4.2rem;
  }
  .faq-heading a {
    margin-top: 30px;
  }
  .faq-list summary {
    grid-template-columns: 40px 1fr 20px;
    font-size: 1.25rem;
  }
  .faq-list details p {
    padding-left: 40px;
  }
  .contact,
  .contact-grid {
    min-height: max(680px, 100svh);
  }
  .contact::after {
    background: linear-gradient(
      180deg,
      rgba(12, 36, 20, 0.94),
      rgba(12, 36, 20, 0.78)
    );
  }
  .contact-photo {
    background-position: 52% center;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 54px;
    padding-block: 82px 48px;
    align-items: end;
  }
  .contact-copy h2 {
    font-size: 4.4rem;
  }
  .contact-primary {
    min-width: 250px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .footer-links {
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .hero-copy h1 {
    font-size: 3.25rem;
  }
  .hero-intro {
    max-width: 285px;
  }
  .product-index,
  .product-caption {
    display: none;
  }
  .hero-product img {
    right: 10px;
    transform: none;
  }
  .story-copy h2,
  .analysis-heading h2,
  .field-header h2,
  .application-intro h2 {
    font-size: 3.25rem;
  }
  .product-heading h2,
  .faq-heading h2,
  .contact-copy h2 {
    font-size: 3.65rem;
  }
}
