/* ════════════════════════════════════════════════════════════════════
   justsorted · site.css · v1.2 REV4 · 2026-05-07
   Shared layout, components, animations — used by all pages
   Bible-cited per CLAUDE.md
   ════════════════════════════════════════════════════════════════════ */

/* ─── Reset + base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bone); -webkit-font-smoothing: antialiased; }

/* ─── Containers ───────────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 5vw; }
.container-wide { max-width: 1480px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container-wide { padding: 0 20px; } }

/* ─── Typography (extends tokens.css) ──────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: 0.5px; margin: 0; color: var(--ink); }
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); margin-bottom: 12px; }
.handnote { font-family: var(--font-marker); color: var(--clay); transform: rotate(-1.5deg); display: inline-block; font-size: 16px; line-height: 1.3; }

/* ─── Nav (Rallee-style · §07.14 Option B locked) ──────────────────── */
nav.top { position: sticky; top: 0; background: rgba(250,241,226,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); z-index: 10; }
nav.top .row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; gap: 24px; }
nav.top .socials { display: flex; gap: 8px; align-items: center; justify-self: start; }
nav.top .socials a { color: var(--ink); width: 38px; height: 38px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; transition: background 180ms var(--ease-out), color 180ms var(--ease-out); text-decoration: none; }
nav.top .socials a:hover { background: var(--ink); color: var(--cream); }
nav.top .socials svg { width: 18px; height: 18px; }
nav.top .mark { font-family: 'DM Sans', -apple-system, sans-serif; font-weight: 500; font-size: 30px; letter-spacing: -0.9px; color: var(--ink); text-decoration: none; justify-self: center; line-height: 1; }
nav.top .mark em { font-style: italic; color: var(--clay); }
nav.top .right { display: flex; gap: 28px; align-items: center; justify-self: end; }
nav.top ul { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; align-items: center; }
nav.top ul a { color: var(--ink); text-decoration: none; font-size: 15px; white-space: nowrap; transition: color 180ms var(--ease-out); padding-bottom: 2px; }
nav.top ul a:hover { color: var(--clay); }
nav.top ul a[aria-current="page"] { color: var(--clay); border-bottom: 2px solid var(--clay); }
nav.top .cta { background: var(--ink); color: var(--cream); padding: 10px 18px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 15px; transition: background 180ms var(--ease-out), transform 180ms var(--ease-out); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
nav.top .cta:hover { background: var(--clay); transform: translateY(-1px); }
@media (max-width: 960px) {
  nav.top .row { grid-template-columns: 1fr auto 1fr; gap: 16px; height: 68px; }
  nav.top .mark { font-size: 26px; }
  nav.top ul { gap: 18px; }
  nav.top ul a { font-size: 14px; }
}
@media (max-width: 720px) {
  nav.top .socials { display: none; }
  nav.top ul { display: none; }
  nav.top .row { grid-template-columns: auto 1fr auto; }
  nav.top .right { justify-self: end; }
}

/* ─── Hero (full-bleed photo + cream-on-image overlay · §08.01 B + §07.12 F) ─ */
.hero {
  position: relative;
  min-height: 580px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.30) 0%, rgba(26,26,26,0.55) 50%, rgba(26,26,26,0.75) 100%);
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: 120px 32px 80px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 580px;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFB088;
  background: rgba(26,26,26,0.4);
  padding: 8px 14px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  margin-bottom: 24px;
  display: inline-block;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.95;
  color: var(--cream);
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
  margin: 0 0 18px;
  max-width: 18ch;
}
.hero__title em { font-style: normal; color: #FFB088; }
.hero__sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.45;
  color: rgba(255,248,240,0.95);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  max-width: 56ch;
  margin: 0 0 28px;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__cta {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--clay);
  padding: 14px 22px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--clay);
  transition: all 180ms var(--ease-out);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.hero__cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(196,74,26,0.35); }
.hero__cta--ghost { background: transparent; border: 1px solid rgba(255,248,240,0.4); }
.hero__cta--ghost:hover { background: rgba(255,248,240,0.08); border-color: var(--cream); box-shadow: none; }
.hero__handnote {
  position: absolute;
  bottom: 32px;
  right: 5vw;
  z-index: 3;
  font-family: var(--font-marker);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: #FFB088;
  transform: rotate(-2deg);
  text-align: right;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  max-width: 30ch;
  line-height: 1.3;
}
@media (max-width: 720px) {
  .hero { min-height: 480px; }
  .hero__inner { padding: 80px 20px 60px; }
  .hero__handnote { display: none; }
}

/* ─── Sections ─────────────────────────────────────────────────────── */
section.s { padding: 80px 0; }
section.s.s--cream { background: var(--cream); }
section.s.s--bone { background: var(--bone); }
section.s.s--ink { background: var(--ink); color: var(--cream); }
section.s.s--ink h2, section.s.s--ink h3 { color: var(--cream); }
section.s.s--ink .eyebrow { color: #FFB088; }
.s__title { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 24px; max-width: 24ch; }
.s__title em { font-style: normal; color: var(--clay); }
.s__lede { font-family: var(--font-body); font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.6; color: var(--neutral-700); max-width: 60ch; margin: 0 0 32px; }

/* ─── Buttons (anywhere) ───────────────────────────────────────────── */
.btn { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; padding: 12px 20px; border-radius: 8px; text-decoration: none; border: 1px solid; transition: all 180ms var(--ease-out); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.btn--primary { background: var(--clay); color: var(--cream); border-color: var(--clay); }
.btn--primary:hover { background: var(--clay-deep); border-color: var(--clay-deep); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--ink { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--ink:hover { background: var(--clay); border-color: var(--clay); transform: translateY(-1px); }
.btn .arrow { display: inline-block; transition: transform 180ms var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ─── Cards ────────────────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: white; border: 1px solid var(--rule); border-radius: 12px; padding: 28px; transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out); }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.card__num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); margin-bottom: 8px; }
.card__title { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; color: var(--ink); margin: 0 0 10px; line-height: 1.3; }
.card__body { font-family: var(--font-body); font-size: 0.95rem; line-height: 1.55; color: var(--neutral-700); margin: 0; }

/* ─── Trust strip ──────────────────────────────────────────────────── */
.trust-strip { background: var(--ink); color: var(--cream); padding: 18px 0; overflow: hidden; }
.trust-strip__inner { display: flex; gap: 48px; align-items: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,248,240,0.85); white-space: nowrap; animation: marquee 28s linear infinite; }
.trust-strip__item::before { content: "✓"; color: #FFB088; margin-right: 8px; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Footer (§08.15 Footer Option E quiet rule + ACN) ─────────────── */
footer.site {
  background: var(--ink);
  color: var(--cream);
  padding: 60px 0 28px;
  border-top: 4px solid var(--clay);
}
footer.site .row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
footer.site .brand .mark { font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 28px; letter-spacing: -0.9px; color: var(--cream); text-decoration: none; }
footer.site .brand .mark em { font-style: italic; color: #FFB088; }
footer.site .brand p { font-family: var(--font-body); font-size: 14px; color: rgba(255,248,240,0.7); margin: 12px 0 0; max-width: 36ch; line-height: 1.55; }
footer.site h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #FFB088; margin: 0 0 14px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site ul li { margin-bottom: 8px; }
footer.site ul a { color: rgba(255,248,240,0.85); text-decoration: none; font-size: 14px; transition: color 180ms var(--ease-out); }
footer.site ul a:hover { color: #FFB088; }
footer.site .legal { border-top: 1px solid rgba(255,248,240,0.12); padding-top: 24px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; color: rgba(255,248,240,0.5); letter-spacing: 0.04em; }
@media (max-width: 720px) {
  footer.site .row { grid-template-columns: 1fr; gap: 32px; }
  footer.site .legal { flex-direction: column; gap: 8px; }
}

/* ─── Stat row ─────────────────────────────────────────────────────── */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-top: 40px; }
.stat { text-align: left; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.6rem); color: var(--clay); line-height: 1; }
.stat__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--neutral-700); margin-top: 8px; display: block; }

/* ─── Section ANIMATIONS ──────────────────────────────────────────── */
/* Anim #02 · Photo breathes — REMOVED per Dave 2026-05-07 review (too distracting · static zoomed-out preferred) */
/* If we re-enable later, the keyframe is preserved below but no rule applies it */
@keyframes photoBreathe {
  0%, 100% { background-size: cover; }
  50% { background-size: 105%; }
}

/* Anim #01 · Tagline arrives — applied to .hero__title via JS */
.hero__title.is-arriving { opacity: 0; transform: translateY(20px); }
.hero__title.is-arrived { opacity: 1; transform: translateY(0); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }

/* Anim #03 · Magnetic CTA — applied via JS, lifts toward cursor */
.btn, .hero__cta { will-change: transform; }

/* Anim #04 · Marquee — already inline above on .trust-strip */

/* Anim #18 · Spotlight reveal — for .card-grid on master landing */
.card.is-revealing { opacity: 0; transform: translateY(24px); }
.card.is-revealed { opacity: 1; transform: translateY(0); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
  .trust-strip__inner { animation: none; }
  .hero__title, .card { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ─── Utility ──────────────────────────────────────────────────────── */
.muted { color: var(--neutral-700); }
.brand-em { color: var(--clay); font-style: italic; }
.divider { height: 1px; background: var(--rule); margin: 48px 0; }
.spacer-sm { height: 24px; }
.spacer-md { height: 48px; }
.spacer-lg { height: 80px; }

/* ════════════════════════════════════════════════════════════════════
   v1.2 REV5 visual-richness pass · 2026-05-07 afternoon · per Dave review
   Adds photo-backed cards · handnotes · pull-quotes · photo callouts
   Less bland · more Rallee-tier editorial polish
   ════════════════════════════════════════════════════════════════════ */

/* ─── Permanent Marker handnote utility (§07.07 Option C "more is better") ─ */
.handnote-md { font-family: var(--font-marker); color: var(--clay); display: inline-block; transform: rotate(-1.5deg); font-size: clamp(15px, 1.2vw, 20px); line-height: 1.3; }
.handnote-lg { font-family: var(--font-marker); color: var(--clay); display: inline-block; transform: rotate(-2deg); font-size: clamp(20px, 2vw, 28px); line-height: 1.2; }
.handnote-arrow { font-family: var(--font-marker); color: var(--clay); display: inline-block; transform: rotate(-3deg); font-size: 18px; }
.handnote-callout { position: absolute; font-family: var(--font-marker); color: var(--clay); transform: rotate(-2deg); font-size: clamp(14px, 1.1vw, 17px); line-height: 1.3; max-width: 24ch; pointer-events: none; }

/* ─── Photo-backed cards (replaces plain .card · text-over-image) ─── */
.card-photo {
  position: relative;
  min-height: 320px;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: var(--cream);
  text-decoration: none;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.card-photo::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.10) 0%, rgba(26,26,26,0.55) 60%, rgba(26,26,26,0.85) 100%);
  z-index: 0;
}
.card-photo > * { position: relative; z-index: 1; }
.card-photo:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.18); }
.card-photo__num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #FFB088; margin-bottom: 8px; }
.card-photo__title { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--cream); line-height: 1.1; margin: 0 0 10px; text-shadow: 0 2px 12px rgba(0,0,0,0.45); }
.card-photo__title em { font-style: normal; color: #FFB088; }
.card-photo__body { font-family: var(--font-body); font-size: 0.92rem; line-height: 1.5; color: rgba(255,248,240,0.92); margin: 0 0 6px; text-shadow: 0 1px 6px rgba(0,0,0,0.35); }
.card-photo__handnote { position: absolute; top: 18px; right: 18px; z-index: 2; font-family: var(--font-marker); color: #FFB088; transform: rotate(-2deg); font-size: 15px; text-shadow: 0 2px 6px rgba(0,0,0,0.4); max-width: 18ch; text-align: right; line-height: 1.2; }

/* ─── Reveal-panel cards (§08.14 Demo 03 hover-reveal pattern) ───── */
.card-reveal {
  position: relative;
  min-height: 280px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--clay) 0%, var(--clay-deep) 100%);
  color: var(--cream);
  cursor: pointer;
  transition: transform 240ms var(--ease-out);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  text-decoration: none;
}
.card-reveal:hover { transform: translateY(-4px); }
.card-reveal__num { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; opacity: 0.7; }
.card-reveal__title { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; color: var(--cream); margin-top: auto; line-height: 1.2; }
.card-reveal__panel {
  position: absolute; inset: 0;
  background: var(--cream);
  color: var(--ink);
  padding: 28px;
  border-top: 4px solid var(--clay);
  border-radius: 16px;
  transform: translateY(100%);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-reveal:hover .card-reveal__panel { transform: translateY(0); }
.card-reveal__panel-title { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin: 0 0 12px; line-height: 1.2; }
.card-reveal__panel-body { font-family: var(--font-body); font-size: 0.92rem; line-height: 1.55; color: var(--neutral-700); margin: 0 0 14px; }
.card-reveal__panel-handnote { font-family: var(--font-marker); color: var(--clay); transform: rotate(-1.5deg); font-size: 14px; }

/* ─── Pull-quote (editorial Rallee-style) ───────────────────────── */
.pull-quote {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: center;
  padding: 24px 0;
}
.pull-quote__photo {
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  aspect-ratio: 4 / 5;
  min-height: 320px;
}
.pull-quote__body {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  line-height: 1.15;
  color: var(--ink);
  max-width: 24ch;
  letter-spacing: 0.3px;
}
.pull-quote__body em { font-style: normal; color: var(--clay); }
.pull-quote__cite {
  display: block;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neutral-700);
  font-style: normal;
}
.pull-quote__handnote {
  display: block;
  margin-top: 12px;
  font-family: var(--font-marker);
  color: var(--clay);
  transform: rotate(-1.5deg);
  font-size: 16px;
}
@media (max-width: 720px) {
  .pull-quote { grid-template-columns: 1fr; gap: 24px; }
  .pull-quote__photo { aspect-ratio: 16 / 10; min-height: 220px; }
}

/* ─── Inline photo callout strip (text + photo side-by-side) ────── */
.photo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin: 48px 0;
}
.photo-strip__photo {
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  min-height: 280px;
  position: relative;
}
.photo-strip__photo .handnote-callout { top: 16px; right: 16px; color: var(--cream); text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.photo-strip__copy h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--ink); line-height: 1.1; margin: 0 0 16px; }
.photo-strip__copy h3 em { font-style: normal; color: var(--clay); }
.photo-strip__copy p { font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--neutral-700); margin: 0 0 16px; max-width: 50ch; }
.photo-strip--reverse .photo-strip__photo { order: 2; }
.photo-strip--reverse .photo-strip__copy { order: 1; }
@media (max-width: 720px) {
  .photo-strip { grid-template-columns: 1fr; gap: 24px; }
  .photo-strip--reverse .photo-strip__photo { order: 0; }
  .photo-strip--reverse .photo-strip__copy { order: 1; }
}

/* ─── Founder dual-portrait (about page hero supplement) ─────────── */
.founder-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 48px 0;
}
.founder-pair__card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--rule);
  position: relative;
}
.founder-pair__role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); margin-bottom: 12px; }
.founder-pair__name { font-family: var(--font-display); font-size: clamp(1.6rem, 2.2vw, 2.2rem); color: var(--ink); margin: 0 0 16px; line-height: 1; }
.founder-pair__name em { font-style: normal; color: var(--clay); }
.founder-pair__body { font-family: var(--font-body); font-size: 0.95rem; line-height: 1.6; color: var(--neutral-700); margin: 0 0 16px; }
.founder-pair__handnote { font-family: var(--font-marker); color: var(--clay); transform: rotate(-1.5deg); font-size: 15px; display: inline-block; }
@media (max-width: 720px) { .founder-pair { grid-template-columns: 1fr; gap: 20px; } }

/* ─── Hero CTA hover (replaces removed photoBreathe momentum) ───── */
.hero { transition: filter 0.4s var(--ease-out); }

/* ─── Highlight moments (clay-soft underline accent on words) ──── */
.hi { background: linear-gradient(180deg, transparent 60%, rgba(196,74,26,0.15) 60%); padding: 0 2px; }

