/* ===== Tokens ===== */
:root {
  --cream: #efe7d4;
  --cream-soft: #faf5e7;
  --cream-card: #fffdf8;
  --ink: #2c2116;
  --ink-soft: #5a4a38;
  --green: #1e5c3b;
  --green-dark: #123825;
  --gold: #e0a838;
  --gold-soft: #f6dfa0;
  --rust: #b24a2a;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Karla", -apple-system, sans-serif;
  --font-script: "Caveat", cursive;

  --container: 1180px;
  --radius-lg: 28px;
  --radius-md: 18px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* height:auto is required — the HTML width/height attributes map to CSS
   presentation hints, which would otherwise override aspect-ratio. */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Paper grain, echoing the linen the logo was shot on */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
::selection { background: var(--gold-soft); color: var(--ink); }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ===== Header (overlays the hero video) ===== */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding: clamp(1rem, 2.6vw, 1.65rem) 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
/* Cream chip keeps the dark-green wordmark legible over footage */
.brand-mark {
  display: inline-flex;
  background: var(--cream-soft);
  padding: 0.5rem 0.85rem;
  border-radius: 13px;
  box-shadow: 0 12px 28px -16px rgba(8, 20, 12, 0.7);
}
.brand-mark img {
  height: clamp(30px, 4.4vw, 42px);
  width: auto;
}
.header-pill {
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cream-card);
  background: rgba(250, 245, 231, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(250, 245, 231, 0.32);
  padding: 0.55em 1.05em;
  border-radius: 999px;
  white-space: nowrap;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(880px, 100vh);
  min-height: min(880px, 100svh);
  padding: clamp(7.5rem, 15vw, 10rem) 0 clamp(5.5rem, 10vw, 8rem);
  color: var(--cream-soft);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--green-dark);
}
.hero-video,
.hero-media-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* bias toward the horizon/fields rather than empty sky */
  object-position: center 62%;
}
.hero-media-fallback { z-index: 0; }
.hero-video { z-index: 1; }
.hero-media.no-video .hero-video { display: none; }

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(15, 33, 21, 0.68) 0%, rgba(15, 33, 21, 0.4) 35%, rgba(15, 33, 21, 0.78) 100%),
    linear-gradient(90deg, rgba(15, 33, 21, 0.6) 0%, rgba(15, 33, 21, 0.08) 58%);
}

.hero-inner { position: relative; z-index: 3; }
.hero-copy { max-width: 36rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-weight: 700;
  font-size: clamp(0.68rem, 0.64rem + 0.16vw, 0.8rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 1.1rem;
  opacity: 0;
  animation: rise 0.7s var(--ease-out-expo) forwards;
}
.eyebrow.center { justify-content: center; width: 100%; }
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(224, 168, 56, 0.28);
  flex: none;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.15rem, 1.55rem + 2.9vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 1.1rem;
  color: var(--cream-card);
  text-shadow: 0 4px 30px rgba(15, 33, 21, 0.4);
  opacity: 0;
  animation: rise 0.8s 0.08s var(--ease-out-expo) forwards;
}
.ink-underline {
  font-style: italic;
  color: var(--gold-soft);
  position: relative;
  white-space: nowrap;
}
.ink-underline::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%; bottom: 0.06em;
  height: 0.14em;
  background: rgba(224, 168, 56, 0.3);
  z-index: -1;
  border-radius: 2px;
}

.hero-sub {
  font-size: clamp(0.98rem, 0.94rem + 0.3vw, 1.18rem);
  color: rgba(250, 245, 231, 0.9);
  max-width: 33em;
  margin: 0 0 2rem;
  opacity: 0;
  animation: rise 0.8s 0.16s var(--ease-out-expo) forwards;
}

/* ===== Notify form ===== */
.notify-form {
  opacity: 0;
  animation: rise 0.8s 0.24s var(--ease-out-expo) forwards;
  margin-bottom: 2.25rem;
}
.notify-field {
  display: flex;
  gap: 0.6rem;
  max-width: 29rem;
  background: rgba(250, 245, 231, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 245, 231, 0.3);
  box-shadow: 0 16px 34px -18px rgba(8, 20, 12, 0.55);
}
.notify-field input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.75em 0.5em 0.75em 1em;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cream-card);
}
.notify-field input::placeholder { color: rgba(250, 245, 231, 0.6); }
.notify-field input:focus,
.notify-field input:focus-visible { outline: none; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border: none;
  cursor: pointer;
  background: var(--gold);
  color: var(--green-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85em 1.4em;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out-expo), background 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary svg { transition: transform 0.25s var(--ease-out-expo); }
.btn-primary:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(224, 168, 56, 0.6);
}
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.7; cursor: default; transform: none; }

.notify-note {
  margin: 0.75rem 0 0 1.1rem;
  font-size: 0.82rem;
  color: rgba(250, 245, 231, 0.75);
  transition: color 0.3s ease;
}
.notify-note.is-success { color: var(--gold-soft); font-weight: 600; }
.notify-note.is-error { color: #f0a78f; font-weight: 600; }

.notify-field.shake { animation: shake 0.4s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ===== Trust strip ===== */
.trust-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  margin: 0;
  padding: 0;
  opacity: 0;
  animation: rise 0.8s 0.32s var(--ease-out-expo) forwards;
}
.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream-card);
}
.trust-strip svg { width: 18px; height: 18px; color: var(--gold-soft); flex: none; }

/* ===== Hero badge ===== */
.hero-badge {
  position: absolute;
  right: clamp(1.5rem, 5vw, 4rem);
  bottom: clamp(4rem, 8vw, 6rem);
  z-index: 3;
  opacity: 0;
  /* durations must match .hero-badge-inner so the text stays upright */
  animation: rise-scale 0.9s 0.35s var(--ease-out-expo) forwards,
             spin-slow 18s 1.25s linear infinite;
}
.hero-badge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--rust);
  color: var(--cream-soft);
  font-family: var(--font-display);
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.25;
  font-weight: 600;
  box-shadow: 0 16px 30px -12px rgba(8, 20, 12, 0.7);
  border: 3px dashed rgba(255, 253, 248, 0.5);
  animation: counter-spin 18s 1.25s linear infinite;
}
.hero-badge-inner em { font-size: 1.15rem; font-style: italic; }

/* Sits above the divider curve, spanning the full hero width */
.hero-divider {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: auto;
  z-index: 4;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rise-scale {
  from { opacity: 0; transform: translateY(20px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes counter-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* ===== Shared section type ===== */
.section-eyebrow {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.4rem + 1.5vw, 2.7rem);
  line-height: 1.14;
  color: var(--green-dark);
  margin: 0 0 1rem;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.center { text-align: center; }

/* ===== Categories ===== */
.categories {
  background: var(--cream-soft);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem);
}
.categories .section-title.center {
  max-width: 18em;
  margin-left: auto;
  margin-right: auto;
}

.category-grid {
  margin-top: clamp(2.25rem, 4.5vw, 3.25rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, 2.5vw, 1.85rem);
}

.cat-card {
  position: relative;
  background: var(--cream-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(44, 33, 22, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}
.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 40px -24px rgba(44, 33, 22, 0.35);
}
.cat-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}
.cat-card:hover img { transform: scale(1.05); }

.cat-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4em 0.85em;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink-soft);
  backdrop-filter: blur(2px);
}
.cat-tag--first { background: var(--green); color: var(--cream-soft); }

.cat-card-body { padding: 1.4rem 1.5rem 1.65rem; }
.cat-card-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  font-weight: 600;
  color: var(--green-dark);
  margin: 0 0 0.4rem;
}
.cat-card-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ===== Story ===== */
.story { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.story-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.story-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 50px -28px rgba(44, 33, 22, 0.45);
}
.script-tag {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 1.35rem + 1.1vw, 2.2rem);
  color: var(--rust);
  margin: 0 0 0.5rem;
  font-weight: 700;
  line-height: 1.2;
}
.story-copy p { color: var(--ink-soft); margin: 0 0 1.1rem; }
.story-copy p:last-child { margin-bottom: 0; }

/* ===== Final CTA ===== */
.final-cta {
  background: var(--green-dark);
  color: var(--cream-soft);
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  position: relative;
  overflow: hidden;
}
.final-cta-inner {
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.final-cta .section-title { color: var(--cream-card); }
.final-cta-sub {
  color: rgba(250, 245, 231, 0.78);
  margin: 0 0 2rem;
  max-width: 30em;
}
.final-cta .notify-field {
  background: rgba(250, 245, 231, 0.1);
  border-color: rgba(250, 245, 231, 0.22);
}
.notify-form--footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 0;
}
.notify-form--footer .notify-field { width: 100%; }
.notify-form--footer .notify-note { margin-left: 0; text-align: center; }

/* Decorative only — kept clear of the text column, and dropped
   entirely once there isn't room beside it. */
.leaf-accent {
  position: absolute;
  width: 116px; height: 116px;
  color: rgba(250, 245, 231, 0.16);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.leaf-accent--left { left: -150px; }
.leaf-accent--right { right: -150px; transform: translateY(-50%) scaleX(-1); }

@media (max-width: 1060px) {
  .leaf-accent { display: none; }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: rgba(239, 231, 212, 0.7);
  padding: 2.75rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}
.footer-logo {
  width: 132px;
  height: auto;
  background: var(--cream-soft);
  padding: 0.5rem 0.8rem;
  border-radius: 11px;
}
.footer-line {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--gold-soft);
  margin: 0.4rem 0 0;
}
.footer-copy { font-size: 0.8rem; margin: 0; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eyebrow, .hero-title, .hero-sub, .notify-form, .trust-strip, .hero-badge {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-badge-inner { animation: none !important; }
  .cat-card, .cat-card img, .btn-primary, .btn-primary svg { transition: none !important; }
}

/* ===== Responsive ===== */

/* Tablet: two up, with the third card laid out horizontally so no orphan */
@media (max-width: 900px) {
  .category-grid { grid-template-columns: 1fr 1fr; }
  .cat-card:last-child { grid-column: 1 / -1; flex-direction: row; }
  .cat-card:last-child img { width: 42%; aspect-ratio: 4 / 3; }
  .cat-card:last-child .cat-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 860px) {
  .story-inner { grid-template-columns: 1fr; }
  .story-visual { order: 1; }
  .story-copy { order: 2; }
}

@media (max-width: 700px) {
  /* the sticker would collide with the trust strip on narrow screens */
  .hero-badge { display: none; }
}

@media (max-width: 600px) {
  .hero {
    min-height: min(760px, 100svh);
    padding-top: clamp(6.5rem, 22vw, 8.5rem);
    text-align: center;
  }
  .hero-copy { margin: 0 auto; }
  .eyebrow { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-scrim {
    background: linear-gradient(180deg,
      rgba(15, 33, 21, 0.72) 0%, rgba(15, 33, 21, 0.5) 40%, rgba(15, 33, 21, 0.8) 100%);
  }

  .notify-form { margin-left: auto; margin-right: auto; }
  .notify-field {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 0.55rem;
    margin: 0 auto;
  }
  .notify-field input { text-align: center; padding: 0.7em 0.5em; }
  .btn-primary { justify-content: center; width: 100%; }
  .notify-note { text-align: center; margin-left: 0; }
  .trust-strip { justify-content: center; gap: 0.6rem 1.2rem; }

  .category-grid { grid-template-columns: 1fr; }
  .cat-card:last-child { flex-direction: column; }
  .cat-card:last-child img { width: 100%; aspect-ratio: 3 / 4; }
  .cat-card:last-child .cat-card-body { display: block; }
}

@media (max-width: 400px) {
  .header-pill { display: none; }
  .header-inner { justify-content: center; }
}
