:root {
  --ground: #F4C430;
  --ink: #17170F;
  --paper: #F7F3E3;
  --paper-dim: #D9D4C0;
  --muted: #4A4A3C;
  --line: #3A3A2E;
  --pad: clamp(24px, 4.5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--ink);
  background: var(--ground);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- Nav ---------- */
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  padding: 20px var(--pad);
}
.brand {
  font-weight: 900;
  font-size: clamp(18px, 5vw, 22px);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.nav-links {
  order: 3;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0 15px;
  font-weight: 700;
  font-size: 14px;
}
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ink); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.pill svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Shared type ---------- */
.label {
  font-weight: 700;
  font-size: clamp(12px, 1vw, 14px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.lead-title {
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.phone {
  font-weight: 900;
  font-size: min(19.5vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.d-space { display: none; }
.section-title {
  font-weight: 900;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.arrow { width: 20px; height: 20px; flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 34px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  font-size: 17px;
  max-width: 100%;
}
.btn-line { background: transparent; color: var(--ink); font-weight: 700; }

/* ---------- Home hero ---------- */
.hero {
  --scene-h: 260px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 32px var(--pad) calc(var(--scene-h) + 28px);
  overflow: hidden;
  isolation: isolate;
}
.hero-sub {
  font-weight: 600;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.4;
  max-width: 560px;
}
.mail {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-weight: 600;
  font-size: clamp(17px, 4.8vw, 20px);
  border-bottom: 3px solid var(--ink);
  padding-bottom: 4px;
}
.mail svg { display: none; width: 28px; height: 28px; }
.hero .mail { margin-top: 6px; }
.hero-call {
  margin-top: 12px;
  font-weight: 800;
  font-size: clamp(18px, 1.9vw, 28px);
  letter-spacing: 0.14em;
}
.hero-actions { align-self: stretch; display: grid; gap: 18px; margin: 4px 0 6px; }

/* Big call / e-mail buttons: icon, label, the number or address, arrow. They look pressable. */
.act {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 10px 18px 10px 12px;
  border: 3px solid var(--ink);
  border-radius: 22px;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}
.act-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; }
.act-icon svg { width: 24px; height: 24px; }
.act-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.act-text b { font-weight: 800; font-size: 19px; line-height: 1.1; letter-spacing: -0.01em; }
.act-text small { font-weight: 600; font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.act-arrow { flex: none; width: 22px; height: 22px; }
.act-call { background: var(--ink); color: var(--paper); box-shadow: 0 6px 0 #7A5E0C; }
.act-call .act-icon { background: var(--ground); color: var(--ink); }
.act-call small { color: var(--ground); }
.act-mail { background: #fff; color: var(--ink); box-shadow: 0 6px 0 var(--ink); }
.act-mail .act-icon { background: var(--ink); color: var(--ground); }
.act-mail small { color: var(--muted); }
.act:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.act-call:active { box-shadow: 0 2px 0 #7A5E0C; }
.btn svg { width: 20px; height: 20px; flex: none; margin-right: 10px; }

/* Farm landscape behind the contact details */
.scene {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--scene-h);
  z-index: -1;
  overflow: visible;
}
.straw { display: none; }

/* ---------- Ticker ---------- */
.ticker { background: var(--ink); color: var(--ground); overflow: hidden; padding: 20px var(--pad); }
.ticker-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  font-weight: 800;
  font-size: clamp(15px, 1.5vw, 20px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ticker-track i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 112px) var(--pad); }
.section-paper { background: var(--paper); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 48px;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.section-head p { font-weight: 500; font-size: 18px; line-height: 1.5; max-width: 420px; color: var(--muted); }

/* Quality */
.quality { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px 36px; }
.quality li { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.q-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ground);
}
.q-icon svg { width: 30px; height: 30px; }
.quality h3 { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.quality p { font-weight: 500; font-size: 17px; line-height: 1.55; color: var(--muted); }
.quality-note {
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: 28px;
  border-top: 4px solid var(--ink);
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: -0.02em;
}
.quality-title { margin-bottom: 36px; font-weight: 900; font-size: clamp(30px, 3.6vw, 52px); line-height: 1; letter-spacing: -0.035em; text-transform: uppercase; }
.gallery + .quality-title { margin-top: clamp(56px, 7vw, 96px); }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 24px;
  overflow: hidden;
}
.card-img { overflow: hidden; border-bottom: 3px solid var(--ink); }
.card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.card h3 { font-weight: 900; font-size: 34px; letter-spacing: -0.03em; text-transform: uppercase; }
.card p { font-weight: 500; font-size: 17px; line-height: 1.5; color: var(--muted); }
.more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 48px; }
.steps li { display: flex; flex-direction: column; gap: 14px; border-top: 4px solid var(--ink); padding-top: 24px; }
.steps .num { font-weight: 900; font-size: 64px; line-height: 1; letter-spacing: -0.04em; }
.steps h3 { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.steps p { font-weight: 500; font-size: 17px; line-height: 1.5; }

/* ---------- Subpage header ---------- */
.page-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: clamp(32px, 6vw, 88px) var(--pad) clamp(56px, 7vw, 104px);
  overflow: hidden;
}
.page-title {
  font-weight: 900;
  font-size: clamp(72px, 17vw, 248px);
  line-height: 0.85;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}
.page-intro { font-weight: 600; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.3; letter-spacing: -0.01em; max-width: 720px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; font-weight: 700; font-size: 15px; }
.chips li { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; border: 3px solid var(--ink); }

/* Picture gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px 32px; }
.shot { display: flex; flex-direction: column; gap: 22px; }
.shot-img { border: 3px solid var(--ink); border-radius: 24px; overflow: hidden; }
.shot-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shot h2 { font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.shot p { margin-top: 10px; font-weight: 500; font-size: 17px; line-height: 1.55; color: var(--muted); }

/* ---------- Contact band ---------- */
.cta {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(72px, 9vw, 128px) var(--pad);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.cta .label, .cta .phone { color: var(--ground); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; max-width: 100%; }
.cta .btn { background: var(--ground); border-color: var(--ground); color: var(--ink); }
.cta .btn-line { background: transparent; border-color: var(--paper); color: var(--paper); font-size: clamp(14px, 4vw, 17px); padding: 0 24px; }
.also {
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.also span { font-weight: 600; font-size: 15px; letter-spacing: 0.14em; color: var(--paper-dim); }
.also a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ground); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--paper-dim);
  border-top: 1px solid var(--line);
  padding: 28px var(--pad) 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-weight: 600;
  font-size: 15px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer a { color: var(--paper); }

/* ---------- Homepage: quality cards, tags, steps, contact bales, footer ---------- */
.q-layout { display: grid; gap: clamp(36px, 5vw, 72px); }
.q-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.q-lead { font-weight: 500; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--muted); max-width: 44ch; }
.q-cards { display: grid; gap: 24px; }
.q-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 24px;
}
.q-art { width: 88px; height: 88px; }
.q-card h3 { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.q-card p { font-weight: 500; font-size: 17px; line-height: 1.55; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-weight: 700;
  font-size: 13px;
}

.steps li {
  position: relative;
  gap: 12px;
  padding: 28px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 24px;
}
.steps .num {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ground);
  font-size: 28px;
  letter-spacing: 0;
}
.step-art { position: absolute; top: 24px; right: 24px; width: 68px; height: 68px; }
.steps p { color: var(--muted); }

.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta-bales { display: none; }

.footer-rich { display: grid; gap: 28px 48px; align-items: start; padding-top: 48px; }
.footer-rich .brand { color: var(--paper); }
.footer-rich p { margin-top: 8px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col b { font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-dim); }
.footer-copy { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); }

@media (min-width: 720px) {
  .q-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-rich { grid-template-columns: 1.4fr 1fr 1.2fr; }
}
@media (min-width: 960px) {
  .q-layout { grid-template-columns: minmax(280px, 0.8fr) 1.5fr; align-items: start; }
  .cta-bales { display: block; position: absolute; right: 0; bottom: 0; width: min(30vw, 440px); height: auto; z-index: -1; }
}

/* ---------- Subpages: header with a picture, picture cards, three quality cards ---------- */
.page-head-text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.head-actions { align-self: stretch; display: grid; gap: 18px; margin-bottom: 6px; }
.head-art { width: 100%; max-width: 460px; height: auto; align-self: center; margin-top: 8px; }
.shot { gap: 0; background: #fff; border: 3px solid var(--ink); border-radius: 24px; overflow: hidden; }
.shot-img { border: 0; border-bottom: 3px solid var(--ink); border-radius: 0; }
.shot figcaption { padding: 24px 26px 28px; }
@media (min-width: 960px) {
  .page-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; }
  .page-title { font-size: clamp(64px, 12vw, 180px); }
  .head-art { width: 44%; max-width: 640px; align-self: flex-end; margin-top: 0; }
  .head-actions { align-self: flex-start; grid-template-columns: repeat(2, minmax(250px, 1fr)); }
  .q-layout.q-top { grid-template-columns: 1fr; }
  .q-cards.q-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Phones ---------- */
@media (max-width: 719px) {
  .nav { padding: 14px var(--pad) 4px; row-gap: 2px; }
  /* the menu stays on one line; it can be swiped sideways on very narrow phones */
  .nav-links { flex-wrap: nowrap; gap: 0 16px; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { min-height: 40px; white-space: nowrap; }
  .hero { gap: 14px; padding-top: 12px; }
  .hero .lead-title { font-size: clamp(25px, 7.2vw, 30px); }
  .hero-sub { font-size: 16px; }
  .hero > .mail { display: none; }
  .hero-call { margin-top: 10px; }
  .page-head { padding-top: 16px; }
  /* on the subpages the buttons come before the tags, so they are on the first screen */
  .page-head-text .head-actions { order: 1; }
  .page-head-text .chips { order: 2; }
}
@media (max-width: 399px) {
  .act-text small { font-size: 13px; }
}

/* very narrow phones: the header call button shrinks to its icon, button text gets all the room */
@media (max-width: 359px) {
  .pill { width: 46px; padding: 0; justify-content: center; }
  .pill span { display: none; }
  .act-arrow { display: none; }
  .act-text small { font-size: 13px; }
}

/* ---------- Tablet / desktop layout ---------- */
@media (min-width: 720px) {
  .nav { gap: 8px 32px; }
  .nav-links { order: 0; width: auto; margin-left: auto; gap: 0 36px; font-size: 15px; }
  .pill { height: 48px; padding: 0 22px; font-size: 15px; }
  /* The scene is as wide as the page and keeps its shape. Its left part is low (field, animals,
     bales: 12.5vw tall), so the text sits above it; hills and buildings only start right of the
     text column. That keeps the phone number and e-mail on plain yellow at every size. */
  .hero {
    --scene-h: 31.95vw;
    min-height: max(calc(100vh - 88px), 33vw);
    min-height: max(calc(100svh - 88px), 33vw);
    justify-content: center;
    gap: 18px;
    padding-top: 32px;
    padding-bottom: calc(12.5vw + 32px);
  }
  .hero > .lead-title, .hero > .hero-sub, .hero > .mail, .hero > .hero-call, .hero > .phone { max-width: 54%; }
  .hero .lead-title { font-size: clamp(24px, 2.5vw, 40px); }
  .hero .phone { font-size: clamp(34px, 6vw, 116px); }
  .phone { font-size: clamp(34px, 8.6vw, 124px); line-height: 0.95; letter-spacing: -0.045em; }
  .m-br { display: none; }
  .d-space { display: inline; }
  .mail { font-size: clamp(18px, 2.1vw, 30px); padding-bottom: 6px; }
  .mail svg { display: block; }
  .hero-actions { display: none; }
  .ticker-track { flex-wrap: nowrap; justify-content: space-between; white-space: nowrap; }
}

/* ---------- Desktop-only motion (class added by script.js) ---------- */
html.anim { scroll-behavior: smooth; }
html.anim .bale, html.anim .bale-rot, html.anim .eat, html.anim .sway, html.anim .cloud { transform-origin: 0 0; will-change: transform; }
html.anim .straw {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

html.anim .ch {
  display: inline-block;
  white-space: pre;
  opacity: 0;
  transform: translateY(.4em);
  transition: opacity .6s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
}
html.anim .intro {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s ease var(--d, 0ms), transform .9s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms);
}
html.anim .ready .ch,
html.anim .ready .intro { opacity: 1; transform: none; }

html.anim .ticker { padding-left: 0; padding-right: 0; }
html.anim .ticker-track { justify-content: flex-start; width: max-content; gap: 0 34px; padding-right: 34px; will-change: transform; }

html.anim .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease var(--d, 0ms), transform .9s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms);
}
html.anim .reveal.in { opacity: 1; transform: none; }

html.anim .card.in, html.anim .q-card.in, html.anim .steps li.in { transition: transform .3s ease, box-shadow .3s ease, opacity .8s ease; }
html.anim .card.in:hover, html.anim .q-card.in:hover, html.anim .steps li.in:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--ink); }
html.anim .card-img img, html.anim .shot-img img { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
html.anim .shot.in { transition: transform .3s ease, box-shadow .3s ease, opacity .8s ease; }
html.anim .shot.in:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--ink); }
html.anim .card:hover .card-img img, html.anim .shot:hover .shot-img img { transform: scale(1.06); }
html.anim .arrow, html.anim .mail svg { transition: transform .25s ease; }
html.anim a:hover > .arrow, html.anim .card:hover .arrow { transform: translateX(6px); }
html.anim .mail:hover svg { transform: translate(4px, -4px); }
html.anim .btn, html.anim .pill { transition: transform .2s ease; }
html.anim .btn:hover, html.anim .pill:hover { transform: translateY(-3px); }
html.anim .act:hover { transform: translateY(-3px); }
html.anim .act:hover .act-arrow { transform: translateX(5px); }
html.anim .act-arrow { transition: transform .2s ease; }
html.anim .nav-links a { transition: box-shadow .2s ease; }
html.anim .nav-links a:hover { box-shadow: inset 0 -3px 0 var(--ink); }
html.anim .footer a { transition: color .2s ease; }
html.anim .footer a:hover { color: var(--ground); }
