/* Ink & Miles — design tokens from the handoff */
:root {
  --ink: #141311;
  --paper: #FAF9F6;
  --teal: #008080;
  --sage: #6C7C59;
  --card: #FFFFFF;
  --line: #E5E0D6;
  --line-dark: #3A3833;
  --muted: #4A463F;
  --muted-dark: #B8B2A6;
  --meta: #8A857B;
  --chip-line: #C9C3B7;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Archivo', system-ui, -apple-system, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--sage); }
::selection { background: var(--sage); color: var(--paper); }
img { max-width: 100%; }

h1, h2, h3 { font-weight: 400; }
em { font-style: italic; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
main { flex: 1; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.rise { animation: riseIn 0.7s ease both; }
.rise-1 { animation-delay: 0.1s; }
.rise-2 { animation-delay: 0.2s; }
.rise-3 { animation-delay: 0.3s; }

/* Scroll reveal — JS hides only what is below the fold, so it stays no-JS safe */
[data-reveal] { transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].is-hidden { opacity: 0; transform: translateY(28px); }

@media (prefers-reduced-motion: reduce) {
  .rise, .marquee-track { animation: none !important; }
  [data-reveal].is-hidden { opacity: 1; transform: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,249,246,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-name { font-family: var(--serif); font-size: 26px; letter-spacing: -0.01em; }
.brand-name em { color: var(--teal); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 15px; font-weight: 500; color: var(--ink);
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.nav-link:hover { color: var(--sage); }
.nav-link.is-active { color: var(--sage); font-weight: 700; border-bottom-color: var(--sage); }

.nav-drop { position: relative; padding: 10px 0; margin: -10px 0; }
.nav-drop-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(20,19,17,0.14);
  padding: 8px; display: none; flex-direction: column; gap: 2px; min-width: 176px;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu { display: flex; animation: fadeIn 0.18s ease both; }
.nav-drop-menu a {
  font-size: 14px; font-weight: 500; color: var(--ink);
  padding: 9px 14px; border-radius: 8px; white-space: nowrap;
}
.nav-drop-menu a:hover { background: #F0EDE6; color: var(--teal); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; padding: 8px 16px;
  font-family: var(--mono); font-size: 12px; color: var(--ink);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block; border-radius: 999px; font-weight: 600; cursor: pointer;
  white-space: nowrap; text-align: center; border: 1.5px solid transparent;
  font-family: var(--sans); transition: background 0.25s ease, color 0.25s ease;
}
.btn-sm { font-size: 14px; padding: 11px 22px; }
.btn-md { font-size: 16px; padding: 15px 30px; }
.btn-lg { font-size: 17px; padding: 17px 38px; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--sage); color: var(--paper); }
.btn-sage { background: var(--sage); color: var(--paper); }
.btn-sage:hover { background: var(--teal); color: var(--paper); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn .arr { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- TYPE ---------- */
.kicker {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal);
}
.h1 {
  font-family: var(--serif); font-size: clamp(44px, 6vw, 84px);
  line-height: 1.05; letter-spacing: -0.02em; margin: 20px 0 0;
}
.h1-home { font-size: clamp(52px, 7.5vw, 104px); line-height: 1.02; max-width: 15ch; margin: 20px 0 28px; }
.h2 { font-family: var(--serif); font-size: 40px; line-height: 1.1; margin: 0; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---------- HOME ---------- */
.hero { padding-top: 88px; padding-bottom: 56px; }
.hero-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.hero-row .lead { max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.marquee {
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  overflow: hidden; padding: 14px 0; background: var(--paper);
}
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee-group {
  display: flex; gap: 48px; padding-right: 48px;
  font-family: var(--serif); font-size: 28px; white-space: nowrap;
}
.star-teal { color: var(--teal); }
.star-sage { color: var(--sage); }

.hero-img { padding-top: 56px; }
.hero-img img { width: 100%; height: 460px; object-fit: cover; border-radius: 20px; display: block; }

.props { padding-top: 88px; padding-bottom: 88px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.prop { border-top: 2px solid var(--ink); padding-top: 24px; }
.prop-num { font-family: var(--mono); font-size: 13px; color: var(--teal); margin-bottom: 14px; }
.prop h3 { font-family: var(--serif); font-size: 28px; margin: 0 0 12px; }
.prop p { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; margin-bottom: 36px;
}
.section-head .h2 { font-size: 44px; }
.section-head .h2 em { color: var(--teal); }
.link-all { font-size: 15px; font-weight: 600; color: var(--ink); border-bottom: 1.5px solid var(--sage); white-space: nowrap; }
.link-all:hover { color: var(--sage); }

/* ---------- STORY CARDS ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; color: var(--ink);
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.7s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20,19,17,0.1); color: var(--ink); }
.card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.card-body { padding: 22px 24px 26px; }
.badges { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.badge {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; border-radius: 999px; padding: 4px 10px;
}
.badge-topic { color: var(--sage); border: 1px solid var(--sage); }
.badge-format { color: var(--teal); border: 1px solid var(--teal); }
.card h3 { font-family: var(--serif); font-size: 24px; line-height: 1.2; margin: 0 0 10px; }
.card p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 14px; }
.card-meta { font-family: var(--mono); font-size: 12px; color: var(--meta); }

/* ---------- DARK BANDS ---------- */
.band { background: var(--ink); color: var(--paper); }
.band-inner { padding-top: 88px; padding-bottom: 88px; }

.stats { padding-top: 80px; padding-bottom: 80px; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; align-items: center; }
.stats .h2 em { color: var(--sage); }
.stat-num { font-family: var(--serif); font-size: 64px; color: var(--teal); line-height: 1.1; }
.stat-label { font-size: 14px; color: var(--muted-dark); }

.cta { padding-top: 110px; padding-bottom: 110px; text-align: center; }
.cta h2 { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); line-height: 1.08; margin: 0 0 18px; }
.cta p { font-size: 17px; color: var(--muted); margin: 0 0 32px; }

/* ---------- ABOUT ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-about { padding-bottom: 88px; }
.split-about img { width: 100%; height: 420px; object-fit: cover; border-radius: 20px; display: block; }
.split-copy { display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.split-copy h2 { font-family: var(--serif); font-size: 36px; margin: 0; }
.split-copy h2 em { color: var(--teal); }
.split-copy p { font-size: 17px; line-height: 1.7; color: var(--muted); margin: 0; }

.beliefs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.belief { border-top: 1px solid var(--line-dark); padding-top: 24px; }
.belief h3 { font-family: var(--serif); font-size: 26px; margin: 0 0 12px; color: var(--teal); }
.belief p { font-size: 15px; line-height: 1.65; color: var(--muted-dark); margin: 0; }

.quote { max-width: 900px; margin: 0 auto; padding: 100px 32px; text-align: center; }
.quote-mark { font-family: var(--serif); font-size: 84px; color: var(--sage); line-height: 0.5; margin-bottom: 8px; }
.quote p { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); line-height: 1.35; margin: 0 0 24px; }
.quote cite { font-family: var(--mono); font-size: 13px; color: var(--meta); font-style: normal; }

/* ---------- EXPLORE ---------- */
.showing { font-family: var(--mono); font-size: 13px; color: var(--meta); margin: 0 0 28px; }
.showing strong { color: var(--teal); font-weight: 700; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono); font-size: 13px; cursor: pointer;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--chip-line); background: transparent; color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.explore-grid { padding-bottom: 100px; }
.explore-grid .card img { height: 180px; }
.card.is-filtered { display: none; }
.empty-note { font-family: var(--mono); font-size: 14px; color: var(--meta); padding: 0 0 60px; }

/* ---------- CONTRIBUTE ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 88px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px; }
.step-num { font-family: var(--serif); font-size: 48px; color: var(--teal); margin-bottom: 14px; line-height: 1; }
.step h3 { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.step p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }

.wants { display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.6; color: var(--muted-dark); }
.want { display: flex; gap: 12px; }
.want span:first-child { color: var(--teal); }
.invert-card { background: var(--paper); color: var(--ink); border-radius: 20px; padding: 40px; text-align: center; }
.invert-card h3 { font-family: var(--serif); font-size: 30px; margin: 0 0 12px; }
.invert-card h3 em { color: var(--teal); }
.invert-card p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 24px; }

/* ---------- CONTACT ---------- */
.contact { padding-top: 88px; padding-bottom: 100px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; }
.contact h1 { font-size: clamp(44px, 5vw, 72px); margin: 20px 0 28px; }
.contact-intro { font-size: 17px; line-height: 1.7; color: var(--muted); margin: 0 0 36px; }
.deflist { display: flex; flex-direction: column; gap: 18px; }
.defrow { display: flex; align-items: baseline; gap: 16px; }
.defkey { font-family: var(--mono); font-size: 12px; color: var(--meta); width: 80px; flex: none; }
.defval { font-size: 17px; font-weight: 600; }
.defval-plain { font-size: 17px; }
.socials { display: flex; gap: 16px; flex-wrap: wrap; }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 40px; }
.form-grid { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field {
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--meta);
}
.field input, .field textarea {
  font-family: var(--sans); font-size: 15px; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  outline: none; color: var(--ink); width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--sage); }
.form-card button { width: 100%; border: 0; padding: 15px; font-size: 16px; }
.form-note { font-family: var(--mono); font-size: 12px; color: var(--meta); margin: 0; line-height: 1.6; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: var(--paper); border-top: 4px solid var(--sage); }
.footer-inner { padding: 64px 32px 40px; max-width: 1240px; margin: 0 auto; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; flex-wrap: wrap; margin-bottom: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 56px; height: 56px; object-fit: contain; background: var(--paper); border-radius: 12px; padding: 4px; }
.footer-brand .brand-name { font-size: 28px; }
.footer-tag { font-size: 13px; color: var(--muted-dark); }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-head {
  font-family: var(--mono); font-size: 12px; color: var(--meta);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.footer-col a { color: var(--paper); font-size: 15px; }
.footer-col a:hover { color: var(--sage); }
.footer-bottom {
  border-top: 1px solid var(--line-dark); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--meta);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cards, .props, .beliefs { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; gap: 48px; }
  .split { gap: 40px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-inner { flex-wrap: wrap; row-gap: 12px; }
  .nav-links {
    display: none; order: 3; width: 100%; flex-direction: column;
    align-items: flex-start; gap: 4px; padding-bottom: 8px;
  }
  .nav-links.is-open { display: flex; }
  .nav-link { padding: 8px 0; border-bottom: 0; }
  .nav-link.is-active { border-bottom: 0; }
  .nav-drop { padding: 0; margin: 0; width: 100%; }
  .nav-drop-menu {
    position: static; transform: none; display: flex; box-shadow: none;
    border: 0; padding: 0 0 8px 14px; min-width: 0; animation: none; background: none;
  }
  .nav-drop-menu a { padding: 6px 0; }
}

@media (max-width: 720px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .nav-inner { padding: 12px 20px; }
  .footer-inner { padding: 48px 20px 32px; }
  .cards, .props, .beliefs, .steps, .split, .stats { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .hero { padding-top: 56px; padding-bottom: 40px; }
  .hero-img img { height: 260px; }
  .split-about img { height: 280px; }
  .props { padding-top: 56px; padding-bottom: 56px; }
  .band-inner { padding-top: 56px; padding-bottom: 56px; }
  .stats { padding-top: 56px; padding-bottom: 56px; }
  .cta { padding-top: 72px; padding-bottom: 72px; }
  .quote { padding: 64px 20px; }
  .contact { padding-top: 56px; padding-bottom: 64px; }
  .form-card { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; }
  .marquee-group { font-size: 22px; gap: 32px; padding-right: 32px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-head .h2 { font-size: 34px; }
  .h2 { font-size: 32px; }
  .footer-cols { gap: 32px; }
}
