/* BrianBomar.com home page ("A+" design). Loaded only by the home page; see home.js. */
/* Layout: one continuous nebula scene behind the whole page; every block (header, banner, cards, footer) floats as inset glass, never edge to edge. */
:root {
  --night: #060A1E;
  --ink: #F4F7FF;
  --soft: #C9D3EA;
  --mute: #9FAACB;
  --aurora: #A9F0EA;
  --ice: #CFE0FF;
  --rose: #F6C9D6;
  --glass: rgba(255, 255, 255, .075);
  --glass-hi: rgba(255, 255, 255, .12);
  --edge: rgba(210, 228, 255, .18);
  --display: 'Instrument Serif', 'Instrument Serif Fallback', Georgia, serif;
  --body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--night); }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--night); }
a { color: var(--ice); text-decoration: none; }
a:hover { color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--aurora); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; }

/* ---------- The scene ---------- */
.page { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #060A1E 0%, #0A1236 20%, #121440 42%, #1A1236 66%, #22121F 100%); }
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cloud { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.c1 { left: 42%; top: -4%; width: 78vw; height: 26%; background: radial-gradient(closest-side, rgba(40, 200, 205, .60), transparent); }
.c2 { left: -18%; top: 2%; width: 68vw; height: 24%; background: radial-gradient(closest-side, rgba(52, 86, 230, .58), transparent); }
.c3 { left: 14%; top: 10%; width: 92vw; height: 7%; transform: rotate(-16deg); filter: blur(60px); background: linear-gradient(90deg, transparent, rgba(130, 240, 230, .40), rgba(150, 170, 255, .36), transparent); }
.c4 { left: 56%; top: 22%; width: 58vw; height: 22%; background: radial-gradient(closest-side, rgba(70, 150, 240, .46), transparent); }
.c5 { left: -12%; top: 36%; width: 64vw; height: 22%; background: radial-gradient(closest-side, rgba(120, 110, 245, .44), transparent); }
.c6 { left: 46%; top: 48%; width: 70vw; height: 24%; background: radial-gradient(closest-side, rgba(170, 130, 250, .38), transparent); }
.c7 { left: 6%; top: 62%; width: 84vw; height: 18%; background: radial-gradient(closest-side, rgba(70, 210, 200, .20), transparent); }
.c8 { left: 38%; top: 72%; width: 76vw; height: 24%; background: radial-gradient(closest-side, rgba(240, 112, 100, .40), transparent); }
.c9 { left: -18%; top: 82%; width: 70vw; height: 20%; background: radial-gradient(closest-side, rgba(250, 165, 115, .30), transparent); }
.c10 { left: 64%; top: 90%; width: 50vw; height: 14%; background: radial-gradient(closest-side, rgba(80, 200, 195, .24), transparent); }
.stars, .stars-bright { position: absolute; inset: 0; }
.stars { opacity: .7; background-image: radial-gradient(1.8px 1.8px at 23px 41px, #fff, transparent 70%), radial-gradient(1.4px 1.4px at 131px 97px, #E6F0FF, transparent 70%), radial-gradient(1.8px 1.8px at 197px 203px, #fff, transparent 70%), radial-gradient(1.4px 1.4px at 67px 251px, #D8F6FF, transparent 70%), radial-gradient(1.6px 1.6px at 243px 147px, #fff, transparent 70%), radial-gradient(1.2px 1.2px at 171px 12px, #F0E8FF, transparent 70%); background-size: 300px 300px; }
.stars-bright { opacity: .9; background-image: radial-gradient(3px 3px at 90px 140px, #fff, transparent 70%), radial-gradient(2.6px 2.6px at 410px 380px, #E2F8FF, transparent 70%), radial-gradient(3px 3px at 610px 90px, #FFF1E6, transparent 70%), radial-gradient(2.6px 2.6px at 280px 560px, #fff, transparent 70%); background-size: 720px 680px; filter: drop-shadow(0 0 4px rgba(200, 235, 255, 1)) drop-shadow(0 0 10px rgba(160, 210, 255, .6)); }
.grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .12; mix-blend-mode: overlay; }
@media (prefers-reduced-motion: no-preference) {
  .c1, .c5, .c8 { animation: drift-a 48s ease-in-out infinite alternate; }
  .c2, .c6, .c9 { animation: drift-b 60s ease-in-out infinite alternate; }
  .c4, .c7, .c10 { animation: drift-a 72s ease-in-out infinite alternate-reverse; }
  @keyframes drift-a { to { transform: translate(4vw, 2%) scale(1.06); } }
  @keyframes drift-b { to { transform: translate(-5vw, -2%) scale(1.04); } }
}

/* ---------- Shared pieces ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.glass { background: linear-gradient(180deg, var(--glass-hi), var(--glass)); -webkit-backdrop-filter: blur(26px) saturate(140%); backdrop-filter: blur(26px) saturate(140%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 0 0 1px var(--edge), 0 30px 60px -32px rgba(2, 4, 16, .75); border-radius: 28px; }
.kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--aurora); }
.h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(38px, 5vw, 60px); line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
.h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3vw, 36px); line-height: 1.06; text-wrap: balance; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--ice); }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translateX(3px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font: 600 15px/1 var(--body); cursor: pointer; transition: background .2s, transform .2s, color .2s; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-light { background: #F4F8FF; color: #0A1230; }
.btn-light:hover { background: #FFFFFF; color: #0A1230; transform: translateY(-1px); }
.btn-glass { background: rgba(255, 255, 255, .10); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.btn-glass:hover { background: rgba(255, 255, 255, .18); color: #FFFFFF; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
main { display: flex; flex-direction: column; gap: clamp(72px, 10vw, 140px); padding-block: 28px clamp(80px, 10vw, 120px); }

/* ---------- Header: a floating glass pill ---------- */
.site-header { position: relative; z-index: 20; padding-top: 18px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 10px 0; text-shadow: 0 1px 12px rgba(4, 8, 24, .6); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name b { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: .01em; }
.brand-name small { font-size: 10px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--mute); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--soft); }
.nav a:hover { background: rgba(255, 255, 255, .10); color: #FFFFFF; }

/* ---------- Banner ---------- */
.hero { position: relative; padding: clamp(28px, 4vw, 56px); min-height: 560px; display: flex; flex-direction: column; overflow: hidden; }
.slides { position: relative; flex: 1; display: grid; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; }
.slide-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.slide-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(48px, 7vw, 92px); line-height: .98; letter-spacing: -.015em; text-wrap: balance; }
.slide-title a { color: #FFFFFF; }
.slide-lede { margin: 0; max-width: 54ch; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--soft); }
.slide-note { margin: -6px 0 0; max-width: 54ch; font-size: 15px; color: var(--mute); }
.slide-note a { text-decoration: underline; text-underline-offset: 3px; }
.slide-link { font-size: 15px; }
.slide-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 340px; }
.slide-art::before { content: ""; position: absolute; width: 360px; height: 360px; max-width: 100%; border-radius: 50%; background: radial-gradient(closest-side, rgba(150, 220, 255, .30), transparent); filter: blur(10px); }
.slide-art svg, .slide-art img { position: relative; }
.cover { width: min(280px, 100%); height: auto; border-radius: 6px; transform: rotate(3deg); box-shadow: 0 0 0 1px rgba(190, 220, 255, .35), 0 0 50px rgba(127, 178, 255, .40), 0 30px 50px -20px rgba(0, 0, 0, .8); }
.slide[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) { .slide.is-active .slide-text, .slide.is-active .slide-art { animation: rise .7s ease-out both; } .slide.is-active .slide-art { animation-delay: .08s; } @keyframes rise { from { transform: translateY(12px); } to { transform: none; } } }
.controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.arrows { display: flex; gap: 8px; }
.arrow { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .10); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); color: var(--ink); cursor: pointer; }
.arrow:hover { background: rgba(255, 255, 255, .18); }
.arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dots { display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .28); cursor: pointer; transition: width .3s, background .3s; }
.dot[aria-current="true"] { width: 30px; background: var(--aurora); box-shadow: 0 0 10px rgba(169, 240, 234, .7); }

/* Glowing series images (same drawings as the current site) */
.glow-line { fill: none; stroke: #EEF6FF; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.glow-thin { stroke-width: 5; }
.glow-fill { fill: #EEF6FF; }
.glow-line, .glow-fill { filter: drop-shadow(0 0 3px rgba(255, 255, 255, .9)) drop-shadow(0 0 12px rgba(150, 210, 255, .85)) drop-shadow(0 0 28px rgba(127, 178, 255, .5)); }
.glow-soft { fill: #CFE2FF; opacity: .45; filter: blur(2px) drop-shadow(0 0 22px rgba(207, 226, 255, .9)); }
.glow-flame { fill: #FFFFFF; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 18px rgba(150, 210, 255, .95)) drop-shadow(0 0 40px rgba(127, 178, 255, .6)); }
.link-o { fill: none; stroke: #EEF6FF; stroke-width: 17; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .9)) drop-shadow(0 0 10px rgba(150, 210, 255, .85)) drop-shadow(0 0 26px rgba(127, 178, 255, .5)); }
.link-e { fill: #EEF6FF; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .9)) drop-shadow(0 0 10px rgba(150, 210, 255, .85)); }
.art-bolt { width: 120px; height: 340px; }
.art-chain { width: 110px; height: 380px; }
.art-moon, .art-glyph { width: 230px; height: 260px; }

/* ---------- Teaching series ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.series { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; margin: 0; padding: 0; }
.series-card { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 30px; transition: transform .25s, box-shadow .25s; }
.series-card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 1px rgba(210, 228, 255, .32), 0 0 40px -10px rgba(150, 200, 255, .5), 0 36px 60px -30px rgba(2, 4, 16, .8); }
.series-icon { width: 48px; height: 56px; display: flex; align-items: center; }
.series-icon svg { width: 36px; height: 48px; overflow: visible; }
.slide-art svg { overflow: visible; }
.series-card .h3 a { color: #FFFFFF; }
.series-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--soft); }
.series-card .text-link { margin-top: 2px; }
.series-acts { margin-top: auto; padding-top: 14px; display: flex; gap: 8px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 52px); }
.about-photo { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 5px rgba(255, 255, 255, .16), 0 0 60px rgba(170, 150, 255, .40), 0 0 120px rgba(127, 178, 255, .22); }
.about-text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.about-text p { margin: 0; max-width: 64ch; font-size: 17px; line-height: 1.7; color: var(--soft); }

/* ---------- Deliverance + connect ---------- */
.pair { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.panel { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 3.5vw, 44px); }
.panel p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--soft); }
.panel .note { padding-left: 14px; box-shadow: inset 2px 0 0 rgba(246, 201, 214, .55); color: #E9D6DF; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.signup { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 8px; }
.signup label, .form label { font-size: 14px; font-weight: 600; color: var(--soft); }
.signup-row { display: flex; gap: 8px; }
.field { width: 100%; min-width: 0; min-height: 48px; padding: 0 18px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); color: #FFFFFF; font: 400 15px var(--body); }
.field::placeholder { color: #8F9ABA; }
.field:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--aurora); }
textarea.field { min-height: 132px; padding: 14px 18px; border-radius: 20px; resize: vertical; line-height: 1.5; }
.status { min-height: 1.2em; margin: 0; font-size: 14px; color: var(--aurora); }

/* ---------- Reach out ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 56px); padding: clamp(28px, 4vw, 52px); }
.contact-intro { display: flex; flex-direction: column; gap: 14px; }
.contact-intro p { margin: 0; max-width: 40ch; font-size: 17px; line-height: 1.65; color: var(--soft); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 8px; }
.form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.site-footer { padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px 26px; border-radius: 999px; font-size: 14px; color: var(--mute); }
.foot nav { display: flex; gap: 22px; }
.foot a { color: var(--soft); }

/* ---------- Unbounded bands (replace the rounded glass cards) ----------
   A frosted strip with a lit top edge and a faint bottom edge; it has no sides and fades into the sky left and right.
   Content keeps clear of the fade with wide side padding. */
.band { position: relative; border-radius: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .06)); -webkit-backdrop-filter: blur(26px) saturate(140%); backdrop-filter: blur(26px) saturate(140%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -1px 0 rgba(255, 255, 255, .12); -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); padding-left: max(9%, 40px) !important; padding-right: max(9%, 40px) !important; }
.series.band { padding-block: 44px; gap: 0; }
.series.band > li { padding: 0 32px; }
.series.band > li:first-child { padding-left: 0; }
.series.band > li:last-child { padding-right: 0; }
.series.band > li + li { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .14); }
.series-card { padding: 0; }
.series-card:hover { transform: none; box-shadow: none; }
.pair.band { gap: 0; padding-block: 8px; }
.pair.band > .panel { padding-inline: 0; }
.pair.band > .panel:first-child { padding-right: 40px; }
.pair.band > .panel + .panel { padding-left: 40px; box-shadow: inset 1px 0 0 rgba(255, 255, 255, .14); }
.foot { border-radius: 0; padding: 22px 0 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
@media (max-width: 960px) {
  .series.band > li { padding: 28px 0; }
  .series.band > li:first-child { padding-top: 0; }
  .series.band > li:last-child { padding-bottom: 0; }
  .series.band > li + li { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
  .pair.band > .panel:first-child { padding-right: 0; }
  .pair.band > .panel + .panel { padding-left: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
}
@media (max-width: 760px) {
  .band { -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); padding-left: 28px !important; padding-right: 28px !important; }
  .foot { border-radius: 0; }
  .hero.band { border-radius: 0; }
  /* Phones: clouds sized by screen width in both directions so they stay round, wide washes (not tall ovals) */
  .cloud { width: 150vw; height: 120vw; filter: blur(70px); }
  .c1 { left: 10vw; } .c2 { left: -70vw; } .c4 { left: 20vw; } .c5 { left: -60vw; } .c6 { left: 10vw; }
  .c7 { left: -40vw; } .c8 { left: 0; } .c9 { left: -70vw; } .c10 { left: 30vw; }
  .c3 { left: -25vw; width: 150vw; height: 40vw; filter: blur(50px); }
}

/* Brighter stars (chosen): larger, whiter points and more glinting stars */
.stars.stars { opacity: 1; background-image: radial-gradient(2.2px 2.2px at 23px 41px, #fff, transparent 70%), radial-gradient(1.8px 1.8px at 131px 97px, #EAF3FF, transparent 70%), radial-gradient(2.2px 2.2px at 197px 203px, #fff, transparent 70%), radial-gradient(1.8px 1.8px at 67px 251px, #DDF8FF, transparent 70%), radial-gradient(2px 2px at 243px 147px, #fff, transparent 70%), radial-gradient(1.6px 1.6px at 171px 12px, #F3ECFF, transparent 70%), radial-gradient(1.6px 1.6px at 280px 230px, #fff, transparent 70%); }
.stars-bright.stars-bright { opacity: 1; background-image: radial-gradient(3.8px 3.8px at 90px 140px, #fff, transparent 70%), radial-gradient(3.4px 3.4px at 410px 380px, #E8FAFF, transparent 70%), radial-gradient(3.8px 3.8px at 610px 90px, #FFF3EA, transparent 70%), radial-gradient(3.4px 3.4px at 280px 560px, #fff, transparent 70%), radial-gradient(3px 3px at 540px 300px, #fff, transparent 70%); filter: drop-shadow(0 0 5px rgba(210, 240, 255, 1)) drop-shadow(0 0 14px rgba(160, 210, 255, .75)); }

/* ---------- Smaller screens ---------- */
@media (max-width: 960px) {
  .series { grid-template-columns: minmax(0, 1fr); }
  .pair, .contact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .bar { flex-wrap: wrap; padding: 6px 0; }
  .nav { width: calc(100% + 20px); margin-left: -10px; justify-content: space-between; }
  .nav a { padding: 8px 10px; font-size: 14px; }
  .hero { min-height: 0; border-radius: 24px; }
  .slide { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .slide-art { order: -1; min-height: 0; height: 150px; justify-content: flex-start; }
  .slide-art::before { width: 160px; height: 160px; left: -10px; }
  .art-bolt { width: 60px; height: 150px; }
  .art-chain { width: 48px; height: 150px; }
  .art-moon, .art-glyph { width: 130px; height: 150px; }
  .cover { width: 108px; }
  .controls { margin-top: 22px; }
  .about { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .about-photo { width: 132px; height: 132px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .signup-row { flex-direction: column; }
  .foot { border-radius: 24px; flex-direction: column; align-items: flex-start; }
  .glass { border-radius: 24px; }
}

/* Site plumbing */
.btn-row-top { margin-top: 0; padding-top: 0; }
.hp { position: absolute; left: -9999px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 50; padding: 12px 16px; border-radius: 999px; background: #F4F8FF; color: #0A1230; }
.skip:focus { left: 12px; top: 12px; }
.btn[disabled] { opacity: .6; cursor: default; }

/* Phones: the banner image sits small in the top-right corner beside the title instead of on its own row */
@media (max-width: 760px) {
  .slide { position: relative; display: block; }
  .slide-art { position: absolute; top: 0; right: 0; order: 0; width: 76px; height: 100px; min-height: 0; justify-content: center; align-items: flex-start; pointer-events: none; }
  .slide-art::before { width: 110px; height: 110px; left: auto; top: -6px; }
  .slide-art .art-bolt { width: 34px; height: 96px; }
  .slide-art .art-chain { width: 27px; height: 98px; }
  .slide-art .art-moon, .slide-art .art-glyph { width: 76px; height: 86px; }
  .slide-art .cover { width: 70px; transform: rotate(4deg); box-shadow: 0 0 0 1px rgba(190, 220, 255, .35), 0 0 24px rgba(127, 178, 255, .4), 0 14px 24px -10px rgba(0, 0, 0, .8); }
  .slide-text { gap: 16px; }
  .slide-text .kicker, .slide-title { padding-right: 88px; }
  .slide-title { font-size: clamp(36px, 10.5vw, 46px); line-height: 1.02; }
  .slide-lede { font-size: 16px; }
  .slide-note { font-size: 14px; margin-top: -4px; }
}

/* Large screens: the bands run the full width of the window and fade at the
   screen edges; their content stays centred on the same 1200px column as the rest of the page. */
@media (min-width: 1100px) {
  .band {
    margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
    padding-left: max(48px, calc(50vw - 600px)) !important; padding-right: max(48px, calc(50vw - 600px)) !important;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }
}

/* Teaching Series: "constellation" (no container). Each series floats on the sky under a glowing image
   in a soft halo, words centred beneath, and a faint dotted line joins the three images. */
.constellation { position: relative; gap: 48px; padding: 0; list-style: none; text-align: center; }
.constellation::before { content: ""; position: absolute; left: 17%; right: 17%; top: 64px; height: 1px; background: repeating-linear-gradient(90deg, rgba(200, 230, 255, .55) 0 6px, transparent 6px 14px); pointer-events: none; }
.constellation .series-card { align-items: center; gap: 14px; padding: 0; }
.constellation .series-card p { max-width: 36ch; }
.constellation .series-acts { justify-content: center; padding-top: 8px; }
.orb { position: relative; width: 128px; height: 128px; display: grid; place-items: center; }
.orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(150, 215, 255, .35), rgba(150, 215, 255, .08) 60%, transparent); }
.orb svg.icon { position: relative; width: auto; height: 84px; overflow: visible; }
@media (max-width: 960px) {
  .constellation { gap: 56px; }
  .constellation::before { display: none; }
}
@media (max-width: 760px) {
  .orb { width: 104px; height: 104px; }
  .orb svg.icon { height: 68px; }
}
/* "See all teaching series" sits centred under the constellation */
.all-series { margin: 56px 0 0; text-align: center; }
@media (max-width: 760px) { .all-series { margin-top: 48px; } }
/* ...left-aligned, text only, with a soft glow */
.all-series { text-align: left; }
.glow-link { font-size: 15px; color: #E6F1FF; text-shadow: 0 0 10px rgba(169, 220, 255, .75), 0 0 24px rgba(127, 178, 255, .45); }
.glow-link:hover { color: #FFFFFF; text-shadow: 0 0 12px rgba(190, 235, 255, .95), 0 0 30px rgba(127, 178, 255, .6); }
/* Text links that carry an icon (e.g. Book at OKCFree.com), and a looser row for links instead of buttons */
.text-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.glow-link svg { filter: drop-shadow(0 0 6px rgba(169, 220, 255, .7)); }
.panel .btn-row:has(.text-link) { gap: 14px 32px; align-items: center; }

/* Banner height is locked to its tallest slide: every slide stays in the layout (stacked in the same
   cell) and only the current one is visible, so the arrows and dots never move between slides. */
.slides > .slide[hidden] { display: grid !important; visibility: hidden; }
@media (max-width: 760px) { .slides > .slide[hidden] { display: block !important; } }

/* ---------- Shared across A+ pages ---------- */
.nav a[aria-current="page"] { color: #FFFFFF; box-shadow: inset 0 -2px 0 var(--aurora); border-radius: 0; }
.page-intro { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px 64px; align-items: center; }
.intro-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.page-title { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: clamp(48px, 7vw, 88px); line-height: .98; letter-spacing: -.015em; text-wrap: balance; }
.lede { margin: 0; max-width: 68ch; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.7; color: var(--soft); }
.intro-art { display: flex; justify-content: center; }
.orb-lg { width: 240px; height: 240px; }
.orb-lg svg.icon { height: auto; width: 190px; }
.glow-hair { stroke-width: 4; opacity: .8; }

/* ---------- Teaching page: every series as a row in one band ---------- */
.series-rows { list-style: none; margin-block: 0; padding-block: 12px; }
.series-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px 36px; align-items: center; padding: 30px 0; }
.series-row + .series-row { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13); }
.row-icon { display: flex; align-items: center; justify-content: center; height: 96px; }
.row-icon svg.icon { width: auto; height: 80px; overflow: visible; }
.row-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.row-text .h3 a { color: #FFFFFF; }
.row-text p { margin: 0; max-width: 64ch; font-size: 16px; line-height: 1.6; color: var(--soft); }
.row-acts { display: flex; gap: 8px; }
@media (max-width: 760px) {
  .page-intro { grid-template-columns: minmax(0, 1fr); }
  .intro-art { display: none; }
  .series-row { grid-template-columns: 52px minmax(0, 1fr); gap: 14px 18px; align-items: start; padding: 26px 0; }
  .row-icon { height: 60px; }
  .row-icon svg.icon { height: 52px; }
  .row-acts { grid-column: 1 / -1; }
}

svg.art-bolt { overflow: visible; }

/* ---------- Series pages ---------- */
.series-intro { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px 64px; align-items: center; }
.series-intro .intro-text { gap: 16px; }
.back-link { align-self: flex-start; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--soft); }
.back-link:hover { color: #FFFFFF; }
.link-row { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 10px; }
.series-art { position: relative; justify-content: center; min-height: 380px; align-items: center; }
.series-art::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(150, 220, 255, .28), transparent); filter: blur(10px); }
.series-art svg { position: relative; overflow: visible; }
.series-art .art-bolt { width: 130px; height: 380px; }
.series-art .art-chain { width: 110px; height: 380px; }
.series-art .art-moon, .series-art .art-glyph { width: 250px; height: 280px; }

.lessons { list-style: none; margin-block: 0; padding-block: 8px; }
.lesson { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px 28px; align-items: center; padding: 24px 0; }
.lesson + .lesson { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.lesson-num { font-family: var(--display); font-size: 40px; line-height: 1; color: #D7E6FF; text-shadow: 0 0 14px rgba(169, 220, 255, .55); font-variant-numeric: tabular-nums; }
.lesson-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lesson-title { margin: 0; font-family: var(--body); font-weight: 600; font-size: 18px; line-height: 1.35; }
.lesson-title a { color: #FFFFFF; }
.lesson-title a:hover { color: var(--aurora); }
.lesson-text p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--soft); max-width: 70ch; }
.lesson-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.btn .count { padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 11px; }
.series-foot-links { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 36px 0 0; }
@media (max-width: 960px) {
  .lesson { grid-template-columns: 52px minmax(0, 1fr); }
  .lesson-acts { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 760px) {
  .series-intro { grid-template-columns: minmax(0, 1fr); }
  .series-art { display: none; }
  .lesson { grid-template-columns: 40px minmax(0, 1fr); gap: 8px 14px; padding: 20px 0; }
  .lesson-num { font-size: 28px; }
  .lesson-title { font-size: 16px; }
  .lesson-acts { grid-column: 1 / -1; }
  .series-foot-links { flex-direction: column; }
}

@media (max-width: 760px) {
  .lesson { align-items: start; }
  .lesson-num { padding-top: 2px; }
  .lesson-acts { flex-wrap: nowrap; gap: 6px; }
  .lesson-acts .btn { padding: 0 11px; gap: 6px; font-size: 12px; }
}
@media (max-width: 420px) { .lesson-acts .btn .count { display: none; } }

/* ---------- Resources, Deliverance, Contact, 404 ---------- */
.page-intro-solo { grid-template-columns: minmax(0, 1fr); }
.inline-link { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }
.inline-link:hover { color: #FFFFFF; }
.resources { list-style: none; margin-block: 0; padding-block: 12px; }
.resource { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 40px; align-items: center; padding: 28px 0; }
.resource + .resource { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.resource-feature { grid-template-columns: 200px minmax(0, 1fr); }
.resource-cover { display: block; width: 200px; height: auto; border-radius: 4px; transform: rotate(-2deg); box-shadow: 0 0 0 1px rgba(190, 220, 255, .3), 0 0 40px rgba(127, 178, 255, .3), 0 24px 40px -18px rgba(0, 0, 0, .8); }
.resource-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.resource-text .h3 a { color: #FFFFFF; }
.resource-text p { margin: 0; max-width: 64ch; font-size: 16px; line-height: 1.65; color: var(--soft); }
.resource-text .kicker { color: var(--aurora); }
.resource-note { font-size: 14px !important; color: var(--mute) !important; }
.resource-note a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }
.soon { font-size: 14px; color: var(--mute); }
.contact-solo .form { max-width: 760px; }
.contact-solo.band { padding-block: 40px; }
@media (max-width: 760px) {
  .resource-feature { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .resource-cover { width: 140px; }
}

/* ---------- Scripture appendix ---------- */
.appendix-meta { font-size: 15px; color: var(--mute); }
.appendix.band { padding-block: 36px; }
.appendix-intro { margin: 0 0 8px; font-family: var(--display); font-style: italic; font-size: 22px; color: var(--soft); }
.passage { max-width: 74ch; padding: 26px 0; }
.passage + .passage { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.passage-text { margin: 0 0 10px; font-size: 18px; line-height: 1.8; color: #EEF2FB; }
.vn { margin-right: 3px; font-size: 11px; font-weight: 700; color: var(--aurora); }
.passage-ref { margin: 4px 0 0; font-size: 15px; font-weight: 600; }
.passage-ref a { color: var(--ice); }
.ref-ver { margin-left: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--mute); }
.passage-note { margin: 6px 0 0; font-size: 14px; color: var(--mute); }
.passage-note a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }
.appendix-notice { margin-top: 20px; padding-top: 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.appendix-notice p { margin: 0 0 8px; max-width: 80ch; font-size: 13px; line-height: 1.55; color: var(--mute); }

/* Printing (Scripture appendices): plain black on white, no sky, no navigation */
@media print {
  html, body, .page { background: #fff !important; color: #000 !important; }
  .sky, .site-header, .site-footer, .skip, .no-print, .intro-art { display: none !important; }
  main { padding: 0 !important; gap: 12px !important; }
  .wrap { max-width: none !important; padding: 0 !important; }
  .band { background: none !important; box-shadow: none !important; -webkit-mask-image: none !important; mask-image: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; margin: 0 !important; padding: 0 !important; }
  .page-title, .lede, .kicker, .appendix-meta, .appendix-intro, .passage-text, .passage-ref a, .ref-ver, .passage-note, .appendix-notice p { color: #000 !important; text-shadow: none !important; }
  .page-title { font-size: 28px !important; }
  .vn { color: #555 !important; }
  .passage { break-inside: avoid; box-shadow: none !important; padding: 12px 0 !important; }
  .appendix-notice { box-shadow: none !important; border-top: 1px solid #ccc; }
}

/* Short pages: the sky always fills the window and the footer sits at the bottom */
.page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.page > main { flex: 1 0 auto; }
/* Large intro images keep to a fixed height whatever their shape (tall chain, wide scroll) */
.orb-lg svg.icon { width: auto; height: 180px; max-width: 220px; }

/* Phones: the bright clouds sit toward the left and right edges, so the centre column, where the text is,
   stays darker and the words never wash out over a light cloud */
@media (max-width: 760px) {
  .c1 { left: 55vw; } .c3 { left: 40vw; } .c4 { left: -110vw; }
  .c6 { left: 60vw; } .c7 { left: -110vw; } .c8 { left: 55vw; }
  .c10 { left: -100vw; }
  .c1, .c4, .c6 { opacity: .85; }
}

/* Menu: no boxes. Hover brightens the word with a soft glow; the current page also gets a short glowing
   aurora line beneath it. Same treatment for every link, selected or not. */
.nav a, .nav a:hover, .nav a[aria-current="page"] { position: relative; background: none; border-radius: 0; box-shadow: none; transition: color .2s, text-shadow .2s; }
.nav a:hover, .nav a:focus-visible { color: #FFFFFF; text-shadow: 0 0 10px rgba(169, 220, 255, .75), 0 0 22px rgba(127, 178, 255, .4); }
.nav a[aria-current="page"] { color: #FFFFFF; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 22px; height: 2px; margin-left: -11px; border-radius: 2px; background: var(--aurora); box-shadow: 0 0 8px rgba(169, 240, 234, .9), 0 0 16px rgba(169, 240, 234, .5); }

/* Sliding menu line (moved by site.js); the fixed ::after line remains only when JavaScript is off */
.nav { position: relative; }
.nav-line { position: absolute; left: 0; top: 0; width: 22px; height: 2px; border-radius: 2px; background: var(--aurora); box-shadow: 0 0 8px rgba(169, 240, 234, .9), 0 0 16px rgba(169, 240, 234, .5); opacity: 0; pointer-events: none; }
.nav-line.ready { transition: transform .38s cubic-bezier(.3, .7, .2, 1), opacity .2s; }
.js .nav a[aria-current="page"]::after { display: none; }
@media (prefers-reduced-motion: reduce) { .nav-line.ready { transition: opacity .2s; } }

/* No grey flash on tapped links and buttons on phones */
a, button { -webkit-tap-highlight-color: transparent; }

/* The page container must never be scrollable itself: the clouds are clipped to the sky layer, and the page
   uses overflow: clip (not hidden), so phones can't scroll it internally when a link is tapped (that inner
   scroll showed as a jump before each page change). */
.sky { overflow: hidden; overflow: clip; }
.page { overflow: hidden; overflow: clip; }

/* ---------- Phones and tablets: same look, far cheaper to draw ----------
   Fast scrolling on iPhone showed black boxes because the page was too costly to repaint: a full-page grain
   filter, a glow filter on the full-height star layer, ten blurred clouds that drift, and frosted-glass blur
   on bands thousands of pixels tall. On touch screens: no grain, star glow drawn into the stars, clouds stay
   still and get their softness from their gradients (no blur filter), and bands are tinted instead of blurred. */
@media (hover: none), (max-width: 760px) {
  .grain { display: none; }
  .cloud { filter: none !important; animation: none !important; will-change: auto; }
  .c1, .c2, .c4, .c5, .c6, .c7, .c8, .c9, .c10 { background-size: 100% 100%; }
  .c3 { display: none; }
  .stars-bright.stars-bright { filter: none; opacity: .95; background-image:
    radial-gradient(6px 6px at 90px 140px, rgba(210, 240, 255, .9), rgba(150, 210, 255, .25) 45%, transparent 70%),
    radial-gradient(5px 5px at 410px 380px, rgba(220, 245, 255, .85), rgba(150, 210, 255, .2) 45%, transparent 70%),
    radial-gradient(6px 6px at 610px 90px, rgba(255, 240, 230, .85), rgba(255, 200, 170, .2) 45%, transparent 70%),
    radial-gradient(5px 5px at 280px 560px, rgba(220, 245, 255, .85), rgba(150, 210, 255, .2) 45%, transparent 70%),
    radial-gradient(4px 4px at 540px 300px, rgba(255, 255, 255, .8), transparent 70%); }
  .band { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: linear-gradient(180deg, rgba(150, 175, 255, .16), rgba(120, 140, 230, .10)) !important; }
  .btn-glass, .field { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .glow-line, .glow-fill, .link-o, .link-e { filter: drop-shadow(0 0 3px rgba(255, 255, 255, .9)) drop-shadow(0 0 12px rgba(150, 210, 255, .8)); }
}

/* Chrome on iPhone: when a link is tapped its toolbar slides back in, resizing the screen, and Chrome's
   "scroll anchoring" then scrolls the page to keep the tapped link in place (a visible jump before the next
   page loads). The site has no content that loads in late, so anchoring isn't needed: turn it off. */
html, body { overflow-anchor: none; }

/* ---------- Refinements from a design review ---------- */
/* Font fallback sized like Instrument Serif, so headings don't jump when the web font arrives */
@font-face { font-family: 'Instrument Serif Fallback'; src: local('Georgia'); size-adjust: 84%; ascent-override: 98%; descent-override: 26%; }
/* Display type: a touch more air (light serif on a dark sky reads pinched when tight) */
.slide-title, .page-title { letter-spacing: 0; line-height: 1.04; }
.h2 { letter-spacing: 0; }
.h3, .brand-name b { letter-spacing: .005em; }
@media (max-width: 760px) { .slide-title, .page-title { line-height: 1.07; } }
/* Brand subtitle: a little larger and brighter */
.brand-name small { font-size: 11px; letter-spacing: .22em; color: #B8C5E2; }
/* Contrast: the banner note and form placeholders; a clear focus ring on fields */
.slide-note { color: #D5DFF2; }
.field::placeholder { color: #B4C0DE; }
.field:focus { box-shadow: inset 0 0 0 2px var(--aurora); }
/* Footer: flat line on phones too (an older rule rounded it into a faint arc) */
.foot { border-radius: 0 !important; }
/* Full-width bands measure the page, not the window, so a Windows scrollbar can't offset their fade */
.page { container-type: inline-size; }
@media (min-width: 1100px) {
  .band { margin-left: calc(50% - 50cqw); margin-right: calc(50% - 50cqw); padding-left: max(48px, calc(50cqw - 600px)) !important; padding-right: max(48px, calc(50cqw - 600px)) !important; }
}
/* Touch targets at least 44px: the banner dots keep their look but get a larger tap area */
.dot { position: relative; }
.dot::before { content: ""; position: absolute; inset: -17px -4px; }
@media (hover: none), (max-width: 760px) {
  .btn-sm { min-height: 44px; }
  .nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; margin: 0 -6px; }
}
@media (max-width: 760px) { .bar { gap: 10px; } .nav { padding-top: 4px; } }
