/* Inner Shift: gentle 3D layer */
.soft-card[data-tilt] { transform-style: preserve-3d; will-change: transform; }
.soft-card[data-tilt].is-tilting {
  transition: border-color .3s, box-shadow .3s, transform .08s linear;
  transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(-6px);
  box-shadow: calc(var(--ry,0deg) * -2) calc(var(--rx,0deg) * 2 + 22px) 38px -14px rgba(126,92,70,.28);
}
.soft-card[data-tilt]::after {
  content:""; position:absolute; inset:0; pointer-events:none; opacity:0; border-radius:inherit;
  background: radial-gradient(260px circle at var(--gx,50%) var(--gy,50%), rgba(255,255,255,.55), transparent 60%);
  transition: opacity .3s;
}
.soft-card[data-tilt].is-tilting::after { opacity:1; }
.soft-card[data-tilt]:not(.relative):not(.absolute) { position: relative; }

/* hero stage */
.stage3d { perspective: 1000px; }
.stage3d-inner { transform-style: preserve-3d; transition: transform .25s ease-out; }
.stage3d-inner > * { transition: transform .25s ease-out; }
.stage3d-inner.moving, .stage3d-inner.moving > * { transition: transform .06s linear; }
.stage3d-inner > .z-front { transform: translateZ(60px); }
.stage3d-inner > .z-main  { transform: translateZ(30px); box-shadow: 0 40px 60px -25px rgba(98,71,52,.45); }
.stage3d-inner > .z-back  { transform: translateZ(-40px); }

/* background orbs */
#orbs3d { position:absolute; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; }
.has-orbs > .max-w-7xl { position: relative; z-index: 1; }

/* scroll depth */
html [data-depth] { transition-property: border-color, box-shadow, background-color, transform; will-change: translate, rotate, opacity; }
html .soft-card[data-depth] { transition-property: border-color, box-shadow, background-color, transform; }
html section.has-depth { position: relative; overflow: hidden; }
html section.has-depth > :not(.orb3d):not([class*="absolute"]):not([class*="fixed"]) { position: relative; z-index: 1; }
.orb3d { position:absolute; z-index:0; border-radius:50%; pointer-events:none; opacity:.42; will-change: translate, rotate;
  background: radial-gradient(circle at 30% 26%, rgba(255,255,255,.95) 0, rgba(255,255,255,0) 26%),
              radial-gradient(circle at 38% 34%, #e3d6c4 0, #caad95 55%, #9b765d 100%);
  box-shadow: inset -14px -18px 30px rgba(98,71,52,.38), 0 34px 50px -22px rgba(98,71,52,.4); }

/* raised, pressable buttons */
html a:is([class*=" bg-charcoal-900"],[class^="bg-charcoal-900"]), html button:is([class*=" bg-charcoal-900"],[class^="bg-charcoal-900"]) {
  box-shadow: 0 4px 0 #6b3017, 0 14px 20px -8px rgba(107,48,23,.45);
  transition: transform .15s, box-shadow .15s, background-color .3s;
}
html a:is([class*=" bg-charcoal-900"],[class^="bg-charcoal-900"]):hover, html button:is([class*=" bg-charcoal-900"],[class^="bg-charcoal-900"]):hover {
  transform: translateY(-3px); box-shadow: 0 7px 0 #6b3017, 0 20px 26px -8px rgba(107,48,23,.5);
}
html a:is([class*=" bg-charcoal-900"],[class^="bg-charcoal-900"]):active, html button:is([class*=" bg-charcoal-900"],[class^="bg-charcoal-900"]):active {
  transform: translateY(3px); box-shadow: 0 1px 0 #6b3017, 0 4px 8px -4px rgba(107,48,23,.45);
}

@media (prefers-reduced-motion: reduce), (hover: none) {
  .soft-card[data-tilt].is-tilting { transform: none; }
  .stage3d-inner, .stage3d-inner > * { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) { .orb3d { display:none; } html a:is([class*=" bg-charcoal-900"],[class^="bg-charcoal-900"]):hover, html button:is([class*=" bg-charcoal-900"],[class^="bg-charcoal-900"]):hover { transform:none; } }

/* ===== Rust accent #9b4922 ===== */
:root { --rust:#9b4922; --rust-deep:#7a3818; --rust-soft:#c27a52; }
html ::selection { background: var(--rust); color:#fff; }

/* primary buttons */
html a:is([class*=" bg-charcoal-900"],[class^="bg-charcoal-900"]), html button:is([class*=" bg-charcoal-900"],[class^="bg-charcoal-900"]) { background-color: var(--rust); color:#fff; }
html a:is([class*=" bg-charcoal-900"],[class^="bg-charcoal-900"]):hover, html button:is([class*=" bg-charcoal-900"],[class^="bg-charcoal-900"]):hover { background-color: var(--rust-deep); }
/* outline buttons */
html a:is([class*=" border-charcoal-800"],[class^="border-charcoal-800"]) { border-color: var(--rust); color: var(--rust); }
html a:is([class*=" border-charcoal-800"],[class^="border-charcoal-800"]):hover { background-color: var(--rust); color:#fff; }

/* accent text, nav, labels */
html .border-taupe-600 { border-color: var(--rust); }
html .bg-taupe-500 { background-color: var(--rust); }

/* cards and quiz */
html .soft-card:hover { border-color: var(--rust); }
html .quiz-card.selected { border-color: var(--rust); box-shadow: 0 0 0 2px var(--rust); }

/* rust band + footer edge */
html section[class*="from-taupe-700"] { background-image: linear-gradient(to right, var(--rust-deep), var(--rust), #6b3017); }


/* one rust sphere per section */
.orb3d.orb-rust { opacity:.5;
  background: radial-gradient(circle at 30% 26%, rgba(255,255,255,.8) 0, rgba(255,255,255,0) 26%),
              radial-gradient(circle at 38% 34%, var(--rust-soft) 0, var(--rust) 55%, #5c2a12 100%);
  box-shadow: inset -12px -16px 26px rgba(60,25,10,.45), 0 30px 46px -22px rgba(107,48,23,.5); }

/* ===== Footer ===== */
html footer.site-footer { background:#22201f; color:#e3d6c4; text-align:left; font-size:13px; border-top:0; padding:0; position:relative; overflow:hidden; }
.sf-wrap { max-width:80rem; margin:0 auto; padding-left:1.5rem; padding-right:1.5rem; position:relative; z-index:1; }
.sf-cta { background:linear-gradient(90deg,#7e5c46,#9b4922); }
.sf-cta-inner { display:flex; flex-wrap:wrap; gap:1.25rem; align-items:center; justify-content:space-between; padding-top:2.25rem; padding-bottom:2.25rem; }
.sf-cta-title { font-family:'Cormorant Garamond',serif; font-size:clamp(1.6rem,3vw,2.2rem); color:#fff; line-height:1.15; }
.sf-cta-sub { color:#f0e2d6; margin-top:.25rem; }
.sf-btn { background:#fdfbf7; color:#7a3818; font-weight:600; font-size:12px; letter-spacing:.14em; text-transform:uppercase; padding:.95rem 1.9rem; box-shadow:0 4px 0 #4d210e, 0 14px 20px -8px rgba(0,0,0,.4); transition:transform .15s, box-shadow .15s; display:inline-block; }
.sf-btn:hover { transform:translateY(-3px); box-shadow:0 7px 0 #4d210e, 0 20px 26px -8px rgba(0,0,0,.45); }
.sf-btn:active { transform:translateY(3px); box-shadow:0 1px 0 #4d210e; }
.sf-grid { display:grid; gap:2.5rem; grid-template-columns:1fr; padding-top:3.5rem; padding-bottom:3rem; }
@media (min-width:768px){ .sf-grid{ grid-template-columns:1.4fr 1fr 1.2fr 1.3fr; } }
.sf-brand { font-family:'Cormorant Garamond',serif; font-size:2rem; color:#fff; line-height:1; }
.sf-tag { color:#c27a52; margin:.3rem 0 1rem; font-weight:600; }
.sf-text { color:#d8c2b0; line-height:1.7; font-weight:300; max-width:22rem; }
.sf-social { display:flex; gap:.6rem; margin-top:1.25rem; }
.sf-social a { width:2.4rem; height:2.4rem; border-radius:50%; background:#333130; color:#e3d6c4; display:flex; align-items:center; justify-content:center; transition:background .25s, transform .25s; }
.sf-social a:hover { background:#9b4922; color:#fff; transform:translateY(-3px); }
.sf-head { font-family:'Cormorant Garamond',serif; font-size:1.3rem; color:#fff; margin-bottom:1rem; padding-bottom:.6rem; position:relative; }
.sf-head::after { content:""; position:absolute; left:0; bottom:0; width:2rem; height:2px; background:#9b4922; }
.sf-list { list-style:none; margin:0; padding:0; display:grid; gap:.7rem; color:#d8c2b0; }
.sf-list a { color:#d8c2b0; transition:color .2s, padding-left .2s; }
.sf-list a:hover { color:#fff; padding-left:4px; }
.sf-list i { color:#c27a52; width:1.2rem; margin-right:.25rem; }
.sf-bottom { display:flex; flex-wrap:wrap; gap:.75rem; align-items:center; justify-content:space-between; padding-top:1.5rem; padding-bottom:1.75rem; border-top:1px solid #3a3836; color:#a89684; font-size:12px; }
.sf-top { color:#d8c2b0; } .sf-top:hover { color:#fff; }

/* ===== Two-tone buttons: brown #7e5c46 + rust #9b4922 ===== */
html a:is([class*=" bg-charcoal-900"],[class^="bg-charcoal-900"]), html button:is([class*=" bg-charcoal-900"],[class^="bg-charcoal-900"]) {
  background-color:#7e5c46;
  background-image:linear-gradient(110deg,#7e5c46 0%,#9b4922 50%,#7e5c46 100%);
  background-size:220% 100%; background-position:0% 0;
  box-shadow:0 4px 0 #5c3420, 0 14px 20px -8px rgba(92,52,32,.45);
  transition:transform .15s, box-shadow .15s, background-position .5s ease;
}
html a:is([class*=" bg-charcoal-900"],[class^="bg-charcoal-900"]):hover, html button:is([class*=" bg-charcoal-900"],[class^="bg-charcoal-900"]):hover {
  background-color:#7e5c46; background-position:100% 0;
  box-shadow:0 7px 0 #5c3420, 0 20px 26px -8px rgba(92,52,32,.5);
}
html a:is([class*=" bg-charcoal-900"],[class^="bg-charcoal-900"]):active, html button:is([class*=" bg-charcoal-900"],[class^="bg-charcoal-900"]):active { box-shadow:0 1px 0 #5c3420, 0 4px 8px -4px rgba(92,52,32,.4); }

html a:is([class*=" border-charcoal-800"],[class^="border-charcoal-800"]) {
  border-color:#9b4922; color:#7e5c46;
  background-image:linear-gradient(110deg,#7e5c46,#9b4922); background-size:0% 100%; background-repeat:no-repeat;
  transition:background-size .35s ease, color .25s;
}
html a:is([class*=" border-charcoal-800"],[class^="border-charcoal-800"]):hover { background-size:100% 100%; color:#fff; background-color:transparent; }

