/* Stonemason landing page. */

.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ---------- hero ---------- */
.hero { padding: 88px 24px 40px; text-align: center; position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 820px; max-width: 140vw; height: 480px;
  background: radial-gradient(closest-side, rgba(196, 100, 106, 0.16), rgba(196, 100, 106, 0));
  pointer-events: none;
}
:root[data-theme="light"] .hero-glow { background: radial-gradient(closest-side, rgba(168, 71, 77, 0.1), rgba(168, 71, 77, 0)); }
.hero-inner { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; position: relative; }

.title { margin: 0; width: 100%; line-height: 0; }
.title-art { position: relative; display: block; width: 100%; max-width: 1040px; margin: 0 auto; }
.title-mask {
  display: block; width: 100%;
  aspect-ratio: 1040 / 102;
  background-color: var(--accent);
  -webkit-mask: url("../assets/title-scribble.svg") no-repeat 0 0 / 100% 100%;
  mask: url("../assets/title-scribble.svg") no-repeat 0 0 / 100% 100%;
}
.title-marks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.subtitle {
  margin: 0;
  font-weight: 300;
  font-size: 24px;
  line-height: 1.25;
  color: var(--ink-2);
}
:root[data-theme="light"] .subtitle { font-weight: 400; color: var(--ink); }

/* ---------- reel ---------- */
.reel { padding: 24px 24px 72px; }
.reel figure { max-width: 1040px; margin: 0 auto; position: relative; }
.reel video {
  display: block; width: 100%;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(196, 100, 106, 0.07);
}
:root[data-theme="light"] .reel video { box-shadow: 0 30px 80px rgba(60, 50, 40, 0.22); }
.reel figcaption {
  position: absolute; top: 14px; right: 14px;
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-2);
  background: rgba(14, 18, 22, 0.85);
  padding: 5px 10px; border-radius: 999px;
}
:root[data-theme="light"] .reel figcaption { background: rgba(255, 255, 255, 0.85); }
.lede { margin: 40px auto 0; max-width: 54ch; font-size: 19px; line-height: 1.55; color: var(--ink-2); text-align: center; }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
.hero .ctas { margin-top: 10px; }

/* ---------- how it works ---------- */
.how { padding: 0 24px 88px; max-width: 1088px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; scroll-margin-top: 24px; }
.how h2 { margin: 0; font-family: var(--font-title); font-weight: 600; font-size: 40px; line-height: 1.15; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card .num { font-size: 12px; color: var(--accent); }
.card h3 { margin: 0; font-family: var(--font-title); font-weight: 600; font-size: 23px; }
.card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer { background: var(--header); }
:root[data-theme="light"] .site-footer { background: #edeae3; }
.site-footer > div {
  max-width: 1160px; margin: 0 auto; padding: 28px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3);
}
:root[data-theme="light"] .site-footer > div { color: var(--ink); }
.site-footer img { display: block; }
.site-footer a { color: inherit; }
.site-footer .quiet { color: var(--ink-3); }
:root[data-theme="light"] .site-footer .quiet { color: var(--ink-2); }

@media (max-width: 820px) {
  .hero { padding: 56px 16px 24px; }
  .subtitle { font-size: 19px; }
  .reel { padding: 16px 16px 56px; }
  .lede { font-size: 17px; }
  .how { padding: 0 16px 64px; }
  .how h2 { font-size: 30px; }
  .cards { grid-template-columns: 1fr; }
  .site-footer > div { padding: 24px 16px; }
}
