html { background: #252624; }
/* Atmosphere layer for every direction: light, depth, grain, slow drift, page fades, scroll rise.
   Palette stays taupe / ivory / bronze (no green, no gold-heavy). Reduced motion and reduced transparency respected. */
html::before {
  content: ""; position: fixed; inset: -12%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(46% 38% at 80% 6%, rgba(201, 162, 122, .22), transparent 70%),
    radial-gradient(40% 36% at 6% 34%, rgba(115, 102, 91, .30), transparent 72%),
    radial-gradient(60% 40% at 58% 56%, rgba(88, 80, 70, .22), transparent 74%),
    radial-gradient(80% 50% at 50% 118%, rgba(10, 10, 9, .70), transparent 70%),
    linear-gradient(172deg, #34332F 0%, #282826 38%, #1F201E 100%);
}
:root[data-theme="light"] html::before, html[data-theme="light"]::before {
  background:
    radial-gradient(46% 38% at 80% 4%, rgba(246, 205, 160, .62), transparent 70%),
    radial-gradient(40% 36% at 4% 30%, rgba(255, 255, 255, .85), transparent 72%),
    radial-gradient(60% 40% at 58% 58%, rgba(214, 190, 160, .34), transparent 74%),
    radial-gradient(80% 50% at 50% 118%, rgba(120, 96, 72, .22), transparent 70%),
    linear-gradient(172deg, #FAF6EF 0%, #F2EDE4 45%, #E7DFD3 100%);
}
/* fine grain over everything, very quiet */
html::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
body { background: transparent !important; }
/* surfaces get a lit edge and depth instead of a flat fill */
.glass, .v-c .prose, .v-c .toc, .contact { box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.07), 0 30px 70px -30px rgba(10,6,2,.55), 0 2px 6px rgba(10,6,2,.18); }
:root[data-theme="light"] .glass, :root[data-theme="light"] .v-c .prose, :root[data-theme="light"] .v-c .toc { box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 0 0 1px rgba(255,255,255,.5), 0 30px 70px -30px rgba(90,66,44,.35), 0 2px 6px rgba(90,66,44,.12); }
.doc-hero h1 { text-shadow: 0 0 60px rgba(236, 196, 150, .18); }
:root[data-theme="light"] .doc-hero h1 { text-shadow: none; }

@media (prefers-reduced-motion: no-preference) {
  /* the glow breathes: transform only, very slow */
  html::before { animation: atmos-drift 70s ease-in-out infinite alternate; will-change: transform; }
  @keyframes atmos-drift { from { transform: translate3d(-1.5%, -1%, 0) scale(1.02); } to { transform: translate3d(1.5%, 1.2%, 0) scale(1.07); } }
  /* one authored arrival: the page fades through a soft blur when you move between pages */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 220ms cubic-bezier(.4,0,1,1) both vt-out; }
  ::view-transition-new(root) { animation: 420ms cubic-bezier(0,0,.2,1) both vt-in; }
  @keyframes vt-out { to { opacity: 0; filter: blur(8px); } }
  @keyframes vt-in { from { opacity: 0; filter: blur(8px); transform: translateY(10px); } }
  /* headings and cards rise into place as you scroll (nothing is hidden if scroll timelines are unsupported) */
  @supports (animation-timeline: view()) {
    .prose > h2, .summary, .faq details, .contact {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%;
    }
    @keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
  }
}
@media (prefers-reduced-transparency: reduce) { html::after { display: none; } }
