/* ═══════════════════════════════════════════════════════════════════════════
   SACRED STUDIOS · SUBPAGE KIT
   Shared, reusable layout blocks for every inner page (services, about, work,
   iris, assessment, process, legal, insights). Page-build agents compose these
   classes + tokens.css — they never edit shared CSS, so there are no conflicts.
   Dark System A only. Pairs with tokens.css / components.css / interactive.css.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── INNER-PAGE HERO (shorter than the homepage hero) ────────────────────── */
.subhero {
  position: relative;
  padding: 140px 24px 72px;
  overflow: hidden;
}
@media (min-width: 768px) { .subhero { padding: 180px 56px 96px; } }
@media (min-width: 1100px) { .subhero { padding: 200px 96px 110px; } }
.subhero-w { max-width: var(--content-w); margin: 0 auto; position: relative; z-index: 5; }
.subhero-w.center { text-align: center; }
.subhero-w.center .eyebrow { justify-content: center; }
.subhero h1 {
  font-family: var(--font); font-weight: 700; line-height: 0.96; letter-spacing: -0.03em;
  color: var(--linen); font-size: clamp(40px, 7vw, 96px); margin-bottom: var(--s-5); max-width: 18ch;
}
.subhero-w.center h1 { margin-left: auto; margin-right: auto; }
.subhero h1 em { font-style: italic; font-weight: 700; color: var(--crimson-coral); }
.subhero-sub {
  font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--crimson-bright); margin-bottom: var(--s-4);
}
.subhero .lede { max-width: 60ch; margin-bottom: var(--s-6); }
.subhero-w.center .lede { margin-left: auto; margin-right: auto; }
.subhero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.subhero-w.center .subhero-ctas { justify-content: center; }

/* ─── SECTION SHELL (lighter than the homepage full-height .scene) ────────── */
.sec { position: relative; padding: 72px 24px; }
@media (min-width: 768px) { .sec { padding: 96px 56px; } }
@media (min-width: 1100px) { .sec { padding: 110px 96px; } }
.sec-w { max-width: var(--content-w); margin: 0 auto; position: relative; z-index: 5; }
.sec-w.narrow { max-width: 820px; }
.sec.alt { background: var(--bg-card-hi); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: var(--s-7); }
.sec-head.center { text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head h2 { margin-bottom: var(--s-4); max-width: 24ch; }
.sec-head.center h2 { margin-left: auto; margin-right: auto; }

/* ─── PAIN / "WHY OWNERS COME TO US" BULLETS ──────────────────────────────── */
.pain-list { display: grid; gap: 14px; }
@media (min-width: 800px) { .pain-list { grid-template-columns: repeat(3, 1fr); } }
.pain-list .pli {
  background: var(--bg-card); border: 1px solid var(--line2); border-left: 3px solid var(--crimson);
  border-radius: var(--r); padding: var(--s-5); font-family: var(--font); font-size: 15px;
  line-height: 1.6; color: var(--linen-mute);
}
.pain-list .pli b { display: block; color: var(--crimson-bright); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }

/* ─── DELIVERABLES ("what we'd actually build") 3-up ──────────────────────── */
.deliv-grid { display: grid; gap: 16px; counter-reset: deliv; }
@media (min-width: 800px) { .deliv-grid { grid-template-columns: repeat(3, 1fr); } }
.deliv {
  position: relative; background: var(--bg-card); border: 1px solid var(--line2);
  border-radius: var(--r-lg); padding: var(--s-6); transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.deliv:hover { transform: translateY(-4px); border-color: var(--crimson); box-shadow: var(--shadow-card); }
.deliv-num { font-family: var(--font); font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--crimson-bright); margin-bottom: 14px; }
.deliv h3 { font-family: var(--font); font-size: 19px; font-weight: 700; color: var(--linen); margin-bottom: 10px; letter-spacing: -0.01em; }
.deliv p { font-family: var(--font); font-size: 14px; line-height: 1.65; color: var(--linen-mute); }

/* ─── SPLIT (text + visual / example) ─────────────────────────────────────── */
.split { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); } .split.wide-l { grid-template-columns: 1.2fr 1fr; } }
.split-media { border: 1px solid var(--line2); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-card); box-shadow: var(--shadow-card); }
.split-media img, .split-media video { display: block; width: 100%; height: auto; }

/* ─── NUMBERED STEPS (process / assessment / how) ─────────────────────────── */
.steps { display: grid; gap: 16px; }
.step-row {
  display: grid; gap: var(--s-4); align-items: start; background: var(--bg-card);
  border: 1px solid var(--line2); border-radius: var(--r-lg); padding: var(--s-6);
}
@media (min-width: 760px) { .step-row { grid-template-columns: 120px 1fr; gap: var(--s-6); } }
.step-n { font-family: var(--font); font-size: clamp(40px, 6vw, 64px); font-weight: 800; line-height: 0.9; color: var(--crimson); letter-spacing: -0.04em; }
.step-dur { font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--linen-soft); margin-top: 8px; }
.step-body h3 { font-family: var(--font); font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: var(--linen); margin-bottom: 12px; letter-spacing: -0.01em; }
.step-body p { font-family: var(--font); font-size: 15px; line-height: 1.7; color: var(--linen-mute); margin-bottom: 14px; }
.step-take { font-family: var(--font); font-size: 14px; line-height: 1.6; color: var(--linen); border-left: 2px solid var(--crimson); padding-left: 16px; }
.step-take b { color: var(--crimson-bright); font-weight: 700; }

/* ─── CHANNEL / FEATURE CARDS (Iris "what she watches", generic 2x2) ──────── */
.channel-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .channel-grid { grid-template-columns: repeat(2, 1fr); } }
.channel { background: var(--bg-card); border: 1px solid var(--line2); border-radius: var(--r-lg); padding: var(--s-6); }
.channel-ico { font-size: 22px; margin-bottom: 14px; }
.channel h3 { font-family: var(--font); font-size: 18px; font-weight: 700; color: var(--linen); margin-bottom: 8px; }
.channel p { font-family: var(--font); font-size: 14px; line-height: 1.65; color: var(--linen-mute); }

/* ─── TERMINAL / DASHBOARD MOCK (Iris intel, analytics proof) ─────────────── */
.terminal { background: #0b0e16; border: 1px solid var(--line2); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #11151f; border-bottom: 1px solid var(--line); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line3); display: inline-block; }
.terminal-bar span { margin-left: 12px; font-size: 11px; color: var(--linen-soft); }
.terminal-body { padding: var(--s-5); font-size: 12.5px; line-height: 1.9; color: var(--linen-mute); }
.terminal-body .ln b { color: var(--crimson-coral); }
.terminal-body .ln .ok { color: var(--good); }
.terminal-body .ln .dim { color: var(--linen-soft); }
.terminal-body .cur::after { content: '▋'; color: var(--crimson-bright); animation: pulse 1.2s steps(2) infinite; }

/* ─── TEAM GRID (About — CSS-built avatars) ───────────────────────────────── */
.team-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.agent-card { background: var(--bg-card); border: 1px solid var(--line2); border-radius: var(--r-lg); padding: var(--s-6); transition: border-color var(--t) var(--ease), transform var(--t) var(--ease); }
.agent-card:hover { border-color: var(--crimson); transform: translateY(-3px); }
.agent-av {
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 800; font-size: 20px; color: var(--linen); margin-bottom: 16px;
  background: linear-gradient(135deg, var(--crimson) 0%, var(--bg-elev-2) 100%); border: 1px solid var(--line2);
}
.agent-card h3 { font-family: var(--font); font-size: 18px; font-weight: 700; color: var(--linen); }
.agent-role { font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--crimson-bright); margin: 4px 0 12px; }
.agent-card p { font-family: var(--font); font-size: 14px; line-height: 1.6; color: var(--linen-mute); }

/* ─── TIMELINE STRIP ──────────────────────────────────────────────────────── */
.timeline-strip { display: grid; gap: 16px; }
@media (min-width: 800px) { .timeline-strip { grid-template-columns: repeat(4, 1fr); } }
.tl-item { border-top: 2px solid var(--crimson); padding-top: 16px; }
.tl-year { font-family: var(--font); font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--linen); letter-spacing: -0.02em; }
.tl-item p { font-family: var(--font); font-size: 13px; line-height: 1.55; color: var(--linen-mute); margin-top: 8px; }

/* ─── CROSS-LINK FOOTER (next service in the stack) ───────────────────────── */
.cross-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--bg-card); border: 1px solid var(--line2); border-radius: var(--r-lg); padding: var(--s-5) var(--s-6);
}
.cross-link:hover { border-color: var(--crimson); }
.cross-link .cl-label { font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--linen-soft); }
.cross-link .cl-name { font-family: var(--font); font-size: clamp(20px, 3vw, 28px); font-weight: 700; color: var(--linen); }
.cross-link .cl-name em { font-style: italic; color: var(--crimson-coral); }

/* ─── REUSABLE FINAL CTA BAND ─────────────────────────────────────────────── */
.cta-band { position: relative; padding: 96px 24px; text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .cta-band { padding: 130px 56px; } }
.cta-band-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 900px; height: 600px; max-width: 120vw; background: radial-gradient(ellipse, var(--crimson-soft) 0%, transparent 65%); filter: blur(40px); pointer-events: none; }
.cta-band-w { max-width: 760px; margin: 0 auto; position: relative; z-index: 5; }
.cta-band h2 { font-family: var(--font); font-weight: 700; font-size: clamp(34px, 6vw, 72px); line-height: 0.98; letter-spacing: -0.03em; color: var(--linen); margin-bottom: var(--s-5); }
.cta-band h2 em { font-style: italic; color: var(--crimson-coral); }
.cta-band .lede { margin: 0 auto var(--s-6); max-width: 56ch; }
.cta-band-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ─── LONG-FORM PROSE (legal, insights article) ───────────────────────────── */
.prose { max-width: 68ch; margin: 0 auto; font-family: var(--font); color: var(--linen-mute); }
.prose h2 { font-family: var(--font); font-size: 26px; font-weight: 700; color: var(--linen); margin: 40px 0 14px; letter-spacing: -0.01em; }
.prose h3 { font-family: var(--font); font-size: 19px; font-weight: 700; color: var(--linen); margin: 28px 0 10px; }
.prose p { font-size: 17px; line-height: 1.75; margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { font-size: 17px; line-height: 1.7; margin-bottom: 8px; }
.prose a { color: var(--crimson-bright); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--linen); font-weight: 700; }
.prose-meta { font-family: var(--font); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--linen-soft); margin-bottom: 32px; }

/* ─── INSIGHTS / BLOG CARD GRID ───────────────────────────────────────────── */
.post-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--line2); border-radius: var(--r-lg); overflow: hidden; transition: border-color var(--t) var(--ease), transform var(--t) var(--ease); }
.post-card:hover { border-color: var(--crimson); transform: translateY(-3px); }
.post-card-body { padding: var(--s-5); }
.post-tag { font-family: var(--font); font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--crimson-bright); margin-bottom: 10px; }
.post-card h3 { font-family: var(--font); font-size: 18px; font-weight: 700; color: var(--linen); line-height: 1.3; margin-bottom: 10px; }
.post-card p { font-family: var(--font); font-size: 14px; line-height: 1.6; color: var(--linen-mute); }

/* ─── 404 ─────────────────────────────────────────────────────────────────── */
.fourohfour { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px 24px; }
.fourohfour .big { font-family: var(--font); font-size: clamp(90px, 22vw, 240px); font-weight: 800; line-height: 0.8; color: var(--linen); letter-spacing: -0.05em; }
.fourohfour .big em { font-style: italic; color: var(--crimson-coral); }
