/* Agnos — edit these first if you want to tweak the look */
:root {
  --green: #002715;
  --green-2: #0c3b28;
  --green-soft: #164832;
  --cream: #f6f1e7;
  --cream-2: #efe7d8;
  --paper: #fbf8f3;
  --ink: #14241c;
  --muted: #5d6b63;
  --line: rgba(0, 39, 21, 0.12);
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(0, 39, 21, 0.12);
  /* One typeface across the whole site */
  --font: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --serif: var(--font);
  --sans: var(--font);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-soft);
}
h1, h2, h3, .wordmark { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: clamp(46px, 7vw, 84px); line-height: 1; margin: 10px 0 16px; }
h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin: 8px 0 14px; }
h3 { font-size: 28px; margin: 0 0 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 39, 21, 0.94);
  color: var(--cream);
  backdrop-filter: blur(10px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.wordmark { font-size: 34px; line-height: 1; }
.wordmark span { font-style: italic; }
.wordmark { display: inline-flex; align-items: center; }
.wordmark img { display: block; height: 36px; width: auto; }
.wordmark-footer img { height: 30px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; font-size: 15px; opacity: 0.88; }
.nav a:hover { opacity: 1; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.btn-light { background: var(--cream); color: var(--green); }
.btn-dark { background: var(--green); color: var(--cream); }
.btn-line { background: transparent; color: var(--cream); border: 1px solid rgba(246, 241, 231, 0.4); }
.btn-line-dark { background: transparent; color: var(--green); border: 1px solid rgba(0, 39, 21, 0.25); }
.menu-btn { display: none; background: transparent; color: var(--cream); border: 1px solid rgba(246,241,231,.3); border-radius: 999px; padding: 8px 12px; }

.hero {
  background: var(--green);
  color: var(--cream);
  padding: 54px 0 28px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
}
.hero p.lede { font-size: 19px; max-width: 520px; color: rgba(246, 241, 231, 0.84); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 28px; }

.section { padding: 84px 0; }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head p { color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: start; }
#about .section-head { max-width: 820px; }
.about-copy p { color: var(--muted); font-size: 18px; margin: 0 0 16px; }
.about-copy p:last-child { margin-bottom: 0; }
.facts { display: grid; gap: 14px; }
.fact {
  background: var(--cream);
  border-radius: 16px;
  padding: 18px 20px;
  color: var(--muted);
  font-size: 15px;
}
.fact b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 560;
}

.offer-grid, .proof-grid, .brand-grid {
  display: grid;
  gap: 16px;
}
.offer-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.card img { width: 100%; height: 190px; object-fit: cover; }
.card .pad, .proof .pad { padding: 16px 16px 18px; }
.card p, .proof p { color: var(--muted); margin: 0; font-size: 15px; }
.card h3 { font-size: 21px; letter-spacing: 0; font-weight: 600; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filters button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.filters button.active { background: var(--green); color: var(--cream); border-color: var(--green); }
.viewer-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.viewer-bar .filters { margin-bottom: 0; }
.viewer-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.viewer {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  outline: none;
}
.viewer:focus-visible { box-shadow: 0 0 0 3px rgba(0, 39, 21, 0.25); }
.viewer-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-2);
  border-radius: 12px;
  overflow: hidden;
}
.viewer-page { width: 100%; aspect-ratio: 1404 / 993; object-fit: contain; user-select: none; }
.viewer-stage:fullscreen { background: #000; border-radius: 0; }
.viewer-stage:fullscreen .viewer-page { width: auto; height: 100vh; max-width: 100vw; }
.viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(0, 39, 21, 0.82);
  color: var(--cream);
  font-size: 20px;
  cursor: pointer;
}
.viewer-nav.prev { left: 12px; }
.viewer-nav.next { right: 12px; }
.viewer-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 2px; font-size: 14px; color: var(--muted); }
.viewer-full { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.thumbs { position: relative; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.thumb {
  flex: 0 0 auto;
  width: 96px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  opacity: 0.6;
}
.thumb img { aspect-ratio: 1404 / 993; object-fit: cover; }
.thumb.active { border-color: var(--green); opacity: 1; }

.brand-grid { grid-template-columns: repeat(4, 1fr); }
.brand {
  background: white;
  border: 1px solid var(--line);
  color: var(--green);
  border-radius: 14px;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-weight: 620;
  letter-spacing: 0.04em;
}
.brand img { max-height: 56px; max-width: 80%; object-fit: contain; }
.proof-grid { grid-template-columns: repeat(3, 1fr); }
.proof { background: white; border-radius: 18px; border: 1px solid var(--line); }
.proof .who { margin-top: 14px; font-size: 15px; font-weight: 560; color: var(--ink); }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input, select, textarea {
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
.full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-side a { color: var(--green); }
.fine { font-size: 13px; color: var(--muted); }

footer {
  background: var(--green);
  color: rgba(246,241,231,.75);
  padding: 28px 0;
  font-size: 14px;
}
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--cream); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 16, 9, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: min(1100px, 100%); border-radius: 10px; }
.lightbox button {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--cream);
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--green); padding: 12px 20px 18px; flex-direction: column; align-items: flex-start; }
  .nav.open { display: flex; }
  .hero-grid, .split, .contact-grid, .offer-grid, .proof-grid, .brand-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: 1fr 1fr; }
  form { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .viewer { padding: 10px; }
  .viewer-nav { width: 36px; height: 36px; font-size: 16px; }
  .thumb { width: 72px; }
}
