.planet-explorer {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 0;
  color: #f4ead8;
  background:
    radial-gradient(ellipse at 75% 49%, #342317 0%, #17120d 34%, transparent 68%),
    radial-gradient(ellipse at 20% 82%, #60401f24, transparent 46%),
    #090806;
  border-top: 1px solid #d7a65e24;
  border-bottom: 1px solid #d7a65e1e;
}
.planet-explorer:before,
.planet-explorer:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.planet-explorer:before {
  opacity: .19;
  background-image: linear-gradient(#e4ba7b0b 1px,transparent 1px),linear-gradient(90deg,#e4ba7b0b 1px,transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg,#000,transparent 94%);
}
.planet-explorer:after { background: linear-gradient(90deg,#090806d9 0%,#090806a8 28%,transparent 55%),linear-gradient(0deg,#090806 0%,transparent 18%,transparent 80%,#09080688); }
.explorer-inner { box-sizing:border-box;position: relative; z-index: 1; width: min(1440px,100%); min-height: 100svh; margin: auto; padding: 31px clamp(26px,5.2vw,82px) 45px; display: flex; flex-direction: column; }
.explorer-topline { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; min-height: 34px; padding-bottom: 17px; border-bottom: 1px solid #e4ba7b23; color: #c5ad87; font: 9px/1.4 Consolas,monospace; letter-spacing: .2em; }
.explorer-topline > span { display: flex; align-items: center; gap: 10px; }
.explorer-topline b { color: #f5b86b; font-weight: 400; }
.explorer-signal,.status-light { display: inline-block; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #f4b866; box-shadow: 0 0 10px #f4b866; }
.explorer-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(390px,.96fr) minmax(580px,1.3fr); align-items: center; gap: clamp(22px,3vw,52px); flex: 1; padding: 22px 0 0; }
.project-info { box-sizing:border-box;position: relative; z-index: 2; width: 100%; max-width: 540px; padding: clamp(30px,3.1vw,48px); border: 1px solid #e2b97876; background: linear-gradient(140deg,#21180feF,#100d0beF 76%); box-shadow: 0 24px 90px #0201009c,inset 0 0 44px #f0b8660b; backdrop-filter: blur(18px); transition: opacity .34s ease,transform .34s ease,border-color .34s ease,filter .34s ease; }
.project-card-orbit { position:absolute;top:13px;right:14px;width:142px;height:112px;pointer-events:none;opacity:.88; }
.card-globe { position:absolute;right:38px;top:12px;width:64px;height:64px;border-radius:50%;background:radial-gradient(circle at 30% 27%,#fff0c4,#df9b53 38%,#663b21 70%,#120d0a 100%);box-shadow:inset -9px -5px 12px #120a09b8,0 0 22px #ee9f4e5c; }
.card-orbit-line { position:absolute;top:21px;right:11px;width:112px;height:51px;border:1px solid #ffc47c77;border-radius:50%;transform:rotate(-27deg); }
.orbit-b { top:13px;right:30px;width:84px;height:72px;transform:rotate(39deg);border-color:#ffdbad48; }
.project-card-orbit small { position:absolute;bottom:0;right:0;color:#b78454;font:6px/1.5 Consolas,monospace;letter-spacing:.13em;text-align:right; }
.project-info:before,.project-info:after { content:""; position:absolute; width:30px; height:30px; pointer-events:none; }
.project-info:before { left:-1px;top:-1px;border-left:2px solid #ffc875;border-top:2px solid #ffc875; }
.project-info:after { right:-1px;bottom:-1px;border-right:2px solid #ffc875;border-bottom:2px solid #ffc875; }
.project-info.is-switching { opacity: .12; transform: translateX(-14px) scale(.985); filter:blur(2px);border-color: #f7b962; }
.project-info.is-revealing { animation: project-card-arrive .68s cubic-bezier(.16,1,.3,1) both; }
@keyframes project-card-arrive { from { opacity:0;transform:translateX(-28px) scale(.97);filter:blur(6px);clip-path:inset(0 8% 0 0); } to { opacity:1;transform:translateX(0) scale(1);filter:blur(0);clip-path:inset(0); } }
.explorer-eyebrow { display:flex;align-items:center;gap:13px;margin:0 0 30px;color:#d5b982;font:10px Consolas,monospace;letter-spacing:.16em; }
.eyebrow-rule { height:1px; width:45px; background:linear-gradient(90deg,#efbd71aa,transparent); }
.explorer-category { color:#efa84f;font:10px/1.5 Consolas,monospace;letter-spacing:.17em;margin:0 0 15px; }
.project-info h2 { max-width:430px; color:#fbf1df; font-weight:400; font-size:clamp(44px,4.35vw,68px); line-height:.99; letter-spacing:-.055em; margin:0 0 24px; }
.project-info h2:focus { outline:none; }
.project-info h2 em { color:#f2b567; font-style:normal; }
.explorer-summary { color:#e1d5c2; max-width:410px; font-size:16px; line-height:1.68; margin:0 0 25px; }
.project-facts { display:flex; flex-direction:column; gap:0; margin:0 0 28px; border-top:1px solid #e7c78a31; }
.project-fact { display:grid; grid-template-columns:92px 1fr; gap:12px; padding:12px 0; border-bottom:1px solid #e7c78a31; font:10px/1.55 Consolas,monospace; letter-spacing:.08em; }
.project-fact span:first-child { color:#c5a978; text-transform:uppercase; }
.project-fact span:last-child { color:#f1e2c8; }
.explorer-learn { width:max-content; min-width:188px; display:flex;align-items:center;justify-content:space-between;gap:25px;padding:16px 19px;border:1px solid #efbd718f;background:linear-gradient(110deg,#6c461f7a,#2a1c0c9e);color:#fff1d7;text-decoration:none;font:10px Consolas,monospace;letter-spacing:.16em;box-shadow:0 0 26px #f0ad4b1c;transition:background .2s ease,box-shadow .2s ease,transform .2s ease; }
.explorer-learn:hover { transform:translateY(-2px);background:#68431cbd;box-shadow:0 0 32px #f1b35c46; }
.explorer-learn span { color:#ffc778;font-size:16px; }
.explorer-footnote { display:flex;align-items:center;gap:8px;margin-top:32px;color:#bea989;font:8px Consolas,monospace;letter-spacing:.11em; }
.explorer-footnote .status-light { width:5px;height:5px; }
.explorer-footnote > span:nth-child(2) { color:#3b6375; }
.planet-side { position:relative; min-width:0; width:100%; padding-top:24px; }
.planet-meta { position:absolute;z-index:2;top:0;left:4%;right:4%;display:flex;justify-content:space-between;color:#bca984;font:8px Consolas,monospace;letter-spacing:.15em; }
.planet-meta b { color:#f3b463;font-weight:400;margin-left:7px; }
.planet-meta i { color:#edb768;font-style:normal;margin:0 4px; }
.planet-frame { position:relative;isolation:isolate;width:100%;height:min(72vh,730px);min-height:520px;overflow:hidden;border:0;background:transparent; }
.planet-frame:before,.planet-frame:after { content:"";position:absolute;z-index:2;pointer-events:none;inset:0; }
.planet-frame:before { display:none; }
.planet-frame:after { display:none; }
.planet-canvas { position:absolute;inset:0;z-index:1;touch-action:pan-y; }
.planet-canvas canvas { display:block;width:100%;height:100%; }
.planet-corner { display:none;position:absolute;z-index:4;width:18px;height:18px;opacity:.85;pointer-events:none; }
.corner-tl { top:0;left:0;border-top:1px solid #86efff;border-left:1px solid #86efff; }
.corner-tr { top:0;right:0;border-top:1px solid #86efff;border-right:1px solid #86efff; }
.corner-bl { bottom:0;left:0;border-bottom:1px solid #86efff;border-left:1px solid #86efff; }
.corner-br { bottom:0;right:0;border-bottom:1px solid #86efff;border-right:1px solid #86efff; }
.planet-orbit-label { position:absolute;z-index:4;top:25px;right:24px;color:#c2aa81;font:8px Consolas,monospace;letter-spacing:.1em;pointer-events:none; }
.planet-orbit-label span { display:block;margin-top:5px;color:#f1ba71; }
.planet-scanline { position:absolute;z-index:3;left:0;right:0;top:-12%;height:1px;pointer-events:none;background:linear-gradient(90deg,transparent,#f4c2789c 28%,#fff1d2 50%,#f4c2789c 72%,transparent);box-shadow:0 0 16px 2px #e6a95278;animation:planet-scan 7s ease-in-out infinite; }
@keyframes planet-scan { 0%,100%{top:8%;opacity:0} 12%{opacity:.72} 78%{opacity:.62} 90%{top:92%;opacity:0} }
.planet-stage-status { position:absolute;z-index:4;left:22px;bottom:17px;color:#c5a978;font:8px Consolas,monospace;letter-spacing:.12em;pointer-events:none; }
.planet-css-fallback { display:none;position:absolute;inset:0;align-items:center;justify-content:center;overflow:hidden; }
.planet-canvas.is-fallback + .planet-css-fallback,.planet-frame:has(.planet-canvas.is-fallback) .planet-css-fallback { display:flex; }
.fallback-globe { position:relative;width:min(47vh,350px);aspect-ratio:1;border-radius:50%;background:radial-gradient(ellipse at 28% 23%,#f3d49d,#bd803e 27%,#57371d 57%,#100b07 76%);box-shadow:inset -35px -20px 45px #020912d9,0 0 35px #c5833f88,0 0 95px #a264304f; }
.fallback-globe:before { content:"";position:absolute;inset:13% 17%;border-radius:43% 57% 48% 52%;background:linear-gradient(125deg,transparent 6%,#e5bd7e 14%,#987342 30%,transparent 31% 42%,#ead8b5 44%,#a78858 58%,transparent 59%);filter:blur(7px);opacity:.8;transform:rotate(-20deg); }
.fallback-globe:after { content:"";position:absolute;inset:-5%;border:1px solid #edbe778c;border-radius:50%;box-shadow:inset 0 0 25px #e8bf8248; }
.explorer-layout[data-project="fractal"] .fallback-globe { background:radial-gradient(ellipse at 28% 23%,#fff0c9,#e69b4c 27%,#79421f 57%,#1b0f08 76%); }
.fallback-orbit { position:absolute;width:70%;height:29%;border:1px solid #edbd7768;border-radius:50%;transform:rotate(-18deg);box-shadow:0 0 18px #d08b4232; }
.planet-canvas.is-fallback { display:none; }
.planet-navigation { display:flex;align-items:center;justify-content:center;gap:35px;margin-top:17px; }
.planet-nav-button { width:43px;height:43px;border:1px solid #dfb76c77;border-radius:50%;color:#ffe2ae;background:radial-gradient(circle at 35% 30%,#513619,#171009);font-size:19px;line-height:1;box-shadow:0 0 20px #e0a64920;transition:transform .2s ease,background .2s ease,box-shadow .2s ease; }
.planet-nav-button:hover:not(:disabled) { transform:scale(1.08);background:#67451f;box-shadow:0 0 25px #e4a54b47; }
.planet-nav-button:disabled { opacity:.45; }
.planet-position { min-width:120px;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:4px 10px;color:#c5e7f0;font:9px Consolas,monospace;letter-spacing:.08em; }
.position-track { width:67px;height:1px;background:#594329; }
.position-track i { display:block;height:1px;width:50%;background:#f1bb6b;box-shadow:0 0 6px #eab45b;transition:width .5s ease; }
.position-caption { grid-column:1/3;color:#ad9876;font-size:7px;letter-spacing:.2em; }
.planet-touch-hint { margin:10px 0 0;text-align:center;color:#ad9876;font:7px Consolas,monospace;letter-spacing:.16em; }
.project-info :focus-visible,.planet-nav-button:focus-visible,.explorer-learn:focus-visible { outline:2px solid #ffd28b;outline-offset:4px; }

@media(max-width:1000px) {
  .explorer-inner { padding-left:30px;padding-right:30px; }
  .explorer-layout { grid-template-columns:minmax(330px,.9fr) minmax(420px,1.1fr);gap:22px; }
  .project-info { padding:28px; }
  .project-info h2 { font-size:clamp(34px,5vw,52px); }
  .planet-frame { min-height:440px;height:65vh; }
}
@media(max-width:840px) {
  .planet-explorer,.explorer-inner { min-height:0; }
  .explorer-inner { padding:20px 21px 34px; }
  .explorer-topline { font-size:6px;letter-spacing:.12em; }
  .explorer-topline > span { gap:7px; }
  .explorer-layout { display:flex;flex-direction:column;align-items:stretch;gap:24px;padding:26px 0 0; }
  .project-info { max-width:none;padding:25px 24px 23px; }
  .explorer-eyebrow { margin-bottom:22px; }
  .project-info h2 { font-size:clamp(39px,10vw,55px);margin-bottom:15px; }
  .explorer-summary { font-size:14px;margin-bottom:17px; }
  .project-facts { margin-bottom:19px; }
  .explorer-footnote { margin-top:23px; }
  .planet-side { padding-top:22px; }
  .planet-frame { height:73vw;min-height:340px;max-height:520px; }
  .planet-meta { font-size:6px; }
  .planet-navigation { gap:24px;margin-top:14px; }
  .planet-nav-button { width:39px;height:39px; }
  .planet-touch-hint { margin-top:9px; }
  .fallback-globe { width:min(62vw,320px); }
  .explorer-inner .journey-next { align-self:flex-start;margin-top:28px; }
}
@media(max-width:420px) {
  .explorer-inner { padding-left:15px;padding-right:15px; }
  .explorer-topline { letter-spacing:.08em; }
  .explorer-topline > span:last-child { text-align:right; }
  .project-info { padding:22px 19px; }
  .project-info h2 { font-size:40px; }
  .planet-frame { min-height:290px; }
}
@media(prefers-reduced-motion:reduce) {
  .planet-scanline { animation:none;top:50%;opacity:.35; }
  .planet-nav-button,.explorer-learn,.project-info { transition:none; }
  .project-info.is-revealing { animation:none; }
}
html.journey-reduced-motion .planet-scanline { animation:none;top:50%;opacity:.35; }
html.journey-reduced-motion .project-info.is-revealing { animation:none; }
body[data-current-chapter="projects"] .journey-progress { filter:sepia(.9) saturate(.8); }
