/* Sacred Circuit Life — shared stylesheet
   Ported from the Claude Design project (Sacred Circuit Life.dc.html + Brand Palette.dc.html).
   Themes: "Clean Slate" (default) and "Original Bronze" via data-theme on <html>. */

:root {
  /* Palette */
  --accent: #B87748;
  --accent-hover: #C98F5E;
  --bronze-light: #E2B285;
  --bronze-mid: #C98F5E;
  --bronze-deep: #A66A3B;
  --bronze-ink: #7A4E2D;
  --pearl: #F8F0E6;
  --ivory: #F5EFE6;
  --white-warm: #FBF8F2;
  --sand: #D8C6B0;
  --sand-muted: #CBB89F;
  --sand-deep: #BCA88E;
  --umber: #8A7358;
  --cocoa: #4A3826;
  --espresso: #2A1E14;
  --line: rgba(184, 119, 72, .22);
  --line-strong: rgba(184, 119, 72, .28);
  --line-soft: rgba(184, 119, 72, .18);

  /* Clean Slate backdrop */
  --slate: #1C1E22;
  --page-base: #1C1E22;
  --page-overlay: rgba(44, 47, 54, .66);
  --alt-base: #1C1E22;
  --alt-overlay: rgba(44, 47, 54, .76);
  --nav-bg: rgba(28, 30, 34, .88);
  --html-bg: #1D1410;

  --page-bg: linear-gradient(var(--page-overlay), var(--page-overlay)), url("../assets/molten.jpg") right center / 150% no-repeat var(--page-base);
  --alt-bg: linear-gradient(var(--alt-overlay), var(--alt-overlay)), url("../assets/molten.jpg") right center / 150% no-repeat var(--alt-base);

  /* Type */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --display: 'Marcellus', 'Cormorant Garamond', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --gutter: 64px;
  --measure: 1160px;
}

html[data-theme="bronze"] {
  --page-base: #1D1410;
  --page-overlay: rgba(29, 20, 16, .6);
  --alt-base: #241A12;
  --alt-overlay: rgba(36, 26, 18, .75);
  --nav-bg: rgba(29, 20, 16, .88);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--html-bg); }
body {
  font-family: var(--sans);
  color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--bronze-light); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent); color: var(--white-warm); }

@keyframes gemFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes glowPulse { 0%, 100% { opacity: .45; } 50% { opacity: .8; } }
@keyframes sheen { 0% { background-position: -150% 0; } 100% { background-position: 250% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Page shell ---------- */
.page { background: var(--page-bg); color: var(--ivory); }

.eyebrow {
  font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: var(--bronze-mid);
}
.eyebrow--light { color: var(--bronze-deep); }

.wrap { max-width: var(--measure); margin: 0 auto; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

h1, h2, h3 { margin: 0; font-weight: 400; }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav__brand { display: flex; align-items: center; gap: 14px; color: var(--ivory); }
.nav__brand img { width: 38px; filter: drop-shadow(0 2px 8px rgba(233, 169, 111, .35)); }
.nav__name { font-family: var(--display); font-size: 17px; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory); white-space: nowrap; }
.nav__links { display: flex; align-items: center; gap: 40px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--sand); }
.nav__links a { color: var(--sand); }
.nav__links a:hover { color: var(--ivory); }
.nav__links a[aria-current="page"] { color: var(--bronze-light); }
.nav__cta, .nav__links a.nav__cta { color: var(--html-bg); background: var(--accent); padding: 10px 22px; border-radius: 2px; }
.nav__cta:hover, .nav__links a.nav__cta:hover { background: var(--accent-hover); color: var(--html-bg); }
.nav__toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--sand); font: inherit; letter-spacing: .18em; text-transform: uppercase; font-size: 12px; padding: 10px 14px; border-radius: 2px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 16px 42px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  border-radius: 2px; border: 1px solid transparent; font-family: var(--sans); cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn--solid { background: var(--accent); color: var(--html-bg); }
.btn--solid:hover { background: var(--accent-hover); color: var(--html-bg); }
.btn--ghost { border-color: rgba(184, 119, 72, .5); color: var(--bronze-light); background: transparent; }
.btn--ghost:hover { border-color: var(--bronze-mid); color: var(--ivory); }
.btn--block { display: block; width: 100%; padding: 18px; letter-spacing: .24em; text-align: center; }

/* ---------- Hero ---------- */
.hero { position: relative; text-align: center; padding: 110px var(--gutter) 130px; overflow: hidden; }
.hero__sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(224, 228, 236, .06) 50%, transparent 58%);
  background-size: 300% 100%; animation: sheen 8s linear infinite;
}
.hero__glow {
  position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%);
  width: 820px; height: 820px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 143, 94, .28) 0%, rgba(201, 143, 94, .08) 45%, transparent 70%);
  animation: glowPulse 7s ease-in-out infinite;
}
.hero__logo {
  position: relative; width: 1105px; max-width: 100%; margin: 0 auto;
  animation: gemFloat 9s ease-in-out infinite;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, .55));
}
.hero h1 {
  position: relative; font-family: var(--serif); font-size: 66px; line-height: 1.05;
  margin: 36px auto 0; max-width: 900px; color: #fff;
}
.hero h1 em { font-weight: 300; font-style: italic; color: #fff; }
.hero__lede {
  position: relative; font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--sand-muted);
  max-width: 480px; margin: 28px auto 0;
}
.hero__actions { position: relative; display: flex; gap: 20px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 120px var(--gutter); }
.section--light { background: var(--pearl); color: var(--espresso); }
.section--alt { background: var(--alt-bg); border-top: 1px solid var(--line-soft); }
.section--page { background: var(--page-bg); }
.section--tight { padding: 96px var(--gutter); }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 96px; align-items: center; }
.split--top { align-items: start; gap: 80px; }

.section--light h2 { font-family: var(--serif); font-size: 54px; line-height: 1.12; margin-top: 20px; color: var(--espresso); }
.prose { display: grid; gap: 28px; font-size: 17px; font-weight: 300; line-height: 1.85; color: var(--cocoa); }
.prose p { margin: 0; }
.prose .quote { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--bronze-ink); }

.h-dark { font-family: var(--serif); font-size: 52px; line-height: 1.15; margin-top: 20px; color: var(--white-warm); }

/* Vision / Mission */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: rgba(184, 119, 72, .25); }
.duo__cell { background: var(--alt-bg); padding: 64px 56px; }
.duo__cell p { font-family: var(--serif); font-size: 34px; line-height: 1.35; margin: 24px 0 0; color: var(--ivory); }
.duo__cell em { color: var(--bronze-light); }

/* Movements */
.centered { text-align: center; max-width: 700px; margin: 0 auto 80px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.card {
  border: 1px solid var(--line-strong); padding: 52px 40px 48px; text-align: center;
  background: linear-gradient(180deg, rgba(184, 119, 72, .06), transparent 60%);
  transition: border-color .3s ease;
}
.card:hover { border-color: rgba(201, 143, 94, .6); }
.card h3 { font-family: var(--display); font-size: 26px; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory); }
.card__sub { font-family: var(--serif); font-size: 18px; font-style: italic; color: var(--bronze-light); margin-top: 12px; }
.card__tag { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--bronze-mid); margin-top: 10px; }
.card p { font-size: 15px; font-weight: 300; line-height: 1.8; color: var(--sand-deep); margin: 22px 0 0; }
.movements__note { font-size: 16px; font-weight: 300; line-height: 1.85; color: var(--sand-muted); max-width: 900px; margin: 56px auto 0; text-align: center; }

/* Practices */
.practices__intro h2 { font-family: var(--serif); font-size: 48px; line-height: 1.15; margin-top: 20px; color: var(--white-warm); }
.practices__intro p { font-size: 15px; font-weight: 300; line-height: 1.8; color: var(--sand-muted); margin: 24px 0 0; }
.practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: rgba(184, 119, 72, .18); }
.practice-grid div { background: var(--alt-bg); padding: 22px 26px; font-size: 14.5px; font-weight: 300; color: var(--ivory); letter-spacing: .04em; }

/* Statement blocks */
.statement { max-width: 800px; margin: 0 auto; text-align: center; }
.statement--wide { max-width: 900px; }
.statement .lead-serif { font-family: var(--serif); font-size: 32px; line-height: 1.4; margin: 22px 0 0; color: var(--espresso); }
.statement .body { font-size: 17px; font-weight: 300; line-height: 1.85; color: var(--sand-muted); margin: 24px 0 0; }
.statement .serif-light { font-family: var(--serif); font-size: 28px; line-height: 1.4; color: var(--ivory); margin: 28px 0 0; }
.statement .serif-italic { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--bronze-light); margin: 24px 0 0; }
.statement h2.on-light { font-family: var(--serif); font-size: 52px; line-height: 1.15; margin-top: 20px; color: var(--espresso); }
.statement .body-light { font-size: 18px; font-weight: 300; line-height: 1.85; color: var(--cocoa); max-width: 640px; margin: 32px auto 0; }

.marks { display: flex; justify-content: center; gap: 56px; margin-top: 64px; flex-wrap: wrap; }
.mark { display: grid; gap: 8px; }
.mark__l1 { font-family: var(--serif); font-size: 30px; color: var(--bronze-ink); }
.mark__l2 { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--bronze-deep); }

/* Invitation / forms */
.invite { position: relative; overflow: hidden; }
.invite__glow {
  position: absolute; bottom: -320px; left: 50%; transform: translateX(-50%);
  width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 143, 94, .22) 0%, transparent 65%);
}
.invite .split { position: relative; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.invite__gem { width: 80px; filter: drop-shadow(0 0 24px rgba(233, 169, 111, .3)); }
.invite h2 { font-family: var(--serif); font-size: 52px; line-height: 1.1; margin-top: 32px; color: var(--white-warm); }
.invite__copy { font-size: 16px; font-weight: 300; line-height: 1.8; color: var(--sand-muted); margin: 24px 0 0; }
.invite__ask { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--bronze-light); margin: 28px 0 0; }

.panel { background: rgba(184, 119, 72, .08); border: 1px solid var(--line-strong); padding: 48px 44px; }
.panel__title { font-family: var(--display); font-size: 18px; letter-spacing: .12em; text-transform: uppercase; color: var(--ivory); margin-bottom: 32px; }
.panel__subtitle { font-family: var(--display); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ivory); margin-bottom: 20px; }
.panel__divider { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 28px; }

.fields { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field > label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze-mid); }
.field > label.q { font-size: 13px; font-weight: 300; line-height: 1.6; color: var(--sand-muted); letter-spacing: 0; text-transform: none; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; background: rgba(255, 255, 255, .06); border: 1px solid rgba(184, 119, 72, .3); padding: 14px 18px;
  color: var(--ivory); font-family: var(--sans); font-size: 14px; font-weight: 300; border-radius: 2px; outline: none;
  transition: border-color .2s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--bronze-mid); }
.field input::placeholder, .field textarea::placeholder { color: rgba(203, 184, 159, .55); }
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea { border-color: #C0563E; }
.choices { display: flex; gap: 16px; margin-top: 4px; flex-wrap: wrap; }
.choices label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 300; color: var(--sand-muted); cursor: pointer; }
.choices input { accent-color: var(--accent); margin: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.checks label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 300; color: var(--sand-muted); cursor: pointer; }
.checks input { accent-color: var(--accent); margin: 0; }
.form__submit { margin-top: 36px; }
.form__status { margin-top: 18px; font-size: 13px; letter-spacing: .04em; line-height: 1.6; color: var(--sand-muted); min-height: 1.2em; }
.form__status[data-state="error"] { color: #E0A28F; }
.form__status[data-state="success"] { color: var(--bronze-light); }
.form__success { display: none; text-align: center; padding: 24px 0 8px; }
.form__success .title { font-family: var(--serif); font-size: 30px; line-height: 1.3; color: var(--white-warm); }
.form__success p { font-size: 15px; font-weight: 300; line-height: 1.8; color: var(--sand-muted); margin: 14px 0 0; }
form[data-sent="true"] .form__body { display: none; }
form[data-sent="true"] .form__success { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 36px var(--gutter); border-top: 1px solid var(--line-soft);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--umber);
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { width: 22px; opacity: .85; }
.footer__links { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.footer__links a { color: var(--bronze-mid); letter-spacing: .16em; }
.footer__links a:hover { color: var(--bronze-light); }

/* ---------- Subpage header ---------- */
.subhero { position: relative; text-align: center; padding: 96px var(--gutter) 72px; overflow: hidden; }
.subhero .hero__glow { top: 30%; width: 640px; height: 640px; }
.subhero__gem { position: relative; width: 72px; margin: 0 auto; filter: drop-shadow(0 0 24px rgba(233, 169, 111, .3)); animation: gemFloat 9s ease-in-out infinite; }
.subhero h1 { position: relative; font-family: var(--serif); font-size: 60px; line-height: 1.08; margin: 28px auto 0; max-width: 820px; color: #fff; }
.subhero p { position: relative; font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--sand-muted); max-width: 520px; margin: 24px auto 0; }

/* ---------- Support widget ---------- */
.support-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--nav-bg); border: 1px solid var(--line-strong); color: var(--sand);
  padding: 12px 18px; border-radius: 2px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.support-fab img { width: 18px; }
.support-fab:hover { color: var(--ivory); border-color: rgba(201, 143, 94, .6); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .hero h1 { font-size: 54px; }
  .split, .split--top, .invite .split { grid-template-columns: 1fr; gap: 56px; }
  .cards { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .section--light h2, .h-dark, .invite h2, .statement h2.on-light { font-size: 44px; }
}
@media (max-width: 760px) {
  :root { --gutter: 22px; }
  .nav { padding: 16px var(--gutter); }
  .nav__name { font-size: 14px; letter-spacing: .18em; }
  .nav__toggle { display: inline-block; }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--nav-bg); border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 16px var(--gutter); border-top: 1px solid var(--line-soft); }
  .nav__links a.nav__cta { margin: 12px var(--gutter) 16px; text-align: center; }
  .hero { padding: 64px var(--gutter) 88px; }
  .hero h1 { font-size: 40px; }
  .hero__glow { width: 520px; height: 520px; }
  .section, .section--tight { padding: 80px var(--gutter); }
  .section--light h2, .h-dark, .invite h2, .statement h2.on-light, .practices__intro h2 { font-size: 36px; }
  .duo__cell { padding: 44px 28px; }
  .duo__cell p { font-size: 28px; }
  .card { padding: 40px 28px; }
  .practice-grid { grid-template-columns: 1fr; }
  .panel { padding: 32px 22px; }
  .checks { grid-template-columns: 1fr; }
  .subhero h1 { font-size: 40px; }
  .footer { justify-content: center; text-align: center; }
  .support-fab { right: 14px; bottom: 14px; }
}
