:root {
  --bg: #161C24;
  --panel: #22292F;
  --ink: #EEEBE4;
  --accent: #CF6F54;
  --muted: rgba(238, 235, 228, .6);
  --sub: rgba(238, 235, 228, .86);
  --faint: rgba(238, 235, 228, .14);
  --paper: #DBD5C8; /* warm stone; stepped down from Porcelain Mist (#F4F1EA) because that glared at full-screen size */
  --gutter: clamp(20px, 5vw, 72px);
  --nav-h: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Figtree, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 17px; line-height: 1.3; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 600; letter-spacing: -.025em; line-height: 1.02; text-wrap: balance; }
em { font-style: normal; color: var(--accent); }
svg text { font-family: Figtree, 'Helvetica Neue', Arial, sans-serif; }

.eyebrow, .kicker { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.lede { color: var(--sub); line-height: 1.3; font-size: clamp(17px, 1.5vw, 21px); max-width: 34em; text-wrap: pretty; }
.btn { display: inline-flex; align-items: center; height: 52px; padding: 0 28px; border-radius: 999px; background: var(--accent); color: #161C24; font-weight: 600; text-decoration: none; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); background: #DC8669; }
.btn.small { height: 38px; padding: 0 18px; font-size: 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gutter); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(22, 28, 36, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--faint); }
.brand img { height: 42px; width: auto; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 13px; font-weight: 500; letter-spacing: .04em; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-links a.on { box-shadow: 0 6px 0 -4px var(--accent); }

/* Process: the six tools live under one nav item */
.nav-links { align-items: center; }
.nav-drop { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--muted); cursor: pointer; transition: color .2s; }
.nav-drop-btn::after { content: ''; width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s, margin .2s; }
.nav-drop-btn:hover, .nav-drop-btn.on, .nav-drop.open .nav-drop-btn { color: var(--ink); }
.nav-drop.open .nav-drop-btn::after { transform: rotate(225deg); margin-top: 3px; }
.nav-drop-list { position: absolute; top: 100%; left: -18px; min-width: 270px; margin-top: 14px; padding: 8px; display: grid; border: 1px solid var(--faint); border-radius: 14px; background: rgba(22, 28, 36, .98); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
.nav-drop-list::before { content: ''; position: absolute; inset: -16px 0 100% 0; }
.nav-drop.open .nav-drop-list, .nav-drop:hover .nav-drop-list, .nav-drop:focus-within .nav-drop-list { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
.nav-drop-list a { display: flex; align-items: baseline; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--sub); white-space: nowrap; }
.nav-drop-list a b { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--accent); }
.nav-drop-list a:hover, .nav-drop-list a.on { background: var(--panel); color: var(--ink); box-shadow: none; }

/* phone menu */
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s, opacity .2s, top .3s; }
.menu-btn span:nth-child(1) { top: 14px; } .menu-btn span:nth-child(2) { top: 21px; } .menu-btn span:nth-child(3) { top: 28px; }
.menu-open .menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 19; display: flex; flex-direction: column; gap: 22px; padding: calc(var(--nav-h) + 22px) var(--gutter) 28px; background: var(--bg); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility 0s .25s; }
.menu-open .menu { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
.menu-open .nav { background: var(--bg); border-color: var(--faint); }
.menu ol, .menu ul { list-style: none; margin: 0; padding: 0; }
.menu ol a { display: flex; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--faint); font-size: 24px; font-weight: 600; letter-spacing: -.015em; text-decoration: none; }
.menu ol b { font-size: 12px; letter-spacing: .14em; color: var(--accent); }
.menu ul a { display: block; padding: 7px 0; font-size: 16px; color: var(--muted); text-decoration: none; }
.menu { gap: 0; }
.menu-group summary, .menu-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--faint); font-size: 26px; font-weight: 600; letter-spacing: -.015em; text-decoration: none; color: var(--ink); cursor: pointer; list-style: none; }
.menu-group summary::-webkit-details-marker { display: none; }
.menu-group summary::after { content: ''; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .2s; }
.menu-group[open] summary::after { transform: rotate(225deg); }
.menu-group ol { padding: 4px 0 8px 2px; border-bottom: 1px solid var(--faint); }
.menu-group ol a { padding: 9px 0; border-bottom: 0; font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--sub); }
.menu ul { margin: 20px 0 28px; }
.menu .btn { align-self: flex-start; margin-top: auto; }

html.menu-open { overflow: hidden; }

/* hero */
.hero { min-height: 100svh; padding: calc(var(--nav-h) + 6vh) var(--gutter) 40px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
/* slow, soft colour drifting behind the hero */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; filter: blur(90px); opacity: .5; }
.blobs i { position: absolute; border-radius: 50%; will-change: transform; }
.blobs i:nth-child(1) { width: 46vw; height: 46vw; left: 48%; top: -14%; background: #CF6F54; opacity: .34; animation: drift-a 26s ease-in-out infinite alternate; }
.blobs i:nth-child(2) { width: 40vw; height: 40vw; left: -8%; top: 34%; background: #3C5568; opacity: .5; animation: drift-b 32s ease-in-out infinite alternate; }
.blobs i:nth-child(3) { width: 34vw; height: 34vw; left: 58%; top: 46%; background: #8FB881; opacity: .16; animation: drift-c 38s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(-16vw, 12vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(18vw, -10vh) scale(.9); } }
@keyframes drift-c { to { transform: translate(-22vw, -14vh) scale(1.2); } }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 22%; z-index: -1; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero h1 { font-size: clamp(46px, 9vw, 132px); line-height: .9; }
.hero h1 em { font-style: italic; }
.index { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; margin-top: clamp(20px, 5vh, 56px); background: var(--faint); border: 1px solid var(--faint); border-radius: 14px; overflow: hidden; }
.mini { background: rgba(22, 28, 36, .78); padding: 10px 10px 16px; text-decoration: none; transition: background .25s; }
.mini:hover { background: var(--panel); }
.mini svg { width: 100%; aspect-ratio: 1 / 1; }
.mini span { display: block; padding: 0 6px; font-size: 13px; font-weight: 500; line-height: 1.25; color: var(--sub); }
.mini b { display: block; font-size: 11px; letter-spacing: .14em; color: var(--accent); margin-bottom: 2px; }
.cue { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.cue span { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

/* process: scrolling copy on the left, sticky stage on the right */
.process { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); border-top: 1px solid var(--faint); }
.chapters { padding-left: var(--gutter); }
.chapter { border-bottom: 1px solid var(--faint); }
.chapter:last-child { border-bottom: 0; padding-bottom: 24vh; }
.step { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 8vh clamp(16px, 3vw, 48px) 8vh 0; }
.step-body { opacity: .26; }
.step.on .step-body { opacity: 1; }
.title { container-type: inline-size; display: grid; align-content: center; gap: 14px; min-height: 92vh; margin-right: clamp(16px, 3vw, 48px); padding-top: 22px; border-top: 2px solid var(--accent); }
.title-n { display: block; height: clamp(72px, 9vw, 140px); width: auto; overflow: visible; }
.title-n text { font-family: Figtree, system-ui, sans-serif; font-weight: 700; font-size: 150px; letter-spacing: -6px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 720; stroke-dashoffset: 720; transition: stroke-dashoffset 0s; }
.title.in .title-n text { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s cubic-bezier(.3, .1, .2, 1); }
.title { border-top: 0; }
.title::before { content: ''; height: 2px; width: 0; background: var(--accent); margin-bottom: 8px; }
.title.in::before { width: 100%; transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.powered a { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.powered a::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.title h2 { font-size: clamp(30px, 13.2cqw, 76px); line-height: .98; overflow-wrap: break-word; }
.title h2 i { font-style: normal; color: var(--accent); font-weight: 400; }
.title-line { font-size: clamp(18px, 1.6vw, 23px); color: var(--ink); max-width: 22em; text-wrap: balance; }
.step-body { max-width: 26em; padding-left: 18px; border-left: 1px solid var(--faint); transition: border-color .45s, opacity .45s; }
.step.on .step-body { border-color: var(--accent); }
.step-n { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--accent); }
.step h3 { font-size: clamp(21px, 1.9vw, 28px); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; margin: 6px 0 8px; }
.step p { color: var(--sub); }

.stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; padding: calc(var(--nav-h) + 12px) clamp(16px, 2vw, 32px) 22px clamp(8px, 2vw, 32px); border-left: 1px solid var(--faint);
  background: radial-gradient(60% 50% at 50% 55%, rgba(34, 41, 47, .9), transparent 70%); }
.stage-meta { display: flex; align-items: baseline; gap: 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stage-meta strong { color: var(--ink); font-weight: 600; }
#fig { flex: 1; min-height: 0; width: 100%; }
.stage { transition: opacity .15s linear; }
.legend { display: none; }
.rail { display: flex; gap: 8px; align-items: center; }
.rail a { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; text-decoration: none; font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--muted); transition: flex .4s; }
.rail a.on { flex: 1 1 auto; color: var(--ink); }
.rail i { display: block; width: 18px; height: 2px; background: var(--faint); border-radius: 2px; overflow: hidden; }
.rail a.on i { flex: 1; }
.rail b { display: block; height: 100%; width: 0; background: var(--accent); }
.rail a.on b { width: calc(var(--p, 0) * 100%); }
.rail a.done b { width: 100%; }
.rail em { display: none; color: var(--muted); font-weight: 500; letter-spacing: .04em; white-space: nowrap; }
.rail a.on em { display: block; }

/* shared section heads */
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(28px, 5vh, 56px); }
.system h2, .clients h2, .bc h2, .foot h2 { font-size: clamp(34px, 5vw, 72px); }

/* the system: together or separate */
.system { padding: clamp(72px, 14vh, 160px) var(--gutter); border-top: 1px solid var(--faint); background: var(--panel); }
.modes { display: inline-flex; padding: 4px; border: 1px solid var(--faint); border-radius: 999px; margin-bottom: 28px; }
.modes button { font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 9px 20px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; }
.modes button.on { background: var(--accent); color: #161C24; }
.chain { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; transition: gap .6s cubic-bezier(.2, .8, .2, 1); }
.chain.separate { gap: 16px; }
.tile { position: relative; background: var(--bg); border: 1px solid var(--faint); margin-left: -1px; padding: 8px 8px 18px; text-decoration: none; transition: border-radius .6s, border-color .3s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.tile:first-child { border-radius: 14px 0 0 14px; margin-left: 0; }
.tile:last-child { border-radius: 0 14px 14px 0; }
.chain.separate .tile { border-radius: 14px; margin-left: 0; }
.chain.separate .tile:nth-child(even) { transform: translateY(18px); }
.tile:hover { border-color: var(--accent); z-index: 1; }
.tile svg { width: 100%; aspect-ratio: 1 / 1; }
.tile b { display: block; padding: 0 8px; font-size: 11px; letter-spacing: .14em; color: var(--accent); }
.tile strong { display: block; padding: 2px 8px 0; font-size: 15px; font-weight: 600; line-height: 1.25; }
.tile small { display: block; padding: 0 8px; font-size: 13px; line-height: 1.3; color: var(--sub); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s, opacity .5s, margin .6s; }
.chain.separate .tile small { max-height: 6em; opacity: 1; margin-top: 8px; }
.tile::after { content: ''; position: absolute; right: -9px; top: 42%; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); z-index: 2; transition: transform .4s, opacity .4s; box-shadow: 0 0 0 4px var(--bg); }
.tile:last-child::after, .chain.separate .tile::after { transform: scale(0); opacity: 0; }
.mode-note { margin-top: 44px; max-width: 40em; color: var(--sub); font-size: clamp(17px, 1.4vw, 20px); }

/* Biblical Creativity */
.bc { padding: 0 var(--gutter); background: var(--paper); color: #161C24; }
.bc .eyebrow { color: rgba(22, 28, 36, .6); }
.bc-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.bc-head { display: grid; gap: 18px; }
/* "Powered by" is simply there; "Biblical Creativity" draws itself as an outline, then fills */
.bc-title { display: block; width: 100%; height: auto; overflow: visible; }
.bc-title text { font-family: Figtree, system-ui, sans-serif; font-weight: 600; font-size: 130px; letter-spacing: -4px; fill: #161C24; }
.bc-title .acc { fill: #B85A41; fill-opacity: 0; stroke: #B85A41; stroke-width: 1.8; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.bc-scene.in .bc-title .acc { stroke-dashoffset: 0; fill-opacity: 1; transition: stroke-dashoffset 2.6s cubic-bezier(.3, .1, .2, 1) calc(.15s + var(--i) * .45s), fill-opacity 1s ease calc(1.5s + var(--i) * .45s); }
/* the section pins while the three paragraphs take turns */
.bc-scene { height: 260vh; }
.bc-scene .bc-grid { position: sticky; top: var(--nav-h); min-height: calc(100svh - var(--nav-h)); align-items: center; }
.bc-body { display: grid; gap: clamp(18px, 3vh, 30px); max-width: 30em; }
.bc-body p { font-size: clamp(19px, 1.75vw, 26px); line-height: 1.3; font-weight: 500; letter-spacing: -.005em; padding-left: 22px; border-left: 2px solid rgba(22, 28, 36, .18); color: rgba(22, 28, 36, .36); transition: color .5s, border-color .5s; text-wrap: pretty; }
.bc-body p.on { color: #161C24; border-color: #B85A41; }
/* clouds drifting across the Biblical Creativity section */
.clouds { position: absolute; inset: 0 calc(-1 * var(--gutter)); overflow: hidden; pointer-events: none; z-index: 0; }
.clouds svg { position: absolute; left: 0; top: var(--y); width: var(--w); height: auto; fill: var(--cloud); opacity: var(--o); transform: translateX(var(--x)); animation: cloud var(--t) linear infinite; animation-delay: var(--d); will-change: transform; }
.clouds[data-clouds="light"] { --cloud: #F1EDE5; }
.clouds[data-clouds="dark"] { --cloud: #EEEBE4; }
@keyframes cloud { from { transform: translateX(-32vw); } to { transform: translateX(112vw); } }
.bc-head, .bc-body, #tree, .grove-copy { position: relative; z-index: 1; }

/* the tree: pinned while the seven fruits appear */
.grove { height: 420vh; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); background: var(--bg); color: var(--ink); }
.grove-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 72px); align-items: center; padding-top: calc(var(--nav-h) + 28px); }
#tree { width: 100%; height: 100%; max-height: calc(100svh - var(--nav-h) - 56px); }
#tree .fruit { transform: scale(0); opacity: 0; transition: transform .55s cubic-bezier(.3, 1.7, .5, 1), opacity .25s; }
#tree .fruit.on { transform: none; opacity: 1; }
.grove-copy h3 { font-size: clamp(24px, 2.4vw, 38px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.grove-intro { margin-top: 10px; color: var(--sub); max-width: 30em; }
.fruits { list-style: none; margin: clamp(16px, 3vh, 30px) 0 0; padding: 0; }
.fruits li { display: flex; align-items: center; gap: 16px; padding: clamp(8px, 1.5vh, 14px) 0; border-top: 1px solid var(--faint); font-size: clamp(18px, 1.7vw, 26px); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; color: rgba(238, 235, 228, .3); transition: color .5s; }
.fruits li span { flex: none; display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; border: 1.5px solid rgba(238, 235, 228, .3); font-size: .62em; font-weight: 700; color: rgba(238, 235, 228, .45); transition: background .5s, border-color .5s, color .5s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.fruits li.on { color: var(--ink); }
.fruits li.on span { background: var(--accent); border-color: var(--accent); color: #161C24; transform: scale(1.12); }
/* clients */
.clients { padding: clamp(72px, 13vh, 150px) 0; border-top: 1px solid var(--faint); overflow: hidden; }
.clients .sec-head { padding: 0 var(--gutter); }
.marquee { display: grid; gap: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.row { display: flex; gap: 14px; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .row { animation-play-state: paused; }
.row span { flex: none; display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 250px; height: 112px; padding: 0 36px; border: 1px solid var(--faint); border-radius: 12px; background: var(--panel); font-size: 18px; font-weight: 600; letter-spacing: .02em; color: var(--muted); white-space: nowrap; }
/* every logo is shown in the same cream tone, whatever colour its file is */
.row img { width: auto; max-width: 210px; object-fit: contain; filter: brightness(0) invert(1) sepia(.14) brightness(.96); opacity: .82; transition: opacity .25s; }
.row span:hover img { opacity: 1; }
.row b { font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); opacity: .82; }
@keyframes slide { to { transform: translateX(-50%); } }

/* footer */
.foot { padding: clamp(80px, 16vh, 180px) var(--gutter) 36px; display: grid; gap: 32px; justify-items: start; }
.foot-row { width: 100%; margin-top: clamp(40px, 10vh, 120px); padding-top: 24px; border-top: 1px solid var(--faint); display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.foot-row img { height: 34px; width: auto; }

/* desktop and tablet: the chapter title stays pinned on the left while its steps scroll up beneath it,
   so the small label above the figure is not needed */
@media (min-width: 721px) {
  .stage-meta { display: none; }
  .title { position: sticky; top: var(--nav-h); z-index: 2; min-height: 0; align-content: start; padding: 30px 0 24px; background: var(--bg); }
  .steps { padding-top: 36vh; }
  .step { justify-content: flex-start; min-height: 78vh; padding-top: 0; padding-bottom: 56px; }
  .step-body { position: sticky; top: calc(var(--nav-h) + var(--title-h, 320px) + 26px); }
}
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav .btn.small { margin-left: auto; }
  .index { grid-template-columns: repeat(3, 1fr); }
  .chain, .chain.separate { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .chain .tile, .chain .tile:first-child, .chain .tile:last-child { border-radius: 14px; margin-left: 0; }
  .chain .tile::after { display: none; }
  .chain.separate .tile:nth-child(even) { transform: none; }
  .bc-grid { grid-template-columns: 1fr; }
  .bc-title { max-width: 420px; }
  .bc-scene .bc-grid { align-content: center; gap: 20px; }
  .rail em { display: none !important; }
}
@media (max-width: 720px) {
  .blobs { filter: blur(60px); }
  .blobs i:nth-child(1) { width: 90vw; height: 90vw; left: 30%; }
  .blobs i:nth-child(2) { width: 80vw; height: 80vw; }
  .blobs i:nth-child(3) { width: 70vw; height: 70vw; left: 40%; }
  .grove-pin { grid-template-columns: 1fr; grid-template-rows: minmax(0, 42svh) auto; gap: 6px; align-content: start; }
  .grove-intro { display: none; }
  .fruits { margin-top: 8px; }
  .fruits li { padding: 6px 0; font-size: 16px; gap: 12px; }
  .process { display: block; }
  .stage { top: 0; z-index: 5; height: 50svh; padding: calc(var(--nav-h) + 4px) 16px 12px; border-left: 0; border-bottom: 1px solid var(--faint); background: var(--bg); }
  .chapters { padding: 0 var(--gutter); margin-top: 0; }
  .process { display: flex; flex-direction: column-reverse; }
  .step { min-height: 80vh; padding: 4vh 0; justify-content: flex-start; }
  .title { min-height: 78svh; margin-right: 0; }
  /* the figure takes two thirds of the screen; the hidden stage must not push the first title down */
  .stage { height: 67svh; padding-top: calc(var(--nav-h) + 16px); padding-bottom: 8px; }
  .chapters { margin-top: -67svh; }
  .step-body { top: calc(67svh + 18px) !important; }
  .stage-meta { font-size: 11px; }
  /* phones: the figure carries numbered pins; this is their key */
  .legend { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 6px 0 10px; padding: 0; min-height: 44px; align-content: flex-start; }
  .legend li { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(238, 235, 228, .3); transition: color .4s; }
  .legend li b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; letter-spacing: 0; background: rgba(238, 235, 228, .16); color: var(--bg); transition: background .4s; }
  .legend li.on { color: var(--ink); }
  .legend li.on b { background: var(--c, var(--ink)); }
  /* Biblical Creativity fits one phone screen */
  .bc-scene .bc-grid { padding-top: 18px; align-content: start; }
  .bc-title { max-width: 300px; }
  .bc-body { gap: 14px; }
  .bc-body p { font-size: 17px; padding-left: 16px; }
  /* each step's copy stays pinned under the stage while its phase plays */
  .step-body { position: sticky; top: calc(50svh + 28px); }
  .rail em { display: none !important; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .chain, .chain.separate { grid-template-columns: repeat(2, 1fr); }
  .index { grid-template-columns: repeat(2, 1fr); }
  .btn.small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cue span { animation: none; }
  .clouds svg { animation: none; }
  .blobs i { animation: none; }
  .row { animation: none; flex-wrap: wrap; width: auto; padding: 0 var(--gutter); }
  .title-n text { stroke-dashoffset: 0; }
  .bc-title .acc { stroke-dashoffset: 0; fill-opacity: 1; }
  #tree .fruit { transition: none; }
}
