/* 05: the sea chart, the life engine and the painted islands (js/combo.js). Inked relief, picked by Sam on Nov 21. */

/* ================= the sea chart: three depth layers ================= */
/* far (0.35 of the slide's speed): the water itself, with deeper channels */
.cx-far, .cx-near { position: absolute; left: 0; top: 0; height: 100%; z-index: 0; visibility: hidden; pointer-events: none; will-change: transform; }
.cx-far.is-on, .cx-near.is-on { visibility: visible; }
.cx-far { background: linear-gradient(180deg, #EAF7F3 0%, #D8F1EE 50%, #C6EAE8 100%); }
.cx-deep { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(70, 172, 188, .2), rgba(70, 172, 188, 0)); }
/* the chart (0.6): transparent ink over the water */
html[data-c5] .chart.cx-chart { background: none; }
.cx-svg { display: block; }
.cx-svg .cg { stroke: rgba(15, 59, 64, .075); stroke-width: .7; }
.cx-svg .cl { font: 500 9px var(--mono); letter-spacing: .1em; fill: rgba(15, 59, 64, .36); }
.cx-svg .cc0 { fill: rgba(255, 253, 246, .3); stroke: rgba(15, 59, 64, .22); stroke-width: .8; }
.cx-svg .cc1 { fill: none; stroke: rgba(15, 59, 64, .16); stroke-width: .7; }
.cx-svg .cc2 { fill: none; stroke: rgba(15, 59, 64, .12); stroke-width: .7; stroke-dasharray: 4 3; }
.cx-svg .cc3 { fill: none; stroke: rgba(15, 59, 64, .09); stroke-width: .7; }
.cx-svg .cc4 { fill: none; stroke: rgba(15, 59, 64, .06); stroke-width: .7; stroke-dasharray: 2 4; }
.cx-svg .cay { fill: #F4E6C4; stroke: rgba(15, 59, 64, .3); stroke-width: .7; }
.cx-svg .cs { font: italic 500 9.5px var(--body); fill: rgba(15, 59, 64, .32); text-anchor: middle; }
.cx-svg .cr2 { stroke: rgba(15, 59, 64, .055); stroke-width: .7; }
.cx-rose .cr { fill: rgba(255, 253, 246, .45); stroke: rgba(15, 59, 64, .38); stroke-width: 1; }
.cx-rose .cr--in { fill: none; stroke-width: .6; }
.cx-rose .ct { stroke: rgba(15, 59, 64, .4); stroke-width: .6; }
.cx-rose .cd { font: 500 6.5px var(--mono); fill: rgba(15, 59, 64, .45); text-anchor: middle; }
.cx-rose .cn { fill: #D2A54E; }
.cx-rose .cm { fill: rgba(15, 59, 64, .62); }
.cx-rose .cq { fill: rgba(15, 59, 64, .25); }
.cx-rose .cc { fill: var(--ink); }
.cx-rose .cN { font: italic 800 14px var(--display); fill: #C08F35; text-anchor: middle; }
.cx-cart rect { fill: rgba(255, 252, 244, .86); stroke: rgba(15, 59, 64, .42); stroke-width: 1; }
.cx-cart rect.in { fill: none; stroke: rgba(15, 59, 64, .22); stroke-width: .6; }
.cx-cart .t1 { font: italic 800 19px var(--display); letter-spacing: -.01em; fill: var(--ink); text-anchor: middle; }
.cx-cart .t2 { font: 500 8px var(--mono); letter-spacing: .2em; fill: rgba(15, 59, 64, .55); text-anchor: middle; }
/* near (0.85): soft cloud shadows and a few birds, each drifting on its own */
.cx-cloud { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(16, 72, 84, .1), rgba(16, 72, 84, 0)); animation: cx-drift 30s ease-in-out infinite alternate; }
@keyframes cx-drift { from { translate: 0 0; } to { translate: 140px 26px; } }
.cx-bird { position: absolute; width: 18px; height: 7px; animation: cx-fly 9s ease-in-out infinite alternate;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 7'%3E%3Cpath d='M1 6 Q5 0 9 5 Q13 0 17 6' fill='none' stroke='%230F3B40' stroke-opacity='.45' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
@keyframes cx-fly { 0% { translate: 0 0; scale: 1 1; } 25% { scale: 1 .55; } 50% { translate: 60px -14px; scale: 1 1; } 75% { scale: 1 .6; } 100% { translate: 120px 4px; scale: 1 1; } }
@media (prefers-reduced-motion: reduce) { .cx-cloud, .cx-bird { animation: none; } }

/* ================= island hopping: four painted islands on the inked chart ================= */
/* the contour rings round each island, finer as the water deepens */
html[data-c5] .spread--hop .ir0 { fill: rgba(205, 240, 234, .35); stroke: rgba(15, 59, 64, .2); stroke-width: .9; }
html[data-c5] .spread--hop .ir1 { fill: none; stroke: rgba(15, 59, 64, .14); stroke-width: .8; }
html[data-c5] .spread--hop .ir2 { fill: none; stroke: rgba(15, 59, 64, .1); stroke-width: .7; stroke-dasharray: 4 3; }
html[data-c5] .spread--hop .ir3 { fill: none; stroke: rgba(15, 59, 64, .07); stroke-width: .7; }
html[data-c5] .spread--hop .pi-shadow { opacity: .9; }
/* a spread that has left the screen: its stamp goes (it used to poke in at the left edge) */
html[data-c5] .spread.cx-past .pstamp { visibility: hidden !important; }
/* the island map and the cards are their own layers, so a floating card never repaints the painted islands */
html[data-c5] .spread--hop .hop__map { will-change: transform; }
html[data-c5] .spread .scard, html[data-c5] .spread .pstamp, html[data-c5] .spread__title, html[data-c5] .spread__note { will-change: translate, rotate; }
/* footprints walking across the painted water and sand: ink, a little finer */
html[data-c5] .hs.on { opacity: .5; }

@media (max-width: 760px) {
  .cx-svg .cl { font-size: 7.5px; }
}
