*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  background: #050505;
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) clamp(20px, 5vw, 60px);
}

.container-narrow { max-width: 820px; }
.container-reading {
  max-width: 980px;
  --reading-focus-top: clamp(96px, 16vh, 180px);
  --reading-focus-bottom: clamp(104px, 17vh, 190px);
  --reading-focus-edge: rgba(5,5,5,0.46);
  --reading-focus-wash: rgba(5,5,5,0.12);
}
.container-wide { max-width: 1100px; }

.container-reading::before,
.container-reading::after,
body.memento-article .mm-reading-shell::before,
body.memento-article .mm-reading-shell::after {
  content: '';
  position: fixed;
  right: 0;
  left: 0;
  pointer-events: none;
  z-index: 60;
}

.container-reading::before,
body.memento-article .mm-reading-shell::before {
  top: 0;
  height: var(--reading-focus-top, clamp(118px, 18vh, 220px));
  background: linear-gradient(to bottom, var(--reading-focus-edge, rgba(5,5,5,0.88)) 0%, var(--reading-focus-wash, rgba(5,5,5,0.34)) 54%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 64%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 64%, transparent 100%);
}

.container-reading::after,
body.memento-article .mm-reading-shell::after {
  bottom: 0;
  height: var(--reading-focus-bottom, clamp(128px, 20vh, 240px));
  background: linear-gradient(to top, var(--reading-focus-edge, rgba(5,5,5,0.88)) 0%, var(--reading-focus-wash, rgba(5,5,5,0.34)) 54%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 64%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, #000 64%, transparent 100%);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.header-home {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.header-home:hover { opacity: 0.6; }

.header-nav {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  flex-wrap: wrap;
}

.header-nav a {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  transition: color 0.2s;
}

.header-nav a:hover { color: rgba(255,255,255,0.6); }
.header-nav a.active { color: rgba(255,255,255,0.72); }

.top-bar {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 40px);
  flex-wrap: wrap;
  margin-bottom: clamp(76px, 12vw, 150px);
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.top-bar a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar a:hover { color: #fff; }

.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}

.section-label .count {
  font-size: 9px;
  color: rgba(255,255,255,0.12);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.section-subtitle {
  margin-bottom: 42px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(255,255,255,0.34);
  font-style: italic;
  line-height: 1.6;
}

.series-label {
  margin-bottom: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
}

.series-location {
  margin: -8px 0 28px 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.16);
}

.index-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: inherit;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: padding-left 0.2s, color 0.2s;
}

.entry-row:hover { padding-left: 12px; }
.entry-row:hover .entry-title { color: #fff; }

.entry-row--static {
  cursor: default;
}

.entry-row--static:hover {
  padding-left: 0;
}

.entry-row--static:hover .entry-title {
  color: rgba(255,255,255,0.62);
}

.entry-row.is-disabled {
  pointer-events: none;
  opacity: 0.35;
}

.entry-main {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}

.entry-main--stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.entry-number {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

.entry-title {
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  transition: color 0.2s;
}

.entry-meta {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.14);
  white-space: nowrap;
}

.entry-description {
  max-width: 56ch;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.34);
  text-transform: none;
}

.entry-location {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.16);
}

.everything-writing {
  margin-bottom: clamp(64px, 10vw, 120px);
}

.everything-heading {
  align-items: center;
}

.everything-controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.everything-view-toggle {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.everything-view-toggle:hover,
.everything-view-toggle:focus-visible {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.24);
  color: rgba(255,255,255,0.9);
  outline: none;
}

.everything-view-toggle:active {
  transform: scale(0.96);
}

.everything-view-toggle svg {
  width: 15px;
  height: 15px;
}

.view-icon-grid {
  display: none;
}

.everything-page.is-map-view .view-icon-map {
  display: none;
}

.everything-page.is-map-view .view-icon-grid {
  display: block;
}

.everything-card-view[hidden],
.everything-map-view[hidden] {
  display: none;
}

.everything-map-view {
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.work-map-layout {
  --work-map-panel-width: clamp(300px, 29vw, 380px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  min-width: 0;
  transition: none;
}

.work-map-layout.is-panel-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.work-map-canvas {
  position: relative;
  min-width: 0;
  min-height: 300px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  cursor: grab;
  isolation: isolate;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background:
    radial-gradient(circle, rgba(255,255,255,0.22) 0 1px, transparent 1.7px) 0 0 / 68px 68px,
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 20% 100%,
    rgba(255,255,255,0.012);
}

.work-map-canvas:active {
  cursor: grabbing;
}

.work-map-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.36) 0 1px, transparent 1.5px);
  background-size: 34px 34px;
  opacity: 0.08;
}

.work-map-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-left: 1px solid rgba(255,255,255,0.045);
  border-right: 1px solid rgba(255,255,255,0.045);
}

.work-map-world {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  margin: auto;
  pointer-events: none;
}

.work-map-geography {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(255,255,255,0.08);
}

.work-map-land,
.work-map-line {
  fill: rgba(255,255,255,0.02);
  stroke: currentColor;
  stroke-width: 0.45;
  vector-effect: non-scaling-stroke;
}

.work-map-land {
  fill: rgba(255,255,255,0.055);
  stroke: rgba(255,255,255,0.28);
  stroke-width: 0.45;
}

.work-map-land-world {
  fill-rule: evenodd;
  fill: rgba(255,255,255,0.05);
  stroke: rgba(255,255,255,0.24);
  stroke-width: 0.36;
}

.work-map-land-island {
  fill: rgba(255,255,255,0.045);
}

.work-map-line-soft {
  fill: none;
  opacity: 0.65;
}

.work-map-route {
  fill: none;
  stroke: rgba(255,255,255,0.22);
  stroke-width: 0.4;
  stroke-dasharray: 1 7;
  vector-effect: non-scaling-stroke;
}

.work-map-pins {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.work-map-pin {
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  z-index: 1;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  opacity: var(--pin-opacity, 0.78);
  transition: opacity 0.16s, box-shadow 0.2s;
}

.work-map-pin.is-out-of-view {
  opacity: 0;
  pointer-events: none;
}

.work-map-pin.is-primary {
  z-index: 4;
}

.work-map-pin.is-active,
.work-map-pin.is-pulse-active {
  z-index: 5;
}

.work-map-pin::before,
.work-map-pin::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

.work-map-pin::before {
  width: var(--pin-size);
  height: var(--pin-size);
  background: rgba(255,255,255,var(--pin-core-alpha, 0.82));
  box-shadow:
    0 0 var(--pin-glow-tight, 3px) rgba(255,255,255,0.72),
    0 0 var(--pin-glow-wide, 10px) rgba(255,255,255,var(--pin-glow-alpha, 0.24));
}

.work-map-pin.is-primary::before {
  box-shadow:
    0 0 calc(var(--pin-glow-tight, 3px) + 2px) rgba(255,255,255,0.9),
    0 0 calc(var(--pin-glow-wide, 10px) + 6px) rgba(255,255,255,var(--pin-glow-alpha, 0.3));
}

.work-map-pin::after {
  content: attr(data-pin-label);
  left: 50%;
  top: auto;
  bottom: calc(50% + 10px);
  width: auto;
  height: auto;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,0.12);
  opacity: 0;
  border-radius: 0;
  background: rgba(5,5,5,0.78);
  color: rgba(255,255,255,0.72);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  max-width: min(260px, calc(100vw - 32px));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translate(-50%, 4px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.work-map-pin:hover::after,
.work-map-pin:focus-visible::after,
.work-map-pin.is-active::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.work-map-pin:hover,
.work-map-pin:focus-visible,
.work-map-pin.is-active {
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
}

.work-map-pin:hover::before,
.work-map-pin:focus-visible::before,
.work-map-pin.is-active::before {
  box-shadow:
    0 0 5px rgba(255,255,255,0.88),
    0 0 14px rgba(255,255,255,0.36);
}

.work-map-pin:focus-visible {
  outline: none;
}

.work-map-pin.is-pulse-active::before {
  animation: pulse-signal 1.8s ease-in-out infinite;
  box-shadow:
    0 0 calc(var(--pin-glow-tight, 3px) + 4px) rgba(255,255,255,0.94),
    0 0 calc(var(--pin-glow-wide, 10px) + 18px) rgba(255,255,255,0.34);
}

.work-map-pin.is-pulse-active::after {
  border-color: rgba(255,255,255,0.24);
  color: rgba(255,255,255,0.86);
}

body.map-fullscreen-active {
  overflow: hidden;
}

body.map-fullscreen-active::after,
body.map-fullscreen-active .theme-toggle {
  display: none;
}

.everything-map-view.is-map-fullscreen,
.everything-map-view:fullscreen,
.everything-map-view:-webkit-full-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #030303;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  opacity: 1;
  transform: none;
  animation: none;
  box-sizing: border-box;
}

.everything-map-view:fullscreen::backdrop,
.everything-map-view:-webkit-full-screen::backdrop,
.everything-map-view.is-map-fullscreen::backdrop {
  background: #030303;
}

.work-map-layout.is-fullscreen,
.everything-map-view.is-map-fullscreen .work-map-layout,
.everything-map-view:fullscreen .work-map-layout,
.everything-map-view:-webkit-full-screen .work-map-layout {
  position: absolute;
  inset: 0;
  display: block;
  background: #030303;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.work-map-layout.is-fullscreen .work-map-canvas,
.everything-map-view.is-map-fullscreen .work-map-canvas,
.everything-map-view:fullscreen .work-map-canvas,
.everything-map-view:-webkit-full-screen .work-map-canvas {
  position: absolute;
  inset: 0;
  min-height: 0;
  min-width: 0;
  height: 100%;
  width: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle, rgba(255,255,255,0.24) 0 1px, transparent 1.7px) 0 0 / 76px 76px,
    radial-gradient(circle, rgba(255,255,255,0.18) 0 1px, transparent 1.5px) 22px 18px / 38px 38px,
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px) 0 0 / 20% 100%,
    #030303;
}

.work-map-layout.is-fullscreen .work-map-panel,
.everything-map-view.is-map-fullscreen .work-map-panel,
.everything-map-view:fullscreen .work-map-panel,
.everything-map-view:-webkit-full-screen .work-map-panel {
  position: absolute;
  top: clamp(16px, 2.6vw, 34px);
  right: clamp(14px, 2.8vw, 36px);
  z-index: 20;
  width: min(360px, calc(100vw - 28px));
  min-height: 0;
  min-width: 0;
  max-height: min(calc(100dvh - 96px), 720px);
  height: auto;
  padding: clamp(14px, 1.8vw, 20px);
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(5,5,5,0.74);
  box-shadow: 0 24px 80px rgba(0,0,0,0.42);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  scrollbar-width: thin;
}

.work-map-layout.is-fullscreen.has-map-panel .work-map-panel,
.everything-map-view.is-map-fullscreen .work-map-layout.has-map-panel .work-map-panel,
.everything-map-view:fullscreen .work-map-layout.has-map-panel .work-map-panel,
.everything-map-view:-webkit-full-screen .work-map-layout.has-map-panel .work-map-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.work-map-layout.is-fullscreen .work-map-panel-header,
.everything-map-view.is-map-fullscreen .work-map-panel-header,
.everything-map-view:fullscreen .work-map-panel-header,
.everything-map-view:-webkit-full-screen .work-map-panel-header {
  margin-bottom: 14px;
}

.work-map-layout.is-fullscreen .work-map-place,
.everything-map-view.is-map-fullscreen .work-map-place,
.everything-map-view:fullscreen .work-map-place,
.everything-map-view:-webkit-full-screen .work-map-place {
  font-size: clamp(18px, 2vw, 24px);
}

.work-map-layout.is-fullscreen .work-map-card,
.everything-map-view.is-map-fullscreen .work-map-card,
.everything-map-view:fullscreen .work-map-card,
.everything-map-view:-webkit-full-screen .work-map-card {
  padding: 13px 0;
}

body.map-fullscreen-active .everything-map-view {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000 !important;
  display: block !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #030303 !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

body.map-fullscreen-active .work-map-layout {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #030303 !important;
}

body.map-fullscreen-active .work-map-layout.is-panel-collapsed {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.map-fullscreen-active .work-map-canvas {
  position: relative !important;
  inset: auto !important;
  grid-column: 1 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
}

body.map-fullscreen-active .work-map-world {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: none !important;
}

body.map-fullscreen-active .work-map-panel {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  grid-column: 2 !important;
  z-index: 20 !important;
  width: var(--work-map-panel-width) !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  padding: clamp(18px, 2vw, 26px) clamp(18px, 2.4vw, 30px) !important;
  padding-left: clamp(22px, 2.6vw, 34px) !important;
  border: 0 !important;
  border-left: 1px solid rgba(255,255,255,0.08) !important;
  background: rgba(3,3,3,0.96) !important;
  box-shadow: none !important;
  overflow: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
}

body.map-fullscreen-active .work-map-layout.is-panel-collapsed .work-map-panel {
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  border-left: 0 !important;
  pointer-events: none !important;
}

body.map-fullscreen-active .work-map-layout.is-panel-collapsed .work-map-panel-toggle {
  pointer-events: auto !important;
}

.work-map-panel {
  position: relative;
  width: var(--work-map-panel-width);
  min-height: 300px;
  min-width: 0;
  height: 100%;
  padding: 18px 0 0 clamp(20px, 2.5vw, 30px);
  border-left: 1px solid rgba(255,255,255,0.06);
  contain: size;
  overflow: visible;
  transition:
    width 0.24s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.24s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s;
}

.work-map-panel-content {
  min-width: 0;
  height: 100%;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
}

.work-map-panel-toggle {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 30;
  width: 28px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  background: rgba(5,5,5,0.78);
  color: rgba(255,255,255,0.58);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.work-map-panel-toggle:hover,
.work-map-panel-toggle:focus-visible {
  color: #fff;
  border-color: rgba(255,255,255,0.28);
  background: rgba(5,5,5,0.92);
  outline: none;
}

.work-map-panel-toggle svg {
  width: 14px;
  height: 14px;
  transform: rotate(0deg);
  transition: transform 0.2s;
}

.work-map-layout.is-panel-collapsed .work-map-panel {
  width: 0;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-left: 0;
  pointer-events: none;
}

.work-map-layout.is-panel-collapsed .work-map-panel-content {
  display: none;
  height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  visibility: hidden;
}

.work-map-layout.is-panel-collapsed .work-map-panel-toggle {
  pointer-events: auto;
  transform: translate(-100%, -50%);
}

.work-map-layout.is-panel-collapsed .work-map-panel-toggle svg {
  transform: rotate(180deg);
}

.work-map-panel-header {
  margin-bottom: 18px;
}

.work-map-kicker,
.work-map-card-type,
.work-map-card-location {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-map-kicker {
  margin-bottom: 10px;
  color: rgba(255,255,255,0.16);
}

.work-map-place {
  font-size: clamp(18px, 2.3vw, 26px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255,255,255,0.86);
}

.work-map-card-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.work-map-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 0;
  min-width: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: inherit;
  text-decoration: none;
  transition: padding-left 0.2s;
}

button.work-map-card {
  appearance: none;
  width: 100%;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.work-map-card[href]:hover,
.work-map-card[href]:focus-visible,
button.work-map-card:hover,
button.work-map-card:focus-visible {
  padding-left: 10px;
  outline: none;
}

.work-map-card-type {
  color: rgba(255,255,255,0.15);
}

.work-map-card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  transition: color 0.2s;
}

.work-map-card[href]:hover .work-map-card-title,
.work-map-card[href]:focus-visible .work-map-card-title,
button.work-map-card:hover .work-map-card-title,
button.work-map-card:focus-visible .work-map-card-title {
  color: #fff;
}

.work-map-card-description {
  max-width: 48ch;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255,255,255,0.34);
}

.work-map-card-location {
  color: rgba(255,255,255,0.16);
}

.work-map-card-title,
.work-map-card-description,
.work-map-card-location {
  overflow-wrap: anywhere;
}

.work-map-card.is-coming-soon {
  opacity: 0.68;
}

body.everything-map-page {
  overflow: hidden;
  background: #030303;
}

body.everything-map-page::after {
  opacity: 0.07;
}

body.everything-map-page .theme-toggle {
  z-index: 1300;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

body.everything-map-page .everything-page {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #030303;
}

body.everything-map-page .everything-map-view {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #030303;
  opacity: 1;
  overflow: hidden;
  transform: none;
  animation: none;
}

body.everything-map-page .work-map-layout {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

body.everything-map-page .work-map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border: 0;
  background:
    radial-gradient(circle, rgba(255,255,255,0.24) 0 1px, transparent 1.7px) 0 0 / 76px 76px,
    radial-gradient(circle, rgba(255,255,255,0.18) 0 1px, transparent 1.5px) 22px 18px / 38px 38px,
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px) 0 0 / 20% 100%,
    #030303;
}

body.everything-map-page .work-map-canvas::after {
  border-color: rgba(255,255,255,0.035);
}

.map-top-actions {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  z-index: 1215;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-chip,
.map-icon-button,
.overlay-close,
.settings-map-button,
.notepad-map-button,
.cosmos-search-button,
.cosmos-search-icon {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(5,5,5,0.58);
  color: rgba(255,255,255,0.72);
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}

.profile-chip:hover,
.profile-chip:focus-visible,
.map-icon-button:hover,
.map-icon-button:focus-visible,
.overlay-close:hover,
.overlay-close:focus-visible,
.settings-map-button:hover,
.settings-map-button:focus-visible,
.settings-map-button[aria-expanded="true"],
.notepad-map-button:hover,
.notepad-map-button:focus-visible,
.cosmos-search-button:hover,
.cosmos-search-button:focus-visible,
.cosmos-search-icon:hover,
.cosmos-search-icon:focus-visible {
  border-color: rgba(255,255,255,0.24);
  background: rgba(5,5,5,0.78);
  color: #fff;
  outline: none;
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 5px 11px 5px 6px;
  border-radius: 999px;
}

.profile-avatar {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.26), transparent 32%),
    rgba(255,255,255,0.055);
}

.profile-name {
  color: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
}

.map-icon-button,
.overlay-close,
.settings-map-button,
.notepad-map-button,
.cosmos-search-button,
.cosmos-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  padding: 0;
}

.map-icon-button svg,
.overlay-close svg,
.settings-map-button svg,
.notepad-map-button svg,
.cosmos-search-button svg,
.cosmos-search-icon svg {
  width: 16px;
  height: 16px;
}

.settings-map-button {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1210;
}

.notepad-map-button {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(64px, calc(env(safe-area-inset-right) + 64px));
  z-index: 1290;
  display: none;
}

body.is-logged-in .notepad-map-button {
  display: flex;
}

.cosmos-map-button {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1210;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  background: rgba(5,5,5,0.58);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: lowercase;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s, transform 0.2s;
}

.cosmos-map-button:hover,
.cosmos-map-button:focus-visible,
.cosmos-map-button[aria-expanded="true"] {
  border-color: rgba(255,255,255,0.24);
  background: rgba(5,5,5,0.78);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

.profile-overlay,
.launchpad-overlay,
.cosmos-overlay,
.settings-overlay,
.notepad-overlay,
.graph-save-modal,
.location-modal,
.node-modal,
.perspective-modal,
.cosmos-search-results {
  position: fixed;
  z-index: 1235;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(5,5,5,0.86);
  box-shadow: 0 24px 90px rgba(0,0,0,0.52);
  color: rgba(255,255,255,0.72);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  visibility: hidden;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.profile-overlay.is-open,
.launchpad-overlay.is-open,
.cosmos-overlay.is-open,
.settings-overlay.is-open,
.notepad-overlay.is-open,
.graph-save-modal.is-open,
.location-modal.is-open,
.node-modal.is-open,
.perspective-modal.is-open,
.cosmos-search-results.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.profile-overlay {
  top: max(66px, calc(env(safe-area-inset-top) + 58px));
  left: max(16px, env(safe-area-inset-left));
  width: min(360px, calc(100vw - 32px));
  padding: 22px;
}

.settings-overlay {
  left: max(16px, env(safe-area-inset-left));
  bottom: max(64px, calc(env(safe-area-inset-bottom) + 64px));
  width: min(318px, calc(100vw - 32px));
  padding: 18px;
}

.settings-inner,
.notepad-form,
.graph-save-form,
.location-modal-inner,
.node-modal-inner,
.perspective-modal-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-status,
.settings-message {
  margin: 0;
  color: rgba(255,255,255,0.42);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.login-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.settings-password-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.settings-password-form[hidden] {
  display: none !important;
}

.settings-section-label {
  margin: 0;
  color: rgba(255,255,255,0.42);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
}

.login-form input,
.settings-password-form input,
.notepad-form input,
.notepad-form textarea,
.graph-save-form input,
.graph-save-form textarea,
.graph-save-form select,
.cosmos-search input {
  appearance: none;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.76);
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  padding: 10px 11px;
  outline: none;
}

.login-form input:focus,
.settings-password-form input:focus,
.notepad-form input:focus,
.notepad-form textarea:focus,
.graph-save-form input:focus,
.graph-save-form textarea:focus,
.graph-save-form select:focus,
.cosmos-search input:focus {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.07);
}

.settings-logout[hidden],
.cosmos-search[hidden] {
  display: none !important;
}

.settings-theme-button,
.settings-logout {
  width: fit-content;
}

.cosmos-search {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1212;
  display: none;
  align-items: center;
  gap: 6px;
  width: min(620px, calc(100vw - 330px));
  min-height: 46px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  background: rgba(5,5,5,0.62);
  box-shadow: 0 22px 80px rgba(0,0,0,0.36);
  color: rgba(255,255,255,0.72);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.is-logged-in .cosmos-search:not([hidden]) {
  display: flex;
}

.cosmos-search input {
  flex: 1 1 auto;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0 10px;
}

.cosmos-search-button,
.cosmos-search-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
}

.cosmos-search-action {
  appearance: none;
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.54);
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  padding: 0 11px;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.cosmos-search-action:hover,
.cosmos-search-action:focus-visible {
  border-color: rgba(255,255,255,0.26);
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline: none;
}

.cosmos-search-results {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 10px);
  max-height: min(320px, 44dvh);
  overflow: auto;
  padding: 10px;
  transform: translateY(8px);
}

.search-result {
  appearance: none;
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 10px 4px;
  text-align: left;
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result strong {
  color: rgba(255,255,255,0.78);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.search-result span {
  color: rgba(255,255,255,0.38);
  font-size: 10px;
  line-height: 1.35;
}

.search-result:hover,
.search-result:focus-visible {
  outline: none;
}

.search-result:hover strong,
.search-result:focus-visible strong {
  color: #fff;
}

.notepad-overlay {
  top: max(66px, calc(env(safe-area-inset-top) + 58px));
  right: max(16px, env(safe-area-inset-right));
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 94px);
  padding: 18px;
}

.notepad-form textarea {
  min-height: 340px;
  resize: vertical;
}

.graph-save-modal,
.location-modal,
.node-modal,
.perspective-modal {
  top: 50%;
  left: 50%;
  z-index: 1260;
  width: min(520px, calc(100vw - 32px));
  max-height: min(720px, calc(100dvh - 32px));
  overflow: auto;
  padding: 18px;
  transform: translate(-50%, calc(-50% + 10px));
}

.graph-save-modal.is-open,
.location-modal.is-open,
.node-modal.is-open,
.perspective-modal.is-open {
  transform: translate(-50%, -50%);
}

.graph-save-form textarea {
  min-height: 140px;
  resize: vertical;
}

.graph-save-form [data-save-embed][hidden] {
  display: none;
}

.graph-save-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(104px, auto);
  gap: 8px;
}

.graph-save-grid select:last-child {
  grid-column: 1 / -1;
}

.location-modal h2,
.node-modal h2 {
  margin: 0;
  color: rgba(255,255,255,0.86);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.perspective-modal h2 {
  margin: 0;
  color: var(--cosmos-text, rgba(255,255,255,0.86));
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
  text-transform: lowercase;
}

.location-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.location-empty {
  margin: 0;
  color: rgba(255,255,255,0.34);
  font-size: 11px;
  line-height: 1.45;
}

.profile-overlay .overlay-close,
.launchpad-overlay .overlay-close,
.settings-overlay .overlay-close,
.notepad-overlay .overlay-close,
.graph-save-modal .overlay-close,
.location-modal .overlay-close,
.node-modal .overlay-close,
.perspective-modal .overlay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
}

.settings-inner,
.notepad-form,
.graph-save-form,
.location-modal-inner,
.node-modal-inner,
.perspective-modal-inner {
  padding-right: 34px;
}

.profile-overlay-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 34px;
}

.profile-overlay-name,
.launchpad-head h1 {
  margin: 0;
  color: rgba(255,255,255,0.88);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-overlay-name {
  font-size: 13px;
}

.profile-overlay p {
  margin: 0;
  color: rgba(255,255,255,0.58);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.profile-overlay a {
  color: rgba(255,255,255,0.84);
  text-decoration: none;
}

.profile-linkedin {
  align-self: flex-start;
  min-height: 34px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: rgba(255,255,255,0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.profile-linkedin:hover,
.profile-linkedin:focus-visible {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.06);
  color: #fff;
  outline: none;
}

.launchpad-overlay {
  top: max(66px, calc(env(safe-area-inset-top) + 58px));
  left: max(16px, env(safe-area-inset-left));
  width: min(920px, calc(100vw - 32px));
  max-height: min(82dvh, 760px);
  overflow: hidden;
}

.launchpad-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: inherit;
  padding: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.launchpad-head {
  padding-right: 42px;
}

.launchpad-head h1 {
  margin-top: 4px;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.launchpad-grid {
  grid-template-columns: repeat(5, minmax(118px, 1fr));
  gap: 10px;
}

.launchpad-grid .project-card {
  opacity: 1;
  transform: none;
  animation: none;
}

.launchpad-grid .project-card:last-child:nth-child(odd) {
  grid-column: auto;
  max-width: none;
  justify-self: stretch;
}

.launchpad-grid .project-thumbnail {
  min-height: 120px;
}

.launchpad-grid .project-info {
  padding: 14px 0 0;
}

.launchpad-grid .project-info p {
  display: none;
}

.cosmos-overlay {
  left: max(16px, env(safe-area-inset-left));
  bottom: max(70px, calc(env(safe-area-inset-bottom) + 70px));
  width: min(460px, calc(100vw - 32px));
  height: min(78dvh, 720px);
  overflow: hidden;
}

.cosmos-overlay .overlay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
}

.cosmos-overlay iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.pulse-shell {
  position: relative;
  z-index: auto;
  pointer-events: none;
}

.pulse-mini {
  position: fixed;
  right: clamp(16px, 2.6vw, 34px);
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1210;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(330px, calc(100vw - 32px));
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(5,5,5,0.82);
  color: rgba(255,255,255,0.78);
  box-shadow: 0 18px 70px rgba(0,0,0,0.42);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    border-color 0.2s,
    background 0.2s;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.everything-page.is-map-view .pulse-mini,
.pulse-shell.is-open .pulse-mini,
.pulse-shell.is-playing .pulse-mini,
.pulse-shell.is-reader-open .pulse-mini {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.map-fullscreen-active .pulse-mini {
  opacity: 0;
  pointer-events: none;
}

body.map-fullscreen-active .pulse-shell.is-open .pulse-mini,
body.map-fullscreen-active .pulse-shell.is-playing .pulse-mini,
body.map-fullscreen-active .pulse-shell.is-reader-open .pulse-mini {
  opacity: 1;
  pointer-events: auto;
}

.pulse-mini:hover,
.pulse-mini:focus-visible {
  border-color: rgba(255,255,255,0.24);
  background: rgba(5,5,5,0.92);
  outline: none;
}

.pulse-live-dot {
  position: relative;
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  box-shadow:
    0 0 8px rgba(255,255,255,0.72),
    0 0 24px rgba(255,255,255,0.3);
  animation: pulse-live-signal 1.8s ease-in-out infinite;
}

.pulse-mini-copy {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.pulse-mini-kicker,
.pulse-mini-command,
.pulse-kicker,
.pulse-item-type,
.pulse-item-date,
.pulse-channel-name,
.pulse-series-label,
.pulse-filter-clear {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pulse-mini-kicker,
.pulse-kicker,
.pulse-item-type,
.pulse-channel-name,
.pulse-series-label,
.pulse-filter-clear {
  color: rgba(255,255,255,0.32);
}

.pulse-mini-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.pulse-mini-command {
  flex: 0 0 auto;
  color: rgba(255,255,255,0.46);
}

.pulse-panel {
  position: fixed;
  right: clamp(16px, 2.6vw, 34px);
  bottom: max(82px, calc(env(safe-area-inset-bottom) + 82px));
  z-index: 1220;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(410px, calc(100vw - 32px));
  max-height: min(78dvh, 720px);
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(5,5,5,0.9);
  box-shadow: 0 26px 100px rgba(0,0,0,0.58);
  color: rgba(255,255,255,0.72);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.22s ease;
  visibility: hidden;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.pulse-shell.is-open .pulse-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) !important;
  visibility: visible !important;
}

body.pulse-panel-active .pulse-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) !important;
  visibility: visible !important;
}

.pulse-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.pulse-panel-head h2 {
  margin: 4px 0 0;
  color: rgba(255,255,255,0.88);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.pulse-icon-button,
.pulse-video-toggle,
.pulse-reader-close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.58);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.pulse-icon-button:hover,
.pulse-icon-button:focus-visible,
.pulse-video-toggle:hover,
.pulse-video-toggle:focus-visible,
.pulse-reader-close:hover,
.pulse-reader-close:focus-visible {
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.07);
  color: #fff;
  outline: none;
}

.pulse-icon-button svg,
.pulse-video-toggle svg,
.pulse-reader-close svg {
  width: 16px;
  height: 16px;
}

.pulse-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 4px;
  background: rgba(255,255,255,0.025);
}

.pulse-tab {
  appearance: none;
  min-width: 0;
  min-height: 34px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(255,255,255,0.34);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.15;
  overflow-wrap: anywhere;
  padding: 7px 6px;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.pulse-tab.is-active,
.pulse-tab:hover,
.pulse-tab:focus-visible {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.86);
  outline: none;
}

.pulse-video-shell {
  position: relative;
  flex: 0 0 auto;
  display: none;
}

.pulse-shell.has-context-player .pulse-video-shell,
.pulse-shell.is-video-expanded .pulse-video-shell {
  display: block;
}

.pulse-player {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 160px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 58%),
    #030303;
  color: rgba(255,255,255,0.34);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pulse-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.pulse-youtube-link {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  background: rgba(5,5,5,0.68);
  color: rgba(255,255,255,0.64);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.pulse-youtube-link:hover,
.pulse-youtube-link:focus-visible {
  border-color: rgba(255,255,255,0.3);
  background: rgba(5,5,5,0.86);
  color: #fff;
  outline: none;
}

.pulse-video-toggle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  background: rgba(5,5,5,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pulse-contract-icon {
  display: none;
}

.pulse-shell.is-video-expanded .pulse-expand-icon {
  display: none;
}

.pulse-shell.is-video-expanded .pulse-contract-icon {
  display: block;
}

.pulse-channel-list {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
}

.pulse-channel-intro {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px 0 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pulse-channel-intro p {
  margin: 0;
  color: rgba(255,255,255,0.42);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.pulse-filter-head {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 2px 0 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pulse-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.pulse-filter-top .pulse-channel-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pulse-filter-head p {
  margin: 0;
  color: rgba(255,255,255,0.42);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.pulse-filter-clear {
  appearance: none;
  flex: 0 0 auto;
  min-height: 28px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  padding: 0 9px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.pulse-filter-clear:hover,
.pulse-filter-clear:focus-visible {
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.07);
  color: #fff;
  outline: none;
}

.pulse-series-label {
  margin: 15px 0 0;
  color: rgba(255,255,255,0.24);
}

.pulse-item {
  appearance: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: padding-left 0.2s, opacity 0.2s;
}

.pulse-item-main {
  appearance: none;
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.pulse-item-main:focus-visible {
  outline: none;
}

.pulse-item:hover,
.pulse-item:focus-visible,
.pulse-item.is-current,
.pulse-item.is-selected {
  padding-left: 8px;
  outline: none;
}

.pulse-item.is-coming-soon {
  opacity: 0.62;
}

.pulse-work-item.is-static {
  cursor: default;
}

.pulse-work-item.is-static:hover,
.pulse-work-item.is-static:focus-visible {
  padding-left: 0;
}

.pulse-item-top {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pulse-item-date {
  flex: 0 0 auto;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.1em;
}

.pulse-item-title {
  color: rgba(255,255,255,0.76);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.28;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.pulse-item:hover .pulse-item-title,
.pulse-item:focus-visible .pulse-item-title,
.pulse-item.is-current .pulse-item-title,
.pulse-item.is-selected .pulse-item-title,
.pulse-item.is-reading .pulse-item-title,
.pulse-item-main:focus-visible .pulse-item-title {
  color: #fff;
}

.pulse-item-meta {
  color: rgba(255,255,255,0.34);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.pulse-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pulse-meta-chip {
  appearance: none;
  max-width: 100%;
  min-height: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
  color: rgba(255,255,255,0.36);
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  padding: 0 8px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.pulse-meta-chip:hover,
.pulse-meta-chip:focus-visible {
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.86);
  outline: none;
}

.pulse-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pulse-action-button {
  appearance: none;
  min-height: 26px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.46);
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  padding: 0 9px;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.pulse-action-play {
  color: rgba(255,255,255,0.78);
}

.pulse-action-button:hover,
.pulse-action-button:focus-visible {
  border-color: rgba(255,255,255,0.26);
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline: none;
}

body.pulse-reader-active,
body.pulse-panel-active,
body.pulse-video-active,
body.cosmos-overlay-active,
body.settings-overlay-active,
body.notepad-overlay-active,
body.save-modal-active,
body.location-modal-active,
body.node-modal-active,
body.perspective-modal-active {
  overflow: hidden;
}

body.pulse-reader-active .theme-toggle,
body.pulse-video-active .theme-toggle {
  display: none;
}

.pulse-reader {
  position: fixed;
  inset: 0;
  z-index: 1240;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: max(46px, env(safe-area-inset-top)) 18px max(32px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.06), transparent 42%),
    rgba(3,3,3,0.96);
  color: rgba(255,255,255,0.76);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  visibility: hidden;
}

.pulse-shell.is-reader-open .pulse-reader {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.pulse-reader-close {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 2;
  background: rgba(5,5,5,0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pulse-reader-inner {
  width: min(760px, calc(100vw - 32px));
  max-width: 100%;
  margin: auto 0;
  padding: clamp(22px, 4vw, 48px) 0;
}

.pulse-reader-inner h2 {
  margin: 8px 0 12px;
  color: rgba(255,255,255,0.92);
  font-size: clamp(30px, 6vw, 58px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.95;
  text-transform: lowercase;
  overflow-wrap: anywhere;
}

.pulse-reader-meta {
  margin: 0 0 12px;
  color: rgba(255,255,255,0.3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.pulse-reader-share {
  margin: 0 0 clamp(22px, 4vw, 38px);
}

.pulse-reader-body {
  color: rgba(255,255,255,0.72);
  font-size: clamp(16px, 1.2vw, 19px);
  font-weight: 400;
  line-height: 1.75;
}

.pulse-reader-body p {
  margin: 0 0 1.2em;
}

.pulse-reader-body a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.pulse-reader-body iframe {
  display: block;
  width: 100%;
  height: min(78dvh, 760px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  background: #050505;
}

.pulse-shell.is-video-expanded .pulse-panel {
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  overflow: visible;
  pointer-events: none;
  transform: none;
  visibility: visible;
}

.pulse-shell.is-video-expanded .pulse-panel > :not(.pulse-video-shell) {
  display: none;
}

.pulse-shell.is-video-expanded .pulse-video-shell {
  position: fixed;
  inset: 0;
  z-index: 1230;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(46px, env(safe-area-inset-top)) 16px max(46px, env(safe-area-inset-bottom));
  background: rgba(3,3,3,0.98);
  pointer-events: auto;
}

.pulse-shell.is-video-expanded .pulse-player {
  width: min(100%, calc((100dvh - 92px) * 1.7778));
  max-width: calc(100vw - 32px);
  min-height: 0;
  border-radius: 0;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 0 80px rgba(255,255,255,0.08);
}

.pulse-shell.is-video-expanded .pulse-video-toggle {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  bottom: auto;
  z-index: 1250;
}

.pulse-shell.is-video-expanded .pulse-mini {
  opacity: 0;
  pointer-events: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.project-card {
  background: rgba(8, 10, 16, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.project-card:nth-child(1) { animation-delay: 0.05s; }
.project-card:nth-child(2) { animation-delay: 0.1s; }
.project-card:nth-child(3) { animation-delay: 0.15s; }
.project-card:nth-child(4) { animation-delay: 0.2s; }
.project-card:nth-child(5) { animation-delay: 0.25s; }
.project-card:nth-child(6) { animation-delay: 0.3s; }
.project-card:nth-child(7) { animation-delay: 0.35s; }
.project-card:nth-child(8) { animation-delay: 0.4s; }

.project-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 50%;
  justify-self: center;
  width: 100%;
}

.project-card:hover {
  background: rgba(14, 16, 24, 0.6);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

.project-card:hover .project-info h3 {
  color: #fff;
  letter-spacing: 0.04em;
}

.project-card:hover .card-arrow {
  opacity: 1;
  transform: translate(0, -50%);
}

.project-card.transparent {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
}

.project-card.transparent:hover { background: transparent !important; }

.project-thumbnail {
  aspect-ratio: 16 / 10;
  background: rgba(4, 6, 12, 0.92);
  position: relative;
  overflow: hidden;
}

.project-card.transparent {
  overflow: visible;
}

.project-card.transparent .project-thumbnail {
  background: transparent !important;
  overflow: visible;
}

.project-thumbnail img,
.project-thumbnail iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card.cosmos .project-thumbnail,
.project-card.polarity .project-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  container-type: inline-size;
}

.project-thumbnail .glitch {
  position: relative;
  display: inline-block;
  z-index: 1;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 20cqi, 104px);
  letter-spacing: 0;
  line-height: 0.95;
  color: #fff;
  user-select: none;
}

.project-card.polarity .glitch {
  font-size: clamp(14px, 11cqi, 60px);
  white-space: nowrap;
}

.project-thumbnail .glitch::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,0.92) 0, rgba(0,0,0,0.92) 1px, transparent 1px, transparent 7px);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: tv-bars-slow 5.5s linear infinite, tv-flash 5.5s steps(1) infinite;
}

.project-thumbnail .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,1) 0, rgba(255,255,255,1) 1px, transparent 1px, transparent 11px);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  mix-blend-mode: screen;
  animation: tv-bars-fast 1.7s linear infinite, tv-strobe 7s steps(1) infinite;
}

.card-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.card-particles span {
  position: absolute;
  border-radius: 50%;
}

.project-card.transparent .project-thumbnail img,
.project-card.transparent .polarity-wordmark {
  transition: filter 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card.transparent:hover .project-thumbnail img,
.project-card.transparent:hover .polarity-wordmark {
  filter: drop-shadow(0 0 18px rgba(255,255,255,0.18));
}

.project-card[href*="wax-feed"] .project-thumbnail img {
  width: 44% !important;
  animation-duration: 14s !important;
}

.project-card.transparent .project-thumbnail .avdp-mark,
.avdp-mark {
  width: 56% !important;
  height: auto !important;
  max-width: 260px;
  object-fit: contain !important;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.04));
}

.wbru-mark {
  width: 70%;
  height: auto;
  max-width: 280px;
  opacity: 0.88;
}

.project-info {
  padding: clamp(16px, 2.5vw, 24px);
  position: relative;
}

.project-info .card-type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.15);
  margin-bottom: 8px;
  display: block;
}

.project-info h3 {
  font-weight: 700;
  font-size: clamp(16px, 1.8vw, 20px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s, letter-spacing 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-info p {
  font-weight: 500;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.project-info .card-location {
  margin-top: 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.16);
}

.card-arrow {
  position: absolute;
  top: 50%;
  right: clamp(16px, 2.5vw, 24px);
  transform: translate(-4px, -50%);
  opacity: 0;
  transition: all 0.3s ease;
  color: rgba(255,255,255,0.4);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  margin-bottom: clamp(44px, 7vw, 90px);
  transition: color 0.2s;
}

.back-link:hover { color: rgba(255,255,255,0.6); }

.piece-header {
  max-width: 720px;
  margin-bottom: clamp(70px, 11vw, 140px);
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.piece-meta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  margin-bottom: 18px;
  line-height: 1.8;
}

.piece-title {
  font-size: clamp(38px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: lowercase;
  line-height: 0.98;
  color: #fff;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.08s forwards;
}

.piece-deck {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255,255,255,0.42);
  max-width: 58ch;
}

.prose {
  max-width: 680px;
  font-weight: 400;
  color: rgba(255,255,255,0.72);
}

.chapter {
  margin-top: clamp(84px, 13vw, 150px);
  scroll-margin-block: 30vh;
}

.chapter:first-child { margin-top: 0; }

.chapter + .chapter {
  padding-top: clamp(34px, 7vh, 78px);
  border-top: 0;
}

.chapter-number {
  margin-bottom: 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.16);
}

.chapter-title {
  margin-bottom: clamp(28px, 5vw, 48px);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: lowercase;
  line-height: 1.08;
  color: rgba(255,255,255,0.9);
}

.prose p {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.82;
  letter-spacing: 0;
  margin-bottom: 1.35em;
}

.prose p:last-child { margin-bottom: 0; }

.closing-poem {
  margin-top: clamp(84px, 14vw, 170px);
  padding-top: clamp(34px, 6vw, 64px);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.closing-poem p {
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.72;
  color: rgba(255,255,255,0.82);
}

.episode-body {
  max-width: 660px;
}

.episode-body p {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.78;
  letter-spacing: 0;
  margin-bottom: 1.35em;
  color: rgba(255,255,255,0.74);
}

.episode-body a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.22);
  transition: border-color 0.2s, color 0.2s;
}

.episode-body a:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.6);
}

.piece-nav {
  max-width: 680px;
  margin-top: clamp(74px, 10vw, 130px);
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.piece-nav a,
.piece-nav span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  text-decoration: none;
}

.piece-nav a:hover { color: rgba(255,255,255,0.65); }
.piece-nav span { color: rgba(255,255,255,0.12); }

.episode-signup {
  max-width: 680px;
  margin-top: clamp(70px, 10vw, 130px);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.signup-kicker {
  margin-bottom: 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
}

.newsletter-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 360px;
}

.newsletter-form input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #fff;
  font-family: inherit;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.3s;
}

.newsletter-form input:focus { border-color: rgba(255,255,255,0.4); }
.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.22);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.newsletter-form button {
  flex: 0 0 auto;
  width: 44px;
  background: #fff;
  border: 1px solid #fff;
  color: #050505;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-form button:hover { background: rgba(255,255,255,0.85); }

.form-message {
  min-height: 1.4em;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
  opacity: 0;
  transition: opacity 0.3s;
}

.form-message.visible { opacity: 1; }

.divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: clamp(70px, 11vw, 130px) 0;
}

.footer { padding-bottom: clamp(40px, 6vw, 80px); }

.footer-tagline {
  font-weight: 700;
  font-size: clamp(24px, 4vw, 40px);
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  margin-bottom: 60px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.12);
}

.footer-copyright a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s, border-color 0.2s;
}

.footer-copyright a:hover {
  color: rgba(255,255,255,0.35);
  border-bottom-color: rgba(255,255,255,0.25);
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  padding: 0;
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.25);
}

.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .sun,
.theme-toggle .leaf { display: none; }
body.light .theme-toggle .sun { display: block; }
body.light .theme-toggle .moon,
body.light .theme-toggle .leaf { display: none; }
body.natural .theme-toggle .leaf { display: block; }
body.natural .theme-toggle .moon,
body.natural .theme-toggle .sun { display: none; }

body.light {
  background: #f5f5f5;
  color: #0a0a0a;
}

body.light::after { opacity: 0.04; filter: invert(1); }
body.light .container-reading {
  --reading-focus-edge: rgba(245,245,245,0.54);
  --reading-focus-wash: rgba(245,245,245,0.12);
}
body.light .theme-toggle {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.12);
  color: rgba(0,0,0,0.55);
}
body.light .theme-toggle:hover {
  background: rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.9);
  border-color: rgba(0,0,0,0.3);
}
body.light .header-home,
body.light .piece-title { color: #050505; }
body.light .header-nav a { color: rgba(0,0,0,0.4); }
body.light .header-nav a:hover { color: rgba(0,0,0,0.75); }
body.light .header-nav a.active { color: rgba(0,0,0,0.85); }
body.light .top-bar { border-bottom-color: rgba(0,0,0,0.08); }
body.light .top-bar a { color: rgba(0,0,0,0.5); }
body.light .top-bar a:hover { color: #050505; }
body.light .section-label {
  border-bottom-color: rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.25);
}
body.light .section-label .count {
  color: rgba(0,0,0,0.45);
  background: rgba(0,0,0,0.06);
}
body.light .section-subtitle { color: rgba(0,0,0,0.5); }
body.light .series-label,
body.light .series-location,
body.light .piece-meta,
body.light .chapter-number { color: rgba(0,0,0,0.28); }
body.light .index-list,
body.light .entry-row,
body.light .piece-header,
body.light .chapter + .chapter,
body.light .closing-poem,
body.light .piece-nav,
body.light .footer-bottom { border-color: rgba(0,0,0,0.08); }
body.light .entry-number { color: rgba(0,0,0,0.28); }
body.light .entry-title { color: rgba(0,0,0,0.66); }
body.light .entry-row:hover .entry-title { color: #050505; }
body.light .entry-row--static:hover .entry-title { color: rgba(0,0,0,0.66); }
body.light .entry-meta { color: rgba(0,0,0,0.3); }
body.light .entry-description { color: rgba(0,0,0,0.46); }
body.light .entry-location { color: rgba(0,0,0,0.3); }
body.light .everything-view-toggle {
  background: rgba(0,0,0,0.035);
  border-color: rgba(0,0,0,0.12);
  color: rgba(0,0,0,0.54);
}
body.light .everything-view-toggle:hover,
body.light .everything-view-toggle:focus-visible {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.26);
  color: rgba(0,0,0,0.9);
}
body.light .work-map-canvas {
  border-color: rgba(0,0,0,0.08);
  background:
    radial-gradient(circle, rgba(0,0,0,0.17) 0 1px, transparent 1.7px) 0 0 / 68px 68px,
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(0,0,0,0.035) 1px, transparent 1px) 0 0 / 20% 100%,
    rgba(0,0,0,0.012);
}
body.light .work-map-canvas::before {
  background-image: radial-gradient(circle, rgba(0,0,0,0.24) 0 1px, transparent 1.5px);
  opacity: 0.07;
}
body.light .work-map-canvas::after {
  border-color: rgba(0,0,0,0.06);
}
body.light .work-map-geography {
  color: rgba(0,0,0,0.12);
}
body.light .work-map-land,
body.light .work-map-line {
  fill: rgba(0,0,0,0.055);
}
body.light .work-map-land {
  stroke: rgba(0,0,0,0.28);
}
body.light .work-map-land-world {
  fill: rgba(0,0,0,0.048);
  stroke: rgba(0,0,0,0.24);
}
body.light .work-map-land-island {
  fill: rgba(0,0,0,0.045);
}
body.light .work-map-route {
  stroke: rgba(0,0,0,0.22);
}
body.light .work-map-pin {
  color: #101010;
}
body.light .work-map-pin::before {
  background: rgba(16,16,16,var(--pin-core-alpha, 0.82));
  box-shadow:
    0 0 var(--pin-glow-tight, 3px) rgba(0,0,0,0.16),
    0 0 var(--pin-glow-wide, 10px) rgba(0,0,0,var(--pin-glow-alpha, 0.12));
}
body.light .work-map-pin.is-primary::before {
  box-shadow:
    0 0 calc(var(--pin-glow-tight, 3px) + 2px) rgba(0,0,0,0.2),
    0 0 calc(var(--pin-glow-wide, 10px) + 6px) rgba(0,0,0,var(--pin-glow-alpha, 0.16));
}
body.light .work-map-pin::after {
  background: rgba(245,245,245,0.82);
  border-color: rgba(0,0,0,0.12);
  color: rgba(0,0,0,0.68);
}
body.light .work-map-pin:hover,
body.light .work-map-pin:focus-visible,
body.light .work-map-pin.is-active {
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.16);
}
body.light .work-map-pin.is-pulse-active::before {
  box-shadow:
    0 0 calc(var(--pin-glow-tight, 3px) + 4px) rgba(0,0,0,0.26),
    0 0 calc(var(--pin-glow-wide, 10px) + 18px) rgba(0,0,0,0.14);
}

body.light .work-map-panel-toggle {
  border-color: rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.72);
  color: rgba(0,0,0,0.52);
}
body.light .work-map-panel-toggle:hover,
body.light .work-map-panel-toggle:focus-visible {
  color: #000;
  border-color: rgba(0,0,0,0.3);
  background: rgba(255,255,255,0.9);
}
body.light .everything-map-view.is-map-fullscreen .work-map-panel-toggle,
body.light .everything-map-view:fullscreen .work-map-panel-toggle,
body.light .everything-map-view:-webkit-full-screen .work-map-panel-toggle {
  border-color: rgba(255,255,255,0.12);
  background: rgba(5,5,5,0.78);
  color: rgba(255,255,255,0.58);
}
body.light .everything-map-view.is-map-fullscreen .work-map-panel-toggle:hover,
body.light .everything-map-view.is-map-fullscreen .work-map-panel-toggle:focus-visible,
body.light .everything-map-view:fullscreen .work-map-panel-toggle:hover,
body.light .everything-map-view:fullscreen .work-map-panel-toggle:focus-visible,
body.light .everything-map-view:-webkit-full-screen .work-map-panel-toggle:hover,
body.light .everything-map-view:-webkit-full-screen .work-map-panel-toggle:focus-visible {
  color: #fff;
  border-color: rgba(255,255,255,0.28);
  background: rgba(5,5,5,0.92);
}
body.light .everything-map-view.is-map-fullscreen,
body.light .everything-map-view:fullscreen,
body.light .everything-map-view:-webkit-full-screen {
  background: #030303;
}

body.light .everything-map-view.is-map-fullscreen .work-map-geography,
body.light .everything-map-view:fullscreen .work-map-geography,
body.light .everything-map-view:-webkit-full-screen .work-map-geography {
  color: rgba(255,255,255,0.08);
}

body.light .everything-map-view.is-map-fullscreen .work-map-land,
body.light .everything-map-view:fullscreen .work-map-land,
body.light .everything-map-view:-webkit-full-screen .work-map-land {
  fill: rgba(255,255,255,0.055);
  stroke: rgba(255,255,255,0.28);
}

body.light .everything-map-view.is-map-fullscreen .work-map-land-world,
body.light .everything-map-view:fullscreen .work-map-land-world,
body.light .everything-map-view:-webkit-full-screen .work-map-land-world {
  fill: rgba(255,255,255,0.05);
  stroke: rgba(255,255,255,0.24);
}

body.light .everything-map-view.is-map-fullscreen .work-map-route,
body.light .everything-map-view:fullscreen .work-map-route,
body.light .everything-map-view:-webkit-full-screen .work-map-route {
  stroke: rgba(255,255,255,0.22);
}

body.light .everything-map-view.is-map-fullscreen .work-map-pin,
body.light .everything-map-view:fullscreen .work-map-pin,
body.light .everything-map-view:-webkit-full-screen .work-map-pin {
  color: #fff;
}

body.light .everything-map-view.is-map-fullscreen .work-map-pin::before,
body.light .everything-map-view:fullscreen .work-map-pin::before,
body.light .everything-map-view:-webkit-full-screen .work-map-pin::before {
  background: rgba(255,255,255,var(--pin-core-alpha, 0.82));
  box-shadow:
    0 0 var(--pin-glow-tight, 3px) rgba(255,255,255,0.72),
    0 0 var(--pin-glow-wide, 10px) rgba(255,255,255,var(--pin-glow-alpha, 0.24));
}

body.light .everything-map-view.is-map-fullscreen .work-map-pin::after,
body.light .everything-map-view:fullscreen .work-map-pin::after,
body.light .everything-map-view:-webkit-full-screen .work-map-pin::after {
  background: rgba(5,5,5,0.78);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.72);
}

body.light .everything-map-view.is-map-fullscreen .work-map-panel,
body.light .everything-map-view:fullscreen .work-map-panel,
body.light .everything-map-view:-webkit-full-screen .work-map-panel {
  background: rgba(5,5,5,0.74);
  border-color: rgba(255,255,255,0.09);
}

body.light .everything-map-view.is-map-fullscreen .work-map-kicker,
body.light .everything-map-view.is-map-fullscreen .work-map-card-type,
body.light .everything-map-view.is-map-fullscreen .work-map-card-location,
body.light .everything-map-view:fullscreen .work-map-kicker,
body.light .everything-map-view:fullscreen .work-map-card-type,
body.light .everything-map-view:fullscreen .work-map-card-location,
body.light .everything-map-view:-webkit-full-screen .work-map-kicker,
body.light .everything-map-view:-webkit-full-screen .work-map-card-type,
body.light .everything-map-view:-webkit-full-screen .work-map-card-location {
  color: rgba(255,255,255,0.16);
}

body.light .everything-map-view.is-map-fullscreen .work-map-place,
body.light .everything-map-view:fullscreen .work-map-place,
body.light .everything-map-view:-webkit-full-screen .work-map-place {
  color: rgba(255,255,255,0.86);
}

body.light .everything-map-view.is-map-fullscreen .work-map-card-title,
body.light .everything-map-view:fullscreen .work-map-card-title,
body.light .everything-map-view:-webkit-full-screen .work-map-card-title {
  color: rgba(255,255,255,0.72);
}

body.light .everything-map-view.is-map-fullscreen .work-map-card-description,
body.light .everything-map-view:fullscreen .work-map-card-description,
body.light .everything-map-view:-webkit-full-screen .work-map-card-description {
  color: rgba(255,255,255,0.34);
}

body.light .everything-map-view.is-map-fullscreen .work-map-card-list,
body.light .everything-map-view.is-map-fullscreen .work-map-card,
body.light .everything-map-view:fullscreen .work-map-card-list,
body.light .everything-map-view:fullscreen .work-map-card,
body.light .everything-map-view:-webkit-full-screen .work-map-card-list,
body.light .everything-map-view:-webkit-full-screen .work-map-card {
  border-color: rgba(255,255,255,0.05);
}

body.light .work-map-layout.is-fullscreen .work-map-panel,
body.light .everything-map-view.is-map-fullscreen .work-map-panel,
body.light .everything-map-view:fullscreen .work-map-panel,
body.light .everything-map-view:-webkit-full-screen .work-map-panel {
  border-left-color: rgba(255,255,255,0.09);
}

body.light .work-map-panel,
body.light .work-map-card-list,
body.light .work-map-card {
  border-color: rgba(0,0,0,0.08);
}
body.light .work-map-kicker,
body.light .work-map-card-type,
body.light .work-map-card-location {
  color: rgba(0,0,0,0.3);
}
body.light .work-map-place {
  color: rgba(0,0,0,0.88);
}
body.light .work-map-card-title {
  color: rgba(0,0,0,0.66);
}
body.light .work-map-card[href]:hover .work-map-card-title,
body.light .work-map-card[href]:focus-visible .work-map-card-title,
body.light button.work-map-card:hover .work-map-card-title,
body.light button.work-map-card:focus-visible .work-map-card-title {
  color: #050505;
}
body.light .everything-map-view.is-map-fullscreen .work-map-card[href]:hover .work-map-card-title,
body.light .everything-map-view.is-map-fullscreen .work-map-card[href]:focus-visible .work-map-card-title,
body.light .everything-map-view.is-map-fullscreen button.work-map-card:hover .work-map-card-title,
body.light .everything-map-view.is-map-fullscreen button.work-map-card:focus-visible .work-map-card-title,
body.light .everything-map-view:fullscreen .work-map-card[href]:hover .work-map-card-title,
body.light .everything-map-view:fullscreen .work-map-card[href]:focus-visible .work-map-card-title,
body.light .everything-map-view:fullscreen button.work-map-card:hover .work-map-card-title,
body.light .everything-map-view:fullscreen button.work-map-card:focus-visible .work-map-card-title,
body.light .everything-map-view:-webkit-full-screen .work-map-card[href]:hover .work-map-card-title,
body.light .everything-map-view:-webkit-full-screen .work-map-card[href]:focus-visible .work-map-card-title,
body.light .everything-map-view:-webkit-full-screen button.work-map-card:hover .work-map-card-title,
body.light .everything-map-view:-webkit-full-screen button.work-map-card:focus-visible .work-map-card-title {
  color: #fff;
}
body.light .work-map-card-description {
  color: rgba(0,0,0,0.48);
}
body.light .project-card:not(.transparent) {
  background: #efefef;
  border-color: rgba(0,0,0,0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.light .project-card:not(.transparent):hover {
  background: #e5e5e5;
  border-color: rgba(0,0,0,0.12);
}
body.light .project-card:not(.transparent) .project-thumbnail { background: #e8e8e8; }
body.light .youtube-thumbnail img { filter: brightness(1.08) saturate(0.95); }
body.light .project-card.transparent,
body.light .project-card.transparent .project-thumbnail { background: transparent !important; }
body.light .project-card.transparent:hover { background: rgba(0,0,0,0.025) !important; }
body.light .project-card.cosmos .glitch,
body.light .project-card.polarity .glitch { filter: invert(1); }
body.light .card-type { color: rgba(0,0,0,0.35); }
body.light .project-info h3 { color: rgba(0,0,0,0.85); }
body.light .project-card:hover .project-info h3 { color: #050505; }
body.light .project-info p { color: rgba(0,0,0,0.55); }
body.light .project-info .card-location { color: rgba(0,0,0,0.34); }
body.light .card-arrow { color: rgba(0,0,0,0.3); }
body.light .avdp-mark,
body.light .wbru-mark,
body.light img[src$="blueno-mark.svg"] { filter: invert(1); }
body.light .project-card.transparent:hover .wbru-mark {
  filter: invert(1) drop-shadow(0 0 14px rgba(0,0,0,0.1));
}
body.light .piece-deck { color: rgba(0,0,0,0.54); }
body.light .chapter-title { color: rgba(0,0,0,0.88); }
body.light .prose,
body.light .episode-body p { color: rgba(0,0,0,0.72); }
body.light .episode-body a { border-bottom-color: rgba(0,0,0,0.24); }
body.light .episode-body a:hover {
  color: #050505;
  border-bottom-color: rgba(0,0,0,0.6);
}
body.light .closing-poem p { color: rgba(0,0,0,0.82); }
body.light .back-link,
body.light .piece-nav a { color: rgba(0,0,0,0.4); }
body.light .back-link:hover,
body.light .piece-nav a:hover { color: rgba(0,0,0,0.7); }
body.light .piece-nav span,
body.light .footer-copyright { color: rgba(0,0,0,0.25); }
body.light .episode-signup { border-top-color: rgba(0,0,0,0.08); }
body.light .signup-kicker { color: rgba(0,0,0,0.28); }
body.light .newsletter-form input {
  background: transparent;
  border-color: rgba(0,0,0,0.18);
  color: #050505;
}
body.light .newsletter-form input:focus { border-color: rgba(0,0,0,0.5); }
body.light .newsletter-form input::placeholder { color: rgba(0,0,0,0.3); }
body.light .newsletter-form button {
  background: #050505;
  border-color: #050505;
  color: #f5f5f5;
}
body.light .newsletter-form button:hover { background: rgba(0,0,0,0.85); }
body.light .footer-tagline { color: rgba(0,0,0,0.08); }
body.light .footer-copyright a { border-bottom-color: rgba(0,0,0,0.12); }
body.light .footer-copyright a:hover {
  color: rgba(0,0,0,0.55);
  border-bottom-color: rgba(0,0,0,0.3);
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse-signal {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.72;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.35);
    opacity: 1;
  }
}
@keyframes pulse-live-signal {
  0%, 100% {
    transform: scale(1);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}
@keyframes tv-bars-slow { 0% { background-position: 0% 0; } 100% { background-position: -200% 0; } }
@keyframes tv-bars-fast { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
@keyframes tv-flash {
  0%, 18%, 22%, 60%, 64%, 100% { opacity: 0.85; }
  20%, 62% { opacity: 0.4; }
  85%, 86% { opacity: 1; transform: translate3d(2px,0,0); }
  87% { opacity: 0; }
  88% { opacity: 1; transform: translate3d(-3px,0,0); }
  89% { opacity: 0.85; transform: translate3d(0,0,0); }
}
@keyframes tv-strobe {
  0%, 100% { opacity: 0; }
  3%, 4% { opacity: 0.6; }
  5% { opacity: 0; }
  41%, 42% { opacity: 1; }
  43% { opacity: 0; }
  78%, 79%, 80% { opacity: 0.8; }
  80.1% { opacity: 0; }
}

@media (max-width: 1220px) {
  .everything-controls {
    padding-right: 50px;
  }
}

@media (max-width: 900px) {
  .work-map-layout,
  .work-map-layout.is-panel-collapsed {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .work-map-canvas {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .work-map-panel,
  .work-map-layout.is-panel-collapsed .work-map-panel {
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    pointer-events: auto;
  }
  .work-map-panel-content,
  .work-map-layout.is-panel-collapsed .work-map-panel-content {
    display: block;
    height: auto;
    max-height: none;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }
  .work-map-panel-toggle {
    display: none;
  }
  .work-map-layout.is-fullscreen,
  .everything-map-view.is-map-fullscreen .work-map-layout,
  .everything-map-view:fullscreen .work-map-layout,
  .everything-map-view:-webkit-full-screen .work-map-layout {
    padding: 0;
  }
  .work-map-layout.is-fullscreen .work-map-canvas,
  .everything-map-view.is-map-fullscreen .work-map-canvas,
  .everything-map-view:fullscreen .work-map-canvas,
  .everything-map-view:-webkit-full-screen .work-map-canvas {
    min-height: 0;
    height: 100%;
  }
  body.map-fullscreen-active .work-map-layout,
  body.map-fullscreen-active .work-map-layout.is-panel-collapsed {
    display: block !important;
  }
  body.map-fullscreen-active .work-map-canvas {
    position: absolute !important;
    inset: 0 !important;
  }
  .work-map-layout.is-fullscreen .work-map-panel,
  .everything-map-view.is-map-fullscreen .work-map-panel,
  .everything-map-view:fullscreen .work-map-panel,
  .everything-map-view:-webkit-full-screen .work-map-panel {
    position: absolute;
    min-height: 0;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 58px;
    width: auto;
    max-height: min(42vh, 360px);
    height: auto;
    justify-content: flex-start;
    overflow-y: auto;
  }
  body.map-fullscreen-active .work-map-panel {
    position: absolute !important;
    grid-column: auto !important;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: 58px !important;
    width: auto !important;
    height: auto !important;
    max-height: min(42vh, 360px) !important;
    padding: clamp(14px, 4vw, 18px) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    background: rgba(5,5,5,0.74) !important;
    overflow-y: auto !important;
  }
  body.map-fullscreen-active .work-map-layout.is-panel-collapsed .work-map-panel {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 700px) {
  .header { flex-direction: column; align-items: flex-start; }
  .top-bar { justify-content: flex-start; }
  .projects-grid { grid-template-columns: 1fr; }
  .everything-controls {
    gap: 10px;
  }
  .everything-view-toggle {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .entry-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .entry-main { align-items: flex-start; }
  .entry-meta { margin-left: 32px; }
  .project-card:last-child:nth-child(odd) {
    max-width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .footer-copyright {
    font-size: 9px;
    letter-spacing: 0.12em;
  }
  .pulse-mini {
    left: auto;
    right: 12px;
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 14px));
    width: min(280px, calc(100vw - 24px));
    min-height: 52px;
    padding: 10px 12px;
  }
  .pulse-shell.is-open .pulse-mini,
  .pulse-shell.is-video-expanded .pulse-mini {
    opacity: 0;
    pointer-events: none;
  }
  .pulse-shell:not(.is-playing) .pulse-mini {
    width: 148px;
  }
  .pulse-shell:not(.is-playing) .pulse-mini-title {
    display: none;
  }
  .pulse-panel {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: min(88dvh, 760px);
    padding: 16px clamp(14px, 4vw, 20px) max(18px, calc(env(safe-area-inset-bottom) + 16px));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
    opacity: 1;
    transform: translateY(100%);
  }
  .pulse-shell.is-open .pulse-panel {
    transform: translateY(0) !important;
  }
  .pulse-panel-head h2 {
    font-size: 22px;
  }
  .pulse-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pulse-tab {
    min-height: 38px;
    font-size: 8px;
    letter-spacing: 0.08em;
    padding: 7px 4px;
  }
  .pulse-player {
    min-height: 150px;
  }
  .pulse-channel-list {
    max-height: calc(88dvh - 310px);
  }
  .pulse-item-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .pulse-item-date {
    white-space: normal;
  }
  .pulse-reader {
    align-items: flex-start;
    padding: max(58px, calc(env(safe-area-inset-top) + 46px)) 18px max(28px, env(safe-area-inset-bottom));
  }
  .pulse-reader-inner {
    width: 100%;
    margin: 0;
    padding: 0 0 24px;
  }
  .pulse-reader-inner h2 {
    font-size: clamp(32px, 13vw, 48px);
    line-height: 0.98;
  }
  .pulse-reader-meta {
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  .pulse-reader-body {
    font-size: 17px;
    line-height: 1.72;
  }
  .pulse-shell.is-video-expanded .pulse-video-shell {
    padding: max(54px, calc(env(safe-area-inset-top) + 42px)) 10px max(26px, env(safe-area-inset-bottom));
  }
  .pulse-shell.is-video-expanded .pulse-player {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }
  .cosmos-map-button {
    left: 12px;
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 14px));
  }
  .settings-map-button {
    left: 12px;
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 14px));
  }
  .settings-overlay,
  .notepad-overlay {
    left: 12px;
    right: 12px;
    width: auto;
  }
  .graph-save-modal,
  .location-modal {
    left: 50%;
    right: auto;
    width: min(520px, calc(100vw - 24px));
  }
  .settings-overlay {
    bottom: max(64px, calc(env(safe-area-inset-bottom) + 64px));
  }
  .notepad-overlay {
    top: max(58px, calc(env(safe-area-inset-top) + 48px));
    max-height: calc(100dvh - 84px);
  }
  .notepad-form textarea {
    min-height: 220px;
  }
  .cosmos-search {
    bottom: max(72px, calc(env(safe-area-inset-bottom) + 72px));
    width: min(560px, calc(100vw - 24px));
  }
  .cosmos-search-action {
    max-width: 112px;
    overflow: hidden;
    padding: 0 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cosmos-overlay {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: min(88dvh, 760px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
    transform: translateY(100%);
  }
  .cosmos-overlay.is-open {
    transform: translateY(0);
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  body.everything-map-page .container-wide {
    max-width: none;
  }
  body.everything-map-page .container {
    padding: 10px 14px max(62px, calc(env(safe-area-inset-bottom) + 58px));
  }
  body.everything-map-page .header,
  body.everything-map-page .top-bar {
    display: none;
  }
  body.everything-map-page .section-label {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }
  body.everything-map-page .section-subtitle {
    display: none;
  }
  .work-map-canvas {
    height: calc(100dvh - 76px);
    min-height: 220px;
    aspect-ratio: auto;
  }
  .pulse-mini {
    left: 14px;
    right: auto;
    bottom: max(10px, calc(env(safe-area-inset-bottom) + 10px));
    width: min(260px, 36vw);
    min-height: 46px;
    padding: 9px 11px;
  }
  .pulse-shell.is-open .pulse-mini,
  .pulse-shell.is-video-expanded .pulse-mini {
    opacity: 0;
    pointer-events: none;
  }
  .pulse-shell:not(.is-playing) .pulse-mini {
    width: 148px;
  }
  .pulse-shell:not(.is-playing) .pulse-mini-title {
    display: none;
  }
  .pulse-panel {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(420px, 48vw);
    height: 100vh;
    height: 100dvh;
    max-height: none;
    padding: max(14px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom));
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 1px solid rgba(255,255,255,0.09);
    border-radius: 8px 0 0 8px;
    opacity: 1;
    transform: translateX(100%);
  }
  .pulse-shell.is-open .pulse-panel {
    transform: translateX(0) !important;
  }
  body.pulse-panel-active .pulse-panel {
    transform: translateX(0) !important;
  }
  .pulse-panel-head h2 {
    font-size: 20px;
  }
  .pulse-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pulse-tab {
    min-height: 34px;
    font-size: 8px;
    letter-spacing: 0.08em;
    padding: 7px 4px;
  }
  .pulse-player {
    min-height: 104px;
  }
  .pulse-channel-list {
    max-height: calc(100dvh - 250px);
  }
  .pulse-item {
    padding: 12px 0;
  }
  .pulse-shell.is-video-expanded .pulse-video-shell {
    padding: max(44px, calc(env(safe-area-inset-top) + 34px)) 12px max(20px, env(safe-area-inset-bottom));
  }
  .pulse-shell.is-video-expanded .pulse-player {
    width: min(calc(100vw - 24px), calc((100dvh - 68px) * 1.7778));
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 430px) {
  .header-nav { gap: 14px; }
  .header-nav a { letter-spacing: 0.14em; }
  .work-map-canvas {
    aspect-ratio: 1 / 1;
  }
  .entry-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }
  .entry-main--stack {
    display: flex;
  }
  .pulse-mini {
    left: auto;
    right: 10px;
    gap: 9px;
    width: min(260px, calc(100vw - 20px));
    bottom: max(12px, calc(env(safe-area-inset-bottom) + 12px));
  }
  .pulse-mini-title {
    font-size: 11px;
  }
  .pulse-mini-command {
    display: none;
  }
  .pulse-panel {
    max-height: 92dvh;
  }
  .pulse-channel-list {
    max-height: calc(92dvh - 300px);
  }
  .pulse-item-title {
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  .map-top-actions {
    top: max(12px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
    gap: 6px;
  }
  .profile-chip {
    min-height: 36px;
    padding-right: 9px;
  }
  .profile-avatar {
    width: 24px;
    height: 24px;
  }
  .profile-name {
    max-width: 148px;
    overflow: hidden;
    font-size: 9px;
    letter-spacing: 0.15em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .map-icon-button {
    width: 36px;
    height: 36px;
  }
  .notepad-map-button {
    top: max(12px, env(safe-area-inset-top));
    right: max(54px, calc(env(safe-area-inset-right) + 54px));
    width: 36px;
    height: 36px;
  }
  .settings-map-button {
    left: max(12px, env(safe-area-inset-left));
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 14px));
    width: 36px;
    height: 36px;
  }
  .profile-overlay,
  .launchpad-overlay,
  .settings-overlay,
  .notepad-overlay {
    top: max(58px, calc(env(safe-area-inset-top) + 48px));
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100dvh - 84px);
  }
  .settings-overlay {
    top: auto;
    bottom: max(58px, calc(env(safe-area-inset-bottom) + 58px));
  }
  .cosmos-search {
    bottom: max(72px, calc(env(safe-area-inset-bottom) + 72px));
    width: min(560px, calc(100vw - 24px));
  }
  .graph-save-grid {
    grid-template-columns: 1fr;
  }
  .graph-save-grid select:last-child {
    grid-column: auto;
  }
  .launchpad-grid {
    grid-template-columns: 1fr;
  }
  .launchpad-grid .project-thumbnail {
    min-height: 0;
    aspect-ratio: 16 / 8;
  }
  body.everything-map-page .theme-toggle {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    width: 36px;
    height: 36px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  body.everything-map-page .work-map-canvas {
    height: 100dvh;
  }
  body.everything-map-page .theme-toggle {
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
  }
  .map-top-actions {
    top: max(10px, env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
  }
  .profile-overlay,
  .launchpad-overlay,
  .settings-overlay,
  .notepad-overlay {
    top: max(54px, calc(env(safe-area-inset-top) + 44px));
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    width: auto;
    max-height: calc(100dvh - 66px);
  }
  .settings-overlay {
    top: auto;
    right: auto;
    width: min(318px, calc(100vw - 20px));
    bottom: max(52px, calc(env(safe-area-inset-bottom) + 52px));
  }
  .launchpad-grid {
    grid-template-columns: repeat(5, minmax(92px, 1fr));
  }
  .launchpad-grid .project-thumbnail {
    min-height: 86px;
    aspect-ratio: 16 / 9;
  }
  .launchpad-grid .project-info h3 {
    font-size: 11px;
  }
  .profile-chip {
    min-height: 32px;
    padding: 4px 9px;
  }
  .profile-avatar {
    display: none;
  }
  .profile-name {
    max-width: 118px;
    font-size: 8px;
    letter-spacing: 0.12em;
  }
  .map-icon-button,
  .settings-map-button,
  .notepad-map-button,
  body.everything-map-page .theme-toggle {
    width: 32px;
    height: 32px;
  }
  .pulse-mini {
    left: auto;
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, calc(env(safe-area-inset-bottom) + 10px));
    width: min(300px, 38vw);
  }
  .pulse-panel {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(420px, 48vw);
    height: 100vh;
    height: 100dvh;
    max-height: none;
    padding: max(14px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom));
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 1px solid rgba(255,255,255,0.09);
    border-radius: 8px 0 0 8px;
    transform: translateX(100%);
  }
  .pulse-shell.is-open .pulse-panel,
  body.pulse-panel-active .pulse-panel {
    transform: translateX(0) !important;
  }
  .pulse-channel-list {
    max-height: calc(100dvh - 250px);
  }
  .cosmos-map-button {
    left: max(10px, env(safe-area-inset-left));
    bottom: max(10px, calc(env(safe-area-inset-bottom) + 10px));
  }
  .settings-map-button {
    left: max(10px, env(safe-area-inset-left));
    bottom: max(10px, calc(env(safe-area-inset-bottom) + 10px));
  }
  .notepad-map-button {
    top: max(10px, env(safe-area-inset-top));
    right: max(52px, calc(env(safe-area-inset-right) + 52px));
  }
  .settings-overlay {
    left: max(10px, env(safe-area-inset-left));
    bottom: max(58px, calc(env(safe-area-inset-bottom) + 58px));
  }
  .cosmos-search {
    bottom: max(10px, calc(env(safe-area-inset-bottom) + 10px));
    width: min(430px, 46vw);
  }
  .notepad-overlay {
    top: max(48px, calc(env(safe-area-inset-top) + 42px));
    right: max(10px, env(safe-area-inset-right));
    max-height: calc(100dvh - 58px);
  }
  .notepad-form textarea {
    min-height: 150px;
  }
  .cosmos-overlay {
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: min(420px, 48vw);
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-top: 0;
    border-right: 1px solid rgba(255,255,255,0.09);
    border-bottom: 0;
    border-left: 0;
    border-radius: 0 8px 8px 0;
    transform: translateX(-100%);
  }
  .cosmos-overlay.is-open {
    transform: translateX(0);
  }
}

body.light.everything-map-page,
body.light.everything-map-page .everything-page,
body.light.everything-map-page .everything-map-view {
  background: #f2f2f0;
}

body.light.everything-map-page .work-map-canvas {
  background:
    radial-gradient(circle, rgba(0,0,0,0.17) 0 1px, transparent 1.7px) 0 0 / 76px 76px,
    radial-gradient(circle, rgba(0,0,0,0.12) 0 1px, transparent 1.5px) 22px 18px / 38px 38px,
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(0,0,0,0.035) 1px, transparent 1px) 0 0 / 20% 100%,
    #f2f2f0;
}

body.light .profile-chip,
body.light .map-icon-button,
body.light .cosmos-map-button,
body.light .settings-map-button,
body.light .notepad-map-button,
body.light .cosmos-search-button,
body.light .cosmos-search-icon,
body.light .overlay-close,
body.light .profile-overlay,
body.light .launchpad-overlay,
body.light .cosmos-overlay,
body.light .settings-overlay,
body.light .notepad-overlay,
body.light .graph-save-modal,
body.light .location-modal,
body.light .node-modal,
body.light .cosmos-search,
body.light .cosmos-search-results,
body.light .pulse-mini,
body.light .pulse-panel {
  border-color: rgba(0,0,0,0.12);
  background: rgba(248,248,246,0.84);
  color: rgba(0,0,0,0.68);
  box-shadow: 0 22px 80px rgba(0,0,0,0.14);
}

body.light .profile-chip:hover,
body.light .profile-chip:focus-visible,
body.light .map-icon-button:hover,
body.light .map-icon-button:focus-visible,
body.light .cosmos-map-button:hover,
body.light .cosmos-map-button:focus-visible,
body.light .cosmos-map-button[aria-expanded="true"],
body.light .settings-map-button:hover,
body.light .settings-map-button:focus-visible,
body.light .settings-map-button[aria-expanded="true"],
body.light .notepad-map-button:hover,
body.light .notepad-map-button:focus-visible,
body.light .cosmos-search-button:hover,
body.light .cosmos-search-button:focus-visible,
body.light .cosmos-search-icon:hover,
body.light .cosmos-search-icon:focus-visible,
body.light .overlay-close:hover,
body.light .overlay-close:focus-visible,
body.light .pulse-mini:hover,
body.light .pulse-mini:focus-visible {
  border-color: rgba(0,0,0,0.28);
  background: rgba(255,255,255,0.94);
  color: #050505;
}

body.light .profile-avatar {
  border-color: rgba(0,0,0,0.14);
  background:
    radial-gradient(circle at 35% 28%, rgba(0,0,0,0.16), transparent 32%),
    rgba(0,0,0,0.045);
}

body.light .profile-overlay-name,
body.light .launchpad-head h1,
body.light .pulse-panel-head h2,
body.light .pulse-mini-title,
body.light .pulse-item-title,
body.light .search-result strong,
body.light .location-modal h2,
body.light .node-modal h2 {
  color: rgba(0,0,0,0.86);
}

body.light .profile-overlay p,
body.light .settings-status,
body.light .settings-message,
body.light .settings-section-label,
body.light .pulse-channel-intro p,
body.light .pulse-filter-head p,
body.light .pulse-item-meta,
body.light .search-result span,
body.light .node-role,
body.light .location-empty {
  color: rgba(0,0,0,0.52);
}

body.light .profile-overlay a,
body.light .profile-linkedin {
  color: rgba(0,0,0,0.76);
}

body.light .profile-linkedin {
  border-color: rgba(0,0,0,0.14);
}

body.light .profile-linkedin:hover,
body.light .profile-linkedin:focus-visible {
  border-color: rgba(0,0,0,0.3);
  background: rgba(0,0,0,0.05);
  color: #050505;
}

body.light .pulse-mini-kicker,
body.light .pulse-kicker,
body.light .pulse-item-type,
body.light .pulse-channel-name,
body.light .pulse-series-label,
body.light .pulse-filter-clear,
body.light .pulse-mini-command,
body.light .pulse-item-date,
body.light .pulse-action-button,
body.light .cosmos-search-action {
  color: rgba(0,0,0,0.34);
}

body.light .pulse-tabs,
body.light .pulse-player,
body.light .pulse-channel-intro,
body.light .pulse-filter-head,
body.light .pulse-item,
body.light .search-result,
body.light .pulse-meta-chip,
body.light .pulse-action-button,
body.light .cosmos-search-action,
body.light .login-form input,
body.light .settings-password-form input,
body.light .notepad-form input,
body.light .notepad-form textarea,
body.light .graph-save-form input,
body.light .graph-save-form textarea,
body.light .graph-save-form select {
  border-color: rgba(0,0,0,0.08);
}

body.light .pulse-meta-chip,
body.light .pulse-action-button,
body.light .cosmos-search-action,
body.light .login-form input,
body.light .settings-password-form input,
body.light .notepad-form input,
body.light .notepad-form textarea,
body.light .graph-save-form input,
body.light .graph-save-form textarea,
body.light .graph-save-form select {
  background: rgba(0,0,0,0.025);
  color: rgba(0,0,0,0.38);
}

body.light .pulse-meta-chip:hover,
body.light .pulse-meta-chip:focus-visible,
body.light .pulse-action-button:hover,
body.light .pulse-action-button:focus-visible,
body.light .cosmos-search-action:hover,
body.light .cosmos-search-action:focus-visible {
  border-color: rgba(0,0,0,0.22);
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.82);
}

body.light .pulse-tab {
  color: rgba(0,0,0,0.4);
}

body.light .pulse-tab.is-active,
body.light .pulse-tab:hover,
body.light .pulse-tab:focus-visible {
  background: rgba(0,0,0,0.07);
  color: rgba(0,0,0,0.86);
}

body.light .pulse-player {
  background:
    radial-gradient(circle at center, rgba(0,0,0,0.07), transparent 58%),
    #efefed;
  color: rgba(0,0,0,0.42);
}

body.light .pulse-reader {
  background:
    radial-gradient(circle at 50% 18%, rgba(0,0,0,0.045), transparent 42%),
    rgba(246,246,244,0.97);
  color: rgba(0,0,0,0.72);
}

body.light .pulse-reader-inner h2 {
  color: rgba(0,0,0,0.9);
}

body.light .pulse-reader-meta {
  color: rgba(0,0,0,0.34);
}

body.light .pulse-reader-body {
  color: rgba(0,0,0,0.72);
}

body.natural {
  background: #ede3d2;
  color: #211a12;
}

body.natural::after {
  opacity: 0.045;
  filter: sepia(0.45);
}

body.natural .container-reading {
  --reading-focus-edge: rgba(237,227,210,0.56);
  --reading-focus-wash: rgba(237,227,210,0.14);
}

body.natural .theme-toggle {
  background: rgba(86,64,42,0.1);
  border-color: rgba(86,64,42,0.2);
  color: rgba(54,42,28,0.62);
}

body.natural .theme-toggle:hover {
  background: rgba(86,64,42,0.16);
  border-color: rgba(86,64,42,0.36);
  color: #211a12;
}

body.natural .header-home,
body.natural .piece-title {
  color: #211a12;
}

body.natural .header-nav a,
body.natural .top-bar a,
body.natural .back-link,
body.natural .piece-nav a {
  color: rgba(51,39,26,0.45);
}

body.natural .header-nav a:hover,
body.natural .top-bar a:hover,
body.natural .header-nav a.active,
body.natural .back-link:hover,
body.natural .piece-nav a:hover {
  color: rgba(33,26,18,0.82);
}

body.natural .top-bar,
body.natural .section-label,
body.natural .index-list,
body.natural .entry-row,
body.natural .piece-header,
body.natural .chapter + .chapter,
body.natural .closing-poem,
body.natural .piece-nav,
body.natural .footer-bottom {
  border-color: rgba(86,64,42,0.13);
}

body.natural .section-label,
body.natural .series-label,
body.natural .series-location,
body.natural .piece-meta,
body.natural .chapter-number,
body.natural .entry-number,
body.natural .entry-meta,
body.natural .entry-location,
body.natural .footer-copyright {
  color: rgba(75,56,36,0.38);
}

body.natural .section-subtitle,
body.natural .entry-description,
body.natural .piece-deck {
  color: rgba(54,42,28,0.58);
}

body.natural .entry-title {
  color: rgba(33,26,18,0.66);
}

body.natural .entry-row:hover .entry-title,
body.natural .chapter-title {
  color: #211a12;
}

body.natural .prose,
body.natural .episode-body p,
body.natural .closing-poem p {
  color: rgba(33,26,18,0.74);
}

body.natural.everything-map-page,
body.natural.everything-map-page .everything-page,
body.natural.everything-map-page .everything-map-view {
  background: #8fb8c8;
}

body.natural.everything-map-page .work-map-canvas,
body.natural .work-map-canvas {
  border-color: rgba(55,80,70,0.16);
  background:
    radial-gradient(circle, rgba(255,255,245,0.28) 0 1px, transparent 1.7px) 0 0 / 82px 82px,
    radial-gradient(circle, rgba(31,65,82,0.12) 0 1px, transparent 1.5px) 22px 18px / 44px 44px,
    linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(31,65,82,0.09) 1px, transparent 1px) 0 0 / 20% 100%,
    #8fb8c8;
}

body.natural .work-map-canvas::before {
  background-image: radial-gradient(circle, rgba(255,255,245,0.34) 0 1px, transparent 1.5px);
  opacity: 0.08;
}

body.natural .work-map-canvas::after {
  border-color: rgba(31,65,82,0.12);
}

body.natural .work-map-geography {
  color: rgba(41,83,55,0.3);
}

body.natural .work-map-land,
body.natural .work-map-line {
  fill: rgba(86,130,72,0.42);
}

body.natural .work-map-land {
  fill: rgba(92,137,75,0.52);
  stroke: rgba(40,82,54,0.52);
}

body.natural .work-map-land-world {
  fill: rgba(101,143,82,0.58);
  stroke: rgba(40,82,54,0.5);
}

body.natural .work-map-land-island {
  fill: rgba(112,151,88,0.54);
}

body.natural .work-map-route {
  stroke: rgba(91,68,42,0.44);
}

body.natural .work-map-pin {
  color: #3a2a1b;
}

body.natural .work-map-pin::before {
  background: rgba(246,229,183,var(--pin-core-alpha, 0.88));
  box-shadow:
    0 0 var(--pin-glow-tight, 3px) rgba(246,229,183,0.78),
    0 0 var(--pin-glow-wide, 10px) rgba(96,72,42,var(--pin-glow-alpha, 0.24));
}

body.natural .work-map-pin::after {
  background: rgba(43,33,22,0.82);
  border-color: rgba(246,229,183,0.18);
  color: rgba(250,240,216,0.82);
}

body.natural .work-map-pin:hover,
body.natural .work-map-pin:focus-visible,
body.natural .work-map-pin.is-active {
  box-shadow: inset 0 0 0 1px rgba(62,43,24,0.22);
}

body.natural .work-map-pin.is-pulse-active::before {
  box-shadow:
    0 0 calc(var(--pin-glow-tight, 3px) + 4px) rgba(246,229,183,0.92),
    0 0 calc(var(--pin-glow-wide, 10px) + 18px) rgba(91,68,42,0.34);
}

body.natural .profile-chip,
body.natural .map-icon-button,
body.natural .cosmos-map-button,
body.natural .settings-map-button,
body.natural .notepad-map-button,
body.natural .cosmos-search-button,
body.natural .cosmos-search-icon,
body.natural .overlay-close,
body.natural .pulse-icon-button,
body.natural .pulse-video-toggle,
body.natural .pulse-reader-close,
body.natural .profile-overlay,
body.natural .launchpad-overlay,
body.natural .cosmos-overlay,
body.natural .settings-overlay,
body.natural .notepad-overlay,
body.natural .graph-save-modal,
body.natural .location-modal,
body.natural .node-modal,
body.natural .cosmos-search,
body.natural .cosmos-search-results,
body.natural .pulse-mini,
body.natural .pulse-panel {
  border-color: rgba(74,55,35,0.18);
  background: rgba(246,238,219,0.84);
  color: rgba(44,34,23,0.72);
  box-shadow: 0 22px 80px rgba(51,39,26,0.18);
}

body.natural .profile-chip:hover,
body.natural .profile-chip:focus-visible,
body.natural .map-icon-button:hover,
body.natural .map-icon-button:focus-visible,
body.natural .cosmos-map-button:hover,
body.natural .cosmos-map-button:focus-visible,
body.natural .cosmos-map-button[aria-expanded="true"],
body.natural .settings-map-button:hover,
body.natural .settings-map-button:focus-visible,
body.natural .settings-map-button[aria-expanded="true"],
body.natural .notepad-map-button:hover,
body.natural .notepad-map-button:focus-visible,
body.natural .cosmos-search-button:hover,
body.natural .cosmos-search-button:focus-visible,
body.natural .cosmos-search-icon:hover,
body.natural .cosmos-search-icon:focus-visible,
body.natural .overlay-close:hover,
body.natural .overlay-close:focus-visible,
body.natural .pulse-icon-button:hover,
body.natural .pulse-icon-button:focus-visible,
body.natural .pulse-video-toggle:hover,
body.natural .pulse-video-toggle:focus-visible,
body.natural .pulse-reader-close:hover,
body.natural .pulse-reader-close:focus-visible,
body.natural .pulse-mini:hover,
body.natural .pulse-mini:focus-visible {
  border-color: rgba(74,55,35,0.34);
  background: rgba(251,245,230,0.94);
  color: #211a12;
}

body.natural .profile-overlay,
body.natural .launchpad-overlay,
body.natural .cosmos-overlay,
body.natural .settings-overlay,
body.natural .notepad-overlay,
body.natural .graph-save-modal,
body.natural .location-modal,
body.natural .node-modal,
body.natural .cosmos-search-results,
body.natural .pulse-panel {
  background:
    linear-gradient(180deg, rgba(252,247,234,0.94), rgba(238,226,204,0.9)),
    rgba(246,238,219,0.9);
  color: rgba(44,34,23,0.72);
  backdrop-filter: blur(22px) saturate(116%);
  -webkit-backdrop-filter: blur(22px) saturate(116%);
}

body.natural .pulse-shell.is-video-expanded .pulse-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.natural .profile-avatar {
  border-color: rgba(74,55,35,0.18);
  background:
    radial-gradient(circle at 35% 28%, rgba(74,55,35,0.18), transparent 32%),
    rgba(88,128,76,0.16);
}

body.natural .profile-overlay-name,
body.natural .launchpad-head h1,
body.natural .pulse-panel-head h2,
body.natural .pulse-mini-title,
body.natural .pulse-item-title,
body.natural .search-result strong,
body.natural .location-modal h2,
body.natural .node-modal h2,
body.natural .work-map-place {
  color: rgba(33,26,18,0.88);
}

body.natural .profile-overlay p,
body.natural .profile-overlay a,
body.natural .settings-status,
body.natural .settings-message,
body.natural .settings-section-label,
body.natural .pulse-channel-intro p,
body.natural .pulse-filter-head p,
body.natural .pulse-item-meta,
body.natural .search-result span,
body.natural .location-empty,
body.natural .node-role,
body.natural .work-map-card-description {
  color: rgba(48,37,25,0.56);
}

body.natural .pulse-mini-kicker,
body.natural .pulse-kicker,
body.natural .pulse-item-type,
body.natural .pulse-channel-name,
body.natural .pulse-series-label,
body.natural .pulse-filter-clear,
body.natural .pulse-mini-command,
body.natural .pulse-item-date,
body.natural .cosmos-search-action,
body.natural .work-map-kicker,
body.natural .work-map-card-type,
body.natural .work-map-card-location {
  color: rgba(64,48,31,0.42);
}

body.natural .pulse-tabs,
body.natural .pulse-player,
body.natural .pulse-channel-intro,
body.natural .pulse-filter-head,
body.natural .pulse-item,
body.natural .search-result,
body.natural .pulse-meta-chip,
body.natural .pulse-action-button,
body.natural .cosmos-search-action,
body.natural .login-form input,
body.natural .settings-password-form input,
body.natural .notepad-form input,
body.natural .notepad-form textarea,
body.natural .graph-save-form input,
body.natural .graph-save-form textarea,
body.natural .graph-save-form select,
body.natural .profile-linkedin,
body.natural .work-map-panel,
body.natural .work-map-card-list,
body.natural .work-map-card {
  border-color: rgba(74,55,35,0.13);
}

body.natural .pulse-meta-chip,
body.natural .pulse-action-button,
body.natural .cosmos-search-action,
body.natural .login-form input,
body.natural .settings-password-form input,
body.natural .notepad-form input,
body.natural .notepad-form textarea,
body.natural .graph-save-form input,
body.natural .graph-save-form textarea,
body.natural .graph-save-form select,
body.natural .pulse-tab,
body.natural .profile-linkedin {
  background: rgba(74,55,35,0.04);
  color: rgba(64,48,31,0.48);
}

body.natural .pulse-tab.is-active,
body.natural .pulse-tab:hover,
body.natural .pulse-tab:focus-visible,
body.natural .pulse-meta-chip:hover,
body.natural .pulse-meta-chip:focus-visible,
body.natural .pulse-action-button:hover,
body.natural .pulse-action-button:focus-visible,
body.natural .cosmos-search-action:hover,
body.natural .cosmos-search-action:focus-visible,
body.natural .profile-linkedin:hover,
body.natural .profile-linkedin:focus-visible {
  border-color: rgba(74,55,35,0.25);
  background: rgba(74,55,35,0.1);
  color: rgba(33,26,18,0.86);
}

body.natural .pulse-player {
  background:
    radial-gradient(circle at center, rgba(88,128,76,0.12), transparent 58%),
    #e8dcc5;
  color: rgba(64,48,31,0.48);
}

body.natural .pulse-reader {
  background:
    radial-gradient(circle at 50% 18%, rgba(93,132,81,0.14), transparent 42%),
    linear-gradient(180deg, rgba(239,229,210,0.98), rgba(231,219,196,0.98));
  color: rgba(33,26,18,0.74);
}

body.natural .pulse-shell.is-video-expanded .pulse-video-shell {
  background:
    radial-gradient(circle at 50% 50%, rgba(93,132,81,0.12), transparent 52%),
    rgba(226,215,192,0.96);
}

body.natural .pulse-reader-inner h2 {
  color: rgba(33,26,18,0.92);
}

body.natural .pulse-reader-meta {
  color: rgba(64,48,31,0.42);
}

body.natural .pulse-reader-body {
  color: rgba(33,26,18,0.74);
}

body.natural .pulse-reader-body a {
  border-bottom-color: rgba(74,55,35,0.24);
  color: rgba(33,26,18,0.88);
}

body.natural .pulse-reader-body iframe {
  border-color: rgba(74,55,35,0.16);
  background: #efe5d1;
}

body.natural .project-card:not(.transparent) {
  background: rgba(241,232,212,0.82);
  border-color: rgba(74,55,35,0.12);
}

body.natural .launchpad-grid .project-card.transparent {
  border: 1px solid rgba(74,55,35,0.1) !important;
  background: rgba(246,238,219,0.3) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

body.natural .launchpad-grid .project-card.transparent:hover {
  border-color: rgba(74,55,35,0.2) !important;
  background: rgba(251,245,230,0.46) !important;
}

body.natural .project-thumbnail {
  background: rgba(226,215,192,0.5);
}

body.natural .project-card.transparent .project-thumbnail {
  background: rgba(226,215,192,0.18) !important;
}

body.natural .project-info h3,
body.natural .work-map-card-title {
  color: rgba(33,26,18,0.72);
}

body.natural .project-card:hover .project-info h3,
body.natural .work-map-card[href]:hover .work-map-card-title,
body.natural .work-map-card[href]:focus-visible .work-map-card-title,
body.natural button.work-map-card:hover .work-map-card-title,
body.natural button.work-map-card:focus-visible .work-map-card-title {
  color: #211a12;
}

body.natural .project-info p {
  color: rgba(54,42,28,0.58);
}

/* Unified Cosmos composer and semantic theme layer */
body.everything-map-page {
  --cosmos-page-bg: #030303;
  --cosmos-surface: rgba(5,5,5,0.72);
  --cosmos-surface-strong: rgba(8,8,8,0.9);
  --cosmos-surface-soft: rgba(255,255,255,0.04);
  --cosmos-surface-hover: rgba(255,255,255,0.08);
  --cosmos-text: rgba(255,255,255,0.86);
  --cosmos-text-soft: rgba(255,255,255,0.58);
  --cosmos-text-muted: rgba(255,255,255,0.38);
  --cosmos-placeholder: rgba(255,255,255,0.46);
  --cosmos-border: rgba(255,255,255,0.12);
  --cosmos-border-strong: rgba(255,255,255,0.24);
  --cosmos-shadow: 0 24px 90px rgba(0,0,0,0.44);
  --cosmos-accent: rgba(246,229,183,0.86);
  --cosmos-map-bg: #030303;
}

body.light.everything-map-page {
  --cosmos-page-bg: #f2f2f0;
  --cosmos-surface: rgba(248,248,246,0.88);
  --cosmos-surface-strong: rgba(255,255,255,0.96);
  --cosmos-surface-soft: rgba(0,0,0,0.035);
  --cosmos-surface-hover: rgba(0,0,0,0.06);
  --cosmos-text: rgba(0,0,0,0.86);
  --cosmos-text-soft: rgba(0,0,0,0.56);
  --cosmos-text-muted: rgba(0,0,0,0.38);
  --cosmos-placeholder: rgba(0,0,0,0.46);
  --cosmos-border: rgba(0,0,0,0.12);
  --cosmos-border-strong: rgba(0,0,0,0.24);
  --cosmos-shadow: 0 22px 70px rgba(0,0,0,0.14);
  --cosmos-accent: rgba(20,20,18,0.82);
  --cosmos-map-bg: #f2f2f0;
}

body.natural.everything-map-page {
  --cosmos-page-bg: #587f8c;
  --cosmos-surface: rgba(237,226,201,0.88);
  --cosmos-surface-strong: rgba(243,234,213,0.96);
  --cosmos-surface-soft: rgba(67,76,50,0.075);
  --cosmos-surface-hover: rgba(67,76,50,0.13);
  --cosmos-text: rgba(34,31,24,0.9);
  --cosmos-text-soft: rgba(47,43,32,0.66);
  --cosmos-text-muted: rgba(68,59,41,0.48);
  --cosmos-placeholder: rgba(59,52,38,0.54);
  --cosmos-border: rgba(94,88,67,0.22);
  --cosmos-border-strong: rgba(74,82,55,0.38);
  --cosmos-shadow: 0 22px 64px rgba(40,50,44,0.2);
  --cosmos-accent: rgba(78,101,59,0.9);
  --cosmos-map-bg: #587f8c;
}

body.everything-map-page,
body.everything-map-page .everything-page,
body.everything-map-page .everything-map-view {
  background: var(--cosmos-page-bg);
}

body.natural.everything-map-page .work-map-canvas,
body.natural .work-map-canvas {
  background:
    radial-gradient(circle, rgba(239,229,199,0.22) 0 1px, transparent 1.7px) 0 0 / 82px 82px,
    radial-gradient(circle, rgba(36,63,70,0.16) 0 1px, transparent 1.5px) 22px 18px / 44px 44px,
    linear-gradient(rgba(214,205,174,0.16) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(71,88,67,0.15) 1px, transparent 1px) 0 0 / 20% 100%,
    var(--cosmos-map-bg);
}

body.natural .work-map-land,
body.natural .work-map-line,
body.natural .work-map-land-world {
  fill: rgba(76,99,57,0.68);
  stroke: rgba(82,90,62,0.62);
}

body.natural .work-map-geography {
  color: rgba(77,91,61,0.44);
}

body.natural .work-map-route {
  stroke: rgba(94,79,57,0.38);
}

body.light .profile-chip,
body.light .map-icon-button,
body.light .settings-map-button,
body.light .cosmos-search-button,
body.light .cosmos-search-icon,
body.light .overlay-close,
body.light .profile-overlay,
body.light .launchpad-overlay,
body.light .settings-overlay,
body.light .location-modal,
body.light .perspective-modal,
body.light .cosmos-search,
body.light .cosmos-search-results,
body.light .pulse-mini,
body.light .pulse-panel,
body.natural .profile-chip,
body.natural .map-icon-button,
body.natural .settings-map-button,
body.natural .cosmos-search-button,
body.natural .cosmos-search-icon,
body.natural .overlay-close,
body.natural .pulse-icon-button,
body.natural .pulse-video-toggle,
body.natural .pulse-reader-close,
body.natural .profile-overlay,
body.natural .launchpad-overlay,
body.natural .settings-overlay,
body.natural .location-modal,
body.natural .perspective-modal,
body.natural .cosmos-search,
body.natural .cosmos-search-results,
body.natural .pulse-mini,
body.natural .pulse-panel {
  border-color: var(--cosmos-border);
  background: var(--cosmos-surface);
  color: var(--cosmos-text-soft);
  box-shadow: var(--cosmos-shadow);
}

.composer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1301;
  display: block;
  border: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

body.composer-expanded-active .composer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.cosmos-composer {
  left: 50%;
  right: auto;
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 20px));
  z-index: 1302;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: min(680px, calc(100vw - 36px));
  min-height: 48px;
  padding: 7px;
  border-color: var(--cosmos-border);
  border-radius: 24px;
  background: var(--cosmos-surface);
  color: var(--cosmos-text);
  box-shadow: var(--cosmos-shadow);
  transform: translateX(-50%) translateY(var(--composer-sheet-y, 0));
  transition: width 0.24s ease, border-radius 0.24s ease, background 0.24s ease, transform 0.24s ease;
}

.cosmos-composer.is-expanded {
  width: min(760px, calc(100vw - 36px));
  border-radius: 18px;
  background: var(--cosmos-surface-strong);
}

.composer-chrome {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  position: relative;
}

.cosmos-composer.is-expanded .composer-chrome {
  display: flex;
}

.composer-drag-handle {
  display: block;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: var(--cosmos-border-strong);
  opacity: 0.78;
}

.composer-minimize {
  appearance: none;
  position: absolute;
  top: -3px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--cosmos-border);
  border-radius: 999px;
  background: var(--cosmos-surface-soft);
  color: var(--cosmos-text-muted);
  cursor: pointer;
}

.composer-minimize:hover,
.composer-minimize:focus-visible {
  border-color: var(--cosmos-border-strong);
  background: var(--cosmos-surface-hover);
  color: var(--cosmos-text);
  outline: none;
}

.composer-minimize svg {
  width: 15px;
  height: 15px;
}

.composer-shell {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.composer-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.cosmos-composer textarea[data-search-input] {
  display: block;
  flex: 1 1 auto;
  min-height: 34px;
  max-height: 180px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--cosmos-text);
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.45;
  padding: 8px 10px;
  resize: none;
}

.cosmos-composer textarea[data-search-input]::placeholder,
.cosmos-composer input::placeholder,
.login-form input::placeholder,
.settings-password-form input::placeholder,
.composer-document input::placeholder {
  color: var(--cosmos-placeholder);
  opacity: 1;
}

.cosmos-composer input,
.cosmos-composer select,
.composer-document input,
.composer-document select {
  border: 1px solid var(--cosmos-border);
  background: var(--cosmos-surface-soft);
  color: var(--cosmos-text);
}

.cosmos-composer input:focus,
.cosmos-composer textarea[data-search-input]:focus,
.cosmos-composer select:focus,
.composer-document input:focus,
.composer-document select:focus,
.document-editor:focus {
  border-color: var(--cosmos-border-strong);
  outline: none;
}

.cosmos-search-button,
.cosmos-search-icon,
.cosmos-search-action,
.pulse-action-button {
  border-color: var(--cosmos-border);
  background: var(--cosmos-surface-soft);
  color: var(--cosmos-text-muted);
}

.cosmos-search-button:hover,
.cosmos-search-button:focus-visible,
.cosmos-search-icon:hover,
.cosmos-search-icon:focus-visible,
.cosmos-search-action:hover,
.cosmos-search-action:focus-visible,
.pulse-action-button:hover,
.pulse-action-button:focus-visible {
  border-color: var(--cosmos-border-strong);
  background: var(--cosmos-surface-hover);
  color: var(--cosmos-text);
}

.composer-metadata,
.composer-live {
  display: none;
}

.cosmos-composer.is-expanded .composer-metadata {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(2, minmax(100px, 0.7fr));
  gap: 9px;
  padding: 10px 3px 3px;
}

.cosmos-composer.is-expanded .composer-live {
  display: none !important;
  margin: 8px 3px 0;
  padding: 13px 14px;
  border: 1px solid var(--cosmos-border);
  border-radius: 10px;
  background: var(--cosmos-surface-soft);
  color: var(--cosmos-text-soft);
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.65;
  max-height: 168px;
  overflow: auto;
}

.composer-live:empty {
  display: none !important;
}

.composer-live p {
  margin: 0 0 0.7em;
}

.composer-live p:last-child {
  margin-bottom: 0;
}

.composer-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.composer-field label {
  color: var(--cosmos-text-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.composer-field input,
.composer-field select {
  width: 100%;
  min-height: 34px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.3;
  padding: 8px 9px;
}

.composer-field-title,
.composer-field-location,
.composer-field-embed,
.composer-location-verification,
.composer-save-row {
  grid-column: 1 / -1;
}

.composer-location-row,
.composer-save-row,
.composer-location-verification {
  display: flex;
  align-items: center;
  gap: 8px;
}

.composer-location-row input {
  flex: 1 1 auto;
}

.composer-location-verification {
  min-height: 92px;
  padding: 8px;
  border: 1px solid var(--cosmos-border);
  border-radius: 10px;
  background: var(--cosmos-surface-soft);
}

.composer-location-verification[hidden],
.composer-field-embed[hidden] {
  display: none !important;
}

.composer-location-map {
  position: relative;
  flex: 0 0 120px;
  height: 74px;
  border: 1px solid var(--cosmos-border);
  border-radius: 8px;
  background:
    linear-gradient(rgba(127,127,127,0.09) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(127,127,127,0.09) 1px, transparent 1px) 0 0 / 25% 100%,
    radial-gradient(circle at 52% 48%, rgba(127,127,127,0.16), transparent 55%),
    var(--cosmos-map-bg);
  overflow: hidden;
}

.composer-location-map span {
  position: absolute;
  left: var(--pin-x, 50%);
  top: var(--pin-y, 50%);
  width: 9px;
  height: 9px;
  border: 2px solid var(--cosmos-surface-strong);
  border-radius: 50%;
  background: var(--cosmos-accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--cosmos-accent) 18%, transparent);
  transform: translate(-50%, -50%);
}

.composer-location-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
}

.composer-location-copy strong {
  color: var(--cosmos-text);
  font-size: 11px;
  line-height: 1.3;
}

.composer-location-copy span,
.composer-save-row .settings-message {
  color: var(--cosmos-text-muted);
  font-size: 10px;
  line-height: 1.4;
}

.composer-save-row {
  justify-content: space-between;
}

.composer-save-button {
  flex: 0 0 auto;
}

.cosmos-search-results {
  border-color: var(--cosmos-border);
  background: var(--cosmos-surface-strong);
  color: var(--cosmos-text-soft);
  box-shadow: var(--cosmos-shadow);
}

.search-result {
  border-bottom-color: var(--cosmos-border);
}

.search-result strong {
  color: var(--cosmos-text);
}

.search-result span,
.location-empty {
  color: var(--cosmos-text-muted);
}

.location-modal {
  width: min(760px, calc(100vw - 32px));
}

.node-modal {
  width: min(820px, calc(100vw - 32px));
}

.perspective-modal {
  width: min(900px, calc(100vw - 32px));
}

.location-modal-inner,
.node-modal-inner,
.perspective-modal-inner {
  padding-bottom: max(108px, clamp(22px, 4vw, 48px));
}

.location-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: start;
}

.location-lore,
.location-coordinates,
.node-summary,
.node-role,
.perspective-head p {
  margin: 0;
  color: var(--cosmos-text-soft);
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.55;
}

.location-coordinates {
  color: var(--cosmos-text-muted);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.location-map-preview {
  position: relative;
  min-height: 104px;
  border: 1px solid var(--cosmos-border);
  border-radius: 8px;
  background:
    linear-gradient(rgba(127,127,127,0.1) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(127,127,127,0.1) 1px, transparent 1px) 0 0 / 25% 100%,
    radial-gradient(circle at var(--location-pin-x, 50%) var(--location-pin-y, 50%), color-mix(in srgb, var(--cosmos-accent) 18%, transparent), transparent 34%),
    var(--cosmos-map-bg);
  overflow: hidden;
}

.location-map-preview span {
  position: absolute;
  left: var(--location-pin-x, 50%);
  top: var(--location-pin-y, 50%);
  width: 10px;
  height: 10px;
  border: 2px solid var(--cosmos-surface-strong);
  border-radius: 50%;
  background: var(--cosmos-accent);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--cosmos-accent) 18%, transparent);
  transform: translate(-50%, -50%);
}

.location-detail-grid,
.node-detail-grid,
.perspective-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.location-chip-list,
.node-chip-list,
.perspective-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.location-chip,
.node-chip,
.perspective-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  border: 1px solid var(--cosmos-border);
  border-radius: 999px;
  background: var(--cosmos-surface-soft);
  color: var(--cosmos-text-soft);
  font-size: 10px;
  line-height: 1;
  padding: 7px 10px;
}

.node-chip,
.perspective-chip {
  cursor: pointer;
}

.node-chip em,
.perspective-chip em {
  color: var(--cosmos-text-muted);
  font-style: normal;
}

.perspective-chip:hover,
.perspective-chip:focus-visible,
.node-chip:hover,
.node-chip:focus-visible,
.location-related-entry:hover,
.location-related-entry:focus-visible,
.node-record-entry:hover,
.node-record-entry:focus-visible,
.perspective-timeline-entry:hover,
.perspective-timeline-entry:focus-visible {
  border-color: var(--cosmos-border-strong);
  background: var(--cosmos-surface-hover);
  color: var(--cosmos-text);
  outline: none;
}

.location-loop {
  margin: 0;
  border-left: 1px solid var(--cosmos-border-strong);
  color: var(--cosmos-text-soft);
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.45;
  padding-left: 10px;
}

.location-related-entry,
.node-record-entry,
.perspective-timeline-entry {
  appearance: none;
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--cosmos-border);
  border-radius: 8px;
  background: var(--cosmos-surface-soft);
  color: var(--cosmos-text-soft);
  cursor: pointer;
  padding: 10px;
  text-align: left;
}

.location-related-title,
.node-record-entry .location-related-title,
.perspective-timeline-entry strong {
  color: var(--cosmos-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.location-related-meta,
.node-record-entry .location-related-meta,
.perspective-timeline-meta,
.perspective-timeline-date {
  color: var(--cosmos-text-muted);
  font-size: 10px;
  line-height: 1.3;
}

.perspective-modal-inner {
  gap: 18px;
}

.node-modal-inner {
  gap: 18px;
}

.perspective-head {
  display: flex;
  max-width: 620px;
  flex-direction: column;
  gap: 8px;
}

.node-head {
  display: flex;
  max-width: 680px;
  flex-direction: column;
  gap: 8px;
}

.node-role {
  color: var(--cosmos-text-muted);
  font-size: 13px;
}

.perspective-section {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.node-section {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.node-record-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.perspective-timeline-section {
  padding-top: 4px;
}

.perspective-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.composer-document {
  position: fixed;
  inset: 0;
  z-index: 1360;
  display: flex;
  background:
    radial-gradient(circle at 52% 8%, color-mix(in srgb, var(--cosmos-accent) 10%, transparent), transparent 36%),
    var(--cosmos-page-bg);
  color: var(--cosmos-text);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  visibility: hidden;
}

.composer-document.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 72px);
  width: min(1180px, calc(100vw - 42px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(44px, calc(env(safe-area-inset-top) + 34px)) 0 max(34px, calc(env(safe-area-inset-bottom) + 28px));
}

.document-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 26px;
}

.document-meta input,
.document-meta select {
  width: 100%;
  min-height: 36px;
  border-radius: 8px;
  font-size: 11px;
  padding: 9px 10px;
}

.document-toolbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.document-toolbar button {
  min-height: 34px;
  border: 1px solid var(--cosmos-border);
  border-radius: 7px;
  background: var(--cosmos-surface-soft);
  color: var(--cosmos-text-muted);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.document-toolbar button:hover,
.document-toolbar button:focus-visible {
  border-color: var(--cosmos-border-strong);
  background: var(--cosmos-surface-hover);
  color: var(--cosmos-text);
  outline: none;
}

.document-page {
  align-self: stretch;
  min-height: calc(100dvh - 88px);
  padding: clamp(34px, 8vw, 90px) clamp(24px, 7vw, 92px);
  border-left: 1px solid var(--cosmos-border);
}

.document-editor {
  width: 100%;
  min-height: calc(100dvh - 220px);
  color: var(--cosmos-text);
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.82;
  outline: none;
}

.document-editor:empty::before {
  content: "write in the final form";
  color: var(--cosmos-placeholder);
}

.document-editor h1,
.document-editor h2,
.document-editor h3 {
  margin: 0 0 0.82em;
  color: var(--cosmos-text);
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
}

.document-editor h1 {
  font-size: clamp(42px, 7vw, 84px);
}

.document-editor p,
.document-editor blockquote,
.document-editor ul,
.document-editor ol {
  margin: 0 0 1.15em;
}

.document-editor blockquote {
  padding-left: 1.2em;
  border-left: 1px solid var(--cosmos-border-strong);
  color: var(--cosmos-text-soft);
  font-style: italic;
}

.document-editor ul,
.document-editor ol {
  padding-left: 1.25em;
}

.composer-document[data-document-size="large"] .document-editor {
  font-size: 24px;
  line-height: 1.78;
}

.composer-document[data-document-size="quiet"] .document-editor {
  font-size: 17px;
  line-height: 1.9;
}

body.document-surface-active .theme-toggle,
body.document-surface-active .pulse-mini,
body.document-surface-active .settings-map-button,
body.document-surface-active .map-top-actions {
  opacity: 0;
  pointer-events: none;
}

body.launchpad-overlay-active .cosmos-composer,
body.location-modal-active .cosmos-composer,
body.perspective-modal-active .cosmos-composer {
  opacity: 0;
  pointer-events: none;
}

body.light .project-card,
body.natural .project-card,
body.light .launchpad-grid .project-card.transparent,
body.natural .launchpad-grid .project-card.transparent {
  border-color: var(--cosmos-border) !important;
  background: var(--cosmos-surface-soft) !important;
  color: var(--cosmos-text-soft);
  box-shadow: none;
}

body.light .project-card:hover,
body.natural .project-card:hover,
body.light .launchpad-grid .project-card.transparent:hover,
body.natural .launchpad-grid .project-card.transparent:hover {
  border-color: var(--cosmos-border-strong) !important;
  background: var(--cosmos-surface-hover) !important;
}

body.light .project-info h3,
body.natural .project-info h3 {
  color: var(--cosmos-text);
}

body.light .project-info p,
body.light .project-info .card-location,
body.natural .project-info p,
body.natural .project-info .card-location {
  color: var(--cosmos-text-soft);
}

.launchpad-grid .project-card,
body.light .launchpad-grid .project-card.transparent,
body.natural .launchpad-grid .project-card.transparent {
  overflow: hidden !important;
}

.launchpad-grid .project-thumbnail {
  min-height: clamp(150px, 22vw, 260px);
  border-bottom: 1px solid var(--cosmos-border);
}

.launchpad-grid .project-info {
  padding: 16px 18px 18px !important;
  background: color-mix(in srgb, var(--cosmos-surface-strong) 74%, transparent);
}

.launchpad-grid .project-info h3 {
  margin: 0;
  color: var(--cosmos-text);
  line-height: 1.18;
}

body.light .launchpad-grid .project-card.transparent,
body.natural .launchpad-grid .project-card.transparent {
  border-color: var(--cosmos-border-strong) !important;
  background: color-mix(in srgb, var(--cosmos-surface-soft) 84%, transparent) !important;
}

body.light .launchpad-grid .project-card.cosmos .glitch,
body.light .launchpad-grid .project-card.polarity .glitch,
body.natural .launchpad-grid .project-card.cosmos .glitch,
body.natural .launchpad-grid .project-card.polarity .glitch {
  color: var(--cosmos-text);
  text-shadow: 0 1px 0 color-mix(in srgb, var(--cosmos-page-bg) 72%, transparent);
}

body.light .launchpad-grid .project-thumbnail .glitch::before,
body.natural .launchpad-grid .project-thumbnail .glitch::before {
  background-image: repeating-linear-gradient(90deg, color-mix(in srgb, var(--cosmos-text) 88%, transparent) 0, color-mix(in srgb, var(--cosmos-text) 88%, transparent) 1px, transparent 1px, transparent 7px);
}

body.light .launchpad-grid .project-thumbnail .glitch::after,
body.natural .launchpad-grid .project-thumbnail .glitch::after {
  background-image: repeating-linear-gradient(90deg, color-mix(in srgb, var(--cosmos-accent) 70%, var(--cosmos-text)) 0, color-mix(in srgb, var(--cosmos-accent) 70%, var(--cosmos-text)) 1px, transparent 1px, transparent 11px);
  mix-blend-mode: multiply;
}

@media (max-width: 760px) {
  .cosmos-composer {
    bottom: max(16px, calc(env(safe-area-inset-bottom) + 16px));
    width: min(560px, calc(100vw - 24px));
  }

  .cosmos-composer.is-expanded {
    bottom: 0;
    width: 100vw;
    max-height: min(76dvh, 640px);
    padding: 8px 12px max(12px, env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .cosmos-composer.is-expanded .composer-metadata {
    grid-template-columns: 1fr;
  }

  .composer-shell {
    align-items: flex-end;
  }

  .composer-location-verification {
    align-items: stretch;
    flex-direction: column;
  }

  .composer-location-map {
    width: 100%;
    flex-basis: 92px;
  }

  .document-layout {
    display: flex;
    flex-direction: column;
    width: min(100vw - 24px, 680px);
    gap: 16px;
    padding-top: max(54px, calc(env(safe-area-inset-top) + 44px));
  }

  .document-meta {
    padding-top: 0;
  }

  .document-toolbar {
    grid-template-columns: repeat(8, minmax(34px, 1fr));
  }

  .document-page {
    min-height: auto;
    padding: 20px 0 80px;
    border-left: 0;
    border-top: 1px solid var(--cosmos-border);
  }

  .document-editor {
    min-height: 58dvh;
    font-size: 18px;
  }

  .location-modal,
  .node-modal,
  .perspective-modal {
    width: min(100vw - 18px, 680px);
    max-height: calc(100dvh - 20px);
    padding: 16px;
  }

  .location-hero,
  .location-detail-grid,
  .node-detail-grid,
  .node-record-list,
  .perspective-grid,
  .perspective-timeline {
    grid-template-columns: 1fr;
  }

  .location-map-preview {
    min-height: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Memento Mori public reader surface */
body.memento-site {
  --mm-paper: #f3efe7;
  --mm-paper-soft: #ebe2d3;
  --mm-ink: #17130d;
  --mm-text: rgba(23,19,13,0.82);
  --mm-muted: rgba(23,19,13,0.52);
  --mm-faint: rgba(23,19,13,0.32);
  --mm-rule: rgba(68,52,34,0.16);
  --mm-accent: #2f6f68;
  --mm-warm: #9f5f38;
  --mm-serif: Georgia, "Times New Roman", serif;
  --mm-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(23,19,13,0.035) 0 1px, transparent 1px) 0 0 / 88px 100%,
    var(--mm-paper);
  color: var(--mm-ink);
  cursor: auto;
  font-family: var(--mm-serif);
  font-weight: 400;
}

body.memento-site::after {
  opacity: 0.035;
  filter: sepia(0.5);
}

.mm-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), 1120px);
  margin: 0 auto;
  padding: 28px 0 56px;
}

.mm-reading-shell {
  width: min(calc(100% - 48px), 920px);
  --reading-focus-top: clamp(104px, 16vh, 178px);
  --reading-focus-bottom: clamp(112px, 17vh, 188px);
  --reading-focus-edge: rgba(243,239,231,0.58);
  --reading-focus-wash: rgba(243,239,231,0.14);
}

.mm-header,
.mm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--mm-sans);
  font-size: 0.78rem;
  line-height: 1.4;
}

.mm-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--mm-rule);
}

body.memento-article .mm-header {
  position: sticky;
  top: 16px;
  z-index: 10000;
  padding: 12px 0 14px;
  border-bottom: 0;
  background: linear-gradient(to bottom, rgba(243,239,231,0.82), rgba(243,239,231,0.42));
  backdrop-filter: blur(8px) saturate(104%);
  -webkit-backdrop-filter: blur(8px) saturate(104%);
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.32s ease, opacity 0.28s ease;
}

body.memento-article.is-reading-nav-hidden .mm-header {
  transform: translateY(calc(-100% - 26px));
  opacity: 0;
}

.mm-brand,
.mm-nav,
.mm-footer a,
.mm-back-link {
  color: var(--mm-ink);
  text-decoration: none;
}

.mm-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.mm-brand-mark {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(23,19,13,0.14);
}

.mm-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex-wrap: wrap;
}

.mm-nav a,
.mm-footer a,
.mm-back-link {
  color: var(--mm-muted);
  transition: color 0.18s ease;
}

.mm-nav a:hover,
.mm-footer a:hover,
.mm-back-link:hover {
  color: var(--mm-ink);
}

.mm-hero {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 64px;
}

.mm-orientation,
.mm-intro-note,
.mm-section-heading p,
.mm-release-index,
.signup-kicker,
.mm-piece-nav a,
.mm-piece-nav span,
.mm-footer {
  font-family: var(--mm-sans);
}

.mm-orientation {
  margin-bottom: 26px;
  color: var(--mm-faint);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
  text-transform: none;
}

.mm-hero h1 {
  margin: 0;
  max-width: 10ch;
  color: var(--mm-ink);
  font-family: var(--mm-serif);
  font-size: 6.5rem;
  font-weight: 400;
  line-height: 0.96;
}

.mm-author-line {
  margin-top: 22px;
  color: var(--mm-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.mm-hero-deck {
  max-width: 720px;
  margin-top: 28px;
  color: var(--mm-text);
  font-size: 1.45rem;
  line-height: 1.55;
}

.mm-hero-deck a,
.mm-intro-copy a,
.mm-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(47,111,104,0.35);
}

.mm-introduction {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 72px;
  padding: 78px 0;
  border-top: 1px solid var(--mm-rule);
  border-bottom: 1px solid var(--mm-rule);
}

.mm-intro-note {
  position: sticky;
  top: 28px;
  align-self: start;
  color: var(--mm-faint);
  font-size: 0.78rem;
  line-height: 1.7;
}

.mm-profile-photo {
  display: block;
  width: 136px;
  height: 136px;
  margin: 0 0 24px;
  border: 1px solid rgba(23,19,13,0.16);
  border-radius: 6px;
  object-fit: cover;
}

.mm-intro-note p + p {
  margin-top: 10px;
}

.mm-intro-copy {
  max-width: 760px;
}

.mm-intro-copy p,
.mm-prose p {
  color: var(--mm-text);
  font-size: 1.2rem;
  line-height: 1.82;
  margin: 0 0 1.35em;
}

.mm-intro-copy p:first-child {
  color: var(--mm-ink);
  font-size: 1.45rem;
  line-height: 1.62;
}

.mm-release {
  padding: 84px 0 32px;
}

.mm-section-heading {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 72px;
  align-items: baseline;
  margin-bottom: 28px;
}

.mm-section-heading p {
  color: var(--mm-faint);
  font-size: 0.78rem;
  font-weight: 700;
}

.mm-section-heading h2 {
  color: var(--mm-ink);
  font-family: var(--mm-serif);
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1.08;
}

.mm-release-list {
  border-top: 1px solid var(--mm-rule);
}

.mm-release-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 72px;
  padding: 28px 0;
  border-bottom: 1px solid var(--mm-rule);
  color: inherit;
  text-decoration: none;
}

.mm-release-index {
  color: var(--mm-faint);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
}

.mm-release-main {
  display: grid;
  gap: 8px;
}

.mm-release-title {
  color: var(--mm-ink);
  font-size: 1.8rem;
  line-height: 1.15;
}

.mm-release-summary {
  max-width: 62ch;
  color: var(--mm-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.mm-release-row:hover .mm-release-title {
  color: var(--mm-accent);
}

.mm-quote {
  max-width: 760px;
  margin: 72px 0 0 auto;
  padding: 32px 0 32px 28px;
  border-left: 1px solid var(--mm-rule);
}

.mm-quote p {
  color: var(--mm-ink);
  font-size: 2.1rem;
  line-height: 1.28;
}

.memento-site .episode-signup.mm-signup {
  max-width: 760px;
  margin: 86px 0 0 auto;
  padding: 34px 0 0;
  border-top: 1px solid var(--mm-rule);
}

.memento-article .episode-signup.mm-signup {
  margin-left: 0;
}

.memento-site .signup-kicker {
  margin: 0 0 12px;
  color: var(--mm-faint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.memento-site .signup-title {
  max-width: 560px;
  margin: 0 0 20px;
  color: var(--mm-ink);
  font-family: var(--mm-serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.32;
}

.memento-site .newsletter-form {
  display: flex;
  max-width: 560px;
  gap: 10px;
}

.memento-site .newsletter-form input {
  min-height: 48px;
  background: rgba(255,255,255,0.24);
  border: 1px solid rgba(23,19,13,0.22);
  color: var(--mm-ink);
  font-family: var(--mm-sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 0 14px;
  text-transform: none;
}

.memento-site .newsletter-form input:focus {
  border-color: rgba(47,111,104,0.72);
}

.memento-site .newsletter-form input::placeholder {
  color: rgba(23,19,13,0.38);
  text-transform: none;
}

.memento-site .newsletter-form button {
  width: auto;
  min-width: 120px;
  min-height: 48px;
  padding: 0 18px;
  background: var(--mm-ink);
  border: 1px solid var(--mm-ink);
  color: var(--mm-paper);
  font-family: var(--mm-sans);
  font-size: 0.88rem;
  font-weight: 700;
}

.memento-site .newsletter-form button:hover {
  background: var(--mm-accent);
  border-color: var(--mm-accent);
}

.memento-site .newsletter-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.memento-site .signup-note,
.memento-site .form-message {
  color: var(--mm-muted);
  font-family: var(--mm-sans);
  font-size: 0.8rem;
  line-height: 1.55;
}

.memento-site .signup-note {
  margin-top: 12px;
}

.memento-site .form-message {
  margin-top: 8px;
  min-height: 1.3em;
}

.mm-footer {
  margin-top: 96px;
  padding-top: 22px;
  border-top: 1px solid var(--mm-rule);
  color: var(--mm-faint);
}

.mm-back-link {
  display: inline-flex;
  margin: 58px 0 56px;
  font-family: var(--mm-sans);
  font-size: 0.78rem;
  font-weight: 700;
}

.mm-piece {
  max-width: 760px;
}

.mm-piece-header {
  margin-bottom: 58px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--mm-rule);
}

body.memento-article .mm-piece-header {
  border-bottom: 0;
}

.mm-piece-header h1 {
  margin: 0 0 22px;
  color: var(--mm-ink);
  font-family: var(--mm-serif);
  font-size: 4.4rem;
  font-weight: 400;
  line-height: 0.98;
}

.mm-piece-header > p:last-child {
  max-width: 620px;
  color: var(--mm-muted);
  font-size: 1.2rem;
  line-height: 1.65;
}

.memento-site .mm-prose {
  max-width: 700px;
  color: var(--mm-text);
  font-weight: 400;
}

.mm-opening-note {
  max-width: 700px;
  margin: 0 0 7.25rem;
  padding: 0 0 4rem;
  border-bottom: 1px solid var(--mm-rule);
}

body.memento-article .mm-opening-note {
  border-bottom: 0;
}

.mm-opening-note blockquote {
  max-width: 620px;
  margin: 0 0 3.6rem;
}

.mm-opening-note blockquote p {
  color: var(--mm-ink);
  font-size: 1.55rem;
  font-style: italic;
  line-height: 1.55;
}

.mm-dedication {
  max-width: 560px;
  margin-left: clamp(18px, 4vw, 44px);
  padding: 1.1rem 0 0.15rem 1.25rem;
  border-left: 1px solid rgba(68,52,34,0.18);
}

.mm-dedication p {
  margin: 0;
  color: var(--mm-muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.mm-dedication .mm-dedication-name {
  margin-bottom: 0.7rem;
  color: var(--mm-ink);
  font-size: 1.08rem;
}

.memento-site .mm-prose a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(47,111,104,0.35);
}

.memento-site .chapter {
  margin-top: clamp(7rem, 16vh, 10rem);
  scroll-margin-block: 32vh;
}

.memento-site .chapter:first-child {
  margin-top: 0;
}

.memento-site .chapter + .chapter {
  padding-top: clamp(3rem, 7vh, 5rem);
  border-top: 0;
}

.memento-site .mm-piece-header,
.memento-site .mm-opening-note,
.memento-site .episode-body.mm-prose,
.memento-site .closing-poem {
  scroll-margin-block: 30vh;
}

.memento-site .chapter-number {
  margin-bottom: 14px;
  color: var(--mm-faint);
  font-family: var(--mm-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.memento-site .chapter-title {
  margin-bottom: 28px;
  color: var(--mm-ink);
  font-family: var(--mm-serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.18;
  text-transform: none;
}

.memento-site .closing-poem {
  margin-top: 5.5rem;
  padding-top: 34px;
  border-top: 1px solid var(--mm-rule);
}

.memento-site .closing-poem p {
  color: var(--mm-ink);
  font-size: 1.45rem;
  line-height: 1.7;
}

.memento-site .mm-piece-nav {
  max-width: 700px;
  margin-top: 72px;
  padding-top: 20px;
  border-top: 1px solid var(--mm-rule);
}

.memento-site .mm-piece-nav a,
.memento-site .mm-piece-nav span {
  color: var(--mm-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.memento-site .mm-piece-nav a:hover {
  color: var(--mm-ink);
}

@media (max-width: 860px) {
  .mm-hero h1 {
    font-size: 4.7rem;
  }

  .mm-hero-deck,
  .mm-intro-copy p:first-child {
    font-size: 1.28rem;
  }

  .mm-introduction,
  .mm-section-heading,
  .mm-release-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .mm-intro-note {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 18px;
  }

  .mm-profile-photo {
    grid-column: 1 / -1;
    width: 112px;
    height: 112px;
    margin-bottom: 12px;
  }

  .mm-intro-note p + p {
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  .mm-shell,
  .mm-reading-shell {
    width: min(calc(100% - 32px), 1120px);
    padding-top: 20px;
  }

  .mm-header,
  .mm-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .mm-nav {
    justify-content: flex-start;
    gap: 14px;
  }

  .mm-hero {
    min-height: auto;
    padding: 58px 0 54px;
  }

  .mm-hero h1 {
    font-size: 3.45rem;
  }

  .mm-piece-header h1 {
    font-size: 3rem;
  }

  .mm-opening-note {
    margin-bottom: 6.5rem;
    padding-bottom: 3.75rem;
  }

  .mm-opening-note blockquote {
    margin-bottom: 3rem;
  }

  .mm-opening-note blockquote p {
    font-size: 1.28rem;
    line-height: 1.58;
  }

  .mm-dedication {
    margin-left: 0;
    padding: 1.15rem 0 0.2rem 1rem;
  }

  .mm-dedication p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .memento-site .chapter-number {
    margin-bottom: 16px;
  }

  .memento-site .chapter-title {
    font-size: 1.72rem;
    margin-bottom: 32px;
  }

  .mm-section-heading h2 {
    font-size: 2.25rem;
  }

  .mm-release-title,
  .mm-quote p {
    font-size: 1.55rem;
  }

  .mm-introduction {
    padding: 56px 0;
  }

  .mm-intro-note {
    grid-template-columns: 1fr;
  }

  .mm-profile-photo {
    width: 104px;
    height: 104px;
  }

  .memento-site .newsletter-form {
    align-items: stretch;
    flex-direction: column;
  }

  .memento-site .newsletter-form button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .container-reading,
  .mm-reading-shell {
    --reading-focus-top: clamp(72px, 13vh, 118px);
    --reading-focus-bottom: clamp(82px, 14vh, 128px);
  }
}
