/* Infinite in Finitude — descent layer.
   Loaded AFTER the original hero CSS. The hero bundle and its CSS are untouched;
   this file only unlocks scrolling and styles what sits below the hero. */

/* ---------- scroll unlock (hero stays exactly one screen) ---------- */
html {
  background: var(--cosmos-deep);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }
body { overflow: visible; }

/* ---------- tokens ---------- */
#descent, #iif-page, .iif-about, .iif-lightbox {
  --d-gold: var(--primary);
  --d-star: var(--cosmos-star);
  --d-ink: oklch(96% .02 90 / .88);
  --d-mute: oklch(70% .03 90 / .75);
  --d-line: oklch(85% .12 85 / .14);
  --d-deep: var(--cosmos-deep);
  --d-deeper: oklch(5% .02 280);
  --d-void: oklch(2.5% .012 280);
  --d-glass: oklch(22% .05 285 / .28);
  --d-glass-hi: oklch(30% .06 285 / .38);
  --d-wrap: min(1080px, 100% - 3rem);
}

/* ---------- descent container ---------- */
#descent {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--d-ink);
  font-family: var(--font-body);
  background: linear-gradient(to bottom, var(--d-deep) 0, var(--d-deeper) 38%, var(--d-void) 80%, oklch(1.5% .008 280) 100%);
}
#descent:empty { display: none; }

/* mirror of the hero nebula, so the seam at the hero's bottom edge is invisible */
.d-nebula {
  position: absolute; inset: 0 0 auto 0; height: 100vh; z-index: -2; pointer-events: none;
  background-image: radial-gradient(at 20% 70%, #23134d80, #0000 55%), radial-gradient(at 80% 30%, #2e003666, #0000 60%), radial-gradient(at 50% 0%, #00133980, #0000 70%);
  background-image: radial-gradient(at 20% 70%, #23134d80, #0000 55%), radial-gradient(at 80% 30%, color(xyz 0.02 0.008 0.043 / 0.4), #0000 60%), radial-gradient(at 50% 0%, #00133980, #0000 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, #0000 100%);
          mask-image: linear-gradient(to bottom, #000 35%, #0000 100%);
}
.d-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.d-star {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: var(--d-star);
  animation: twinkle var(--tw, 5s) ease-in-out infinite;
  animation-delay: var(--dl, 0s);
}

/* ---------- planets ---------- */
.d-planet {
  --p: #a78bfa;
  position: relative; display: block; flex: none;
  width: var(--sz, 96px); height: var(--sz, 96px); border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, color-mix(in oklab, var(--p) 55%, white) 0, var(--p) 32%, color-mix(in oklab, var(--p) 35%, #05030d) 68%, #05030d 100%);
  box-shadow: 0 0 calc(var(--sz, 96px) * .45) color-mix(in oklab, var(--p) 28%, transparent),
              inset calc(var(--sz, 96px) * -.12) calc(var(--sz, 96px) * -.1) calc(var(--sz, 96px) * .2) #0000008c;
}
.d-planet.ring::after {
  content: ""; position: absolute; left: -38%; right: -38%; top: 42%; height: 18%;
  border-radius: 50%;
  border: 1.5px solid color-mix(in oklab, var(--p) 55%, transparent);
  box-shadow: 0 0 12px color-mix(in oklab, var(--p) 30%, transparent);
  transform: rotate(-16deg);
}
.d-float { position: absolute; will-change: transform; }
.d-float .d-planet { opacity: var(--op, .9); }

/* ---------- sections ---------- */
.d-sec { position: relative; width: var(--d-wrap); margin-inline: auto; }
.d-work { padding-top: clamp(6rem, 15vh, 9rem); }
.d-notes { padding-top: clamp(5rem, 12vh, 8rem); }

.d-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: clamp(2rem, 5vh, 3rem);
}
.d-head h2, .p-head h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  letter-spacing: .16em;
  color: var(--d-star);
  line-height: 1.1;
}
.d-head p, .p-head p {
  margin-top: .6rem;
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--d-mute);
}
.d-more {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body); font-style: italic; font-size: 1.1rem;
  color: var(--d-gold); text-decoration: none; white-space: nowrap;
  padding: .55rem 1.1rem; border-radius: 999px;
  border: 1px solid oklch(85% .12 85 / .28);
  background: oklch(85% .12 85 / .04);
  transition: background .3s, border-color .3s;
}
.d-more:hover, .d-more:focus-visible { background: oklch(85% .12 85 / .1); border-color: oklch(85% .12 85 / .55); }
.d-more .n { font-style: normal; font-size: .95rem; opacity: .7; }

/* ---------- The Work: glass cards on a sideways rail ---------- */
.d-rail-wrap { position: relative; }
.d-rail {
  display: flex; gap: 1.25rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 2.25rem max(1.5rem, (100vw - 1080px) / 2) 1.5rem;
  scroll-padding-inline: max(1.5rem, (100vw - 1080px) / 2);
  -webkit-mask-image: linear-gradient(to right, #0000 0, #000 max(1.5rem, (100vw - 1080px) / 2 - 1rem), #000 calc(100% - max(1.5rem, (100vw - 1080px) / 2 - 1rem)), #0000 100%);
          mask-image: linear-gradient(to right, #0000 0, #000 max(1.5rem, (100vw - 1080px) / 2 - 1rem), #000 calc(100% - max(1.5rem, (100vw - 1080px) / 2 - 1rem)), #0000 100%);
}
.d-rail::-webkit-scrollbar { display: none; }
.d-rail > * { flex: 0 0 clamp(260px, 29vw, 330px); scroll-snap-align: start; }

.d-card {
  position: relative; display: flex; flex-direction: column;
  height: 100%;
  color: inherit; text-decoration: none;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--d-glass-hi), var(--d-glass) 55%);
  border: 1px solid oklch(96% .02 90 / .1);
  box-shadow: inset 0 1px 0 oklch(96% .02 90 / .08), 0 20px 50px -20px #000;
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .3s;
}
.d-card:hover, .d-card:focus-visible { transform: translateY(-4px); border-color: oklch(85% .12 85 / .35); }
.d-card .d-planet { position: absolute; top: -26px; right: 18px; z-index: 2; --sz: 58px; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.d-card:hover .d-planet { transform: rotate(-10deg) scale(1.06); }
.d-card-media {
  position: relative; aspect-ratio: 16 / 10; margin: 10px 10px 0;
  border-radius: 12px; overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 20%, color-mix(in oklab, var(--p, #a78bfa) 30%, transparent), transparent 65%),
    oklch(10% .03 280 / .6);
}
.d-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.d-card-media .d-noshot {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.d-card-media .d-noshot .d-planet { position: static; --sz: 84px; opacity: .9; }
.d-card-body { padding: 1rem 1.2rem 1.25rem; display: grid; gap: .3rem; }
.d-card h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.3rem; letter-spacing: .07em; line-height: 1.2;
  color: var(--d-star); transition: color .3s;
}
.d-card:hover h3 { color: var(--d-gold); }
.d-card .d-tag {
  font-size: 1.1rem; line-height: 1.4; color: var(--d-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.d-card .d-status { margin-top: .25rem; font-style: italic; font-size: 1rem; color: var(--d-gold); opacity: .8; }

.d-rail-nav { display: flex; gap: .5rem; }
.d-arrow {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--d-star); background: var(--d-glass); cursor: pointer;
  border: 1px solid oklch(96% .02 90 / .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: opacity .3s, border-color .3s;
}
.d-arrow:hover { border-color: oklch(85% .12 85 / .5); }
.d-arrow:disabled { opacity: .25; cursor: default; }
.d-arrow svg { width: 16px; height: 16px; }

.d-work-foot { display: flex; align-items: center; justify-content: center; gap: 1.25rem; flex-wrap: wrap; margin-top: .75rem; }

/* card media frames */
.d-card-media.f-browser { display: block; }
.d-minbrowser { position: absolute; top: 0; left: 0; right: 0; z-index: 1; display: flex; gap: 4px; align-items: center; height: 18px; padding: 0 8px; background: oklch(20% .04 282 / .9); border-bottom: 1px solid oklch(96% .02 90 / .08); }
.d-minbrowser i { width: 6px; height: 6px; border-radius: 50%; background: oklch(96% .02 90 / .25); }
.d-card-media img.d-under-chrome { position: absolute; top: 18px; left: 0; width: 100%; height: calc(100% - 18px); }
.d-card-media.f-phone { display: grid; place-items: center; }
.d-minphone { height: 88%; aspect-ratio: 9 / 19; border-radius: 12px; padding: 3px; background: oklch(18% .03 282); border: 1px solid oklch(96% .02 90 / .18); box-shadow: 0 10px 30px -8px #000; overflow: hidden; }
.d-minphone img { border-radius: 9px; }

/* project screenshots: device mockup slider */
.mk-wrap { margin: clamp(2.5rem, 7vh, 4rem) calc(50% - min(500px, 50vw - 1.25rem)); display: grid; justify-items: center; gap: 1rem; }
.mk { position: relative; width: 100%; overflow: hidden; background: oklch(12% .03 282); box-shadow: 0 30px 80px -30px #000, 0 0 0 1px oklch(96% .02 90 / .1); }
.mk-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.mk-track::-webkit-scrollbar { display: none; }
.mk-slide { flex: 0 0 100%; min-width: 0; overflow: hidden; scroll-snap-align: start; padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }
.mk-slide img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; }
.mk-browser { border-radius: 14px; }
.mk-browser .mk-slide { aspect-ratio: 16 / 10; }
.mk-chrome { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: oklch(19% .04 282); border-bottom: 1px solid oklch(96% .02 90 / .08); }
.mk-chrome i { width: 10px; height: 10px; border-radius: 50%; background: oklch(96% .02 90 / .22); }
.mk-chrome i:nth-child(1) { background: #ff5f57cc; } .mk-chrome i:nth-child(2) { background: #febc2ecc; } .mk-chrome i:nth-child(3) { background: #28c840cc; }
.mk-url { margin: 0 auto; transform: translateX(-24px); min-width: 0; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 12px; color: oklch(96% .02 90 / .55); background: oklch(10% .03 282 / .7); padding: 4px 14px; border-radius: 7px; }
.mk-url:empty { display: none; }
.mk-phone { width: min(300px, 78vw); border-radius: 44px; padding: 11px; background: linear-gradient(145deg, oklch(26% .03 282), oklch(14% .03 282)); }
.mk-phone .mk-track { border-radius: 34px; }
.mk-phone .mk-slide { aspect-ratio: 9 / 19.5; }
.mk-notch { position: absolute; z-index: 2; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 999px; background: #05030d; }
.mk-none { border-radius: 14px; }
.mk-none .mk-slide { aspect-ratio: 16 / 10; }
.mk-none .mk-slide img { object-fit: contain; background: oklch(8% .02 280); }
.mk-nav { display: flex; align-items: center; justify-content: center; gap: 1.25rem; width: min(720px, 100% - 2rem); }
.mk-info { flex: 1; display: grid; justify-items: center; gap: .55rem; text-align: center; min-height: 2.5rem; }
.mk-cap { font-style: italic; color: var(--d-mute); font-size: 1.1rem; line-height: 1.4; }
.mk-cap:empty { display: none; }
.mk-count { font-style: italic; color: var(--d-mute); font-size: 1rem; }
.mk-dots { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: center; }
.mk-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; background: oklch(96% .02 90 / .25); transition: background .3s, transform .3s; }
.mk-dots button[aria-current="true"] { background: var(--d-gold); transform: scale(1.25); }

/* work index grid */
.d-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2.75rem 1.25rem; padding-top: 1.75rem; }

/* ---------- Field Notes: a logbook ---------- */
.d-log { width: min(760px, 100%); border-top: 1px solid var(--d-line); }
.d-notes .d-log { margin-inline: auto; }
.d-log li { border-bottom: 1px solid var(--d-line); }
.d-note {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.5rem;
  padding: 1.6rem .25rem;
  color: inherit; text-decoration: none;
  outline-offset: 4px;
}
.d-note time { font-style: italic; color: var(--d-mute); font-size: 1.05rem; padding-top: .3rem; }
.d-note h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.15rem, 1.9vw, 1.4rem); letter-spacing: .05em;
  color: var(--d-star); line-height: 1.3; transition: color .3s;
}
.d-note p { margin-top: .4rem; font-size: 1.15rem; line-height: 1.55; color: var(--d-mute); }
.d-note:hover h3 { color: var(--d-gold); }
.d-notes-foot { display: flex; justify-content: center; margin-top: 2.25rem; }
.d-empty { font-style: italic; color: var(--d-mute); font-size: 1.15rem; padding: 1.5rem 0; }

/* notes archive */
.d-search {
  width: min(760px, 100%); margin: 0 0 2.5rem;
  display: flex; align-items: center; gap: .75rem;
  border-bottom: 1px solid oklch(85% .12 85 / .3);
}
.d-search svg { width: 18px; height: 18px; color: var(--d-mute); flex: none; }
.d-search input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0;
  font-family: var(--font-body); font-size: 1.3rem; color: var(--d-star);
  padding: .7rem 0;
}
.d-search input::placeholder { color: var(--d-mute); font-style: italic; }
.d-year {
  font-family: var(--font-display); font-size: .9rem; letter-spacing: .3em;
  color: var(--d-gold); opacity: .8; margin: 2.75rem 0 .75rem;
}
.d-year:first-of-type { margin-top: 0; }
.d-count { font-style: italic; color: var(--d-mute); margin-bottom: 1.5rem; }

/* ---------- earth ---------- */
.d-earth { position: relative; margin-top: clamp(4rem, 10vh, 7rem); display: grid; place-items: center; }
.d-earth-stage {
  position: relative; width: min(560px, 92vw); aspect-ratio: 1 / 1;
  cursor: grab; touch-action: pan-y; -webkit-tap-highlight-color: transparent;
}
.d-earth-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.d-earth-stage.no-webgl { cursor: default; }
.d-earth-stage.no-webgl::before {
  content: ""; position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #9fb4ff 0, #3b4ea8 30%, #141a4a 62%, #05030d 100%);
  box-shadow: 0 0 60px #8f7dff55;
}
.d-earth + .d-foot { margin-top: 0; padding-top: clamp(1rem, 3vh, 2rem); }

/* ---------- footer ---------- */
.d-foot {
  position: relative;
  margin-top: clamp(5rem, 12vh, 8rem);
  padding: clamp(4rem, 10vh, 6rem) 1.5rem calc(2.75rem + env(safe-area-inset-bottom, 0px));
  display: flex; justify-content: center; text-align: center;
}
.d-foot-inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: .9rem; }
.d-foot-mark {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .3rem 1rem;
  font-family: var(--font-display); letter-spacing: .35em; font-size: .72rem; color: var(--d-mute); opacity: .75;
}
.d-foot-mark span { white-space: nowrap; }
.d-foot-mark .dot { color: var(--d-gold); letter-spacing: 0; }
.d-patricia {
  font-family: var(--font-body); font-style: italic; font-size: 1.2rem;
  color: var(--d-ink); background: none; border: 0; cursor: pointer;
  padding: .25rem .5rem; opacity: .75; transition: opacity .3s, color .3s;
}
.d-patricia:hover, .d-patricia:focus-visible { opacity: 1; color: var(--d-gold); }
.d-foot-year { font-size: .9rem; color: var(--d-mute); opacity: .55; }

/* ---------- about overlay (from the footer) ---------- */
.iif-about {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: oklch(8% .03 280 / .82);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  cursor: pointer; animation: iifFade .5s ease-out;
}
.iif-about > div { max-width: 34rem; padding: 0 2rem; text-align: center; cursor: default; animation: fadeUp .8s ease-out forwards; }
.iif-about .a-k { font-family: var(--font-display); font-size: 10px; text-transform: uppercase; letter-spacing: .5em; color: var(--primary); }
.iif-about h2 { margin-top: .75rem; font-family: var(--font-display); font-size: 1.875rem; letter-spacing: .1em; color: var(--cosmos-star); font-weight: 400; }
.iif-about p.a-b { margin-top: 1.25rem; font-family: var(--font-body); font-style: italic; font-size: 1.125rem; line-height: 1.625; color: oklch(96% .02 90 / .85); }
.iif-about .a-x { margin-top: 2rem; font-family: var(--font-display); font-size: 10px; text-transform: uppercase; letter-spacing: .4em; color: var(--muted-foreground); }
@keyframes iifFade { from { opacity: 0 } to { opacity: 1 } }

/* ---------- screenshot lightbox ---------- */
.iif-lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: grid; grid-template-rows: 1fr auto; place-items: center;
  padding: calc(1rem + env(safe-area-inset-top, 0px)) 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  background: oklch(4% .015 280 / .94);
  animation: iifFade .3s ease-out;
}
.iif-lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); border-radius: 10px; object-fit: contain; }
.iif-lightbox .lb-bar { display: flex; align-items: center; gap: 1rem; padding-top: 1rem; color: var(--d-mute); font-family: var(--font-body); font-style: italic; font-size: 1.05rem; }
.iif-lightbox button { background: none; border: 1px solid oklch(96% .02 90 / .2); color: var(--d-star); border-radius: 999px; padding: .4rem .9rem; cursor: pointer; font: inherit; font-style: normal; }

/* ---------- inner pages (/thework, /fieldnotes and their items) ---------- */
html.iif-pagemode body { background: none; }
#iif-page[hidden] { display: none; }
#iif-page {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh;
  color: var(--d-ink);
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, #23134d66, #0000 70%),
    linear-gradient(to bottom, var(--d-deep), var(--d-void) 85%);
}
.p-top {
  width: var(--d-wrap); margin-inline: auto;
  padding: calc(1.75rem + env(safe-area-inset-top, 0px)) 0 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.p-top a {
  font-family: var(--font-display); font-size: .72rem; letter-spacing: .32em;
  color: var(--d-mute); text-decoration: none; transition: color .3s;
}
.p-top nav { display: flex; gap: 1.5rem; }
.p-top a:hover, .p-top a:focus-visible, .p-top a[aria-current] { color: var(--d-gold); }
.p-head { width: var(--d-wrap); margin: clamp(3.5rem, 10vh, 6rem) auto 0; }
.p-list { width: var(--d-wrap); margin: 2.5rem auto 0; }
.p-art { width: min(720px, 100% - 3rem); margin: clamp(3.5rem, 10vh, 6rem) auto 0; }
.p-kind { font-style: italic; color: var(--d-gold); font-size: 1.1rem; opacity: .85; }
.p-art h1 {
  margin-top: .6rem;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem); letter-spacing: .08em; line-height: 1.1;
  color: var(--d-star);
}
.p-lede { margin-top: 1.1rem; font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.5; font-style: italic; color: var(--d-ink); }
.p-meta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: 1.05rem; color: var(--d-mute); }
.p-meta a { color: var(--d-gold); text-underline-offset: 4px; }
.p-cover { margin: clamp(2.5rem, 7vh, 4rem) 0; display: grid; place-items: center; }
.p-cover img { width: 100%; border-radius: .75rem; border: 1px solid var(--d-line); }
.p-cover .d-planet { --sz: clamp(150px, 34vw, 230px); }
.p-shots { margin: 0 0 3rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.p-shots button { padding: 0; border: 1px solid var(--d-line); border-radius: .6rem; overflow: hidden; background: none; cursor: zoom-in; aspect-ratio: 16 / 10; }
.p-shots img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .5s; }
.p-shots button:hover img { transform: scale(1.03); }
.p-body { font-size: clamp(1.18rem, 1.9vw, 1.3rem); line-height: 1.75; color: var(--d-ink); }
.p-body > * + * { margin-top: 1.15em; }
.p-body h2, .p-body h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: .06em; color: var(--d-star); line-height: 1.25; margin-top: 2em; }
.p-body h2 { font-size: 1.55rem; } .p-body h3 { font-size: 1.25rem; }
.p-body a { color: var(--d-gold); text-underline-offset: 4px; }
.p-body strong { color: var(--d-star); font-weight: 600; }
.p-body blockquote { border-left: 2px solid var(--d-gold); padding-left: 1.25rem; font-style: italic; color: var(--d-star); }
.p-body ul { list-style: none; padding-left: 0; }
.p-body ul li { position: relative; padding-left: 1.3rem; }
.p-body ul li + li { margin-top: .4em; }
.p-body ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--d-gold); opacity: .7; }
.p-body img { width: 100%; border-radius: .6rem; border: 1px solid var(--d-line); }
.p-body figure figcaption { margin-top: .5rem; font-size: 1rem; font-style: italic; color: var(--d-mute); text-align: center; }
.p-next {
  margin-top: clamp(4rem, 10vh, 6rem); padding-top: 2rem; border-top: 1px solid var(--d-line);
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.p-next a { color: inherit; text-decoration: none; max-width: 100%; }
.p-next small { display: block; font-style: italic; color: var(--d-mute); font-size: 1rem; }
.p-next span { font-family: var(--font-display); letter-spacing: .05em; color: var(--d-star); font-size: 1.15rem; transition: color .3s; }
.p-next a:hover span { color: var(--d-gold); }
.p-loadmore { display: flex; justify-content: center; margin-top: 2.5rem; }
.p-loadmore button { font: inherit; cursor: pointer; }

/* ---------- focus + motion ---------- */
#descent a:focus-visible, #descent button:focus-visible,
#iif-page a:focus-visible, #iif-page button:focus-visible, #iif-page input:focus-visible {
  outline: 1px solid var(--d-gold); outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .d-star { animation: none; opacity: .5; }
  .d-float { transform: none !important; }
  .d-card, .d-card .d-planet { transition: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  #descent, #iif-page { --d-wrap: calc(100% - 2.5rem); }
  .d-rail { padding-inline: 1.25rem; scroll-padding-inline: 1.25rem; gap: 1rem; -webkit-mask-image: none; mask-image: none; }
  .d-rail > * { flex-basis: 78vw; }
  .d-rail-nav { display: none; }
  .d-head { flex-direction: column; gap: 1.1rem; }
  .d-note { grid-template-columns: 1fr; gap: .35rem; padding: 1.4rem 0; }
  .d-note time { padding-top: 0; font-size: 1rem; }
  .d-float .d-planet { opacity: calc(var(--op, .9) * .6); }
  .p-top a { letter-spacing: .22em; }
  .p-top nav { gap: 1rem; }
  .mk-browser { border-radius: 10px; }
  .mk-chrome { height: 26px; padding: 0 10px; gap: 5px; }
  .mk-chrome i { width: 7px; height: 7px; }
  .mk-url { font-size: 10px; padding: 2px 10px; transform: translateX(-14px); }
  .mk-nav { gap: .75rem; }
}

/* =====================================================================
   Site shell: header on every page
   ===================================================================== */
.sh {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 1.5rem;
  padding: calc(.9rem + env(safe-area-inset-top, 0px)) clamp(1.1rem, 3vw, 2.25rem) .9rem;
  transition: background .4s, -webkit-backdrop-filter .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.sh.scrolled { background: rgba(5, 9, 26, .9); border-bottom-color: oklch(85% .12 85 / .08); }
.sh-logo { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -6px 0; border-radius: 50%; }
.sh-star { width: 40px; height: 40px; filter: drop-shadow(0 0 6px rgba(242, 212, 138, .55)) drop-shadow(0 0 18px rgba(167, 139, 250, .35)); transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; }
.sh-logo:hover .sh-star, .sh-logo:focus-visible .sh-star { transform: rotate(18deg) scale(1.08); filter: drop-shadow(0 0 10px rgba(242, 212, 138, .8)) drop-shadow(0 0 26px rgba(167, 139, 250, .5)); }
.sh-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.sh-nav > a, .sh-dd > button {
  font-family: var(--font-body); font-style: italic; font-size: 1.12rem; color: oklch(96% .02 90 / .78);
  text-decoration: none; background: none; border: 0; cursor: pointer; padding: .3rem 0; white-space: nowrap;
  position: relative; transition: color .3s;
}
.sh-nav > a::after, .sh-dd > button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--primary);
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.sh-nav > a:hover, .sh-dd > button:hover, .sh-nav > a[aria-current] { color: var(--cosmos-star); }
.sh-nav > a:hover::after, .sh-nav > a[aria-current]::after { transform: scaleX(1); }
.sh-dd { position: relative; }
.sh-dd > button { display: inline-flex; align-items: center; }
.sh-dd > button svg { width: 10px; height: 10px; margin-left: .35rem; vertical-align: middle; transition: transform .3s; }
.sh-dd.open > button svg { transform: rotate(180deg); }
.sh-menu {
  position: absolute; top: calc(100% + .7rem); left: 50%; transform: translate(-50%, -6px); min-width: 15rem;
  padding: .5rem; border-radius: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  background: oklch(14% .045 285 / .92); border: 1px solid oklch(96% .02 90 / .1);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 20px 50px -20px #000;
}
.sh-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -.9rem; height: .9rem; }
.sh-dd.open .sh-menu { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.sh-menu a { display: grid; gap: .1rem; padding: .7rem .85rem; border-radius: 10px; text-decoration: none; color: var(--cosmos-star); }
.sh-menu a:hover, .sh-menu a:focus-visible { background: oklch(85% .12 85 / .08); }
.sh-menu a b { font-family: var(--font-display); font-weight: 400; letter-spacing: .1em; font-size: .95rem; }
.sh-menu a small, .sh-soon { font-family: var(--font-body); font-style: italic; font-size: 1rem; color: oklch(70% .03 90 / .8); }
.sh-soon { display: block; padding: .5rem .85rem .6rem; opacity: .7; }
.sh-li {
  border-radius: 999px; border: 1px solid oklch(85% .12 85 / .3); background: oklch(8% .03 280 / .4);
  padding: .55rem 1.15rem !important; font-family: var(--font-display) !important; font-style: normal !important;
  font-size: 10px !important; text-transform: uppercase; letter-spacing: .3em; color: var(--primary) !important;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: border-color .3s, background .3s !important;
}
.sh-li::after { display: none; }
.sh-li:hover { border-color: var(--primary); background: oklch(85% .12 85 / .1); }
.sh-burger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; width: 2.6rem; height: 2.6rem; border-radius: 50%; color: var(--cosmos-star); }
.sh-burger span { display: block; width: 20px; height: 1.5px; margin: 5px auto; background: currentColor; transition: transform .3s, opacity .3s; }
.sh a:focus-visible, .sh button:focus-visible, .sh-sheet a:focus-visible, .sh-sheet button:focus-visible { outline: 1px solid var(--primary); outline-offset: 4px; border-radius: 4px; }

/* phone menu */
.sh-sheet {
  position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; justify-content: center; gap: 1.6rem;
  padding: calc(5rem + env(safe-area-inset-top, 0px)) 2rem calc(2rem + env(safe-area-inset-bottom, 0px));
  background: oklch(8% .03 280 / .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  animation: iifFade .3s ease-out;
}
.sh-sheet[hidden] { display: none; }
.sh-sheet .x { position: absolute; top: calc(1rem + env(safe-area-inset-top, 0px)); right: 1.1rem; background: none; border: 0; color: var(--cosmos-star); font-size: 2rem; line-height: 1; cursor: pointer; width: 2.6rem; height: 2.6rem; }
.sh-sheet > a, .sh-sheet .k { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .12em; color: var(--cosmos-star); text-decoration: none; }
.sh-sheet > a[aria-current] { color: var(--primary); }
.sh-sheet .k { font-size: .75rem; letter-spacing: .35em; color: var(--primary); opacity: .85; margin-bottom: -.8rem; }
.sh-sheet .games a { display: block; font-family: var(--font-body); font-style: italic; font-size: 1.35rem; color: var(--cosmos-star); text-decoration: none; padding: .2rem 0; }
.sh-sheet .games span { display: block; font-family: var(--font-body); font-style: italic; font-size: 1.1rem; color: oklch(70% .03 90 / .7); }
.sh-sheet .sh-li { align-self: flex-start; margin-top: .5rem; }
@media (max-width: 1099px) {
  .sh-nav { display: none; }
  .sh-burger { display: block; }
}

/* inner pages sit below the fixed header */
#iif-page .p-head, #iif-page .p-art { margin-top: calc(clamp(3rem, 8vh, 5rem) + 4rem); }
#iif-page .ty-main { padding-top: calc(clamp(1.5rem, 5vh, 3rem) + 4.25rem); }

/* =====================================================================
   Home: hero, the Story, the Earth
   ===================================================================== */
.hm { position: relative; isolation: isolate; color: oklch(96% .02 90); --deep: #040818; }
html.iif-pagemode body { background: #040818; }

/* hero: layered parallax */
.hx { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #090e24; }
.hx-layers { position: absolute; inset: 0; }
.hx-l { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; will-change: transform; }
img.hx-l { display: block; }
.hx-title { display: flex; justify-content: center; align-items: flex-start; padding: 22vh 1rem 0; pointer-events: none; }
.hx-title { flex-direction: column; align-items: center; justify-content: flex-start; }
.hx-title h1 {
  display: grid; justify-items: center; text-align: center;
  font-family: var(--font-display); font-weight: 700; line-height: 1; letter-spacing: .04em;
  text-shadow: 0 0 18px rgba(242, 212, 138, .32), 0 4px 26px rgba(0, 0, 0, .45);
}
.hx-title .t1, .hx-title .t2 { position: relative; }
/* soft gold-violet halo that slowly breathes: a pre-blurred copy that only changes opacity */
.hx-title .t1::before, .hx-title .t2::before {
  content: attr(data-glow); position: absolute; inset: 0; z-index: -1; color: transparent; pointer-events: none;
  text-shadow: 0 0 30px rgba(242, 212, 138, .75), 0 0 80px rgba(167, 139, 250, .45);
  opacity: .45; will-change: opacity; animation: heroBreath 6s ease-in-out infinite;
}
@keyframes heroBreath { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
.hx-title .t1 { color: #fff8ea; font-size: clamp(2.8rem, 10.5vw, 11rem); }
.hx-title .t2 { color: #fff8ea; font-size: clamp(2rem, 7.4vw, 7.8rem); margin-top: .02em; }
.hx-title .t2 em { font-style: normal; color: #f2d48a; }
@keyframes heroGlow {
  0%, 100% { text-shadow: 0 0 18px rgba(242, 212, 138, .35), 0 0 60px rgba(167, 139, 250, .22), 0 4px 26px rgba(0, 0, 0, .45); }
  50% { text-shadow: 0 0 28px rgba(242, 212, 138, .58), 0 0 84px rgba(167, 139, 250, .36), 0 4px 26px rgba(0, 0, 0, .45); }
}
.sky-day .hx-title h1 { text-shadow: 0 0 16px rgba(255, 236, 190, .5), 0 2px 18px rgba(10, 25, 60, .5), 0 6px 40px rgba(10, 25, 60, .35); }
@keyframes heroGlowDay {
  0%, 100% { text-shadow: 0 0 16px rgba(255, 236, 190, .45), 0 2px 18px rgba(10, 25, 60, .5), 0 6px 40px rgba(10, 25, 60, .35); }
  50% { text-shadow: 0 0 26px rgba(255, 236, 190, .7), 0 2px 18px rgba(10, 25, 60, .5), 0 6px 40px rgba(10, 25, 60, .35); }
}
.hx-tag {
  margin-top: clamp(.6rem, 1.4vw, 1.4rem); font-family: var(--font-display); font-weight: 400; color: #f2d48a;
  font-size: clamp(.8rem, 1.6vw, 1.6rem); letter-spacing: .38em; padding-left: .38em; text-transform: uppercase; white-space: nowrap;
  text-shadow: 0 0 14px rgba(242, 212, 138, .35), 0 1px 12px rgba(0, 0, 0, .6);
}
.hx-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(to bottom, rgba(5, 10, 32, 0), #050a20); pointer-events: none; }
.hx-cue {
  position: absolute; left: 50%; bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 2;
  display: grid; justify-items: center; gap: .2rem; text-decoration: none;
  font-family: var(--font-display); font-size: .7rem; letter-spacing: .4em; text-transform: uppercase; color: #f2d48a;
}
.hx-cue i { font-style: normal; font-size: 1rem; animation: stBob 2.4s ease-in-out infinite; }
@keyframes stBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* the story: deep-blue nebula */
.sto, .hm-earth { position: relative; overflow: hidden; isolation: isolate; }
.sto { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 6rem 1.25rem 4rem; }
.sto::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22vh; z-index: -2; background: linear-gradient(#040818, rgba(4, 8, 24, 0)); pointer-events: none; }
.sto-bg {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse 60% 50% at 22% 28%, rgba(38, 76, 170, .42), transparent 70%),
    radial-gradient(ellipse 55% 45% at 80% 62%, rgba(84, 52, 160, .32), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 105%, rgba(18, 98, 150, .28), transparent 70%),
    radial-gradient(ellipse 40% 30% at 65% 15%, rgba(120, 70, 170, .18), transparent 70%),
    #040818;
}
.sto-stars { position: absolute; inset: -6% -4%; z-index: -2; pointer-events: none; will-change: transform; }
.sto-stars { background-repeat: repeat; }
.sto-stars.tw { bottom: auto; height: 150vh; will-change: opacity, transform; animation: starTw 7s ease-in-out infinite; }
.sto-stars.tw.b { animation-duration: 9s; animation-delay: -4s; }
@keyframes starTw { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
.sto-shoot { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sto-shoot i {
  position: absolute; width: 170px; height: 1.5px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(220, 232, 255, .95));
  transform: rotate(28deg); animation: shoot 7s linear infinite;
}
@keyframes shoot {
  0% { opacity: 0; translate: 0 0; } 4% { opacity: .9; } 30% { opacity: 0; translate: 40vw 22vw; } 100% { opacity: 0; translate: 40vw 22vw; }
}
.sto-planets { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.pl { position: absolute; height: auto; will-change: transform; animation: plFloat 14s ease-in-out infinite; }
.pl.tumble { animation: plTumble 40s linear infinite; }
.pl.tumble.slow { animation-duration: 70s; }
@keyframes plFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes plTumble { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.sto-games { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sto-gstar { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; padding: 8px; opacity: .55; transition: opacity .4s; }
.sto-gstar:not(.live) { cursor: default; }
.sto-gstar:hover, .sto-gstar:focus-visible { opacity: 1; }
.sto-glabel { position: absolute; left: 50%; top: calc(100% + 2px); transform: translateX(-50%); white-space: nowrap; font-family: var(--font-body); font-style: italic; font-size: .95rem; color: rgba(240, 236, 226, .75); opacity: 0; transition: opacity .3s; pointer-events: none; }
.sto-gstar:hover .sto-glabel, .sto-gstar:focus-visible .sto-glabel { opacity: 1; }

.sto-card { position: relative; z-index: 2; width: min(46rem, 100%); text-align: center; display: grid; justify-items: center; }
.sto-stage { min-height: clamp(22rem, 52vh, 30rem); display: flex; flex-direction: column; justify-content: center; align-items: center; outline: none; }
.sto-eyebrow { font-size: 10px; letter-spacing: .55em; color: rgba(200, 196, 186, .8); animation: fadeUp 1s ease-out both; }
.sto-title { margin-top: 1.3rem; font-size: clamp(2rem, 5vw, 3.9rem); letter-spacing: .12em; line-height: 1.12; animation: fadeUp 1s ease-out .08s both, title-glow 5s ease-in-out 1.1s infinite; }
.sto-expand { letter-spacing: .18em; animation: expand 3s ease-out forwards; }
.sto-lines { margin-top: 1.9rem; display: grid; gap: .5rem; }
.sto-lines p { font-family: var(--font-body); font-style: italic; font-size: clamp(1.12rem, 1.6vw, 1.38rem); line-height: 1.6; color: rgba(244, 240, 230, .9); animation: fadeUp 1s ease-out both; animation-delay: calc(.3s + var(--k) * .2s); }
.sto-lines.solo p { font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.45; }
.sto-nav { margin-top: 2.4rem; display: flex; align-items: center; gap: 1.4rem; }
.sto-nav > button { background: none; border: 0; cursor: pointer; font-size: .75rem; letter-spacing: .4em; text-transform: uppercase; color: #f2d48a; padding: .6rem .2rem; transition: color .3s, opacity .3s; }
.sto-prev { color: rgba(200, 196, 186, .8) !important; }
.sto-nav > button:hover:not(:disabled) { color: #fff8e6; }
.sto-nav > button:disabled { opacity: .2; cursor: default; }
.sto-dots { display: flex; gap: .6rem; align-items: center; }
.sto-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: rgba(200, 196, 186, .35); transition: width .5s, background .3s; }
.sto-dots button:hover { background: rgba(200, 196, 186, .7); }
.sto-dots button[aria-current="true"] { width: 36px; background: #f2d48a; }

/* the earth, above the footer */
.hm-earth { display: grid; place-items: center; padding: clamp(4rem, 12vh, 7rem) 0 clamp(2rem, 6vh, 4rem); }
.hm-earth .sto-bg { background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(38, 76, 170, .25), transparent 70%), radial-gradient(ellipse 50% 40% at 80% 20%, rgba(84, 52, 160, .18), transparent 70%), #040818; }
.hm-earth-stage { position: relative; width: min(640px, 94vw); aspect-ratio: 1 / 1; }

/* footer */
.ft { position: relative; z-index: 3; background: linear-gradient(to bottom, #040818, #02040c 40%); border-top: 1px solid rgba(242, 212, 138, .1); color: rgba(244, 240, 230, .82); font-family: var(--font-body); }
.ft-in { width: min(1180px, 100% - 3rem); margin: 0 auto; padding: clamp(3rem, 8vh, 4.5rem) 0 calc(1.75rem + env(safe-area-inset-bottom, 0px)); }
.ft-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 3rem; }
.ft-logo { display: inline-block; border-radius: 50%; }
.ft-star { width: 84px; height: 84px; filter: drop-shadow(0 0 10px rgba(242, 212, 138, .5)) drop-shadow(0 0 30px rgba(167, 139, 250, .3)); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.ft-logo:hover .ft-star { transform: rotate(24deg) scale(1.05); }
.ft-name { margin-top: 1rem; font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; font-size: 1.05rem; color: #fbf7ee; }
.ft-name em { font-style: normal; color: #f2d48a; }
.ft-tag { margin-top: .3rem; font-family: var(--font-display); letter-spacing: .3em; font-size: .7rem; text-transform: uppercase; color: rgba(242, 212, 138, .8); }
.ft-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.ft-cols h2 { font-family: var(--font-display); font-weight: 400; font-size: .72rem; letter-spacing: .35em; text-transform: uppercase; color: #f2d48a; margin-bottom: 1rem; }
.ft-cols div { display: grid; gap: .55rem; align-content: start; justify-items: start; }
.ft-cols a, .ft-cols button { font-family: var(--font-body); font-size: 1.12rem; color: rgba(244, 240, 230, .82); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; transition: color .25s; }
.ft-cols a:hover, .ft-cols button:hover { color: #fff8e6; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(242, 212, 138, .6); }
.ft-cols span { font-style: italic; font-size: 1.02rem; color: rgba(200, 196, 186, .6); }
.ft-bottom { margin-top: clamp(2.5rem, 6vh, 3.5rem); padding-top: 1.4rem; border-top: 1px solid rgba(244, 240, 230, .08); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ft-bottom p { font-size: 1rem; color: rgba(200, 196, 186, .6); }
.ft-up {
  display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; margin-left: auto;
  font-family: var(--font-display); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: #f2d48a;
  background: rgba(242, 212, 138, .05); border: 1px solid rgba(242, 212, 138, .3); border-radius: 999px; padding: .6rem .7rem .6rem 1.1rem; transition: background .3s, border-color .3s;
}
.ft-up i { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: rgba(242, 212, 138, .14); font-style: normal; font-size: .95rem; transition: transform .3s; }
.ft-up:hover { background: rgba(242, 212, 138, .12); border-color: rgba(242, 212, 138, .6); }
.ft-up:hover i { transform: translateY(-3px); }
.ft a:focus-visible, .ft button:focus-visible, .hm a:focus-visible, .hm button:focus-visible { outline: 1px solid #f2d48a; outline-offset: 4px; border-radius: 4px; }

/* inner pages: deep-blue space instead of violet */
#iif-page { background: radial-gradient(ellipse 80% 45% at 30% 0%, rgba(38, 76, 170, .32), transparent 70%), radial-gradient(ellipse 60% 40% at 90% 60%, rgba(84, 52, 160, .18), transparent 70%), linear-gradient(to bottom, #050a1e, #03060f 85%); }
#iif-page .d-sky .pl { animation: plFloat 14s ease-in-out infinite; }

/* project-card planets: a bit of surface texture so they read as worlds, not buttons */
.d-planet::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; mix-blend-mode: overlay; opacity: .55; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.045' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E") center / cover;
}
.d-planet { background:
    radial-gradient(circle at 34% 30%, color-mix(in oklab, var(--p) 55%, white) 0, var(--p) 24%, color-mix(in oklab, var(--p) 55%, #05030d) 52%, #020108 74%) !important; }

/* taller screens: shrink the scene so the figure stays below the title */
@media (max-aspect-ratio: 3/2) { img.hx-l + img.hx-l, .hx-title + img.hx-l { top: auto; height: 90%; } }
@media (max-aspect-ratio: 1/1) { img.hx-l + img.hx-l, .hx-title + img.hx-l { height: 84%; } }
@media (max-aspect-ratio: 3/5) { img.hx-l + img.hx-l, .hx-title + img.hx-l { height: 80%; } }
@media (max-width: 899px) {
  .hx-title .t1 { font-size: 17vw; }
  .hx-title .t2 { font-size: 11.5vw; }
  .hx-tag { letter-spacing: .3em; padding-left: .3em; }
  .sto { padding: 5rem 1.25rem 3.5rem; }
  .sto-stage { min-height: 30rem; }
  .sto-gstar:not(.live) { display: none; }
  .sto-gstar.live { opacity: .8; }
  .sto-planets .pl { transform-origin: center; }
  .ft-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .ft-cols { grid-template-columns: 1fr 1fr; }
  .ft-cols > div:last-child { grid-column: span 2; }
  .ft-bottom { flex-direction: column-reverse; align-items: flex-start; }
  .ft-up { margin-left: 0; }
}
@media (max-width: 520px) {
  .sto-planets .pl[data-n="saturn"] { width: 150px !important; left: 66% !important; top: 3% !important; }
  .hm-earth .pl[data-n="jupiter"] { width: 130px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .sto-shoot { display: none; }
  .pl, .pl.tumble { animation: none; }
  .hx-cue i { animation: none; }
}

/* =====================================================================
   One continuous deep-space page below the hero: blue nebula fading to black
   ===================================================================== */
.deep { position: relative; isolation: isolate; overflow: hidden; }
.deep-bg {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse 70% 900px at 22% 600px, rgba(38, 76, 170, .40), transparent 70%),
    radial-gradient(ellipse 60% 800px at 82% 1100px, rgba(84, 52, 160, .28), transparent 70%),
    radial-gradient(ellipse 55% 700px at 30% 2100px, rgba(28, 60, 140, .20), transparent 70%),
    radial-gradient(ellipse 50% 600px at 75% 2900px, rgba(70, 44, 140, .12), transparent 70%),
    linear-gradient(to bottom, #050a20 0, #040818 1400px, #02040d 2600px, #010207 3600px, #000003 100%);
}
.deep > .sto-stars { inset: 0 -3%; }
.deep > .sto-shoot { inset: 0 0 auto 0; height: 110vh; }
.deep-planets { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sto { padding-top: 5rem; }
.hm-sec { position: relative; padding: clamp(5rem, 13vh, 8rem) 0 0; }
.hm-head { text-align: center; margin-bottom: clamp(1.75rem, 4vh, 2.5rem); }
.hm-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 4vw, 3.1rem); letter-spacing: .14em; color: var(--cosmos-star); line-height: 1.15; }
.hm-head p { margin-top: .7rem; color: rgba(214, 210, 200, .72); font-size: clamp(.98rem, 1.3vw, 1.1rem); }
.hm-foot { display: flex; align-items: center; justify-content: center; gap: 1.25rem; flex-wrap: wrap; margin-top: .75rem; }
.hm-notes .d-log { margin-inline: auto; }
.hm-empty { text-align: center; }
.hm-earth { padding: clamp(5rem, 14vh, 8rem) 0 0; display: grid; place-items: center; }
.deep .ft { background: transparent; border-top: 0; }
.deep .ft-in { padding-top: clamp(1.5rem, 4vh, 2.5rem); }

/* =====================================================================
   Body type: a clean, airy sans for the cosmos; Cinzel stays for titles
   ===================================================================== */
:root, html { --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
body { font-family: var(--font-body); }
body, #iif-page, .iif-about, .iif-lightbox { font-synthesis-style: none; }
.font-display, h1, h2, .sto-title, .sto-title * { font-synthesis-style: auto; }
#iif-page { font-weight: 300; }
.sto-lines p { font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.75; font-weight: 300; letter-spacing: .01em; }
.sto-lines.solo p { font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 300; }
.sh-nav > a, .sh-dd > button { font-size: .9rem; font-weight: 400; letter-spacing: .02em; }
.sh-menu a small, .sh-soon { font-size: .82rem; }
.sh-sheet .games a { font-size: 1.15rem; } .sh-sheet .games span { font-size: .95rem; }
.ft-cols a, .ft-cols button { font-size: .95rem; font-weight: 300; }
.ft-cols span { font-size: .88rem; } .ft-bottom p { font-size: .82rem; }
.d-card .d-tag { font-size: .95rem; font-weight: 300; } .d-card .d-status { font-size: .82rem; }
.d-note time { font-size: .85rem; } .d-note p { font-size: .97rem; font-weight: 300; }
.d-more { font-size: .9rem; } .d-more .n { font-size: .8rem; }
.d-empty { font-size: 1rem; } .d-count, .d-search input { font-size: 1rem; }
.p-head p, .d-head p { font-size: clamp(.98rem, 1.3vw, 1.1rem); }
.p-lede { font-size: clamp(1.08rem, 1.7vw, 1.25rem); font-weight: 300; }
.p-kind, .p-meta, .p-next small { font-size: .9rem; }
.p-body { font-size: clamp(1.02rem, 1.3vw, 1.1rem); line-height: 1.8; font-weight: 300; }
.mk-cap, .mk-count { font-size: .92rem; }
.iif-about p.a-b { font-size: 1.02rem; font-weight: 300; }
.sto-glabel { font-size: .8rem; }
.ty-lede, .ty-k, .ty-link, .ty-pass p, .ty-foot, .ty-stat small, .ty-tile small, .ty-verdict { font-weight: 300; }
.ty-lede { font-size: clamp(1rem, 1.6vw, 1.15rem); } .ty-k, .ty-link { font-size: .92rem; } .ty-pass p { font-size: .95rem; }
.ty-window { font-size: clamp(1.15rem, 2.1vw, 1.55rem); } .ty-text span { font-weight: 300; }
.ty-foot { font-size: .88rem; } .ty-stat small, .ty-tile small { font-size: .82rem; } .ty-verdict { font-size: 1.05rem; }
.p-body em, .ad-md-prev em { font-synthesis-style: auto; font-style: italic; }
@media (prefers-reduced-motion: reduce) { .hx-title h1 { animation: none; text-shadow: 0 0 22px rgba(242, 212, 138, .45), 0 4px 26px rgba(0, 0, 0, .45); } }
.hx.sky-day::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 20vh; z-index: 1; pointer-events: none; background: linear-gradient(rgba(10, 25, 60, .45), rgba(10, 25, 60, 0)); }

/* performance: no live blur behind cards that sit over moving stars */
.deep .d-card, #iif-page .d-card { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(160deg, rgba(40, 46, 92, .72), rgba(22, 26, 56, .78) 55%); }
.hx-l { backface-visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .hx-title .t1::before, .hx-title .t2::before, .sto-stars.tw { animation: none; } }

/* cards and slides never grow to an uploaded image's natural size */
.d-card, .d-rail > li, .d-grid > li, .d-card-media, .d-card-body { min-width: 0; }
.d-card-media img, .mk-slide img, .p-cover img, .p-body img { max-width: 100%; }
.d-card-media { contain: layout paint; }
.d-card h3 { overflow-wrap: anywhere; }
