/* Homepage and shared page layouts */

/* ---------- Hero ---------- */
.hero { position: relative; border-bottom: 10px solid var(--gold); padding-top: clamp(48px, 9vw, 120px); }
.hero__grid { display: grid; gap: var(--s-7); align-items: end; padding-bottom: clamp(48px, 7vw, 88px); }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: var(--s-8); } }
.hero h1 { font-size: var(--fs-display); line-height: .86; color: var(--white); margin-top: var(--s-5); }
.hero h1 em { font-style: normal; color: var(--gold); display: block; }
.hero .lead { color: #EDE8DC; margin-top: var(--s-6); max-width: 36ch; }
.hero .btn-row { margin-top: var(--s-7); }
.hero__figure { border: var(--rule) solid var(--gold); padding: 10px; background: #0E0E0E; max-width: 420px; justify-self: start; }
@media (min-width: 960px) { .hero__figure { justify-self: end; } }
.hero__figure .frame { aspect-ratio: 4 / 4.6; overflow: hidden; background: var(--parchment); }
.hero__figure img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 8%; filter: contrast(1.02); }
.hero__figure figcaption { padding: 12px 4px 4px; font-size: .78rem; line-height: 1.5; color: var(--on-dark-muted); display: flex; gap: 10px; }
.hero__figure figcaption::before { content: ""; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); flex: none; margin-top: .45em; }
.pillars { display: grid; border-top: 1px solid var(--line-dark); }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); } .pillars > li + li { border-left: 1px solid var(--line-dark); } }
.pillars li { padding: var(--s-5) 0; }
@media (min-width: 760px) { .pillars li { padding: var(--s-6) var(--s-6) var(--s-6) 0; } .pillars li + li { padding-left: var(--s-6); } }
.pillars li + li { border-top: 1px solid var(--line-dark); }
@media (min-width: 760px) { .pillars li + li { border-top: 0; } }
.pillars b { display: block; font-weight: 700; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.pillars span { font-size: .98rem; color: #EDE8DC; line-height: 1.5; display: block; }

/* ---------- Section head (Intercom-style editorial) ---------- */
.section-head { display: grid; gap: var(--s-5); margin-bottom: var(--s-8); }
@media (min-width: 900px) { .section-head { grid-template-columns: 1.1fr .9fr; align-items: end; gap: var(--s-8); } }
.section-head p { font-size: var(--fs-lead); font-weight: 300; line-height: 1.5; max-width: 44ch; }
.section-head h2 { margin-top: var(--s-4); }

/* ---------- Search section ---------- */
.search-section .search { margin-top: 0; }
.tribes-nav { margin-top: var(--s-8); }
.tribes-nav h3 { font-family: var(--font-body); font-weight: 700; margin-bottom: var(--s-4); font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; }
.db-block { margin-top: var(--s-8); display: grid; gap: var(--s-5); }

/* ---------- Land section ---------- */
.land-grid { display: grid; gap: var(--s-8); }
@media (min-width: 960px) { .land-grid { grid-template-columns: .95fr 1.05fr; align-items: start; } }
.records-list { border: var(--rule) solid var(--black); background: var(--white); }
.records-list li { display: grid; grid-template-columns: 56px 1fr; gap: var(--s-4); padding: var(--s-5); }
.records-list li + li { border-top: 1px solid var(--black); }
.records-list .n { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.records-list h3 { font-size: 1.1rem; margin-bottom: 4px; }
.records-list p { color: var(--muted); font-size: .98rem; line-height: 1.5; }
.resources { margin-top: var(--s-7); border-top: var(--rule) solid var(--black); }
.resources li { border-bottom: 1px solid var(--black); }
.resources a { display: grid; grid-template-columns: 1fr auto; gap: var(--s-4); align-items: center; padding: var(--s-4) 4px; text-decoration: none; min-height: 72px; }
.resources a:hover { background: var(--white); }
.resources strong { display: block; font-weight: 700; font-size: 1.05rem; }
.resources small { display: block; color: #4F4F4F; font-size: .9rem; line-height: 1.45; margin-top: 2px; }
.resources svg { width: 22px; height: 22px; }

/* ---------- Cultural preservation ---------- */
.culture { overflow: hidden; }
.culture__grid { display: grid; gap: var(--s-8); }
@media (min-width: 960px) { .culture__grid { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.big-word { font-family: var(--font-display); font-size: clamp(4.5rem, 19vw, 15rem); line-height: .78; color: var(--gold); text-transform: uppercase; letter-spacing: -0.01em; }
.culture h2 { color: var(--white); margin-top: var(--s-5); font-size: clamp(1.8rem, 4vw, 3rem); }
.culture .prose { color: #EDE8DC; max-width: 52ch; margin-top: var(--s-6); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: var(--s-8); }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.1fr .9fr; } }
.facts { border: var(--rule) solid var(--black); }
.facts li { padding: var(--s-5); display: grid; gap: 4px; }
.facts li + li { border-top: 1px solid var(--black); }
.facts b { font-weight: 700; font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; }
.facts span { font-size: 1.05rem; }

/* ---------- Inner pages ---------- */
.page-hero { padding-block: clamp(48px, 8vw, 96px); border-bottom: 10px solid var(--gold); }
.page-hero h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); color: var(--white); margin-top: var(--s-4); }
.page-hero .lead { color: #EDE8DC; margin-top: var(--s-5); }
.two-col { display: grid; gap: var(--s-8); }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* Numbered steps */
.step { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); align-items: start; padding-top: var(--s-4); border-top: var(--rule) solid var(--black); }
.step b { font-family: var(--font-display); font-weight: 400; font-size: 2.5rem; line-height: .9; }
.step p { margin: 0; }
.prose .step + .step { margin-top: var(--s-5); }
