/* Summerall Capital website primitives. Requires brand-tokens.css.
   Opt-in: these rules do not replace the host layout, routes, or existing controls.
   Add sc-brand to the existing site wrapper; add individual classes where needed.
   Every selector is scoped to sc-brand. Keep form/menu behavior in the existing app. */
.sc-brand {
  color: var(--sc-emerald);
  font-family: var(--sc-font-body);
  font-size: 1rem;
  line-height: 1.7;
}
.sc-brand .sc-container {
  width: min(var(--sc-container), calc(100% - 48px));
  margin-inline: auto;
}
.sc-brand .sc-section { padding-block: clamp(64px, 7vw, 112px); }
.sc-brand .sc-display {
  font-family: var(--sc-font-display);
  font-weight: 400;
  font-size: clamp(48px, 6.3vw, 88px);
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.sc-brand .sc-heading {
  font-family: var(--sc-font-display);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.12;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.sc-brand .sc-copy { max-width: 65ch; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.75; }
.sc-brand .sc-eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--sc-antique); }
.sc-brand .sc-muted { color: var(--sc-muted); }
.sc-brand .sc-logo { display: block; max-width: 100%; height: auto; }
.sc-brand .sc-logo--header { width: 260px; }
.sc-brand .sc-logo--stacked { width: clamp(180px, 34vw, 360px); }
.sc-brand .sc-logo--monogram { width: 64px; }
.sc-brand .sc-icon { width: 24px; height: 24px; flex: 0 0 24px; vertical-align: middle; color: currentColor; }
.sc-brand .sc-icon--accent { color: var(--sc-antique); }
.sc-brand .sc-rule { border: 0; border-top: 1px solid var(--sc-gold); opacity: .65; }
.sc-brand .sc-surface--emerald {
  color: var(--sc-ivory);
  background-color: var(--sc-emerald);
  background-image: linear-gradient(#0e1a1673, #0e1a1673), url('/brand/backgrounds/emerald.webp');
  background-size: cover;
  background-position: center;
}
.sc-brand .sc-surface--ivory {
  color: var(--sc-emerald);
  background-color: var(--sc-ivory);
  background-image: url('/brand/backgrounds/ivory.webp');
  background-size: cover;
  background-position: center;
}
.sc-brand .sc-surface--quiet {
  color: var(--sc-emerald);
  background-color: var(--sc-ivory);
  background-image: url('/brand/backgrounds/ivory-quiet.webp');
  background-size: cover;
  background-position: center;
}
.sc-brand .sc-surface--linen {
  color: var(--sc-emerald);
  background-color: var(--sc-linen);
  background-image: url('/brand/backgrounds/linen.webp');
  background-size: cover;
  background-position: center;
}
/* Use on ONE shared wrapper, not on each child section. Inspect the crop on staging.
   The final fade gives a clean handoff into the solid ivory page surface.
   Do not place unprotected text across the dark-to-light band. */
.sc-brand .sc-surface--transition {
  background-color: var(--sc-ivory);
  background-image: linear-gradient(to bottom, transparent 78%, var(--sc-ivory) 100%), url('/brand/backgrounds/transition.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.sc-brand .sc-reading-panel { background: var(--sc-ivory); color: var(--sc-emerald); padding: clamp(24px, 4vw, 48px); }
.sc-brand .sc-dark-panel { background: var(--sc-emerald); color: var(--sc-ivory); padding: clamp(24px, 4vw, 48px); }
.sc-brand .sc-surface--emerald .sc-eyebrow,
.sc-brand .sc-dark-panel .sc-eyebrow { color: var(--sc-gold); }
.sc-brand .sc-button {
  box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 12px 24px;
  border: 1px solid var(--sc-emerald); border-radius: 0;
  background: var(--sc-emerald); color: var(--sc-ivory);
  font-family: var(--sc-font-body); font-size: 14px; font-weight: 500; line-height: 1.4;
  text-decoration: none; cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.sc-brand .sc-button:hover { background: var(--sc-malachite); }
.sc-brand .sc-button--on-dark { background: var(--sc-gold); border-color: var(--sc-gold); color: var(--sc-emerald); }
.sc-brand .sc-button--on-dark:hover { background: var(--sc-linen); border-color: var(--sc-linen); }
.sc-brand .sc-icon-button { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; }
.sc-brand .sc-button:focus-visible,
.sc-brand .sc-icon-button:focus-visible { outline: 3px solid var(--sc-antique); outline-offset: 4px; }
.sc-brand .sc-surface--emerald .sc-button:focus-visible,
.sc-brand .sc-dark-panel .sc-button:focus-visible { outline-color: var(--sc-ivory); }
@media (max-width: 600px) {
  .sc-brand .sc-container { width: calc(100% - 40px); }
  .sc-brand .sc-logo--header { width: 220px; }
  .sc-brand .sc-surface--emerald { background-image: linear-gradient(#0e1a1673, #0e1a1673), url('/brand/backgrounds/emerald-mobile.webp'); }
  .sc-brand .sc-surface--ivory { background-image: url('/brand/backgrounds/ivory-mobile.webp'); }
  .sc-brand .sc-surface--quiet { background-image: url('/brand/backgrounds/ivory-quiet-mobile.webp'); }
  .sc-brand .sc-surface--transition { background-image: linear-gradient(to bottom, transparent 78%, var(--sc-ivory) 100%), url('/brand/backgrounds/transition-mobile.webp'); }
}
@media (prefers-reduced-motion: reduce) { .sc-brand .sc-button { transition: none; } }
