:root {
  --bg: #0c1516;
  --bg-2: #122225;
  --panel: rgba(19, 34, 37, 0.82);
  --panel-strong: rgba(16, 27, 29, 0.96);
  --line: rgba(239, 232, 219, 0.11);
  --line-strong: rgba(239, 232, 219, 0.2);
  --text: #f2ede3;
  --muted: #c7bfae;
  --gold: #d1a84a;
  --sage: #839768;
  --moss: #566b49;
  --earth: #7a6746;
  --teal: #194e57;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --radius: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(209, 168, 74, 0.18), transparent 26%),
    radial-gradient(circle at 90% 10%, rgba(131, 151, 104, 0.12), transparent 20%),
    linear-gradient(180deg, #122426 0%, #0b1314 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(151, 175, 156, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 175, 156, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 18% 20%, rgba(209, 168, 74, 0.3), transparent 14%),
    radial-gradient(circle at 84% 12%, rgba(25, 78, 87, 0.26), transparent 16%);
  background-size: 34px 34px, 34px 34px, auto, auto;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.95), rgba(0,0,0,.4));
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-shell {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(8, 15, 16, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.wordmark strong {
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.wordmark span {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
}

.nav a:hover,
.nav a.active { color: var(--text); }

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 14px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-weight: 700;
}

.panel {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 39, 42, 0.92), rgba(12, 20, 21, 0.96));
  box-shadow: var(--shadow);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(209, 168, 74, 0.12), transparent 30%);
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ddc994;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1;
}

h1, h2 {
  font-family: "Source Serif 4", Georgia, serif;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3.2rem, 7vw, 6.3rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  max-width: 12ch;
}

h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

p,
li {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.02rem;
}

.lede {
  font-size: 1.12rem;
  max-width: 60ch;
}

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 28px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.button.primary {
  background: linear-gradient(135deg, #d8b45d, #9c7324);
  color: #1b160c;
}

.button.secondary {
  background: rgba(255,255,255,0.05);
}

.meta-list,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meta-list li,
.chip-row span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.2;
}

.hero-side {
  display: grid;
  gap: 16px;
}

.logo-frame {
  padding: 22px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top, rgba(209, 168, 74, 0.18), transparent 42%),
    rgba(255,255,255,0.035);
}

.logo-frame img {
  width: 100%;
  max-width: 490px;
  margin: 0 auto;
}

.glass {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
}

.stat-card,
.quote-card,
.info-card,
.value-card,
.link-card,
.theme-card,
.contact-card,
.pillars-card {
  position: relative;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
}

.stat-grid,
.card-grid,
.link-grid,
.theme-grid,
.contact-grid {
  display: grid;
  gap: 16px;
}

.stat-grid.four,
.card-grid.four,
.theme-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.three,
.link-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.two,
.contact-grid.two,
.theme-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.split {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 24px;
}

.stack > * + * { margin-top: 14px; }

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:first-child { border-top: 0; }

.year {
  display: inline-flex;
  width: fit-content;
  height: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(131, 151, 104, 0.16);
  color: #dce7cd;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.accent-panel {
  background: linear-gradient(180deg, rgba(32, 58, 48, 0.96), rgba(13, 22, 19, 0.96));
}

.number {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 2rem;
}

.kicker {
  color: var(--text);
  font-weight: 700;
}

.link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.link-card a,
.contact-card a.inline-link {
  font-weight: 700;
  color: var(--text);
}

.mini-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: #ddd0ae;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  font-weight: 700;
}

.page-hero {
  min-height: 42vh;
  display: grid;
  align-items: end;
}

.page-hero h1 { max-width: 12ch; }

.quote-card p:last-child {
  margin-bottom: 0;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 2px 0;
}

.footer p,
.footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 1040px) {
  .hero,
  .split,
  .card-grid.three,
  .card-grid.four,
  .card-grid.two,
  .link-grid.three,
  .theme-grid.four,
  .theme-grid.two,
  .stat-grid.four,
  .contact-grid.two {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 18px), var(--max));
  }

  .topbar {
    flex-wrap: wrap;
  }

  .menu-toggle { display: inline-flex; margin-left: auto; }

  .nav {
    display: none;
    width: 100%;
    padding-top: 6px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav.open { display: flex; }

  .panel {
    padding: 24px;
    border-radius: 24px;
  }

  h1 { max-width: none; }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}


.section-head-stack {
  display: grid;
  gap: 10px;
}

.section-copy {
  max-width: 64ch;
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.gallery-item {
  position: relative;
  grid-column: span 4;
  min-height: 240px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
  cursor: zoom-in;
  box-shadow: var(--shadow);
}

.gallery-item.wide { grid-column: span 6; }
.gallery-item.tall { grid-row: span 2; min-height: 100%; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.gallery-item::after {
  content: "View";
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(8, 15, 16, 0.62);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.03);
  filter: saturate(1.05);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:focus-visible {
  outline: 2px solid #ddc994;
  outline-offset: 3px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(5, 10, 11, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-figure {
  margin: 0;
  width: min(1100px, 100%);
}

.lightbox-image {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: rgba(0,0,0,0.4);
}

.lightbox-caption {
  margin-top: 12px;
  color: var(--text);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 700;
}


@media (max-width: 980px) {
  .gallery-item,
  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: span 6;
    grid-row: auto;
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: auto;
    min-height: 220px;
  }

  .lightbox {
    padding: 18px;
  }
}

/* Version 2 enhancements */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-v2 {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  align-items: center;
}

.hero-v2::before,
.hero-v2::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(20px);
}

.hero-v2::before {
  width: 320px;
  height: 320px;
  right: -90px;
  top: -70px;
  background: radial-gradient(circle, rgba(209, 168, 74, 0.18), transparent 70%);
}

.hero-v2::after {
  width: 260px;
  height: 260px;
  left: -40px;
  bottom: -70px;
  background: radial-gradient(circle, rgba(55, 125, 140, 0.18), transparent 70%);
}

.hero-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
}

.orbit-ring,
.orbit-dot {
  position: absolute;
  border-radius: 999px;
}

.orbit-ring {
  border: 1px solid rgba(239, 232, 219, 0.08);
}

.orbit-ring-a {
  width: 460px;
  height: 460px;
  right: -80px;
  top: 30px;
  animation: slowSpin 24s linear infinite;
}

.orbit-ring-b {
  width: 300px;
  height: 300px;
  right: 20px;
  top: 110px;
  animation: slowSpinReverse 20s linear infinite;
}

.orbit-dot {
  background: rgba(209, 168, 74, 0.85);
  box-shadow: 0 0 0 8px rgba(209, 168, 74, 0.08);
}

.orbit-dot-a { width: 10px; height: 10px; right: 250px; top: 90px; }
.orbit-dot-b { width: 8px; height: 8px; right: 110px; top: 260px; background: rgba(131, 151, 104, 0.9); box-shadow: 0 0 0 8px rgba(131,151,104,0.08); }
.orbit-dot-c { width: 12px; height: 12px; right: 360px; top: 390px; background: rgba(85, 145, 156, 0.85); box-shadow: 0 0 0 8px rgba(85,145,156,0.08); }

.hero-visual {
  position: relative;
  min-height: 480px;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 220ms ease-out;
}

.hero-card {
  position: absolute;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-logo-card {
  top: 12px;
  right: 34px;
  width: min(420px, 100%);
  padding: 18px;
}

.logo-frame-v2 {
  min-height: 250px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(31, 74, 84, 0.32), rgba(11, 19, 20, 0.1));
}

.logo-frame-v2 img {
  width: min(100%, 300px);
  max-height: 300px;
  object-fit: contain;
}

.hero-quote {
  left: 0;
  bottom: 26px;
  width: 270px;
  padding: 20px;
}

.hero-mini-gallery {
  right: 0;
  bottom: 0;
  width: 310px;
  padding: 18px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.mini-grid img {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(239, 232, 219, 0.08);
}

.float-slow { animation: floatSlow 7s ease-in-out infinite; }
.float-mid { animation: floatMid 6s ease-in-out infinite; }
.float-fast { animation: floatFast 5.5s ease-in-out infinite; }

.meta-list.compact li {
  background: rgba(239, 232, 219, 0.06);
}

.gallery-masonry {
  column-count: 3;
  column-gap: 18px;
}

.gallery-masonry .gallery-item {
  width: 100%;
  margin: 0 0 18px;
  break-inside: avoid;
  display: block;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(239, 232, 219, 0.1);
  background: rgba(12, 21, 22, 0.85);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.gallery-masonry .gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(209, 168, 74, 0.38);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
}

.gallery-masonry .gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes slowSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes floatSlow {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

@keyframes floatMid {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}

@keyframes floatFast {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

@media (max-width: 980px) {
  .hero-v2 {
    min-height: auto;
  }

  .hero-visual {
    min-height: 420px;
    margin-top: 10px;
  }

  .hero-logo-card {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
  }

  .hero-quote,
  .hero-mini-gallery {
    bottom: auto;
  }

  .hero-quote {
    left: 0;
    top: 260px;
    width: 50%;
  }

  .hero-mini-gallery {
    right: 0;
    top: 290px;
    width: 46%;
  }

  .gallery-masonry {
    column-count: 2;
  }
}

@media (max-width: 720px) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-v2 {
    padding-bottom: 24px;
  }

  .hero-visual {
    min-height: auto;
    display: grid;
    gap: 16px;
    transform: none;
  }

  .hero-card,
  .hero-logo-card,
  .hero-quote,
  .hero-mini-gallery {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .mini-grid img {
    aspect-ratio: 1 / 1;
  }

  .gallery-masonry {
    column-count: 1;
    column-gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-slow,
  .float-mid,
  .float-fast,
  .orbit-ring-a,
  .orbit-ring-b {
    animation: none;
  }

  .hero-visual,
  .gallery-masonry .gallery-item,
  .reveal {
    transition: none;
  }
}

/* Version 3 polish */
.hero-v3 {
  min-height: 700px;
}

.hero-photo {
  background-image:
    linear-gradient(115deg, rgba(9, 15, 16, 0.9) 0%, rgba(10, 17, 18, 0.76) 38%, rgba(10, 17, 18, 0.36) 100%),
    linear-gradient(180deg, rgba(14, 24, 25, 0.18), rgba(14, 24, 25, 0.72)),
    url('assets/hero/farm-hero-desktop.jpg');
  background-size: cover;
  background-position: center center;
}

.page-hero-photo {
  min-height: 46vh;
  background-image:
    linear-gradient(110deg, rgba(9, 15, 16, 0.84), rgba(9, 15, 16, 0.46)),
    url('assets/hero/farm-band.jpg');
  background-size: cover;
  background-position: center 54%;
}

.hero-copy {
  max-width: 720px;
}

.hero-lede {
  max-width: 58ch;
}

.tagline {
  max-width: 54ch;
  margin: 18px 0 0;
  color: var(--text);
  font-weight: 600;
  font-size: 1.04rem;
}

.hero-quote p,
.hero-card p:last-child,
.contact-card p:last-child,
.link-card p:last-child,
.value-card p:last-child,
.info-card p:last-child,
.pillars-card p:last-child,
.theme-card p:last-child,
.stat-card p:last-child {
  margin-bottom: 0;
}

.hero-quote {
  width: 300px;
}

.hero-mini-gallery {
  width: 324px;
}

.hero-side::before {
  content: "";
  position: absolute;
  inset: 70px 14px 22px 48px;
  border-radius: 36px;
  border: 1px solid rgba(239, 232, 219, 0.09);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  backdrop-filter: blur(10px);
}

.hero-card {
  backdrop-filter: blur(14px);
}

.value-card,
.info-card,
.pillars-card,
.theme-card,
.stat-card,
.link-card,
.contact-card {
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.value-card:hover,
.info-card:hover,
.pillars-card:hover,
.theme-card:hover,
.stat-card:hover,
.link-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(209, 168, 74, 0.32);
  background: rgba(255,255,255,0.05);
}

.page-hero .lede {
  max-width: 56ch;
}

.link-card a:hover,
.contact-card a.inline-link:hover,
.footer a:hover,
.nav a:hover {
  color: var(--text);
}

@media (max-width: 980px) {
  .hero-photo {
    background-image:
      linear-gradient(180deg, rgba(9, 15, 16, 0.84), rgba(9, 15, 16, 0.58)),
      url('assets/hero/farm-hero-desktop.jpg');
    background-position: center center;
  }

  .hero-side::before {
    inset: 56px 10px 10px 10px;
  }
}

@media (max-width: 720px) {
  .hero-v3 {
    min-height: auto;
  }

  .hero-photo {
    background-image:
      linear-gradient(180deg, rgba(9, 15, 16, 0.84), rgba(9, 15, 16, 0.62)),
      url('assets/hero/farm-hero-mobile.jpg');
    background-position: center top;
  }

  .page-hero-photo {
    background-position: center center;
  }

  .tagline {
    font-size: 1rem;
  }

  .hero-side::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .value-card,
  .info-card,
  .pillars-card,
  .theme-card,
  .stat-card,
  .link-card,
  .contact-card {
    transition: none;
  }
}


/* Homepage hero readability refresh */
.hero-photo {
  background-image:
    linear-gradient(112deg, rgba(7, 12, 13, 0.94) 0%, rgba(8, 14, 15, 0.82) 42%, rgba(8, 14, 15, 0.58) 68%, rgba(8, 14, 15, 0.38) 100%),
    linear-gradient(180deg, rgba(14, 24, 25, 0.16), rgba(14, 24, 25, 0.7)),
    url('assets/hero/farm-hero-desktop.jpg');
}

.hero-copy {
  max-width: 760px;
}

.hero-side {
  align-self: center;
}

.hero-side::before {
  display: none;
}

.hero-logo-card-solid,
.hero-note-card {
  position: relative;
  background: rgba(7, 12, 13, 0.82);
  border: 1px solid rgba(239, 232, 219, 0.14);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

.hero-logo-card {
  top: 0;
  right: 0;
  width: min(380px, 100%);
  padding: 18px;
}

.logo-frame-clean {
  min-height: 0;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(18, 34, 37, 0.96), rgba(10, 18, 19, 0.96)),
    radial-gradient(circle at 50% 32%, rgba(209, 168, 74, 0.1), transparent 46%);
}

.logo-frame-clean img {
  width: min(100%, 245px);
  max-height: 245px;
}

.hero-quote.hero-note-card {
  left: auto;
  bottom: auto;
  right: 28px;
  top: 348px;
  width: 300px;
}

.hero-note-card p {
  color: #f2ede3;
  line-height: 1.65;
}

.hero-orbit,
.orbit-ring,
.orbit-dot,
.hero-mini-gallery {
  display: none;
}

@media (max-width: 980px) {
  .hero-photo {
    background-image:
      linear-gradient(180deg, rgba(7, 12, 13, 0.9), rgba(7, 12, 13, 0.66)),
      url('assets/hero/farm-hero-desktop.jpg');
  }

  .hero-logo-card {
    width: 100%;
  }

  .hero-quote.hero-note-card {
    right: 0;
    top: 0;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .hero-photo {
    background-image:
      linear-gradient(180deg, rgba(7, 12, 13, 0.9), rgba(7, 12, 13, 0.7)),
      url('assets/hero/farm-hero-mobile.jpg');
  }

  .hero-logo-card,
  .hero-quote.hero-note-card {
    right: auto;
    top: auto;
  }
}


/* V3.2 typography, navigation, and gallery polish */
.topbar {
  top: 12px;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(7, 12, 13, 0.74);
  border-color: rgba(239, 232, 219, 0.1);
  backdrop-filter: blur(14px);
}

.wordmark strong {
  font-size: 0.96rem;
  letter-spacing: 0.08em;
}

.wordmark span {
  font-size: 0.84rem;
}

.nav {
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(239, 232, 219, 0.08);
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255,255,255,0.08);
}

.nav a:hover {
  transform: translateY(-1px);
}

.hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 36px;
}

.hero-copy {
  max-width: 640px;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.35rem, 4.9vw, 4.55rem);
  line-height: 1.06;
}

.hero .eyebrow {
  margin-bottom: 12px;
}

.hero .lede {
  max-width: 58ch;
  font-size: 1.03rem;
  line-height: 1.72;
}

.tagline {
  max-width: 46ch;
  margin-top: 16px;
  font-size: 0.98rem;
  line-height: 1.65;
}

.hero-actions {
  margin: 24px 0 18px;
}

.button {
  min-height: 46px;
  padding: 0 17px;
}

.meta-list.compact li {
  padding: 9px 13px;
  font-size: 0.88rem;
}

.hero-logo-card {
  width: min(350px, 100%);
}

.logo-frame-clean img {
  width: min(100%, 220px);
  max-height: 220px;
}

.hero-quote.hero-note-card {
  top: 310px;
  width: 288px;
}

h2 {
  font-size: clamp(1.95rem, 3.7vw, 3rem);
  line-height: 1.06;
}

h3 {
  font-size: 1.1rem;
}

p,
li {
  font-size: 0.99rem;
}

.lede {
  font-size: 1.05rem;
}

.gallery-masonry {
  column-gap: 20px;
}

.gallery-masonry .gallery-item {
  position: relative;
  margin-bottom: 20px;
  border-color: rgba(239, 232, 219, 0.08);
  overflow: hidden;
}

.gallery-masonry .gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 17, 0) 30%, rgba(10, 16, 17, 0.18) 72%, rgba(10, 16, 17, 0.58) 100%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.gallery-masonry .gallery-item::after {
  content: "Open";
  right: 14px;
  bottom: 14px;
  opacity: 0;
  transform: translateY(8px);
}

.gallery-masonry .gallery-item:hover,
.gallery-masonry .gallery-item:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(209, 168, 74, 0.3);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.34);
}

.gallery-masonry .gallery-item:hover::before,
.gallery-masonry .gallery-item:focus-visible::before,
.gallery-masonry .gallery-item:hover::after,
.gallery-masonry .gallery-item:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-masonry .gallery-item:hover img,
.gallery-masonry .gallery-item:focus-visible img {
  transform: scale(1.024);
  filter: saturate(1.05) contrast(1.02);
}

.page-hero h1 {
  font-size: clamp(2.15rem, 4.4vw, 4rem);
}

@media (max-width: 1040px) {
  .hero {
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 12px;
  }

  .nav {
    gap: 6px;
    padding: 8px 0 0;
    background: transparent;
    border: 0;
  }

  .nav a {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(239, 232, 219, 0.08);
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    max-width: 13ch;
  }

  .hero .lede,
  .tagline {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav a,
  .gallery-masonry .gallery-item,
  .gallery-masonry .gallery-item::before,
  .gallery-masonry .gallery-item::after,
  .gallery-masonry .gallery-item img {
    transition: none;
  }
}


/* Mobile hero refinement */
.hero h1,
.hero .lede,
.tagline {
  text-wrap: balance;
}

.hero h1 span {
  display: block;
}

.hero .lede {
  max-width: 34ch;
  text-wrap: pretty;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero .eyebrow {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 6vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    max-width: 11ch;
    margin-bottom: 0.75rem;
  }

  .hero .lede {
    font-size: clamp(0.98rem, 2.8vw, 1.08rem);
    line-height: 1.45;
    max-width: 34ch;
    margin-bottom: 0.9rem;
  }

  .tagline {
    font-size: 0.92rem;
    line-height: 1.35;
    max-width: 30ch;
    margin-top: 0;
    margin-bottom: 1.1rem;
    opacity: 0.82;
  }

  .hero-actions {
    margin-top: 0.4rem;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .hero-side {
    order: 2;
  }

  .hero-copy {
    order: 1;
  }
}

@media (max-width: 480px) {
  .hero .eyebrow {
    display: none;
  }

  .hero {
    gap: 14px;
  }

  .hero h1 {
    max-width: 10ch;
  }

  .meta-list.compact {
    gap: 8px;
  }

  .meta-list.compact li {
    font-size: 0.82rem;
    padding: 8px 11px;
  }
}


/* V3.3 mobile hero cleanup */
.hero-title .mobile-copy { display: none; }
.hero-title .desktop-copy { display: inline; }
.hero-lede .mobile-copy { display: none; }
.hero-lede .desktop-copy { display: inline; }

@media (max-width: 760px) {
  .hero {
    min-height: 0;
    padding: 28px 22px;
    gap: 14px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-title .desktop-copy,
  .hero-lede .desktop-copy {
    display: none;
  }

  .hero-title .mobile-copy,
  .hero-lede .mobile-copy {
    display: inline;
  }

  .hero h1,
  .hero-title {
    max-width: 100%;
    font-size: clamp(1.9rem, 7vw, 2.45rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: pretty;
    margin-bottom: 0.55rem;
  }

  .hero h1 span,
  .hero-title span {
    display: inline;
  }

  .hero-title-intro {
    display: block !important;
    margin-bottom: 0.15rem;
  }

  .hero .lede,
  .hero-lede {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    text-wrap: pretty;
  }

  .tagline {
    max-width: 100%;
    font-size: 0.9rem;
    line-height: 1.45;
    opacity: 0.84;
    margin-bottom: 0.95rem;
  }

  .hero-actions {
    margin: 0.2rem 0 0.9rem;
  }

  .meta-list.compact {
    gap: 7px;
  }

  .meta-list.compact li {
    font-size: 0.8rem;
    padding: 7px 10px;
  }

  .hero-side {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 24px 18px;
  }

  .hero h1,
  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }

  .tagline {
    font-size: 0.88rem;
  }

  .meta-list.compact li {
    font-size: 0.78rem;
    padding: 7px 9px;
  }
}


/* V5 refinement */
:root {
  --header-height: 78px;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -48px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f2ede3;
  color: #0b1314;
  font-weight: 700;
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 12px;
}

.topbar {
  transition: padding 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.topbar.is-scrolled {
  padding: 10px 12px;
  background: rgba(7, 12, 13, 0.88);
  border-color: rgba(239, 232, 219, 0.14);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

.topbar.is-scrolled .wordmark strong {
  letter-spacing: 0.1em;
}

.nav a:focus-visible,
.button:focus-visible,
.menu-toggle:focus-visible,
.contact-pill:focus-visible,
.gallery-item:focus-visible,
.lightbox-close:focus-visible {
  outline: 2px solid rgba(221, 201, 148, 0.95);
  outline-offset: 3px;
}

.hero {
  min-height: min(80vh, 780px);
  align-items: end;
  gap: 42px;
}

.hero-copy {
  align-self: center;
}

.hero-title {
  margin-bottom: 0.9rem;
}

.hero .lede,
.hero-lede {
  max-width: 52ch;
}

.hero-actions {
  gap: 14px;
}

.hero-side {
  align-self: stretch;
  grid-template-rows: 1fr auto;
}

.hero-logo-card,
.hero-quote.hero-note-card {
  border-radius: 30px;
}

.hero-logo-card {
  top: 18px;
}

.hero-quote.hero-note-card {
  top: auto;
  bottom: 18px;
}

.panel {
  backdrop-filter: blur(2px);
}

.page-hero {
  min-height: 38vh;
}

.gallery-masonry .gallery-item {
  border-radius: 24px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 18px;
    padding: 26px 22px;
    align-items: start;
  }

  .hero-copy,
  .hero .lede,
  .hero-lede,
  .tagline {
    max-width: 100%;
  }

  .hero-title,
  .hero h1 {
    max-width: 12ch;
    font-size: clamp(2rem, 7vw, 3rem);
    line-height: 1.06;
    margin-bottom: 0.6rem;
  }

  .hero .lede,
  .hero-lede {
    font-size: 0.98rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
  }

  .tagline {
    font-size: 0.9rem;
    line-height: 1.48;
    margin-bottom: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin: 0.2rem 0 0.85rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-side {
    display: none;
  }

  .meta-list.compact {
    gap: 8px;
  }

  .meta-list.compact li {
    font-size: 0.8rem;
    padding: 8px 10px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 14px), var(--max));
    padding-top: 10px;
  }

  .topbar {
    top: 8px;
    margin-bottom: 14px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    z-index: 40;
    display: none;
    padding: 10px;
    border-radius: 18px;
    background: rgba(7, 12, 13, 0.96);
    border: 1px solid rgba(239, 232, 219, 0.1);
    box-shadow: 0 24px 48px rgba(0,0,0,0.28);
    backdrop-filter: blur(16px);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    justify-content: flex-start;
    min-height: 46px;
  }

  .hero {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .panel {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .page-hero {
    min-height: 30vh;
  }
}

@media (max-width: 480px) {
  .wordmark span {
    display: none;
  }

  .hero-title,
  .hero h1 {
    max-width: 10ch;
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }

  .hero .lede,
  .hero-lede,
  .tagline,
  p,
  li {
    font-size: 0.94rem;
  }

  .meta-list.compact li {
    font-size: 0.76rem;
    padding: 7px 9px;
  }

  .button {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar,
  .skip-link {
    transition: none;
  }
}


/* V5.1 header mark and homepage principles refresh */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.wordmark-text {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.header-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 14px;
  padding: 4px;
  border: 1px solid rgba(239, 232, 219, 0.08);
  background: linear-gradient(180deg, rgba(18, 34, 37, 0.9), rgba(10, 18, 19, 0.96));
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.hero-side-principles {
  display: grid;
  align-items: center;
}

.hero-principles-card {
  position: relative;
  inset: auto;
  width: min(380px, 100%);
  margin-left: auto;
  padding: 22px;
  border-radius: 30px;
  background: rgba(7, 12, 13, 0.78);
  border: 1px solid rgba(239, 232, 219, 0.12);
  box-shadow: 0 24px 56px rgba(0,0,0,0.32);
}

.hero-principles-card h3 {
  margin-bottom: 14px;
  font-size: 1.22rem;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.principles-grid span {
  display: grid;
  place-items: center;
  min-height: 62px;
  padding: 10px 12px;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(239, 232, 219, 0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.principles-note {
  margin: 0;
  color: #e8e0d0;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .header-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .hero-side-principles {
    display: none;
  }
}

@media (max-width: 480px) {
  .wordmark {
    gap: 10px;
  }

  .header-mark {
    width: 38px;
    height: 38px;
    padding: 3px;
  }
}

.wordmark > .wordmark-text {
  color: inherit;
  font-size: inherit;
}

.wordmark-text strong {
  font-size: 0.96rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.wordmark-text > span {
  color: var(--muted);
  font-size: 0.84rem;
}


/* V6 final polish */
body.is-ready .hero-photo,
body.is-ready .page-hero-photo {
  opacity: 1;
  transform: none;
}

.hero-photo,
.page-hero-photo {
  opacity: 0;
  transform: translateY(18px) scale(0.995);
  transition: opacity 850ms ease, transform 850ms ease;
}

body.is-ready .hero-copy > *,
body.is-ready .page-hero > * {
  opacity: 1;
  transform: none;
}

.hero-copy > *,
.page-hero > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.hero-copy > *:nth-child(1),
.page-hero > *:nth-child(1) { transition-delay: 120ms; }
.hero-copy > *:nth-child(2),
.page-hero > *:nth-child(2) { transition-delay: 200ms; }
.hero-copy > *:nth-child(3),
.page-hero > *:nth-child(3) { transition-delay: 280ms; }
.hero-copy > *:nth-child(4),
.page-hero > *:nth-child(4) { transition-delay: 360ms; }
.hero-copy > *:nth-child(5),
.page-hero > *:nth-child(5) { transition-delay: 440ms; }
.hero-copy > *:nth-child(6),
.page-hero > *:nth-child(6) { transition-delay: 520ms; }

.topbar {
  overflow: visible;
}

.topbar::after {
  content: "";
  position: absolute;
  inset: auto 24px -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239,232,219,0.18), transparent);
  opacity: 0;
  transition: opacity 220ms ease;
}

.topbar.is-scrolled::after {
  opacity: 1;
}

.hero-principles-card {
  background:
    linear-gradient(180deg, rgba(9, 15, 16, 0.84), rgba(9, 15, 16, 0.72)),
    radial-gradient(circle at top left, rgba(209,168,74,0.12), transparent 42%);
}

.principles-grid span {
  align-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
}

.button,
.contact-pill,
.nav a,
.menu-toggle,
.gallery-item,
.lightbox-close,
.lightbox-nav {
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, opacity 180ms ease;
}

.button:hover,
.contact-pill:hover,
.menu-toggle:hover {
  transform: translateY(-1px);
}

.hero-actions .button.primary {
  box-shadow: 0 14px 30px rgba(156, 115, 36, 0.28);
}

.gallery-masonry {
  column-count: 3;
  column-gap: 22px;
}

.gallery-masonry .gallery-item {
  margin-bottom: 22px;
  border-radius: 26px;
}

.gallery-masonry .gallery-item:nth-child(5n + 1) {
  transform-origin: center top;
}

.gallery-masonry .gallery-item::before {
  opacity: 1;
  background: linear-gradient(180deg, rgba(10,16,17,0) 26%, rgba(10,16,17,0.08) 60%, rgba(10,16,17,0.72) 100%);
}

.gallery-masonry .gallery-item::after {
  content: attr(data-caption);
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f6f1e7;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: left;
  opacity: 0.94;
  transform: none;
  max-width: 22ch;
  text-shadow: 0 2px 16px rgba(0,0,0,0.42);
}

.gallery-masonry .gallery-item:hover::after,
.gallery-masonry .gallery-item:focus-visible::after {
  opacity: 1;
}

.gallery-masonry .gallery-item:hover {
  transform: translateY(-6px) scale(1.003);
}

.gallery-masonry .gallery-item img {
  transition: transform 380ms ease, filter 380ms ease;
}

.gallery-masonry .gallery-item:hover img,
.gallery-masonry .gallery-item:focus-visible img {
  transform: scale(1.028);
  filter: saturate(1.06) contrast(1.02);
}

.lightbox {
  backdrop-filter: blur(14px);
}

.lightbox-figure {
  position: relative;
}

.lightbox-caption {
  max-width: 48ch;
  margin: 14px auto 0;
  padding: 0 56px;
  color: #f6f1e7;
  text-wrap: pretty;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 81;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-top: -26px;
  border: 1px solid rgba(239,232,219,0.16);
  border-radius: 999px;
  background: rgba(7,12,13,0.5);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-nav:hover,
.lightbox-close:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(239,232,219,0.24);
}

@media (max-width: 980px) {
  .gallery-masonry {
    column-count: 2;
  }
}

@media (max-width: 760px) {
  .hero-photo,
  .page-hero-photo,
  .hero-copy > *,
  .page-hero > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .topbar::after {
    inset: auto 12px -1px;
  }

  .gallery-masonry .gallery-item::after {
    font-size: 0.84rem;
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .lightbox-caption {
    padding: 0 18px;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
    margin-top: -22px;
    font-size: 1.6rem;
  }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@media (max-width: 640px) {
  .gallery-masonry {
    column-count: 1;
    column-gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo,
  .page-hero-photo,
  .hero-copy > *,
  .page-hero > *,
  .button,
  .contact-pill,
  .nav a,
  .menu-toggle,
  .gallery-item,
  .gallery-item img,
  .lightbox-close,
  .lightbox-nav {
    transition: none;
  }
}
