/* Ask God Whatever: an immersive page over the moving room. */
#section.immersive { background: #0b1312; backdrop-filter: none; transform: none; transition: opacity .7s var(--ease-in-out); }
#section.immersive .section-bar { position: relative; z-index: 3; background: linear-gradient(180deg, #0b1312b3, transparent); }
#section.immersive .section-crumbs button { background: #0b131299; backdrop-filter: blur(6px); }
#section.immersive .section-x { background: #0b131299; }
#section.immersive .section-scroll { position: relative; z-index: 2; margin-top: -76px; padding-top: 0; }
#section.immersive .section-body { width: 100%; }

.agw-bg { position: absolute; inset: 0; z-index: 1; overflow: hidden; --dark: 0; }
.agw-canvas, .agw-still, .agw-shade { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.agw-canvas { opacity: 0; transition: opacity .35s ease; }
.agw-bg.ready .agw-canvas { opacity: 1; }
.agw-still { display: none; }
.agw-still img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.62) saturate(.85); }
.agw-bg.no-webgl .agw-still { display: block; }
.agw-bg.no-webgl .agw-still img { animation: agw-drift 60s ease-in-out infinite alternate; transform-origin: 50% 55%; }
@keyframes agw-drift { from { transform: scale(1.08) translateX(-1.5%); } to { transform: scale(1.12) translateX(1.5%); } }
/* a soft darkening behind the words, so every line of text keeps AA contrast over the moving picture */
.agw-shade { background:
  linear-gradient(90deg, #070d0ccc 0%, #070d0c80 34%, transparent 62%),
  linear-gradient(0deg, #070d0ce6 0%, #070d0c66 30%, transparent 58%),
  linear-gradient(180deg, #070d0c99 0%, transparent 18%);
  opacity: calc(.85 + .15 * var(--dark)); }

.agw { position: relative; color: var(--cream); }
.agw-hero { position: relative; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); align-items: end; gap: clamp(20px, 4vw, 60px);
  padding: 120px clamp(20px, 5vw, 72px) calc(clamp(40px, 8vh, 90px) + var(--safe-b)); }
.agw-title h1 { font-size: clamp(54px, 9vw, 132px); line-height: .95; letter-spacing: -.01em; color: #fff6e6; margin: 14px 0 10px; text-shadow: 0 4px 30px #000c; }
.agw-title h1:focus { outline: none; }
.agw-title .eyebrow { color: #f3d29a; }
.agw-reel { position: relative; display: block; height: 1.3em; font: italic 500 clamp(26px, 3.4vw, 46px)/1.3 var(--display); color: #f3d29a; text-shadow: 0 2px 18px #000d; }
.agw-line { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transform: translateY(.4em); transition: opacity .7s var(--ease-out) .55s, transform 1s var(--ease-out) .55s; }
.agw-line.on { opacity: 1; transform: none; }
/* the old line leaves first; the new one rises in once it has gone, so two lines never overlap */
.agw-line.off { opacity: 0; transform: translateY(-.3em); transition: opacity .45s ease-in, transform .5s ease-in; }
:root[data-motion='reduce'] .agw-line { transform: none !important; transition: opacity 1.2s ease; }

.agw-coming { padding: 22px 24px 24px; border-radius: 16px; background: #0b1312c7; border: 1px solid #f3d29a40; backdrop-filter: blur(10px); box-shadow: 0 30px 60px #0008; }
.agw-coming .eyebrow { color: #f3d29a; }
.agw-coming h2 { font-size: clamp(26px, 2.4vw, 32px); margin: 10px 0 10px; color: #fff3da; }
.agw-coming p { color: #ead9bb; font-size: calc(15.5px * var(--text-scale)); }
.agw-coming .row { margin-top: 18px; }

.agw-motion { position: absolute; right: clamp(14px, 3vw, 28px); bottom: calc(14px + var(--safe-b)); width: 44px; height: 44px; border-radius: 50%; border: 1px solid #f3d29a55; background: #0b1312b3; color: var(--cream); font-size: 13px; display: grid; place-items: center; }
.agw-motion:hover { border-color: var(--gold); }

.agw-shows, .agw-episodes, .agw-foot { position: relative; width: min(1120px, 100%); margin: 0 auto; padding: clamp(40px, 8vh, 90px) clamp(18px, 4vw, 40px); }
.agw-shows > h2, .agw-episodes > h2 { font-size: clamp(34px, 5vw, 56px); color: #fff3da; margin: 10px 0 10px; }
.agw-shows .lede { color: var(--cream-soft); max-width: 56ch; margin: 0; }
.agw-board { display: grid; gap: clamp(26px, 4vw, 44px) clamp(20px, 3vw, 36px); grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-top: clamp(30px, 5vh, 50px); }
.agw-note { position: relative; padding: 34px 22px 22px; background: #fbf4e4; color: #2b2118; border-radius: 3px; box-shadow: 4px 14px 26px #000a;
  transform: rotate(var(--tilt, -1.4deg)); transform-origin: 50% 10px; }
.agw-note:nth-child(3n+2) { --tilt: 1.6deg; background: #f6ecd2; }
.agw-note:nth-child(3n) { --tilt: -0.5deg; background: #fdf8ee; }
.agw-note small { font-size: calc(11.5px * var(--text-scale)); letter-spacing: .14em; text-transform: uppercase; color: #7a5a22; }
.agw-note h3 { font: 600 calc(28px * var(--text-scale))/1.08 var(--display); color: #2b2118; margin: 8px 0 8px; }
.agw-note p { font-size: calc(15px * var(--text-scale)); line-height: 1.5; color: #3c2f22; }
.agw-note b { display: block; margin-top: 12px; font-size: calc(12.5px * var(--text-scale)); letter-spacing: .08em; text-transform: uppercase; color: #6b3a1c; }
.agw-note .tack { animation: none; }
.agw-note:hover .tack { animation: tack-wiggle .7s ease-in-out; }
/* the reveal: each note is pinned to the wall in turn as the visitor reaches the board */
.agw-board.pin .agw-note { opacity: 0; transform: translateY(-26px) rotate(calc(var(--tilt, -1.4deg) * 4)); }
.agw-board.pin .agw-note .tack { opacity: 0; }
.agw-board.pin.shown .agw-note { opacity: 1; transform: rotate(var(--tilt, -1.4deg)); transition: opacity .7s var(--ease-out) calc(var(--i) * .22s), transform 1s cubic-bezier(.2, 1.4, .4, 1) calc(var(--i) * .22s); }
.agw-board.pin.shown .agw-note .tack { animation: tack-in .6s var(--ease-out) both; animation-delay: calc(var(--i) * .22s + .55s); }
:root[data-motion='reduce'] .agw-board.pin .agw-note, :root[data-motion='reduce'] .agw-board.pin .agw-note .tack { opacity: 1; transform: rotate(var(--tilt, -1.4deg)); animation: none; transition: none; }

.agw-episodes .episodes { margin-top: 20px; }
.agw-foot { text-align: center; padding-bottom: calc(80px + var(--safe-b)); }
.agw-foot p { color: var(--cream-soft); max-width: 52ch; margin: 0 auto 20px; font-size: calc(17px * var(--text-scale)); }
.agw.paused .agw-line { transition: none; }
.agw.leaving { opacity: 0; transition: opacity .5s ease; }

@media (max-width: 860px) {
  .agw-hero { grid-template-columns: 1fr; align-items: end; padding-top: 96px; gap: 22px; }
  .agw-title h1 { font-size: clamp(48px, 14vw, 76px); }
  .agw-reel { font-size: clamp(22px, 6.4vw, 30px); }
  .agw-line { white-space: normal; width: 100%; }
  .agw-reel { height: 2.6em; }
  .agw-coming { padding: 18px; }
  .agw-shade { background: linear-gradient(0deg, #070d0cf0 0%, #070d0cb3 45%, #070d0c55 75%, #070d0c99 100%); }
  .agw-motion { top: calc(72px + var(--safe-t)); bottom: auto; }
}
@media (max-height: 480px) and (min-aspect-ratio: 1/1) {
  .agw-hero { grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); padding-top: 72px; padding-bottom: 18px; }
  .agw-title h1 { font-size: 46px; } .agw-reel { font-size: 22px; }
  .agw-coming { padding: 14px; } .agw-coming h2 { font-size: 20px; } .agw-coming p { font-size: 13.5px; }
  .agw-motion { top: 64px; bottom: auto; }
}

/* askgodwhatever.com: the same page as its own home page */
body.agw-page { background: #0b1312; }
.agw-home { position: fixed; inset: 0; background: #0b1312; overflow: hidden; }
.agw-home .section-scroll { position: absolute; inset: 0; z-index: 2; overflow: auto; overscroll-behavior: contain; }
.agw-home .agw-hero { padding-top: clamp(48px, 10vh, 120px); }
.agw-legal { margin-top: 26px !important; font-size: calc(13px * var(--text-scale)) !important; }
.agw-legal a { display: inline-flex; align-items: center; min-height: 44px; }
.agw-home .section-body { width: 100%; max-width: none; margin: 0; padding: 0; }
.agw-home .agw-hero { grid-template-columns: minmax(0, 1.35fr) minmax(300px, 400px); }
@media (max-width: 860px) { .agw-home .agw-hero { grid-template-columns: 1fr; } }
