/* ---------- Design tokens: change the accent colour here ---------- */
:root {
  --bg: #FBF8F3;
  --tint: #F3EDE3;
  --ink: #1C1915;
  --muted: #6B6358;
  --line: #E4DCCF;
  --accent: #B5421B;       /* sindoor / terracotta */
  --accent-ink: #FFFFFF;
  --dark: #1C1915;
  --dark-ink: #F3EDE3;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 1rem;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(2rem, 6vw, 3.25rem); max-width: 18ch; margin-bottom: 2.5rem; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--ink); color: var(--bg); padding: .5rem 1rem; }

/* Placeholders: highlighted so they're easy to spot */
.ph { background: #FFF1A8; color: #5A4A00; border-radius: 4px; padding: 0 .3em; font-family: var(--sans); font-size: .9em; font-style: normal; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { max-width: 1080px; margin: 0 auto; padding: .75rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; text-decoration: none; letter-spacing: -.02em; }
.nav__brand span { color: var(--accent); }
.nav__links { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.nav__links a { display: block; text-decoration: none; font-size: .9rem; font-weight: 500; padding: .45rem .6rem; border-radius: 999px; color: var(--muted); transition: color .2s, background .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); background: var(--tint); }
.nav__links a.nav__cta { color: var(--accent-ink); background: var(--accent); padding-inline: .9rem; }
@media (max-width: 380px) { .nav__links a { padding: .45rem .4rem; font-size: .85rem; } .nav__links a.nav__cta { padding-inline: .6rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.4rem;
  border: 1.5px solid var(--ink); border-radius: 999px;
  font: 500 1rem var(--sans); text-decoration: none; color: var(--ink); background: transparent;
  cursor: pointer; transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { padding: 1.5rem 0 4rem; }
.hero__grid { display: grid; gap: 1.75rem; }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 1rem; }
.hero__name { font-size: clamp(3rem, 14vw, 6.25rem); font-weight: 500; }
.hero__tagline { font-family: var(--serif); font-size: clamp(1.25rem, 4.6vw, 1.7rem); line-height: 1.35; color: var(--muted); max-width: 26ch; margin: 1.25rem 0 2rem; font-style: italic; font-weight: 400; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero__actions .btn { flex: 1 1 auto; }

.hero__photo { margin: 0; position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--tint); order: -1; width: 46%; max-width: 220px; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.hero__photo img.is-missing { display: none; }
.photo-fallback { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: .5rem; border: 2px dashed var(--line); border-radius: var(--radius); }
.photo-fallback span { font-family: var(--serif); font-size: 5rem; color: var(--accent); line-height: 1; }
.photo-fallback em { font-style: normal; font-size: .85rem; background: #FFF1A8; color: #5A4A00; padding: .2rem .5rem; border-radius: 4px; }

@media (min-width: 820px) {
  .hero { padding: 5rem 0 6rem; }
  .hero__grid { grid-template-columns: 1.3fr 1fr; align-items: center; gap: 4rem; }
  .hero__photo { order: 0; justify-self: end; width: 100%; max-width: 420px; }
  .hero__actions .btn { flex: 0 0 auto; }
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: var(--dark-ink); }
.label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--accent); margin: 0 0 1rem; }
.section--dark .label { color: #E8875F; }
@media (min-width: 820px) { .section { padding: 7.5rem 0; } }

/* Story */
.story__body { max-width: 38rem; font-size: 1.15rem; }
.story__body p { margin: 0 0 1.25rem; }
.story__body p:first-child::first-letter { font-family: var(--serif); float: left; font-size: 3.6em; line-height: .85; padding: .08em .1em 0 0; color: var(--accent); }

/* Venture cards */
.cards { display: grid; gap: 1rem; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; gap: .9rem; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(28, 25, 21, .35); }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; margin: 0; letter-spacing: -.01em; }
.badge { font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: .15rem .6rem; }
.card p { margin: 0; color: var(--muted); flex: 1; }
.card__link { font-weight: 600; text-decoration: none; color: var(--accent); display: inline-flex; gap: .35rem; align-items: center; }
.card__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Community roles */
.roles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.role { display: grid; gap: .35rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.role__role { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.role__org { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; font-weight: 500; }
.role__text { color: var(--muted); max-width: 40rem; margin: .25rem 0 0; }
@media (min-width: 820px) {
  .role { grid-template-columns: 14rem 1fr; column-gap: 3rem; padding: 2.25rem 0; }
  .role__role { padding-top: .55rem; }
  .role__text { grid-column: 2; }
}

/* Connect */
.connect { display: grid; gap: 3rem; }
@media (min-width: 900px) { .connect { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; } }
.connect h2 { margin-bottom: 1.25rem; }
.lead { font-size: 1.15rem; color: #C9BFB1; max-width: 32rem; margin: 0 0 2rem; }
.connect__links { display: grid; gap: .5rem; justify-items: start; }
.connect__links .btn { margin-bottom: 1rem; }
.link-row { text-decoration: none; font-size: 1.05rem; border-bottom: 1px solid rgba(243, 237, 227, .25); padding: .3rem 0; word-break: break-word; }
.link-row:hover { border-bottom-color: var(--dark-ink); }

.form { display: grid; gap: 1.1rem; background: rgba(243, 237, 227, .05); border: 1px solid rgba(243, 237, 227, .14); border-radius: var(--radius); padding: 1.5rem; }
.form label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 500; color: #C9BFB1; }
.form input, .form select, .form textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--dark-ink);
  background: rgba(243, 237, 227, .06); border: 1px solid rgba(243, 237, 227, .2); border-radius: 10px;
  padding: .8rem .9rem; min-height: 48px;
}
.form select option { color: var(--ink); }
.form textarea { resize: vertical; }
.form .btn { width: 100%; }
.form__status { margin: 0; font-size: .95rem; min-height: 1.4em; color: #E8875F; }

/* Footer */
.footer { background: var(--dark); color: #9C9284; border-top: 1px solid rgba(243, 237, 227, .1); padding: 2rem 0; font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
.footer p { margin: 0; }
.footer strong { color: var(--dark-ink); font-weight: 500; }
.footer__links a { text-decoration: none; margin-right: 1rem; }
.footer__links a:hover { color: var(--dark-ink); }

/* ---------- Subtle scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
