:root {
  --canvas: #0f172a;
  --surface: #1e293b;
  --surface-light: #263449;
  --brand: #159f84;
  --brand-soft: #53c6ad;
  --text: #fff9eb;
  --body: #b3c0d1;
  --muted: #94a3b8;
  --line: rgba(226, 232, 240, 0.14);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 82px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--text); line-height: 1.08; letter-spacing: -0.045em; }
h1 { max-width: 900px; font-size: clamp(3.2rem, 7vw, 6.65rem); font-weight: 800; }
h2 { max-width: 780px; font-size: clamp(2.25rem, 4.5vw, 4rem); font-weight: 750; }
h3 { font-size: 1.35rem; font-weight: 700; }
.container { width: min(calc(100% - 48px), var(--max-width)); margin: 0 auto; }
.section { padding: 118px 0; }
.section-surface { background: var(--surface); }
.narrow-content { max-width: 810px; }
.eyebrow { margin-bottom: 20px; color: var(--brand-soft); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.muted { color: var(--muted); }
.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; }

.site-header { position: absolute; z-index: 5; top: 0; width: 100%; border-bottom: 1px solid transparent; transition: background 180ms ease, border-color 180ms ease; }
.site-header.scrolled { position: fixed; background: rgba(15, 23, 42, 0.95); border-color: var(--line); backdrop-filter: blur(16px); }
.navigation { display: flex; min-height: 82px; align-items: center; gap: 32px; }
.brand { flex: 0 0 auto; width: 162px; }
.brand img { width: 100%; height: auto; }
.site-menu { display: flex; flex: 1; justify-content: center; gap: 24px; }
.site-menu a { color: #dbe5f1; font-size: 0.84rem; font-weight: 650; transition: color 160ms ease; }
.site-menu a:hover, .site-menu a:focus-visible, .footer-main a:hover { color: var(--brand-soft); }
.menu-toggle { display: none; }

.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid transparent; border-radius: 8px; font-size: 0.85rem; font-weight: 750; letter-spacing: 0.005em; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--brand); color: #071b19; }
.button-primary:hover { background: var(--brand-soft); }
.button-secondary { border-color: rgba(255, 249, 235, 0.78); color: var(--text); }
.button-secondary:hover { border-color: var(--brand-soft); background: rgba(255, 255, 255, 0.06); }
.button-small { min-height: 38px; padding: 8px 15px; font-size: 0.78rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 35px; }

.hero { position: relative; display: grid; min-height: min(820px, 100svh); align-items: end; overflow: hidden; padding: 170px 0 94px; }
.hero-image, .hero-wash { position: absolute; inset: 0; }
.hero-image { background: url("assets/coffee-farm.webp") center 45% / cover no-repeat; filter: saturate(0.78); }
.hero-wash { background: linear-gradient(90deg, rgba(8, 18, 26, 0.96) 0%, rgba(8, 18, 26, 0.79) 40%, rgba(8, 18, 26, 0.36) 100%), linear-gradient(0deg, rgba(15, 23, 42, 0.91) 0%, transparent 48%); }
.hero-content { position: relative; z-index: 1; }
.hero-copy { max-width: 640px; margin-bottom: 0; color: #d3dee9; font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.hero-note { max-width: 575px; margin: 32px 0 0; color: var(--muted); font-size: 0.82rem; }

.intro { background: #111d31; }
.intro p { max-width: 700px; font-size: 1.12rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 42px; }
.section-heading h2 { margin: 0; }
.how-grid { display: grid; grid-template-columns: 0.78fr 1fr; gap: clamp(48px, 8vw, 110px); align-items: stretch; }
.how-visual { align-self: stretch; }
.section-photo { border-radius: 8px; background-position: center; background-size: cover; }
.how-photo { min-height: 660px; background-image: linear-gradient(rgba(7, 24, 31, 0.12), rgba(7, 24, 31, 0.48)), url("assets/coffee-harvest.webp"); }
.photo-caption { display: flex; justify-content: space-between; padding-top: 12px; color: var(--muted); font-size: 0.7rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.steps { display: grid; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 50px 1fr; gap: 24px; min-height: 155px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step-number { display: block; color: var(--brand-soft); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; }
.step h3 { margin-bottom: 10px; }
.step p { max-width: 410px; margin-bottom: 0; }

.audience-grid { display: grid; grid-template-columns: 0.9fr 1fr; gap: clamp(48px, 8vw, 120px); align-items: center; }
.audience-grid-reverse .audience-image { order: 2; }
.audience-image { min-height: 620px; border-radius: 8px; background-position: center; background-size: cover; }
.estate-image { background-image: linear-gradient(rgba(7, 34, 31, 0.18), rgba(7, 34, 31, 0.4)), url("assets/coffee-farm.webp"); }
.buyer-image { background-image: linear-gradient(rgba(7, 20, 30, 0.12), rgba(7, 20, 30, 0.38)), url("assets/brandon-stoll.webp"); }
.roaster-image { position: relative; background-image: linear-gradient(rgba(7, 22, 28, 0.08), rgba(7, 22, 28, 0.48)), url("assets/coffee-harvest.webp"); }
.audience-copy > p:not(.eyebrow) { max-width: 610px; font-size: 1.08rem; }
.feature-list { display: grid; gap: 22px; padding: 10px 0 0; margin: 36px 0; list-style: none; }
.feature-list li { display: grid; gap: 2px; padding-left: 19px; border-left: 2px solid var(--brand); }
.feature-list strong { color: var(--text); font-size: 0.96rem; }
.feature-list span { color: var(--body); font-size: 0.93rem; }
.text-link { color: var(--brand-soft); font-size: 0.9rem; font-weight: 760; }
.text-link span { display: inline-block; margin-left: 7px; transition: transform 160ms ease; }
.text-link:hover span { transform: translateX(5px); }
.qr-preview { position: absolute; right: 22px; bottom: 22px; left: 22px; display: flex; align-items: center; gap: 18px; padding: 18px; border: 1px solid rgba(255, 249, 235, 0.2); border-radius: 8px; background: rgba(15, 23, 42, 0.88); backdrop-filter: blur(12px); }
.qr-preview strong, .qr-preview small { display: block; }
.qr-preview strong { color: var(--text); font-size: 0.88rem; }
.qr-preview small { margin-top: 3px; color: var(--muted); font-size: 0.7rem; }
.qr-symbol { display: grid; flex: 0 0 64px; width: 64px; height: 64px; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px; background: var(--text); }
.qr-symbol span, .qr-symbol i { display: block; background: var(--canvas); }
.qr-symbol i { background: var(--brand); }
.qr-journey { display: grid; grid-template-columns: repeat(4, 1fr); margin: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.qr-journey div { min-height: 112px; padding: 18px 13px; border-right: 1px solid var(--line); }
.qr-journey div:first-child { padding-left: 0; }
.qr-journey div:last-child { border-right: 0; }
.qr-journey span, .qr-journey strong { display: block; }
.qr-journey span { margin-bottom: 20px; color: var(--brand-soft); font-size: 0.68rem; font-weight: 800; }
.qr-journey strong { color: var(--text); font-size: 0.77rem; line-height: 1.35; }

.eudr { position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(16, 31, 45, 0.99) 0%, rgba(16, 31, 45, 0.94) 55%, rgba(16, 31, 45, 0.62) 100%), url("assets/coffee-beans-dried.webp") right center / 58% auto no-repeat, #101f2d; }
.eudr-grid { display: grid; grid-template-columns: 0.65fr 1fr; gap: 45px; align-items: center; }
.eudr-mark { color: rgba(21, 159, 132, 0.13); font-size: clamp(10rem, 24vw, 22rem); font-weight: 800; line-height: 0.7; letter-spacing: -0.12em; }
.eudr-grid p { max-width: 680px; font-size: 1.07rem; }
.statement .narrow-content { padding-left: clamp(0px, 8vw, 110px); }

.contact { background: linear-gradient(125deg, #0e1b2e, #0d2930); }
.contact-grid { display: grid; grid-template-columns: 0.82fr 1fr; gap: clamp(50px, 10vw, 140px); }
.contact-intro p:not(.eyebrow) { max-width: 440px; font-size: 1.07rem; }
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 7px; color: #e5edf4; font-size: 0.82rem; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid rgba(226, 232, 240, 0.2); border-radius: 7px; outline: none; background: rgba(15, 23, 42, 0.62); color: var(--text); font: inherit; font-size: 0.95rem; font-weight: 400; line-height: 1.4; }
input, select { min-height: 46px; padding: 10px 12px; }
textarea { padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-soft); box-shadow: 0 0 0 3px rgba(21, 159, 132, 0.17); }
.contact-form .button { justify-self: start; margin-top: 4px; }
.contact-form .button:disabled { cursor: wait; opacity: 0.68; transform: none; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
.form-status { min-height: 1.5em; margin: -3px 0 0; color: var(--muted); font-size: 0.83rem; }
.form-status.success { color: var(--brand-soft); }
.form-status.error { color: #f2aaa3; }

.site-footer { padding: 50px 0 22px; background: #0a1221; }
.footer-main { display: grid; grid-template-columns: 155px minmax(220px, 1fr) auto; gap: 40px; align-items: center; padding-bottom: 44px; }
.footer-main img { width: 154px; }
.footer-main p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.footer-main a, .footer-bottom a { color: #dce7ee; font-size: 0.82rem; font-weight: 700; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 800px) {
  .section { padding: 82px 0; }
  .container { width: min(calc(100% - 36px), var(--max-width)); }
  .navigation { min-height: 72px; gap: 16px; }
  .brand { width: 145px; }
  .header-cta { display: none; }
  .menu-toggle { display: grid; width: 38px; height: 38px; padding: 8px; margin-left: auto; border: 0; background: transparent; cursor: pointer; place-content: center; gap: 6px; }
  .menu-toggle span:not(.sr-only) { display: block; width: 22px; height: 1px; background: var(--text); transition: transform 160ms ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }
  .site-menu { position: fixed; inset: 72px 0 auto; display: grid; padding: 20px 18px 28px; border-bottom: 1px solid var(--line); background: #101a2c; transform: translateY(-130%); transition: transform 180ms ease; }
  .site-menu.open { transform: translateY(0); }
  .site-menu a { padding: 9px 0; }
  .hero { min-height: 760px; padding-top: 148px; padding-bottom: 65px; }
  .hero-wash { background: linear-gradient(90deg, rgba(8, 18, 26, 0.9), rgba(8, 18, 26, 0.7)), linear-gradient(0deg, rgba(15, 23, 42, 0.9), transparent 55%); }
  .section-heading { display: block; }
  .how-grid { grid-template-columns: 1fr; }
  .how-photo { min-height: 460px; }
  .step { min-height: auto; padding: 25px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .audience-grid, .audience-grid-reverse, .eudr-grid, .contact-grid { grid-template-columns: 1fr; }
  .audience-grid-reverse .audience-image { order: 0; }
  .audience-image { min-height: 380px; }
  .eudr-mark { display: none; }
  .statement .narrow-content { padding-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 460px) {
  .container { width: min(calc(100% - 30px), var(--max-width)); }
  .button-row { display: grid; }
  .button { width: 100%; }
  .hero { min-height: 730px; }
  .how-photo { min-height: 360px; }
  .qr-journey { grid-template-columns: 1fr 1fr; }
  .qr-journey div { min-height: 100px; border-bottom: 1px solid var(--line); }
  .qr-journey div:nth-child(2) { border-right: 0; }
  .qr-journey div:nth-child(3), .qr-journey div:nth-child(4) { border-bottom: 0; }
  .footer-bottom { gap: 12px; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
