: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(13.4vw, 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 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 32px var(--pad) clamp(40px, 5vw, 72px);
  overflow: hidden;
  isolation: isolate;
}
/* the farm scene: its own band between the photo gallery and the word strip */
.farm { --scene-h: 260px; position: relative; height: calc(var(--scene-h) + clamp(24px, 4vw, 56px)); overflow: hidden; isolation: isolate; background: var(--ground); }
/* Proof at the top of the front page: a farmer whose head stands out of his round frame
   (images/kmet.webp, made by tools/gen_farmer.py), how many farmers, and their rating */
.hero-proof { display: flex; align-items: center; gap: 22px; margin-bottom: 6px; }
.hero-face { width: clamp(170px, 15vw, 250px); height: auto; flex: none; }
.hero-proof-text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 8%; }
.hero-badge, .hero-rate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  font-weight: 700;
  white-space: nowrap;
}
.hero-badge { gap: 16px; height: 92px; padding: 0 34px 0 30px; background: var(--ink); color: var(--paper); font-size: clamp(22px, 2.1vw, 32px); line-height: 1.1; }
.hero-badge b { font-weight: 900; font-size: 1.75em; color: var(--ground); }
.hero-badge span { display: flex; flex-direction: column; gap: 4px; }
.hero-badge small { font-weight: 600; font-size: .62em; color: var(--paper-dim); }
.hero-rate { height: 58px; padding: 0 22px 0 10px; background: #fff; color: var(--muted); font-size: clamp(19px, 1.7vw, 25px); }
.hero-rate svg { width: 36px; height: 36px; flex: none; }
.hero-rate b { font-weight: 900; font-size: 1.25em; color: var(--ink); margin-right: -8px; }
.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; }
/* The phone number is the main thing on the front page: a dark block with white digits, as wide as
   the text column allows (on a computer it must end left of the hill, at 54% of the page). */
.hero .phone {
  padding: .17em .34em .2em;
  border-radius: .26em;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 .075em 0 #7A5E0C;
  font-size: min(13vw, 96px);
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.hero .phone:active { transform: translateY(.04em); box-shadow: 0 .035em 0 #7A5E0C; }
.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); }
/* Narrow screens: the words stand in two tidy columns, each with its small picture in front.
   Wide screens (further down) turn it into one row with a small picture before every word. */
.ticker-track {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
  font-size: clamp(10.5px, 3.4vw, 15px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-track span { display: flex; align-items: center; gap: 8px; }
.ticker-track svg { width: 1.6em; height: 1.6em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* script.js repeats the words for the moving strip; a still strip shows them once */
html:not(.anim) .ticker-track > :nth-child(n+7) { display: 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); }

/* Subpage photos ("V slikah"): one big photo per row, its words beside it, sides alternating */
.gallery { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 120px); counter-reset: shot; }
.shot { display: grid; gap: 28px; margin: 0; counter-increment: shot; }
.shot-img {
  aspect-ratio: 4 / 5; max-height: 82vh;
  border: 3px solid var(--ink); border-radius: 28px; overflow: hidden;
  background: var(--ink); box-shadow: 10px 10px 0 var(--ink);
  cursor: zoom-in;
}
.shot-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.shot figcaption::before {
  content: counter(shot, decimal-leading-zero);
  font-weight: 900; font-size: clamp(64px, 8vw, 128px); line-height: .8; letter-spacing: -0.05em;
  color: var(--ground); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
}
.shot h2 { font-weight: 900; font-size: clamp(30px, 3.6vw, 54px); line-height: 1; letter-spacing: -0.035em; }
.shot p { font-weight: 500; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--muted); max-width: 440px; }
@media (min-width: 960px) {
  .shot { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 6vw, 96px); }
  .shot-img { aspect-ratio: auto; height: min(78vh, 760px); max-height: none; box-shadow: 14px 14px 0 var(--ink); }
  .shot:nth-child(even) .shot-img { order: 2; }
}

/* ---------- 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); }
.q-card p a, .section-head p a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.page-head-lucerna .page-title { font-size: clamp(48px, 12vw, 150px); }
.delivery { max-width: 60ch; font-size: 18px; font-weight: 600; line-height: 1.5; }

.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; }
/* Three bales on loose straw in the corner of the contact band (desktop only). Each bale is its own
   picture, so script.js can roll it in; the light on it is drawn here and does not turn. */
.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-firm span:first-of-type { color: var(--paper); font-weight: 700; }
.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.2fr .7fr 1.1fr 1.5fr; }
}
@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); aspect-ratio: 520 / 220; z-index: -1; pointer-events: none; }
  .cta-straw { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; }
  .cta-bale { position: absolute; aspect-ratio: 1; }
  .cta-bale img { width: 100%; height: 100%; }
  .cta-bale::after {
    content: "";
    position: absolute;
    inset: 5.4%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 45%, rgba(23, 23, 15, .1) 78%, rgba(23, 23, 15, .4));
  }
  .cta-bale:nth-of-type(1) { left: 7.5%; bottom: -0.4%; width: 17.2%; }
  .cta-bale:nth-of-type(2) { left: 25.4%; bottom: -1.8%; width: 28.4%; }
  .cta-bale:nth-of-type(3) { left: 53.6%; bottom: -3.3%; width: 40.5%; }
}

/* ---------- 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; }
@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-proof { gap: 12px; }
  .hero-face { width: 124px; }
  .hero-proof-text { gap: 8px; }
  /* on a phone the count stands over its words, or the badge would not fit beside the photo */
  .hero-badge { flex-direction: column; align-items: flex-start; gap: 0; height: auto; padding: 9px 18px 10px; border-radius: 20px; font-size: 15px; line-height: 1.15; }
  .hero-badge b { font-size: 26px; line-height: 1; }
  .hero-badge span { gap: 2px; }
  .hero-badge small { font-size: 12px; white-space: normal; }
  .hero-rate { height: 44px; padding: 0 16px 0 7px; font-size: 16px; gap: 8px; }
  .hero-rate svg { width: 28px; height: 28px; }
  .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 farm scene is as wide as the page and keeps its shape */
  .farm { --scene-h: 31.95vw; }
  .hero {
    justify-content: flex-start;
    gap: 12px;
    padding-top: 0;
  }
  .hero .lead-title { font-size: clamp(24px, 2.5vw, 40px); }
  .hero .phone { font-size: clamp(40px, 7.5vw, 172px); }
  .hero-call { margin-top: 6px; }
  /* one line beside the scene, so the number stays on the first screen */
  .hero > .hero-sub { font-size: clamp(17px, 1.3vw, 21px); }
  .hero-face { width: clamp(150px, 14vw, 250px); }
  .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 { grid-template-columns: repeat(3, auto); font-size: 15px; }
}
@media (min-width: 960px) {
  .ticker-track { display: flex; align-items: center; justify-content: space-between; gap: 8px 22px; font-size: clamp(15px, 1.5vw, 20px); }
  .ticker-track span { gap: 12px; }
}

/* Low, wide windows (small laptops): everything above the number gets smaller, so that the number
   itself is still on the first screen. */
@media (min-width: 720px) and (max-height: 780px) {
  .hero { gap: 9px; }
  .hero-face { width: clamp(120px, 10.5vw, 170px); }
  .hero-proof { gap: 18px; }
  .hero-proof-text { gap: 8px; }
  .hero-badge { height: 66px; padding: 0 24px; font-size: clamp(18px, 1.7vw, 24px); }
  .hero-rate { height: 46px; font-size: clamp(16px, 1.4vw, 20px); }
  .hero-rate svg { width: 28px; height: 28px; }
  .hero .lead-title { font-size: clamp(22px, 2.2vw, 32px); }
  .hero .mail { margin-top: 0; font-size: clamp(17px, 1.7vw, 24px); }
  .hero-call { margin-top: 2px; font-size: clamp(16px, 1.5vw, 22px); }
  .hero .phone { font-size: clamp(40px, 6.8vw, 120px); }
}

/* ---------- Motion, on every screen (class set in the <head> of each page, kept by script.js) ---------- */
html.anim { scroll-behavior: smooth; }

/* --- the farm scene: what script.js moves --- */
html.anim .bale, html.anim .bale-rot, html.anim .bale-body, html.anim .bale-shadow,
html.anim .eat, html.anim .sway, html.anim .cloud, html.anim .layer { transform-origin: 0 0; will-change: transform; }
html.anim .bale { cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* a tap gives the same answer as pointing with a mouse */
html.anim .card:active, html.anim .q-card:active, html.anim .steps li:active { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
html.anim .straw {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* --- the scene builds up when the page loads: the grounds rise, then everything that stands on
       them grows up out of the ground from left to right, and the sun comes up behind the roofs --- */
html.anim .rise {
  opacity: 0;
  transform: translateY(70px);
  transition: transform 1.1s cubic-bezier(.2, .8, .2, 1) calc(var(--i, 0) * 110ms), opacity .5s ease calc(var(--i, 0) * 110ms);
}
html.anim .pop {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scale(.5, 0);
  transition: transform .7s cubic-bezier(.34, 1.5, .5, 1) calc(320ms + var(--d, 0ms));
}
html.anim .sunrise { opacity: 0; transform: translateY(90px); transition: transform 1.9s cubic-bezier(.2, .8, .2, 1) .25s, opacity 1s ease .25s; }
html.anim .fade { opacity: 0; transition: opacity 1.4s ease .9s; }
/* .seen is set by script.js when the scene scrolls into view */
html.anim .seen .rise, html.anim .seen .pop, html.anim .seen .sunrise, html.anim .seen .fade { opacity: 1; transform: none; }

/* --- the life of the scene: wind, sun, small animals. All of it stops while the scene is scrolled away. --- */
html.anim .rays { animation: spin 110s linear infinite; }
html.anim .glow { animation: glow 7s ease-in-out infinite; }
html.anim .crown { animation: sway 6.4s ease-in-out infinite alternate; animation-delay: var(--wd, 0s); }
html.anim .wind { transform-box: fill-box; transform-origin: 50% 100%; animation: wind 5.6s ease-in-out infinite; animation-delay: var(--wd, 0s); }
html.anim .reed { animation: reed 4.2s ease-in-out infinite alternate; animation-delay: var(--wd, 0s); }
html.anim .lid { animation: blink var(--bt, 6s) linear infinite; animation-delay: var(--bd, 0s); }
html.anim .breathe { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe 3.7s ease-in-out infinite alternate; animation-delay: var(--bd, 0s); }
html.anim .ear { animation: ear var(--et, 8s) ease-in-out infinite; animation-delay: var(--ed, 0s); }
html.anim .duck { animation: paddle var(--dt, 16s) ease-in-out infinite; }
html.anim .duck-turn { animation: turn var(--dt, 16s) ease-in-out infinite; }
html.anim .ripple { transform-box: fill-box; transform-origin: 50% 50%; animation: ripple 3.6s ease-out infinite; animation-delay: var(--rd, 0s); }
html.anim .bird { animation: fly var(--bt, 36s) linear infinite; animation-delay: var(--bd, 0s); }
html.anim .flap { transform-box: fill-box; transform-origin: 50% 100%; animation: flap .42s ease-in-out infinite alternate; animation-delay: var(--fd, 0s); }
html.anim .vane { animation: vane 11s ease-in-out infinite; }
html.anim .cat-tail { animation: cat-tail 5.5s ease-in-out infinite; }
html.anim .lamp { animation: lamp 3.4s ease-in-out infinite alternate; }
html.anim .farm.away .scene * { animation-play-state: paused; }

/* the birds stay right of the text: they appear over the hill and leave past the right edge */
@keyframes fly {
  0% { transform: translate(0, 0); opacity: 0; }
  6% { opacity: 1; }
  50% { transform: translate(330px, -26px); }
  94% { opacity: 1; }
  100% { transform: translate(660px, -8px); opacity: 0; }
}
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.5); } }
/* --- things in the scene that answer a click or tap. script.js ("Pokes") adds the class for a
       moment; each of these plays once. --- */
html.anim [data-poke] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
html.anim .hopper { transform-origin: 0 0; }
html.anim .pile, html.anim .shaker { transform-box: fill-box; transform-origin: 50% 100%; }
html.anim .sun, html.anim .squish, html.anim .ring { transform-box: fill-box; transform-origin: 50% 50%; }
html.anim .hopper.startle, html.anim .pile.startle { animation: startle .6s cubic-bezier(.3, .7, .4, 1); }
html.anim .shaker.shake { animation: shake .9s ease-out; }
html.anim .sun.flare { animation: flare .9s cubic-bezier(.3, 1.5, .5, 1); }
html.anim .squish.squeeze { animation: squeeze .55s ease-out; }
html.anim .tractor.go { animation: drive 3.6s cubic-bezier(.45, 0, .55, 1); }
html.anim .tractor.fwd .wheel { animation: spin var(--w, 2s) linear infinite; }
html.anim .tractor.back .wheel { animation: spin var(--w, 2s) linear infinite reverse; }
html.anim .barn.wake .vane { animation: whirl 1.5s cubic-bezier(.2, .7, .3, 1); }
html.anim .wake .lamp { animation: flash 1.5s ease-out; }
html.anim .shed.wake .cat-tail { animation: flick .5s ease-in-out 3; }
html.anim .duck-hop.bob { animation: bob .55s ease-out; }
html.anim .ring.spread { animation: spread .9s ease-out; }
/* a start: the animal ducks, stretches up and settles, its feet staying where they are */
@keyframes startle {
  0%, 100% { transform: scale(1, 1); }
  18% { transform: scale(1.06, .9); }
  46% { transform: scale(.96, 1.08); }
  72% { transform: scale(1.03, .96); }
}
@keyframes shake {
  0%, 100% { transform: rotate(0); }
  14% { transform: rotate(-4deg); }
  32% { transform: rotate(3.4deg); }
  52% { transform: rotate(-2.4deg); }
  72% { transform: rotate(1.4deg); }
  88% { transform: rotate(-.6deg); }
}
@keyframes flare { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.24); } }
@keyframes squeeze { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(1.08, .84); } 62% { transform: scale(.97, 1.06); } }
@keyframes drive { 0%, 100% { transform: translateX(0); } 40%, 58% { transform: translateX(36px); } }
@keyframes whirl { 0%, 50%, 100% { transform: scaleX(1); } 25%, 75% { transform: scaleX(-1); } }
@keyframes flash { 0%, 100% { opacity: .4; } 12%, 44% { opacity: 1; } 28% { opacity: .55; } }
@keyframes flick { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(26deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-5px); } 70% { transform: translateY(1.5px); } }
@keyframes spread { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glow { 50% { opacity: .6; transform: scale(1.1); } }
@keyframes sway { from { transform: rotate(-1.5deg); } to { transform: rotate(1.7deg); } }
/* a gust leans the grass over, it springs back, a second, weaker gust follows */
@keyframes wind {
  0%, 100% { transform: skewX(-3deg); }
  28% { transform: skewX(9deg); }
  44% { transform: skewX(2deg); }
  62% { transform: skewX(6deg); }
}
@keyframes reed { from { transform: rotate(-2.5deg); } to { transform: rotate(3.5deg); } }
/* the eye closes and opens in about a third of a second */
@keyframes blink { 0%, 92.4%, 97.4%, 100% { opacity: 0; } 94%, 95.8% { opacity: 1; } }
@keyframes breathe { from { transform: scale(1, 1); } to { transform: scale(1.008, 1.018); } }
@keyframes ear {
  0%, 78%, 100% { transform: rotate(0); }
  83% { transform: rotate(-13deg); }
  88% { transform: rotate(5deg); }
  93% { transform: rotate(-5deg); }
  97% { transform: rotate(1.5deg); }
}
@keyframes paddle { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(var(--dx, 14px)); } }
@keyframes turn { 0%, 47% { transform: scaleX(1); } 50%, 97% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
@keyframes ripple { from { transform: scale(.5); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
/* seen from the side, an arrow that turns gets shorter and flips over */
@keyframes vane {
  0%, 100% { transform: scaleX(1); }
  14% { transform: scaleX(.3); }
  26% { transform: scaleX(.8); }
  48% { transform: scaleX(-.9); }
  60% { transform: scaleX(-.45); }
  78% { transform: scaleX(-1); }
  90% { transform: scaleX(.15); }
}
@keyframes cat-tail {
  0%, 58%, 100% { transform: rotate(0); }
  68% { transform: rotate(24deg); }
  78% { transform: rotate(-8deg); }
  88% { transform: rotate(15deg); }
}
@keyframes lamp { from { opacity: .4; } to { opacity: .95; } }

/* --- headline and intro text --- */
html.anim .ch {
  display: inline-block;
  white-space: pre;
  opacity: 0;
  transform: translateY(.45em) rotate(4deg);
  transition: opacity .5s ease calc(var(--c, 0) * 32ms), transform .9s cubic-bezier(.2, 1.2, .3, 1) calc(var(--c, 0) * 32ms);
}
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 .in .ch,
html.anim .ready .intro { opacity: 1; transform: none; }
/* the picture in a subpage header slides in from the side */
html.anim .head-art { opacity: 0; transform: translateX(70px) rotate(2.5deg); transition: opacity .9s ease .35s, transform 1.2s cubic-bezier(.2, .9, .25, 1) .35s; }
html.anim .ready .head-art { opacity: 1; transform: none; }

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

/* --- things appear as they scroll into view --- */
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; }
/* big titles wipe up from their baseline instead of fading. script.js wraps their text in .wipe:
   the title itself must stay unclipped, or the browser never reports it as scrolled into view */
html.anim .section-title.reveal, html.anim .lead-title.reveal, html.anim .quality-title.reveal { opacity: 1; transform: none; }
html.anim .wipe {
  display: block;
  transform: translateY(.55em);
  clip-path: inset(0 0 110% 0);
  transition: transform 1s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms), clip-path 1s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms);
}
html.anim .in .wipe { transform: none; clip-path: inset(-25% -5% -25% -5%); }
/* the phone number in the contact band comes in digit by digit, so the block itself stays put */
html.anim .phone.reveal { opacity: 1; transform: none; }
/* pictures settle into their frame */
html.anim .card-img img, html.anim .shot-img img { transform: scale(1.2); transition: transform 1.5s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms); }
html.anim .in .card-img img, html.anim .in .shot-img img { transform: none; }
/* icons and step numbers spring up a moment after their card */
html.anim .reveal .q-art, html.anim .reveal .step-art, html.anim .reveal .num {
  transform: scale(0) rotate(-24deg);
  transition: transform .7s cubic-bezier(.34, 1.56, .64, 1) calc(var(--d, 0ms) + 220ms);
}
html.anim .reveal.in .q-art, html.anim .reveal.in .step-art, html.anim .reveal.in .num { transform: none; }

/* --- hover --- */
/* .done arrives a moment after .in (script.js), so hover does not wait for the entrance delay */
html.anim .card.done, html.anim .q-card.done, html.anim .steps li.done, html.anim .shot.done .shot-img {
  transition: transform .35s cubic-bezier(.34, 1.4, .6, 1), box-shadow .35s cubic-bezier(.34, 1.4, .6, 1);
}
html.anim .card.done:hover, html.anim .q-card.done:hover, html.anim .steps li.done:hover { transform: translate(-5px, -5px); box-shadow: 9px 9px 0 var(--ink); }
html.anim .done .card-img img, html.anim .done .shot-img img { transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
/* under the mouse a picture comes closer and shifts against the pointer, as if looked into (--px, --py: script.js) */
html.anim .card:hover .card-img img, html.anim .shot:hover .shot-img img { transform: scale(1.1) translate(calc(var(--px, 0) * -2.4%), calc(var(--py, 0) * -2.4%)); }
/* a big subpage photo lifts off the page under the mouse */
html.anim .shot.done:hover .shot-img { transform: translate(-5px, -5px); box-shadow: 19px 19px 0 var(--ink); }
html.anim .done .q-art, html.anim .done .step-art { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
html.anim .q-card.done:hover .q-art, html.anim .steps li.done:hover .step-art { transform: scale(1.12) rotate(-5deg); }
html.anim .arrow, html.anim .mail svg { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
html.anim a:hover > .arrow, html.anim .card:hover .arrow { transform: translateX(7px); }
html.anim .mail:hover svg { transform: translate(4px, -4px); }
html.anim .btn, html.anim .pill { transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
html.anim .btn:hover, html.anim .pill:hover { transform: translateY(-3px); }
html.anim .hero .phone { transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); animation: call 2.8s ease-out 2.4s infinite; }
html.anim .hero .phone:hover { transform: translateY(-4px); }
@keyframes call {
  0% { box-shadow: 0 .075em 0 #7A5E0C, 0 0 0 0 rgba(23, 23, 15, .45); }
  70%, 100% { box-shadow: 0 .075em 0 #7A5E0C, 0 0 0 .15em rgba(23, 23, 15, 0); }
}
html.anim .act:hover { transform: translateY(-3px); }
html.anim .act:hover .act-arrow { transform: translateX(5px); }
html.anim .act-arrow { transition: transform .2s ease; }
/* the receiver rings when a call button is pointed at */
html.anim .pill:hover svg, html.anim .act-call:hover .act-icon svg, html.anim .btn[href^="tel"]:hover svg { animation: ring .7s ease-in-out; }
@keyframes ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-16deg); }
  30% { transform: rotate(14deg); }
  45% { transform: rotate(-12deg); }
  60% { transform: rotate(9deg); }
  75% { transform: rotate(-5deg); }
}
/* the underline of a menu link grows from the left */
html.anim .nav-links a { background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 3px no-repeat; transition: background-size .3s cubic-bezier(.2, .8, .2, 1); }
html.anim .nav-links a:hover { background-size: 100% 3px; }
html.anim .footer a { transition: color .2s ease; }
html.anim .footer a:hover { color: var(--ground); }

/* --- the small pictures on the cards (tools/gen_icons.py): the tick draws itself when the card
       arrives; the rest moves while the card is pointed at --- */
html.anim .i-check { stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .45s ease-out calc(var(--d, 0ms) + 800ms); }
html.anim .in .i-check { stroke-dashoffset: 0; }
html.anim .q-card:hover .i-rays { animation: spin 5s linear infinite; }
html.anim .q-card:hover .i-roll { animation: spin 2.4s linear infinite; }
html.anim .q-card:hover .i-squeeze { animation: squeeze .7s ease-in-out infinite alternate; }
html.anim .q-card:hover .i-in-l { animation: push-l .7s ease-in-out infinite alternate; }
html.anim .q-card:hover .i-in-r { animation: push-r .7s ease-in-out infinite alternate; }
html.anim .q-card:hover .i-roof { animation: settle .6s cubic-bezier(.34, 1.56, .64, 1); }
html.anim .q-card:hover .i-drop { animation: drip 1.2s ease-in infinite; }
html.anim .q-card:hover .i-splash { animation: splash 1.2s ease-out infinite; }
html.anim .q-card:hover .i-sway { animation: leaf 1.5s ease-in-out infinite alternate; }
html.anim .q-card:hover .i-scent { animation: scent 1.8s ease-out infinite; }
html.anim .q-card:hover .i-b3 { animation: settle .6s cubic-bezier(.34, 1.56, .64, 1); }
html.anim .q-card:hover .i-rule { animation: rule 1s ease-in-out infinite alternate; }
html.anim .steps li:hover .i-phone { animation: ring .7s ease-in-out infinite; }
html.anim .steps li:hover .i-waves { animation: waves .35s ease-in-out infinite alternate; }
html.anim .steps li:hover .i-roll { animation: spin 1.6s linear infinite; }
html.anim .steps li:hover .i-wheel { animation: spin .7s linear infinite; }
html.anim .steps li:hover .i-speed { animation: speed .5s linear infinite; }
@keyframes squeeze { to { transform: scaleX(.9); } }
@keyframes push-l { to { transform: translateX(5px); } }
@keyframes push-r { to { transform: translateX(-5px); } }
@keyframes settle { from { transform: translateY(-12px); } }
@keyframes drip {
  0% { transform: translateY(-18px) scale(.85); opacity: 0; }
  20% { opacity: 1; }
  70% { transform: translateY(0) scale(1); }
  84% { transform: translateY(3px) scale(1.14, .82); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes splash { 0%, 68% { opacity: 0; transform: translateY(4px); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes leaf { from { transform: rotate(-5deg); } to { transform: rotate(6deg); } }
@keyframes scent { from { transform: translateY(6px); opacity: 0; } 40% { opacity: 1; } to { transform: translateY(-9px); opacity: 0; } }
@keyframes rule { from { transform: translateY(0); } to { transform: translateY(-3px); } }
@keyframes waves { from { opacity: .15; } to { opacity: 1; } }
@keyframes speed { from { transform: translateX(7px); opacity: 0; } 50% { opacity: 1; } to { transform: translateX(-7px); opacity: 0; } }

/* --- going from page to page: the old page lifts away, the new one rises in (browsers that support it) --- */
@media all {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: .22s ease both page-out; }
  ::view-transition-new(root) { animation: .5s cubic-bezier(.2, .8, .2, 1) both page-in; }
}
@keyframes page-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(20px); } }

/* ---------- Real photos: subpage header photo ---------- */
/* .head-art is the wrapper (it carries the entrance in html.anim); `rotate` adds to that transform */
.head-photo { margin: 0; aspect-ratio: 4 / 3; border: 3px solid var(--ink); border-radius: 28px; overflow: hidden; background: var(--ink); box-shadow: 12px 12px 0 var(--ink); rotate: 1.2deg; }
.head-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
html.anim .head-photo img { animation: head-photo 16s ease-in-out infinite alternate; }
@keyframes head-photo { from { transform: scale(1); } to { transform: scale(1.09); } }
@media (max-width: 959px) { .head-photo { width: calc(100% - 12px); align-self: flex-start; } }

/* ---------- Photo gallery on the front page (slides and thumbnails: tools/gen_photos.py; script.js runs it) ---------- */
.foto {
  background: radial-gradient(ellipse 70% 55% at 75% 0%, rgba(244, 196, 48, .18), transparent 70%), var(--ink);
  color: var(--paper);
  padding: clamp(64px, 8vw, 112px) var(--pad) clamp(72px, 8vw, 120px);
  overflow: hidden;
}
.foto-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.foto-title-wrap { display: flex; flex-direction: column; gap: 14px; }
.foto .label { color: var(--ground); }
.foto-count { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.foto-count b { font-weight: 900; font-size: clamp(52px, 8vw, 120px); line-height: .8; letter-spacing: -0.05em; color: var(--ground); }
.foto-count span { font-weight: 800; font-size: clamp(16px, 2vw, 26px); color: var(--paper-dim); }
.foto-frame { display: grid; grid-template-columns: minmax(0, 1fr); }
.foto-stage, .foto-controls { grid-area: 1 / 1; }
.foto-bar { grid-row: 2; }
.foto-strip { grid-row: 3; }
.foto-stage {
  position: relative;
  /* stage, bar and thumbnails fit on one screen together */
  aspect-ratio: 16 / 9;
  max-height: max(380px, calc(100vh - 250px));
  width: 100%;
  border: 3px solid var(--paper);
  border-radius: 28px;
  overflow: hidden;
  background: #0B0B07;
  box-shadow: 12px 12px 0 var(--ground);
}
.foto-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.foto-slide.on { z-index: 1; opacity: 1; visibility: visible; transition: opacity .9s ease; }
.foto-blur { position: absolute; inset: -8%; width: 116%; height: 116%; max-width: none; object-fit: cover; filter: blur(32px) brightness(.5) saturate(1.25); }
.foto-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.foto-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 96px 220px 28px 30px;
  background: linear-gradient(to top, rgba(11, 11, 7, .88), rgba(11, 11, 7, .5) 55%, transparent);
  pointer-events: none;
}
.foto-slide figcaption a { pointer-events: auto; }
.foto-tag {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px; margin-bottom: 4px;
  border-radius: 999px; background: var(--ground); color: var(--ink);
  font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.foto-slide figcaption b { font-weight: 900; font-size: clamp(24px, 3.2vw, 46px); line-height: 1; letter-spacing: -0.035em; color: #fff; }
.foto-slide figcaption span { font-weight: 600; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.4; color: rgba(247, 243, 227, .85); }
.foto-controls { z-index: 2; align-self: end; justify-self: end; display: flex; gap: 10px; margin: 0 26px 26px 0; }
.foto-btn {
  width: 56px; height: 56px; display: grid; place-items: center;
  border: 3px solid var(--ink); border-radius: 50%;
  background: var(--ground); color: var(--ink); box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.foto-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.foto-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.foto-btn:focus-visible, .foto-thumb:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
.foto-btn svg { width: 24px; height: 24px; }
.foto-play { background: var(--paper); }
.foto-play .i-play, .foto-play.paused .i-pause { display: none; }
.foto-play.paused .i-play { display: inline; }
.foto-bar { display: block; height: 4px; margin: 30px 0 18px; border-radius: 4px; background: rgba(247, 243, 227, .14); overflow: hidden; }
.foto-bar i { display: block; height: 100%; width: 100%; background: var(--ground); transform-origin: 0 50%; transform: scaleX(0); }
.foto-strip {
  display: flex; gap: 12px; overflow-x: auto; padding: 8px 4px 12px;
  scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--ground) transparent;
}
.foto-thumb {
  flex: none; width: clamp(92px, 9.5vw, 148px); aspect-ratio: 4 / 3;
  border: 3px solid transparent; border-radius: 14px; overflow: hidden;
  opacity: .45; scroll-snap-align: center;
  transition: opacity .3s ease, transform .3s ease, border-color .3s ease;
}
.foto-thumb img { width: 100%; height: 100%; object-fit: cover; }
.foto-thumb:hover { opacity: .85; }
.foto-thumb.on { opacity: 1; border-color: var(--ground); transform: translateY(-4px); }
/* without script.js only the first photo shows, and the thumbnails open the photos */
.foto:not(.live) .foto-controls, .foto:not(.live) .foto-bar { display: none; }
.foto:not(.live) .foto-strip { margin-top: 30px; }
/* the photo arrives from a little closer and settles; its words rise after it */
html.anim .foto-slide.on .foto-img { animation: foto-in 7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes foto-in { from { transform: scale(1.07); } to { transform: none; } }
html.anim .foto-slide figcaption > * { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .9, .25, 1); }
html.anim .foto-slide.on figcaption > * { opacity: 1; transform: none; }
html.anim .foto-slide.on figcaption > :nth-child(1) { transition-delay: .25s; }
html.anim .foto-slide.on figcaption > :nth-child(2) { transition-delay: .35s; }
html.anim .foto-slide.on figcaption > :nth-child(3) { transition-delay: .45s; }
@media (max-width: 719px) {
  .foto-stage { aspect-ratio: 4 / 5; max-height: calc(100vh - 190px); border-radius: 22px; box-shadow: 8px 8px 0 var(--ground); }
  .foto-slide figcaption { padding: 90px 20px 92px; }
  .foto-controls { justify-self: start; margin: 0 0 22px 20px; }
  .foto-btn { width: 48px; height: 48px; }
  .foto-btn svg { width: 20px; height: 20px; }
  .foto-bar { margin-top: 22px; }
}

/* the photo opened large (a <dialog> made by script.js) */
.foto-box { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.foto-box::backdrop { background: rgba(11, 11, 7, .94); }
.foto-box[open] { display: grid; place-items: center; }
.foto-box img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); object-fit: contain; border-radius: 16px; }
.foto-box p { position: fixed; left: 0; right: 0; bottom: 20px; text-align: center; color: var(--paper); font-weight: 700; font-size: 16px; padding: 0 80px; }
.foto-box .foto-btn { position: fixed; }
.foto-box .foto-close { top: 16px; right: 16px; background: var(--paper); }
.foto-box .foto-prev { left: 16px; top: 50%; margin-top: -28px; }
.foto-box .foto-next { right: 16px; top: 50%; margin-top: -28px; }
@media (max-width: 719px) { .foto-box .foto-prev, .foto-box .foto-next { top: auto; bottom: 56px; margin: 0; } }

/* ---------- First screen on a computer: the hero on the left, the photo gallery beside it ---------- */
/* Both halves are as tall as the first screen and everything in them is sized in --u, a hundredth of
   the window width, or less in a wide, low window: so the layout keeps the same proportions on a
   laptop and on a 4K screen, and nothing is left small in a big empty half. */
@media (min-width: 960px) {
  .top {
    --u: min(1vw, 1.75vh);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch;
    min-height: min(calc(100vh - 88px), 64vw);
    min-height: min(calc(100svh - 88px), 64vw);
    background: var(--ground);
  }
  .top .hero { overflow: visible; justify-content: center; gap: calc(var(--u) * 1.15); padding: var(--u) 0 calc(var(--u) * 2.6) var(--pad); }
  .top .hero-proof { gap: calc(var(--u) * 1.5); margin-bottom: calc(var(--u) * .3); }
  .top .hero-face { width: calc(var(--u) * 14); }
  .top .hero-proof-text { min-width: 0; gap: calc(var(--u) * .8); padding-top: 0; }
  .top .hero-badge { height: auto; gap: calc(var(--u) * 1.1); padding: calc(var(--u) * .85) calc(var(--u) * 1.9) calc(var(--u) * .9) calc(var(--u) * 1.6); font-size: calc(var(--u) * 1.6); }
  .top .hero-badge small { white-space: normal; }
  .top .hero-rate { height: calc(var(--u) * 3.6); gap: calc(var(--u) * .6); padding: 0 calc(var(--u) * 1.4) 0 calc(var(--u) * .6); font-size: calc(var(--u) * 1.55); }
  .top .hero-rate svg { width: calc(var(--u) * 2.4); height: calc(var(--u) * 2.4); }
  .top .hero .lead-title { font-size: calc(var(--u) * 2.9); }
  .top .hero > .hero-sub { font-size: calc(var(--u) * 1.4); max-width: 34em; }
  .top .hero .mail { font-size: calc(var(--u) * 1.75); margin-top: calc(var(--u) * .4); }
  .top .hero .mail svg { width: calc(var(--u) * 1.8); height: calc(var(--u) * 1.8); }
  .top .hero-call { font-size: calc(var(--u) * 1.45); margin-top: calc(var(--u) * .5); }
  .top .hero .phone { font-size: calc(var(--u) * 6.6); }
  .top .foto {
    display: flex; flex-direction: column;
    margin: var(--u) var(--pad) calc(var(--u) * 2.6) calc(var(--u) * 2.4);
    padding: calc(var(--u) * 1.9) calc(var(--u) * 1.9) calc(var(--u) * 1.3);
    border: 3px solid var(--ink); border-radius: calc(var(--u) * 2.2);
    box-shadow: calc(var(--u) * .8) calc(var(--u) * .8) 0 rgba(23, 23, 15, .28);
  }
  .top .foto-head { margin-bottom: calc(var(--u) * 1.2); gap: var(--u); }
  .top .foto-title-wrap { gap: calc(var(--u) * .5); }
  .top .foto .label { font-size: calc(var(--u) * .95); }
  .top .foto .section-title { font-size: calc(var(--u) * 3.1); }
  .top .foto-count b { font-size: calc(var(--u) * 4.6); }
  .top .foto-count span { font-size: calc(var(--u) * 1.25); }
  .top .foto-frame { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr) auto auto; }
  .top .foto-stage { aspect-ratio: auto; height: 100%; min-height: 300px; max-height: none; border-radius: calc(var(--u) * 1.5); box-shadow: calc(var(--u) * .55) calc(var(--u) * .55) 0 var(--ground); }
  .top .foto-slide figcaption { gap: calc(var(--u) * .5); padding: calc(var(--u) * 5) calc(var(--u) * 1.6) calc(var(--u) * 5.8); }
  .top .foto-tag { height: calc(var(--u) * 2); padding: 0 var(--u); font-size: calc(var(--u) * .8); }
  .top .foto-slide figcaption b { font-size: calc(var(--u) * 2.2); }
  .top .foto-slide figcaption span { font-size: calc(var(--u) * 1.1); }
  .top .foto-controls { justify-self: start; gap: calc(var(--u) * .7); margin: 0 0 calc(var(--u) * 1.5) calc(var(--u) * 1.6); }
  .top .foto-btn { width: calc(var(--u) * 3.2); height: calc(var(--u) * 3.2); }
  .top .foto-btn svg { width: calc(var(--u) * 1.4); height: calc(var(--u) * 1.4); }
  .top .foto-bar { margin: calc(var(--u) * 1.4) 0 calc(var(--u) * .7); height: calc(var(--u) * .28); }
  .top .foto-strip { gap: calc(var(--u) * .8); }
  .top .foto-thumb { width: calc(var(--u) * 7); border-radius: calc(var(--u) * .7); }
}
/* On a very wide screen (a 4K monitor without scaling) the menu grows with the page, as the first screen does */
@media (min-width: 2400px) {
  .nav { padding: .95vw var(--pad); }
  .brand { font-size: 1.05vw; }
  .nav-links { font-size: .7vw; gap: 0 1.1vw; }
  .nav-links a { min-height: 2.6vw; }
  .pill { height: 2.3vw; padding: 0 1.1vw; gap: .6vw; font-size: .7vw; }
  .pill svg { width: .95vw; height: .95vw; }
  .top { min-height: min(calc(100vh - 4.2vw), 64vw); min-height: min(calc(100svh - 4.2vw), 64vw); }
}
