/* =====================================================================
   The sea (skills), the inferno (problems), the ascension and heaven
   ===================================================================== */

/* ============================================================ SEA */
.w-sea { padding-bottom: 140px !important; color: #fff;
  background: linear-gradient(180deg, #1b6fd1 0%, #2f8be8 12%, #0a5c91 42%, #063453 62%, #04192b 86%, #120406 100%); }
.sea-wrap { position: relative; z-index: 2; overflow-x: auto; scrollbar-width: none; }
.sea-wrap::-webkit-scrollbar { display: none; }
.sea-scene { width: min(100%, 1680px); margin: 0 auto; }
.sea-svg { width: 100%; height: auto; display: block; }
.sea-hint { display: none; margin: 14px 0 0; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .75); }
@media (max-width: 900px) { .sea-hint { display: block; } }

.spot { cursor: pointer; outline: none; transition: filter .35s; }
.spot:hover, .spot:focus-visible, .spot.is-active { filter: drop-shadow(0 0 10px rgba(255, 255, 255, .85)); }
.spot-tag { pointer-events: none; }
.spot-tag rect { fill: rgba(255, 255, 255, .94); }
.spot-tag text { font: 600 14px var(--f-body); fill: #0b1430; }
.spot-tag .dot { fill: #fde047; stroke: #fff; stroke-width: 2; }
.spot-tag .pulse { fill: #fde047; opacity: .6; transform-box: fill-box; transform-origin: center; animation: spotPulse 1.8s ease-out infinite; }
.spot.is-active .spot-tag rect { fill: #fde047; }
.spot:focus-visible .spot-tag rect { stroke: #fff; stroke-width: 3; }
@keyframes spotPulse { to { transform: scale(2.6); opacity: 0; } }

.wave path { animation: wave160 6s linear infinite; }
.w-mid path { animation-name: wave200; animation-duration: 8s; }
.w-front path { animation-name: wave180; animation-duration: 5s; }
@keyframes wave160 { to { transform: translateX(-160px); } }
@keyframes wave200 { to { transform: translateX(-200px); } }
@keyframes wave180 { to { transform: translateX(-180px); } }
.ship-bob { transform-box: view-box; transform-origin: 700px 640px; animation: shipBob 6s ease-in-out infinite; }
@keyframes shipBob { 0%, 100% { transform: rotate(-1.2deg) translateY(0); } 50% { transform: rotate(1.2deg) translateY(6px); } }
.ship-helm { transform-box: fill-box; transform-origin: center; }
.ship-helm.snapping { transition: transform .7s cubic-bezier(.3, 1.3, .5, 1); }
.pennant { transform-box: fill-box; transform-origin: left center; animation: pennant 1.2s ease-in-out infinite alternate; }
@keyframes pennant { to { transform: skewY(5deg) scaleX(.9); } }
#deck-pods use.landed { animation: land .5s cubic-bezier(.3, 1.6, .5, 1); transform-box: fill-box; transform-origin: bottom center; }
@keyframes land { from { transform: scale(1.25, .7); } }
.radar-wave { transform-box: fill-box; transform-origin: center; animation: radar 2.2s ease-out infinite; }
.radar-wave.w2 { animation-delay: 1.1s; }
@keyframes radar { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.shark-swim { animation: sharkBob 1.8s ease-in-out infinite; }
@keyframes sharkBob { 50% { transform: translateY(5px) rotate(-1deg); } }
.shark-tail { transform-box: fill-box; transform-origin: left center; animation: tail .45s ease-in-out infinite alternate; }
@keyframes tail { from { transform: skewY(-12deg); } to { transform: skewY(12deg); } }
.raft-pod { transition: opacity .2s; }
.beam { transform-box: view-box; transform-origin: 1468px 150px; animation: sweep 7s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes sweep { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(16deg); } }
.lamp { animation: lamp 2s ease-in-out infinite alternate; }
@keyframes lamp { to { fill: #fffbe0; } }
.crane-load { animation: crane 3s ease-in-out infinite; }
@keyframes crane { 50% { transform: translateY(-16px); } }
.tentacles path { transform-box: fill-box; transform-origin: top center; animation: wiggle 2.2s ease-in-out infinite alternate; }
.tentacles path:nth-child(even) { animation-delay: -1.1s; }
@keyframes wiggle { to { transform: rotate(7deg); } }
.bubbles { animation: bubbles 3.2s ease-in infinite; }
@keyframes bubbles { to { transform: translateY(-50px); opacity: 0; } }
.chest-glow { animation: glow 2.2s ease-in-out infinite alternate; }
@keyframes glow { to { opacity: .45; } }
.fish-swim { animation: fish 18s linear infinite; }
.fish-swim.f2 { animation-duration: 24s; animation-delay: -9s; }
@keyframes fish { from { transform: translateX(-500px); } to { transform: translateX(1300px); } }
.gulls path { transform-box: fill-box; transform-origin: center; animation: flap .5s ease-in-out infinite alternate; }
@keyframes flap { to { transform: scaleY(-.4); } }
.weed path { transform-box: fill-box; transform-origin: bottom center; animation: wiggle 3s ease-in-out infinite alternate; }

/* helm wheel + panel */
.helm-zone { display: grid; grid-template-columns: 400px 1fr; gap: 56px; align-items: center; margin-top: 60px; }
.helm { position: relative; display: grid; justify-items: center; gap: 14px; }
.helm-wheel { position: relative; width: 360px; max-width: 86vw; aspect-ratio: 1; touch-action: none; cursor: grab; border-radius: 50%; }
.helm-wheel.dragging { cursor: grabbing; }
.helm-wheel:focus-visible { outline-offset: 10px; border-radius: 50%; }
.wheel-rot { position: absolute; inset: 0; transform: rotate(var(--rot, 0deg)); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.wheel-rot > svg { width: 100%; height: 100%; }
.wheel-rot.snapping, .wheel-rot.snapping .handle i { transition: transform .7s cubic-bezier(.3, 1.3, .5, 1); }
.handle { position: absolute; width: 50px; height: 50px; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid #f2c14e; background: #fffaf0; color: #0a5c91; font-size: 19px; display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .5); transition: background .3s, color .3s, scale .3s; }
.handle i { transform: rotate(calc(-1 * var(--rot, 0deg))); }
.handle:hover { scale: 1.1; }
.handle.on { background: #fde047; color: #0b1430; scale: 1.15; }
.helm-pointer { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-size: 34px; color: #fde047; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .4)); z-index: 2; animation: bounce 1.6s ease-in-out infinite; }
@keyframes bounce { 50% { transform: translate(-50%, 6px); } }
.helm-tip { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .7); }
.helm-panel { padding: 32px; border-radius: 32px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); min-height: 320px; }
.hp-inner.swap { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(12px); } }
.hp-top { display: flex; align-items: center; gap: 16px; }
.hp-icon { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 20px; font-size: 28px; color: #0b1430; background: linear-gradient(135deg, #fde047, #f59e0b); }
.hp-where { font: 600 12.5px var(--f-body); color: #7dd3fc; letter-spacing: .02em; }
.helm-panel h3 { margin: 2px 0 0; font: 800 clamp(26px, 3vw, 34px)/1.1 var(--f-display); letter-spacing: -.02em; }
.hp-flavor { margin: 18px 0 20px; font: italic 400 18px/1.5 var(--f-serif); color: rgba(255, 255, 255, .85); }
.helm-panel .chip, .certs .chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; }
.hp-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font: 600 13px var(--f-mono); color: rgba(255, 255, 255, .6); }

/* pod delivery console */
.pods-zone { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; margin-top: 80px; }
.kubectl { border-radius: 20px; overflow: hidden; background: #070d1a; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.kubectl-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255, 255, 255, .05); font: 600 12.5px var(--f-mono); color: rgba(255, 255, 255, .6); }
.kubectl-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; }
.kubectl-bar span:nth-child(2) { background: #f59e0b; } .kubectl-bar span:nth-child(3) { background: #22c55e; margin-right: 10px; }
.kubectl pre { margin: 0; padding: 16px 18px 20px; min-height: 230px; overflow-x: auto; font: 500 12.5px/1.75 var(--f-mono); color: #cbd5e1; }
.kubectl pre div { animation: swap .35s var(--ease); white-space: pre; }
.k-status { color: #64748b; } .k-running { color: #4ade80; } .k-pending { color: #fbbf24; } .k-containercreating { color: #7dd3fc; } .k-terminating { color: #f87171; }
.pods-copy h3 { margin: 0 0 10px; font: 700 26px var(--f-display); }
.pods-copy h3 i { color: #2496ed; }
.pods-copy p { margin: 0 0 22px; color: rgba(255, 255, 255, .75); font-size: 17px; }

/* treasure: certifications */
.certs { margin-top: 90px; padding: 34px; border-radius: 32px; background: linear-gradient(135deg, rgba(250, 204, 21, .14), rgba(255, 255, 255, .04)); border: 1px solid rgba(250, 204, 21, .3); }
.certs h3 { margin: 0 0 22px; font: 700 24px var(--f-display); display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.certs h3 i { color: #fde047; }
.certs h3 small { font: 500 14px var(--f-body); color: rgba(255, 255, 255, .6); }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.cert { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.cert-ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #fde047; color: #0b1430; font-size: 18px; }
.cert b { display: block; font: 600 15px var(--f-display); }
.cert small { color: rgba(255, 255, 255, .6); font-size: 13px; }
.certs.flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 30% { box-shadow: 0 0 0 6px rgba(253, 224, 71, .6), 0 0 80px rgba(253, 224, 71, .5); } }

/* ============================================================ INFERNO */
.w-inferno { padding-bottom: 200px !important; color: #fde8e8; background: radial-gradient(ellipse at 50% 120%, #ff5a1f 0%, #9a1c0b 18%, #3d0a06 40%, #1d0505 70%, #120406 100%); transition: filter 1.2s; }
.w-inferno.cooled { filter: hue-rotate(185deg) saturate(.7) brightness(1.05); }
.w-inferno.cooled .fire-card, .w-inferno.cooled .sec-head { filter: hue-rotate(-185deg) saturate(1.43); }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.spires { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.spire { position: absolute; top: 0; bottom: 0; width: 22vw; height: 100%; }
.spire-l { left: 0; }
.spire-r { right: 0; transform: scaleX(-1); }
.lava { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 1; background: radial-gradient(ellipse 120px 30px at 20% 30%, #ffd166 0 40%, transparent 70%), radial-gradient(ellipse 160px 30px at 70% 50%, #ffd166 0 40%, transparent 70%), linear-gradient(#ff7a1a, #d9290b 60%, #7f1d0b); box-shadow: 0 -30px 80px rgba(255, 90, 20, .55); animation: lava 6s ease-in-out infinite alternate; }
@keyframes lava { to { background-position: 60px 0, -80px 0, 0 0; filter: brightness(1.15); } }
.fire-meter { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 10px 16px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 120, 60, .3); font: 600 14px var(--f-mono); }
.fire-meter-bar { width: 120px; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.fire-meter-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22d3ee, #4ade80); transition: width .6s var(--ease); }
.fire-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 52px 28px; padding-top: 30px; }
.fire-card { position: relative; padding: 28px 26px 24px; border-radius: 26px; color: #fde8e8; background: linear-gradient(180deg, #2c0b09, #1a0606); border: 1px solid rgba(255, 120, 60, .35); box-shadow: 0 0 0 1px rgba(255, 80, 20, .1), 0 -10px 60px -20px rgba(255, 90, 20, .6), 0 40px 60px -40px #000; transition: background .8s, border-color .8s, box-shadow .8s; }
.fire-card.is-boss { grid-column: 1 / -1; }
.flames { position: absolute; left: 6%; right: 6%; top: -50px; height: 66px; pointer-events: none; }
.flame { position: absolute; bottom: 0; width: 44px; height: 66px; transform: translateX(-50%) scale(var(--s)); transform-origin: 50% 100%; animation: flicker .45s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1); transition: transform .6s var(--ease), opacity .6s; filter: drop-shadow(0 0 12px rgba(255, 120, 20, .8)); }
@keyframes flicker { 0% { transform: translateX(-50%) scale(var(--s)) skewX(-4deg); } 100% { transform: translateX(-50%) scale(calc(var(--s) * 1.08), calc(var(--s) * .92)) skewX(5deg); } }
.smoke { position: absolute; left: 0; right: 0; top: -30px; height: 60px; pointer-events: none; }
.smoke i { position: absolute; bottom: 0; width: 46px; height: 46px; border-radius: 50%; background: rgba(203, 213, 225, .55); opacity: 0; filter: blur(4px); }
.smoke i:nth-child(1) { left: 22%; } .smoke i:nth-child(2) { left: 48%; } .smoke i:nth-child(3) { left: 74%; }
.fire-card.is-fixed .flame { animation: none; transform: translateX(-50%) scale(0); opacity: 0; }
.fire-card.is-fixed .smoke i { animation: steam 1.4s ease-out forwards; }
.fire-card.is-fixed .smoke i:nth-child(2) { animation-delay: .15s; } .fire-card.is-fixed .smoke i:nth-child(3) { animation-delay: .3s; }
@keyframes steam { 0% { opacity: .8; transform: translateY(10px) scale(.5); } 100% { opacity: 0; transform: translateY(-60px) scale(1.8); } }
.fire-card.is-fixed { color: #e6fffb; background: linear-gradient(180deg, #08303a, #061c24); border-color: rgba(45, 212, 191, .45); box-shadow: 0 0 0 1px rgba(45, 212, 191, .1), 0 -10px 60px -24px rgba(45, 212, 191, .55), 0 40px 60px -40px #000; }
.fire-card.is-ongoing { background: linear-gradient(180deg, #2f2306, #1c1405); border-color: rgba(250, 204, 21, .45); box-shadow: 0 -10px 60px -24px rgba(250, 204, 21, .45), 0 40px 60px -40px #000; }
.fc-head { display: flex; align-items: center; gap: 14px; }
.fc-icon { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 16px; font-size: 21px; color: #fff; background: linear-gradient(135deg, #f97316, #dc2626); box-shadow: 0 10px 24px -8px rgba(249, 115, 22, .8); transition: background .8s; }
.is-fixed .fc-icon { background: linear-gradient(135deg, #14b8a6, #0ea5e9); box-shadow: 0 10px 24px -8px rgba(20, 184, 166, .7); }
.is-ongoing .fc-icon { background: linear-gradient(135deg, #facc15, #f59e0b); }
.fc-where { font: 600 12px var(--f-body); letter-spacing: .06em; text-transform: uppercase; opacity: .65; }
.fc-head h3 { margin: 2px 0 0; font: 800 22px/1.15 var(--f-display); letter-spacing: -.01em; }
.fc-status { margin-left: auto; padding: 5px 12px; border-radius: 999px; font: 600 12px var(--f-body); background: rgba(239, 68, 68, .2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, .4); white-space: nowrap; }
.is-fixed .fc-status { background: rgba(45, 212, 191, .16); color: #5eead4; border-color: rgba(45, 212, 191, .4); }
.is-ongoing .fc-status { background: rgba(250, 204, 21, .16); color: #fde047; border-color: rgba(250, 204, 21, .4); }
.fc-threat { margin: 14px 0 16px; font: italic 400 17px var(--f-serif); opacity: .85; }
.fc-sec { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(0, 0, 0, .25); border-left: 3px solid #f97316; }
.fc-sec h4 { margin: 0 0 6px; font: 700 12px var(--f-body); letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.fc-sec p { margin: 0; font-size: 15px; line-height: 1.55; }
.fc-sec.fix { border-left-color: #38bdf8; }
.fc-sec.res { border-left-color: #4ade80; }
.is-ongoing .fc-sec.res { border-left-color: #facc15; }
.fc-reveal { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.fc-reveal > div { overflow: hidden; }
.is-fixed .fc-reveal { grid-template-rows: 1fr; }
.fc-btn { margin-top: 18px; background: linear-gradient(135deg, #ef4444, #f97316); color: #fff; box-shadow: 0 12px 30px -10px rgba(239, 68, 68, .8); }
.is-fixed .fc-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); box-shadow: none; font-weight: 500; }

/* ============================================================ ASCEND */
.ascend { position: relative; height: 90vh; overflow: hidden; background: linear-gradient(180deg, #120406 0%, #3a1208 22%, #a8551c 48%, #f5c87e 72%, #fff4d6 100%); }
.ascend-beam { position: absolute; left: 50%; top: 0; bottom: 0; width: 80vw; margin-left: -40vw; background: radial-gradient(ellipse 50% 70% at 50% 40%, rgba(255, 255, 255, .95), rgba(255, 245, 210, .5) 45%, rgba(255, 245, 210, 0) 70%); }
.ascend-text { position: absolute; left: 0; right: 0; top: 46%; margin: 0; text-align: center; font: italic 500 clamp(24px, 3.4vw, 40px) var(--f-serif); color: #5b3a0a; }

/* ============================================================ HEAVEN */
.w-heaven { padding-bottom: 220px !important; color: #3a2a0c; background: linear-gradient(180deg, #fff4d6 0%, #fffaf0 35%, #fff6e0 70%, #fff3d1 100%); }
.heaven-bg { position: absolute; inset: 0; pointer-events: none; }
.rays { position: absolute; left: 50%; top: 18%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; opacity: .45; background: repeating-conic-gradient(from 0deg, rgba(255, 220, 120, .55) 0deg 5deg, rgba(255, 255, 255, 0) 5deg 15deg); animation: spin 120s linear infinite; -webkit-mask-image: radial-gradient(circle, #000 0 20%, transparent 55%); mask-image: radial-gradient(circle, #000 0 20%, transparent 55%); }
.gates { position: absolute; left: 50%; top: 60px; width: min(760px, 90vw); margin-left: min(-380px, -45vw); opacity: .4; }
.motes i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fcd34d; box-shadow: 0 0 12px #fde68a; animation: mote 7s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
@keyframes mote { 50% { transform: translate(14px, -30px); opacity: .3; } }
.w-heaven .eyebrow { color: #b45309; }
.w-heaven .sec-head { text-align: center; margin-inline: auto; }
.w-heaven .sec-head h2 { font-family: var(--f-serif); font-weight: 600; letter-spacing: -.02em; }
.w-heaven .sec-head p { color: #7a5a22; }
.angel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.angel-card { position: relative; margin: 30px 0 0; padding: 50px 28px 26px; border-radius: 30px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(234, 179, 8, .3); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px -30px rgba(180, 120, 20, .45); animation: angelFloat 7s ease-in-out infinite; animation-delay: calc(var(--i) * -1.1s); }
.angel-card:nth-child(3n+2) { margin-top: 70px; }
@keyframes angelFloat { 50% { translate: 0 -10px; } }
.halo-avatar { position: absolute; left: 28px; top: -32px; width: 64px; height: 64px; }
.halo-avatar .av { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; font: 700 26px var(--f-display); border: 4px solid #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35); }
.halo { position: absolute; left: 6px; right: 6px; top: -14px; height: 14px; border-radius: 50%; border: 4px solid #facc15; box-shadow: 0 0 16px #fde047, inset 0 0 8px #fde68a; animation: halo 3s ease-in-out infinite; }
@keyframes halo { 50% { transform: translateY(-4px); } }
.angel-card blockquote { margin: 0 0 20px; font: 500 17px/1.6 var(--f-serif); color: #3a2a0c; }
.angel-card figcaption b { display: block; font: 700 16px var(--f-display); }
.angel-card figcaption span { font-size: 13.5px; color: #8a6a2e; }
.cloud-floor { left: 0; right: 0; bottom: -6%; height: 40%; }
.cloud-floor .c { width: 32vw !important; top: auto !important; bottom: calc(var(--d) * 3%); filter: drop-shadow(0 10px 30px rgba(234, 179, 8, .18)); }

/* ============================================================ RESPONSIVE */
@media (max-width: 1080px) {
  .helm-zone { grid-template-columns: 1fr; justify-items: center; }
  .helm-panel { width: 100%; }
  .pods-zone { grid-template-columns: 1fr; }
  .angel-grid { grid-template-columns: 1fr 1fr; }
  .angel-card:nth-child(3n+2) { margin-top: 30px; }
  .angel-card:nth-child(even) { margin-top: 70px; }
}
@media (max-width: 900px) {
  .sea-scene { width: 1100px; max-width: none; }
  .fire-grid { grid-template-columns: 1fr; }
  .spire { width: 30vw; opacity: .7; }
}
@media (max-width: 640px) {
  .angel-grid { grid-template-columns: 1fr; }
  .angel-card:nth-child(n) { margin-top: 36px; }
  .helm-panel, .certs { padding: 24px 20px; }
  .fc-head { flex-wrap: wrap; }
  .fc-status { margin-left: 64px; }
}
