/* site.css — mortarcloud.ai, the engagement (built 2026-10-12 at the unlisted preview; moves to /assets/site.css at go-live).
   Design tokens from STYLE-GUIDE.md. One stylesheet for every page of the engagement so that the pages read as one site. */

:root {
  --ink:       #0d0d0b;
  --bark:      #1c1a16;
  --moss:      #252318;
  --ember:     #e8891a;
  --ember-dim: #a05c0d;
  --smoke:     #8a8070;
  --cream:     #f0ead8;
  --cream-dim: #c4bba8;
  --bite:      #c74b3c;
  --line:      rgba(138, 128, 112, 0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.3;
}

.page { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.page.wide { max-width: 860px; }

a { color: var(--ember); text-decoration: none; }
a:hover { color: #f09a2e; }
em { color: var(--cream); }
strong { color: var(--cream); font-weight: 500; }

/* ── HEADER ── */
.site-header { padding: 22px 0; border-bottom: 1px solid var(--line); }
.site-header .page { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo-link { text-decoration: none; display: inline-block; line-height: 0; }
.logo-link:hover { opacity: 0.85; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--smoke); text-decoration: none; transition: color 0.3s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ember); }

/* ── LABELS AND HEADINGS ── */
.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ember-dim); margin-bottom: 20px;
}
h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2.1rem, 5.5vw, 3.2rem);
  line-height: 1.15; color: var(--cream); margin-bottom: 22px;
  letter-spacing: -0.3px;
}
h1 .accent { color: var(--ember); }
h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  line-height: 1.25; color: var(--cream); margin-bottom: 16px;
}
h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 1.25rem;
  color: var(--cream); margin-bottom: 8px; line-height: 1.3;
}
.lede { font-size: 1.22rem; line-height: 1.6; color: var(--cream); max-width: 36em; margin-bottom: 18px; }
p { color: var(--cream-dim); font-size: 1.06rem; margin-bottom: 18px; max-width: 36em; }
p:last-child { margin-bottom: 0; }
.rule { width: 48px; height: 2px; background: var(--ember-dim); opacity: 0.6; margin: 8px 0 28px; }
.divider { width: 48px; height: 2px; background: var(--ember-dim); margin: 0 auto; opacity: 0.5; }

/* ── SECTIONS ── */
.hero { padding: 72px 0 56px; }
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
.quiet { font-size: 0.92rem; color: var(--smoke); }
.note { font-size: 0.85rem; color: var(--smoke); font-style: italic; }

/* ── THE SEVEN TRUSTS ── */
.trusts { list-style: none; margin: 8px 0 0; border-top: 1px solid var(--line); }
.trusts li {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  color: var(--cream-dim); font-size: 1.04rem; line-height: 1.6;
}
.trusts li span.n { font-family: 'DM Mono', monospace; font-size: 0.78rem; color: var(--ember); letter-spacing: 0.05em; }
.trusts li strong { color: var(--cream); font-weight: 500; }

/* ── CARDS AND BUTTONS ── */
.card {
  background: var(--bark); border: 1px solid var(--line); border-radius: 10px;
  padding: 26px 28px; margin: 20px 0;
}
.card.lead { border-color: var(--ember-dim); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 1rem; }
.cards { display: grid; gap: 14px; margin: 20px 0; }
.cards.two { grid-template-columns: 1fr 1fr; }
.cards .card { margin: 0; }
a.card { display: block; text-decoration: none; transition: border-color 0.3s ease, transform 0.2s ease; }
a.card:hover { border-color: rgba(232, 137, 26, 0.35); transform: translateY(-2px); }
a.card h3::after { content: ' \2192'; color: var(--ember); font-family: 'DM Sans', sans-serif; }
.card-label {
  font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ember-dim); margin-bottom: 8px;
}
.btn {
  display: inline-block; background: var(--ember); color: var(--ink);
  font-family: 'DM Mono', monospace; font-weight: 500; font-size: 0.88rem; letter-spacing: 0.04em;
  text-decoration: none; padding: 13px 26px; border-radius: 999px; margin: 6px 12px 6px 0;
  transition: background 0.3s ease, transform 0.15s ease; border: none; cursor: pointer;
}
.btn:hover { background: #f09a2e; color: var(--ink); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--cream); border: 1px solid var(--ember-dim); }
.btn.ghost:hover { background: rgba(232, 137, 26, 0.08); color: var(--cream); }
.actions { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.textlink { color: var(--cream-dim); border-bottom: 1px solid var(--ember-dim); text-decoration: none; }
.textlink:hover { color: var(--ember); }
.for { font-family: 'DM Mono', monospace; font-size: 0.8rem; color: var(--smoke); margin-top: 12px; line-height: 1.6; }
.for b { color: var(--ember-dim); font-weight: 500; }

/* ── THE FIVE STEPS ── */
.steps { list-style: none; counter-reset: step; margin: 24px 0 0; }
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step .num {
  font-family: 'Playfair Display', serif; font-weight: 900; font-size: 2.4rem; line-height: 1;
  color: var(--ember); opacity: 0.85;
}
.step h3 { font-size: 1.35rem; margin-bottom: 14px; }
.step .pp { display: grid; gap: 14px; }
.step .pp p { font-size: 1.02rem; margin: 0; }
.step .pp b { color: var(--ember-dim); font-family: 'DM Mono', monospace; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; display: block; margin-bottom: 4px; }
.steps-brief { list-style: none; margin: 18px 0 0; border-top: 1px solid var(--line); }
.steps-brief li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--cream-dim); font-size: 1rem; line-height: 1.55; }
.steps-brief li .n { font-family: 'DM Mono', monospace; font-size: 0.78rem; color: var(--ember); }
.steps-brief li strong { color: var(--cream); font-weight: 500; }

/* ── FORMS ── */
form.intake { max-width: 520px; }
form.intake label { display: block; font-family: 'DM Mono', monospace; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember-dim); margin: 16px 0 6px; }
form.intake input, form.intake textarea, form.intake select {
  width: 100%; background: var(--bark); border: 1px solid rgba(138, 128, 112, 0.22); border-radius: 6px;
  padding: 13px 16px; font-family: 'DM Sans', sans-serif; font-size: 0.98rem; color: var(--cream);
  outline: none; transition: border-color 0.3s ease; display: block; appearance: none; -webkit-appearance: none;
}
form.intake textarea { min-height: 110px; resize: vertical; }
form.intake input::placeholder, form.intake textarea::placeholder { color: var(--smoke); }
form.intake input:focus, form.intake textarea:focus, form.intake select:focus { border-color: var(--ember-dim); }
form.intake select:invalid { color: var(--smoke); }
form.intake button { margin-top: 22px; width: 100%; padding: 15px; }
.form-note { font-size: 0.78rem; color: var(--smoke); margin-top: 14px; opacity: 0.8; }
.inline-form { display: flex; gap: 12px; max-width: 460px; }
.inline-form input { flex: 1; background: var(--bark); border: 1px solid rgba(138, 128, 112, 0.22); border-radius: 6px; padding: 13px 16px; font-family: 'DM Sans', sans-serif; font-size: 0.98rem; color: var(--cream); outline: none; }
.inline-form input:focus { border-color: var(--ember-dim); }
.inline-form .btn { margin: 0; white-space: nowrap; }

/* ── ESSAY ── */
.essay-header { padding: 64px 0 36px; }
.essay-subtitle { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700; font-size: 1.25rem; line-height: 1.45; color: var(--cream-dim); max-width: 34em; margin-bottom: 22px; }
.essay-byline { font-family: 'DM Mono', monospace; font-size: 0.8rem; letter-spacing: 0.05em; color: var(--smoke); line-height: 1.8; }
.essay-byline span { color: var(--cream-dim); }
.essay-body { padding: 40px 0 56px; }
.essay-body p { font-size: 1.1rem; color: var(--cream-dim); line-height: 1.85; margin-bottom: 28px; max-width: 34em; }
.essay-body p:last-child { margin-bottom: 0; }
.essay-body a { color: var(--ember); border-bottom: 1px solid rgba(232, 137, 26, 0.35); transition: border-color 0.3s ease; }
.essay-body a:hover { border-color: var(--ember); }

/* ── BUNDLE ── */
.bundle { padding: 8px 0 44px; border-bottom: 1px solid var(--line); }
.bundle-label { font-family: 'DM Mono', monospace; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ember-dim); margin-bottom: 18px; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--bark); border: 1px solid rgba(138, 128, 112, 0.18); border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 12px; }
.video-placeholder .play { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ember-dim); display: flex; align-items: center; justify-content: center; color: var(--ember); font-size: 1.1rem; opacity: 0.8; }
.video-placeholder p { font-size: 0.9rem; color: var(--smoke); max-width: 32em; line-height: 1.6; }
.bundle-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bundle-card { display: block; padding: 20px 22px; background: var(--bark); border: 1px solid rgba(138, 128, 112, 0.12); border-radius: 8px; text-decoration: none; transition: border-color 0.3s ease, transform 0.2s ease; }
.bundle-card:hover { border-color: rgba(232, 137, 26, 0.3); transform: translateY(-2px); }
.bundle-card-title { font-size: 1rem; font-weight: 400; color: var(--cream); margin-bottom: 6px; }
.bundle-card-title::after { content: ' \2192'; color: var(--ember); }
.bundle-card-desc { font-size: 0.85rem; color: var(--smoke); line-height: 1.5; }

/* ── NEXT ── */
.next-section { padding: 48px 0 64px; }
.elsewhere { font-size: 0.9rem; color: var(--smoke); line-height: 1.7; }
.elsewhere a { color: var(--smoke); border-bottom: 1px solid rgba(138, 128, 112, 0.4); }
.elsewhere a:hover { color: var(--ember-dim); border-color: var(--ember-dim); }

/* ── BOOK CARD ── */
.book-card { display: flex; gap: 24px; align-items: flex-start; background: var(--bark); border: 1px solid var(--line); border-radius: 8px; padding: 26px 30px; margin-top: 28px; }
.book-card img { width: 110px; height: auto; display: block; border-radius: 3px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.book-card-title { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.15rem; color: var(--cream); line-height: 1.3; }
.book-card-sub { font-size: 0.85rem; color: var(--ember); margin-bottom: 10px; }
.book-card p { font-size: 0.95rem; }

/* ── FOOTER ── */
footer { padding: 40px 0 48px; border-top: 1px solid var(--line); text-align: center; margin-top: 24px; }
footer p { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--smoke); letter-spacing: 0.05em; opacity: 0.75; margin: 0 auto 10px; max-width: none; }
footer p.links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--smoke); text-decoration: none; transition: color 0.3s ease; }
footer a:hover { color: var(--ember-dim); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 640px) {
  .page { padding: 0 20px; }
  .hero { padding: 52px 0 40px; }
  section { padding: 44px 0; }
  .cards.two, .bundle-row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .step .num { font-size: 1.8rem; }
  .book-card { flex-direction: column; align-items: center; text-align: center; }
  .inline-form { flex-direction: column; }
  .site-header .page { flex-direction: column; align-items: flex-start; }
}
/* A bundle card with no href is a slot waiting for its upload: it reads as a card, not as a link. */
a.bundle-card:not([href]):hover { border-color: rgba(138, 128, 112, 0.12); transform: none; }
a.bundle-card:not([href]) .bundle-card-title::after { content: none; }
